]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
fixup changelog entry
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2
3 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4 * config/aarch64/aarch64-tune.md: Regenerated.
5 * config/arm/arm-cores.def (qdf24xx): New.
6 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
7 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
8 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
9 (ARM Options/-mtune); Likewise.
10
11 2015-11-12 Martin Liska <mliska@suse.cz>
12
13 * config/i386/i386.c (ix86_valid_target_attribute_p):
14 Finalize options at the of the function.
15 * gcc.c (driver_get_configure_time_options): Call newly
16 introduced init_opts_obstack.
17 * lto-wrapper.c (main): Likewise.
18 * opts.c (init_opts_obstack): New function.
19 (init_options_struct): Call newly
20 introduced init_opts_obstack.
21 * opts.h (init_options_struct): Declare.
22
23 2015-11-12 Martin Liska <mliska@suse.cz>
24
25 PR ipa/68035
26 * ipa-icf.c (void sem_item::set_hash): New function.
27 (sem_function::get_hash): Use renamed m_hash member variable.
28 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
29 (sem_item::update_hash_by_local_refs): Likewise.
30 (sem_variable::get_hash): Use renamed m_hash member variable.
31 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
32 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
33 (sem_item_optimizer::build_graph): As the hash value of an item
34 is lazy initialized, force the calculation.
35 * ipa-icf.h (set_hash): Declare new function and rename hash member
36 variable to m_hash.
37
38 2015-11-12 Richard Biener <rguenther@suse.de>
39
40 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
41 Rename to vect_slp_analyze_instance_dependence.
42 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
43 Remove WAR special-case.
44 (vect_slp_analyze_node_dependences): Instead add more specific
45 code here, not relying on other instances being vectorized.
46 (vect_slp_analyze_instance_dependence): Adjust accordingly.
47 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
48 vertical space in dump files.
49 (vect_print_slp_tree): Likewise.
50 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
51 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
52 not vectorized stmts until after dependence analysis removed
53 instances. Merge alignment and dependence checks.
54 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
55 flag on all stmts.
56
57 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
58
59 * config/aarch64/aarch64-protos.h (tune_params): Add new members
60 "max_case_values" and "cache_line_size".
61 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
62 function.
63 (aarch64_override_options_internal): Tune heuristics based on new
64 members in "tune_params".
65 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
66
67 2015-11-12 Richard Biener <rguenther@suse.de>
68
69 PR tree-optimization/68306
70 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
71 relevant and vectorizable checks here.
72 (vect_verify_datarefs_alignment): Add relevant check here.
73
74 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
75
76 * gimplify.c (oacc_default_clause): New.
77 (omp_notice_variable): Call it.
78
79 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
80
81 PR tree-optimization/68305
82 * tree-vect-slp.c (vect_get_constant_vectors): Support
83 COND_EXPR with SSA_NAME as a condition.
84
85 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
86
87 * config/visium/visium-protos.h (notice_update_cc): Delete.
88 (print_operand): Likewise.
89 (print_operand_address): Likewise.
90
91 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
92
93 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
94 FUNCTION_VALUE_REGNO_P): Remove.
95 * config/alpha/alpha-protos.h (function_value): Remove.
96 * config/alpha/alpha.c (function_value): Rename to...
97 (alpha_function_value_1): ... this. Make static.
98 (alpha_function_value, alpha_libcall_value,
99 alpha_function_value_regno_p): New functions.
100 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
101 TARGET_FUNCTION_VALUE_REGNO_P): Define.
102
103 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
104
105 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
106 * config/alpha/alpha.c (alpha_memory_latency): Make static.
107 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
108 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
109
110 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
111
112 PR target/67265
113 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
114 assertion on the CFA register.
115
116 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
117
118 * expr.c (do_store_flag): Expand vector comparison as
119 VEC_COND_EXPR if vector comparison is not supported
120 by target.
121
122 2015-11-12 Renlin Li <renlin.li@arm.com>
123
124 * config/arm/arm.md (addsi3_compare_op2): Make the order of
125 assembly pattern consistent with constraint order.
126
127 2015-11-12 Tom de Vries <tom@codesourcery.com>
128
129 * gen-pass-instances.awk (handle_line): Simplify match regexp.
130
131 2015-11-12 Tom de Vries <tom@codesourcery.com>
132
133 * gen-pass-instances.awk (handle_line): Simplify init of
134 postfix_starts_at.
135
136 2015-11-12 Tom de Vries <tom@codesourcery.com>
137
138 * gen-pass-instances.awk (handle_line): Rename var where to
139 call_starts_at.
140
141 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
142
143 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
144 do not expand to rtl.
145
146 2015-11-12 Richard Biener <rguenther@suse.de>
147
148 PR tree-optimization/58497
149 * tree-vect-generic.c: Include gimplify.h.
150 (tree_vec_extract): Lookup constant/constructor DEFs.
151 (do_cond): Unshare cond.
152
153 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
154
155 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
156 combined insn if the alignment of vector mode memory operand
157 is less than ssememalign.
158
159 2015-11-12 Tom de Vries <tom@codesourcery.com>
160
161 * gen-pass-instances.awk (handle_line): Print parentheses and
162 pass_name explicitly.
163
164 2015-11-12 Tom de Vries <tom@codesourcery.com>
165
166 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
167 and postfix vars.
168
169 2015-11-12 Tom de Vries <tom@codesourcery.com>
170
171 * gen-pass-instances.awk (handle_line): Add comments.
172
173 2015-11-12 Tom de Vries <tom@codesourcery.com>
174
175 * gen-pass-instances.awk (handle_line): Rename len_of_end to
176 len_of_close.
177
178 2015-11-12 Tom de Vries <tom@codesourcery.com>
179
180 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
181
182 2015-11-12 Tom de Vries <tom@codesourcery.com>
183
184 * gen-pass-instances.awk (handle_line): Restructure using early-out.
185
186 2015-11-12 Tom de Vries <tom@codesourcery.com>
187
188 * gen-pass-instances.awk (handle_line): Unify semicolon use.
189
190 2015-11-12 Tom de Vries <tom@codesourcery.com>
191
192 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
193
194 2015-11-12 Tom de Vries <tom@codesourcery.com>
195
196 * gen-pass-instances.awk: Add emacs indent setting.
197
198 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
199
200 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
201 to match.pd.
202 Move Convert A/(B/C) to (A/B)*C to match.pd.
203 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
204 Move Optimize (X & (-A)) / A where A is a power of 2, to
205 X >> log2(A) to match.pd.
206
207 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
208 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
209 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
210 New simplifier.
211 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
212
213 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
214
215 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
216 variable.
217 (neon_vst2_lane<mode>): Likewise.
218 (neon_vld3_lane<mode>): Likewise.
219 (neon_vst3_lane<mode>): Likewise.
220 (neon_vld4_lane<mode>): Likewise.
221 (neon_vst4_lane<mode>): Likewise.
222
223 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
224 Sebastian Pop <s.pop@samsung.com>
225
226 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
227 New member codegen_error
228 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
229 early return.
230 (translate_isl_ast_node_user): Early return in case of error.
231 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
232 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
233 (add_parameters_to_ivs_params): Remove macro.
234 (graphite_regenerate_ast_isl): Add if_region pointer to region.
235 * graphite-poly.c (new_poly_dr): Remove macro.
236 (print_pdr): Same.
237 (new_gimple_poly_bb): Same.
238 (free_gimple_poly_bb): Same.
239 (print_scop_params): Same.
240 * graphite-poly.h (struct poly_dr): Same.
241 (struct poly_bb): Add new_bb.
242 (gbb_from_bb): Remove dead code.
243 (pbb_from_bb): Same.
244 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
245 (parameter_index_in_region): Same.
246 (find_scop_parameters): Same.
247 (build_cross_bb_scalars_def): New.
248 (build_cross_bb_scalars_use): New.
249 (graphite_find_cross_bb_scalar_vars): New
250 (try_generate_gimple_bb): Reads and Writes.
251 (build_alias_set): Move.
252 (gather_bbs::before_dom_children): Gather bbs visited.
253 (build_scops): call build_alias_set.
254 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
255 (remove_simple_copy_phi): Delete.
256 (remove_invariant_phi): Delete.
257 (simple_copy_phi_p): Delete.
258 (reduction_phi_p): Delete.
259 (isl_id_for_dr): Remove unused param.
260 (parameter_index_in_region_1): Remove macro usage.
261 (set_scop_parameter_dim): Same.
262 (add_param_constraints): Same.
263 (add_conditions_to_constraints): Same
264 (build_scop_iteration_domain): Same.
265 (pdr_add_alias_set): Comment.
266 (add_scalar_version_numbers): New.
267 (build_poly_dr): ISL id.
268 (build_scop_drs): Move.
269 (build_poly_sr_1): Same.
270 (insert_stmts): Remove.
271 (build_poly_sr): New.
272 (new_pbb_from_pbb): Delete.
273 (insert_out_of_ssa_copy_on_edge): Delete.
274 (create_zero_dim_array): Delete.
275 (scalar_close_phi_node_p): Delete.
276 (propagate_expr_outside_region): Delete.
277 (rewrite_close_phi_out_of_ssa): Delete.
278 (rewrite_phi_out_of_ssa): Delete.
279 (rewrite_degenerate_phi): Delete.
280 (rewrite_reductions_out_of_ssa): Delete.
281 (rewrite_cross_bb_scalar_dependence): Delete.
282 (handle_scalar_deps_crossing_scop_limits):
283 (rewrite_cross_bb_scalar_deps): Delete.
284 (build_poly_scop): Remove calls to out-of-ssa functions.
285 * graphite.c (graphite_transform_loops): Early return in case of
286 codegen error.
287 * sese.c (debug_rename_map_1): Delete.
288 (debug_rename_map): Delete.
289 (sese_record_loop): Remove macro.
290 (build_sese_loop_nests): Same.
291 (new_sese_info): Same.
292 (free_sese_info): Same.
293 (sese_insert_phis_for_liveouts):
294 (is_loop_closed_ssa_use): New.
295 (number_of_phi_nodes): New.
296 (bb_contains_loop_close_phi_nodes): New.
297 (bb_contains_loop_phi_nodes): New.
298 (phi_uses_name): New.
299 (is_valid_rename):
300 (get_rename): Add old_bb and loop_phi for more precise matching of
301 exprs.
302 (set_rename): Pass region.
303 (later_of_the_two): New.
304 (gsi_insert_earliest): New.
305 (collect_all_ssa_names): New.
306 (substitute_ssa_name): New.
307 (rename_all_uses): New.
308 (get_rename_from_scev): New.
309 (rename_uses): Pass old_bb for more precise matching of exprs.
310 (get_def_bb_for_const): New.
311 (get_new_name): New.
312 (get_loc): New.
313 (get_edges): New.
314 (copy_loop_phi_args): New.
315 (copy_loop_phi_nodes): New.
316 (get_loop_init_value): New.
317 (find_init_value): New.
318 (find_init_value_close_phi): New.
319 (copy_loop_close_phi_args): New.
320 (copy_loop_close_phi_nodes): New.
321 (add_phi_arg_for_new_expr): New.
322 (copy_cond_phi_args): New.
323 (copy_cond_phi_nodes): New.
324 (copy_phi_nodes): New.
325 (should_copy_to_new_region): New.
326 (set_rename_for_each_def): New.
327 (graphite_copy_stmts_from_block): Early return in case of error.
328 (copy_bb_and_scalar_dependences): Same.
329 * sese.h (vec_find): New.
330 (SESE_PARAMS): Delete.
331 (SESE_LOOPS): Delete.
332 (SESE_LOOP_NEST): Delete.
333 (sese_contains_loop): Remove macro usage.
334 (sese_nb_params): Same.
335 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
336
337 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
338
339 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
340 isl_union_map_add_map on every pbb->schedule.
341
342 2015-11-11 Tom de Vries <tom@codesourcery.com>
343
344 * tree-parloops.c (create_parallel_loop): Return void.
345
346 2015-11-11 Tom de Vries <tom@codesourcery.com>
347
348 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
349 block only when needed.
350
351 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
352
353 * config/alpha/alpha-protos.h (print_operand): Remove.
354 (print_operand_address): Remove.
355 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
356 (PRINT_OPERAND_ADDRESS): Remove.
357 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
358 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
359 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
360 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
361 (print_operand_address): Rename to...
362 (alpha_print_operand_address): ...this and make static.
363 (print_operand): Rename to...
364 (alpha_print_operand): ...this and make static.
365 (alpha_print_operand_punct_valid_p): New static function.
366
367 2015-11-11 Richard Biener <rguenther@suse.de>
368
369 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
370 Declare.
371 (vect_analyze_data_refs_alignment): Make loop vect specific.
372 (vect_verify_datarefs_alignment): Likewise.
373 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
374 Add missing continue.
375 (vect_compute_data_ref_alignment): Export.
376 (vect_compute_data_refs_alignment): Merge into...
377 (vect_analyze_data_refs_alignment): ... this.
378 (verify_data_ref_alignment): Split out from ...
379 (vect_verify_datarefs_alignment): ... here.
380 (vect_slp_analyze_and_verify_node_alignment): New function.
381 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
382 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
383 misplaced checks on alignment.
384 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
385 alignment analysis after SLP discovery and do it per instance.
386 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
387 bother to re-try using different vector sizes.
388
389 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
390 Cesar Philippidis <cesar@codesourcery.com>
391
392 * gimplify.c (enum omp_region_type): Add ORT_ACC,
393 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
394 (gimple_add_tmp_var): Add ORT_ACC checks.
395 (gimplify_var_or_parm_decl): Likewise.
396 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
397 mask.
398 (omp_add_variable): Look in outer contexts for openacc and allow
399 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
400 checks.
401 (omp_notice_variable, omp_is_private, omp_check_private): Add
402 ORT_ACC checks.
403 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
404 Permit private openacc reductions.
405 (gimplify_oacc_cache): Specify ORT_ACC.
406 (gimplify_omp_workshare): Adjust OpenACC region types.
407 (gimplify_omp_target_update): Likewise.
408 * omp-low.c (scan_sharing_clauses): Remove Openacc
409 firstprivate sorry.
410 (lower-rec_input_clauses): Don't handle openacc firstprivate
411 references here.
412 (lower_omp_target): Emit initializers for openacc firstprivate vars.
413
414 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
415
416 PR target/67265
417 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
418 frame pointer for stack checking if non-call exceptions aren't used.
419 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
420
421 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
422
423 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
424 [LA]SHIFTRT.
425
426 2015-11-11 Martin Liska <mliska@suse.cz>
427 Richard Biener <rguenther@suse.de>
428
429 PR rtl-optimization/68287
430 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
431 number of elements.
432
433 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
434
435 * config/mips/mips.c (mips_breakable_sequence_p): New function.
436 (mips_break_sequence): New function.
437 (mips_reorg_process_insns): Use them. Use compact branches in selected
438 situations.
439
440 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
441
442 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
443
444 2015-11-11 Jiong Wang <jiong.wang@arm.com>
445 Jim Wilson <wilson@gcc.gnu.org>
446
447 PR target/67305
448 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
449 be true and eliminable registers mentioned.
450
451 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
452
453 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
454 options.
455 * config/arc/arc-opts.h: Add ARCv2 CPUs.
456 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
457 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
458 situation, and store instructions with large offsets.
459 (arc_secondary_reload_conv): New function.
460 (arc_init): Add ARCv2 options.
461 (arc_conditional_register_usage): Select the proper register usage
462 for ARCv2 processors.
463 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
464 architecture.
465 (arc_compute_function_type): Likewise.
466 (arc_print_operand): Handle new ARCv2 punctuation characters.
467 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
468 bytes.
469 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
470 function.
471 (arc_reorg, arc_hazard): Use it.
472 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
473 __EM__.
474 (ASM_SPEC): Add ARCv2 options.
475 (TARGET_NORM): ARC HS has norm instructions by default.
476 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
477 HS.
478 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
479 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
480 Define.
481 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
482 Likewise.
483 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
484 (TARGET_LP_WR_INTERLOCK): Likewise.
485 * config/arc/arc.md
486 (commutative_binary_mult_comparison_result_used, movsicc_insn)
487 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
488 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
489 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
490 Use it for ARCv2.
491 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
492 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
493 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
494 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
495 (extzvsi): New pattern.
496 * config/arc/arc.opt: New ARCv2 options.
497 * config/arc/arcEM.md: New file.
498 * config/arc/arcHS.md: Likewise.
499 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
500 values.
501 (Cm2): A signed 9-bit integer constant constraint.
502 (C62): An unsigned 6-bit integer constant constraint.
503 (C16): A signed 16-bit integer constant constraint.
504 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
505 (short_const_int_operand): New predicate.
506 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
507 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
508 -mcode-density and -mdiv-rem.
509
510 2015-11-11 Julia Koval <julia.koval@intel.com>
511
512 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
513
514 2015-11-11 Julia Koval <julia.koval@intel.com>
515
516 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
517
518 2015-11-11 Martin Liska <mliska@suse.cz>
519
520 * gimple-ssa-strength-reduction.c (create_phi_basis):
521 Use auto_vec.
522 * passes.c (release_dump_file_name): New function.
523 (pass_init_dump_file): Used from this function.
524 (pass_fini_dump_file): Likewise.
525 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
526 * var-tracking.c (vt_initialize): Use pool_allocator.
527
528 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
529 Jiong Wang <jiong.wang@arm.com>
530
531 PR tree-optimization/68234
532 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
533 node which estimiated to be VR_VARYING initially.
534
535 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
536
537 * regname.c (scan_rtx_reg): Check the matching number of consecutive
538 registers when tying chains.
539 (build_def_use): Move terminated_this_insn earlier in the function.
540
541 2015-11-10 Mike Frysinger <vapier@gentoo.org>
542
543 * configure.ac: Use = with test and not ==.
544 * configure: Regenerated.
545
546 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
547
548 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
549 machine asserts. Update defines for 64 bit.
550
551 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
552
553 PR target/63870
554 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
555 lane number.
556 (neon_vst1_lane<mode>): Likewise.
557 (neon_vld2_lane<mode>): Likewise.
558 (neon_vst2_lane<mode>): Likewise.
559 (neon_vld3_lane<mode>): Likewise.
560 (neon_vst3_lane<mode>): Likewise.
561 (neon_vld4_lane<mode>): Likewise.
562 (neon_vst4_lane<mode>): Likewise.
563
564 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
565
566 PR target/63870
567 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
568 qualifier_struct_load_store_lane_index.
569 (arm_storestruct_lane_qualifiers) Likewise.
570 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
571 big-endian.
572 (neon_vst1_lane<mode>) Likewise.
573 (neon_vld2_lane<mode>) Likewise.
574 (neon_vst2_lane<mode>) Likewise.
575 (neon_vld3_lane<mode>) Likewise.
576 (neon_vst3_lane<mode>) Likewise.
577 (neon_vld4_lane<mode>) Likewise.
578 (neon_vst4_lane<mode>) Likewise.
579
580 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
581
582 PR target/63870
583 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
584 qualifier_struct_load_store_lane_index.
585 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
586 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
587 argument qualifiers.
588 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
589 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
590
591 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
592
593 * config/nvptx/nvptx.opt (moptimize): New flag.
594 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
595 default.
596 (nvptx_optimize_inner): New.
597 (nvptx_process_pars): Call it when optimizing.
598 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
599
600 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
601
602 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
603 Remove redundant code.
604
605 2015-11-10 Jeff Law <law@redhat.com>
606
607 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
608 call to output_address.
609 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
610 Add unnamed machine_mode argument.
611
612 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
613
614 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
615 default to 64-bit.
616
617 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
618
619 * config/i386/i386.md (*movabs<mode>_1): Add explicit
620 size directives for -masm=intel.
621 (*movabs<mode>_2): Ditto.
622
623 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
624
625 * config/i386/i386.c (ix86_print_operand): Remove dead code that
626 tried to avoid (%rip) for call operands.
627
628 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
629
630 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
631 argument. Do not use RIP relative addressing when no_rip is set.
632 (ix86_print_operand): Update call to ix86_print_operand_address_as.
633 (ix86_print_operand_address): Ditto.
634 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
635 absolute movabs operand 0. Add square braces for -masm=intel.
636 (*movabs<mode>_2): Ditto for operand 1.
637
638 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
639
640 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
641 combine_vcvtf2i pattern.
642
643 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
644
645 * config/arm/arm.c (neon_valid_immediate): Remove integer
646 CONST_DOUBLE handling. It should never occur.
647
648 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
649
650 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
651 (ATOMIC_LDOP): Likewise.
652 (atomic_ldop): Likewise.
653 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
654 (ATOMIC_LDOP): Likewise.
655 (atomic_ldop): Likewise.
656
657 2015-11-10 Martin Liska <mliska@suse.cz>
658
659 * alloc-pool.h (allocate_raw): New function.
660 (operator new (size_t, object_allocator<T> &a)): Use the
661 function instead of object_allocator::allocate).
662
663 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
664
665 * config/i386/sse.md (HALFMASKMODE): New attribute.
666 (DOUBLEMASKMODE): New attribute.
667 (vec_pack_trunc_qi): New.
668 (vec_pack_trunc_<mode>): New.
669 (vec_unpacks_lo_hi): New.
670 (vec_unpacks_lo_si): New.
671 (vec_unpacks_lo_di): New.
672 (vec_unpacks_hi_hi): New.
673 (vec_unpacks_hi_<mode>): New.
674
675 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
676
677 * optabs.c (expand_binop_directly): Allow scalar mode for
678 vec_pack_trunc_optab.
679 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
680 boolean vector producers from pattern sequence when computing VF.
681 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
682 vect_recog_mask_conversion_pattern.
683 (search_type_for_mask): Choose the smallest
684 type if different size types are mixed.
685 (build_mask_conversion): New.
686 (vect_recog_mask_conversion_pattern): New.
687 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
688 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
689 load with pattern.
690 (vectorizable_conversion): Support boolean vectors.
691 (free_stmt_vec_info): Allow patterns for statements with no lhs.
692 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
693
694 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
695
696 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
697 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
698 Cast mask to FP mode if required.
699 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
700 (vcond_mask_<mode><avx512fmaskmodelower>): New.
701 (vcond_mask_<mode><sseintvecmodelower>): New.
702 (vcond_mask_<mode><sseintvecmodelower>): New.
703 (vcond_mask_v2div2di): New.
704 (vcond_mask_<mode><sseintvecmodelower>): New.
705 (vcond_mask_<mode><sseintvecmodelower>): New.
706
707 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
708
709 * optabs-query.h (get_vcond_mask_icode): New.
710 * optabs-tree.c (expand_vec_cond_expr_p): Use
711 get_vcond_mask_icode for VEC_COND_EXPR with mask.
712 * optabs.c (expand_vec_cond_mask_expr): New.
713 (expand_vec_cond_expr): Use get_vcond_mask_icode
714 when possible.
715 * optabs.def (vcond_mask_optab): New.
716 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
717 generate redundant comparison for COND_EXPR.
718 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
719 as a condition.
720 (vectorizable_condition): Likewise.
721 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
722 cond_exp with no embedded comparison.
723 (vect_build_slp_tree_1): Likewise.
724
725 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
726
727 * config/i386/sse.md (maskload<mode>): Rename to ...
728 (maskload<mode><sseintvecmodelower>): ... this.
729 (maskstore<mode>): Rename to ...
730 (maskstore<mode><sseintvecmodelower>): ... this.
731 (maskload<mode><avx512fmaskmodelower>): New.
732 (maskstore<mode><avx512fmaskmodelower>): New.
733
734 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
735
736 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
737 (expand_MASK_STORE): Adjust to maskstore optab changes.
738 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
739 Adjust to maskload, maskstore optab changes.
740 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
741 * optabs.def (maskload_optab): Transform into convert optab.
742 (maskstore_optab): Likewise.
743 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
744 can_vec_mask_load_store_p signature change.
745 (predicate_mem_writes): Use boolean mask.
746 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
747 can_vec_mask_load_store_p signature change. Allow invariant masks.
748 (vectorizable_operation): Ignore type precision for boolean vectors.
749
750 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
751
752 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
753 (const_vector_mask_from_tree): New.
754 (const_vector_from_tree): Use const_vector_mask_from_tree
755 for boolean vectors.
756 * optabs-query.h (get_vec_cmp_icode): New.
757 * optabs-tree.c (expand_vec_cmp_expr_p): New.
758 * optabs-tree.h (expand_vec_cmp_expr_p): New.
759 * optabs.c (vector_compare_rtx): Add OPNO arg.
760 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
761 (expand_vec_cmp_expr): New.
762 * optabs.def (vec_cmp_optab): New.
763 (vec_cmpu_optab): New.
764 * optabs.h (expand_vec_cmp_expr): New.
765 * tree-vect-generic.c (expand_vector_comparison): Add vector
766 comparison optabs check.
767 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
768 operations for VF. Add mask type computation.
769 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
770 (vectorizable_comparison): New.
771 (vect_analyze_stmt): Add vectorizable_comparison.
772 (vect_transform_stmt): Likewise.
773 (vect_init_vector): Support boolean vector invariants.
774 (vect_get_vec_def_for_operand): Add VECTYPE arg.
775 (vectorizable_condition): Directly provide vectype for invariants
776 used in comparison.
777 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
778 (enum vect_var_kind): Add vect_mask_var.
779 (enum stmt_vec_info_type): Add comparison_vec_info_type.
780 (vectorizable_comparison): New.
781 (vect_get_vec_def_for_operand): Add VECTYPE arg.
782 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
783 (vect_create_destination_var): Likewise.
784 * tree-vect-patterns.c (check_bool_pattern): Check fails
785 if we can vectorize comparison directly.
786 (search_type_for_mask): New.
787 (vect_recog_bool_pattern): Support cases when bool pattern
788 check fails.
789 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
790 comparison statements.
791 (vect_get_constant_vectors): Support boolean vector
792 constants.
793 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
794 (ix86_expand_int_vec_cmp): New.
795 (ix86_expand_fp_vec_cmp): New.
796 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
797 op_true and op_false.
798 (ix86_int_cmp_code_to_pcmp_immediate): New.
799 (ix86_fp_cmp_code_to_pcmp_immediate): New.
800 (ix86_cmp_code_to_pcmp_immediate): New.
801 (ix86_expand_mask_vec_cmp): New.
802 (ix86_expand_fp_vec_cmp): New.
803 (ix86_expand_int_sse_cmp): New.
804 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
805 (ix86_expand_int_vec_cmp): New.
806 (ix86_get_mask_mode): New.
807 (TARGET_VECTORIZE_GET_MASK_MODE): New.
808 * config/i386/sse.md (avx512fmaskmodelower): New.
809 (vec_cmp<mode><avx512fmaskmodelower>): New.
810 (vec_cmp<mode><sseintvecmodelower>): New.
811 (vec_cmpv2div2di): New.
812 (vec_cmpu<mode><avx512fmaskmodelower>): New.
813 (vec_cmpu<mode><sseintvecmodelower>): New.
814 (vec_cmpuv2div2di): New.
815
816 2015-11-10 Richard Biener <rguenther@suse.de>
817
818 PR tree-optimization/68240
819 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
820 properly.
821 (visit_phi): For PHIs with just a single executable edge
822 take its value directly.
823 (expressions_equal_p): Handle VN_TOP properly.
824
825 2015-11-10 Richard Biener <rguenther@suse.de>
826
827 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
828 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
829 conservatively.
830
831 2015-11-10 Richard Biener <rguenther@suse.de>
832
833 PR tree-optimization/56118
834 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
835 cost favor vectorized version.
836
837 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
838
839 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
840 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
841 (neg_not_op): New code attribute.
842
843 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
844
845 * ifcvt.c (noce_try_inverse_constants): New function.
846 (noce_process_if_block): Call it.
847 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
848 * optabs.def (negcc_optab, notcc_optab): Declare.
849 * optabs.c (emit_conditional_neg_or_complement): New function.
850 * doc/tm.texi (Standard Names): Document negcc, notcc names.
851
852 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
853
854 PR rtl-optimization/68236
855 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
856 if insn_queue doesn't exist.
857 (haifa_sched_finish): Reset insn_queue to NULL.
858
859 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
860
861 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
862 (build_def_use): Initialize terminated_this_insn.
863 (find_best_rename_reg): Pick and check register from the tied chain.
864 (regrename_do_replace): Mark head as renamed.
865 (struct du_head *terminated_this_insn). New static variable.
866 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
867 * regrename.h (struct du_head): Add tied_chain, renamed members.
868
869 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
870
871 PR bootstrap/68256
872 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
873 Return false.
874
875 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
876
877 PR target/57845
878 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
879 not promote the mode for aggregate types.
880
881 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
882
883 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
884 * omp-low.c (build_oacc_routine_dims): New.
885
886 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
887
888 * config/rs6000/constraints.md (wF constraint): New constraints
889 for power9/toc fusion.
890 (wG constraint): Likewise.
891
892 * config/rs6000/predicates.md (u6bit_cint_operand): New
893 predicate, recognize 0..63.
894 (upper16_cint_operand): New predicate for power9 and toc fusion.
895 (fpr_reg_operand): Likewise.
896 (toc_fusion_or_p9_reg_operand): Likewise.
897 (toc_fusion_mem_raw): Likewise.
898 (toc_fusion_mem_wrapped): Likewise.
899 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
900 address range.
901 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
902 instead.
903 (fusion_addis_mem_combo_load): Add support for power9 fusion of
904 floating point loads, floating point stores, and gpr stores.
905 (fusion_addis_mem_combo_store): Likewise.
906 (fusion_offsettable_mem_operand): Likewise.
907
908 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
909 declarations.
910 (emit_fusion_load_store): Likewise.
911 (fusion_p9_p): Likewise.
912 (expand_fusion_p9_load): Likewise.
913 (expand_fusion_p9_store): Likewise.
914 (emit_fusion_p9_load): Likewise.
915 (emit_fusion_p9_store): Likewise.
916 (fusion_wrap_memory_address): Likewise.
917
918 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
919 elements for power9 fusion.
920 (rs6000_debug_print_mode): Rework debug information to print more
921 information about fusion.
922 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
923 support.
924 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
925 offsettable memory address.
926 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
927 (emit_fusion_gpr_load): Move most of the code from
928 emit_fusion_gpr_load into emit_fusion-addis that handles both
929 power8 and power9 fusion.
930 (emit_fusion_addis): Likewise.
931 (emit_fusion_load_store): Likewise.
932 (fusion_wrap_memory_address): Add support for TOC fusion.
933 (fusion_split_address): Likewise.
934 (fusion_p9_p): Add support for power9 fusion.
935 (expand_fusion_p9_load): Likewise.
936 (expand_fusion_p9_store): Likewise.
937 (emit_fusion_p9_load): Likewise.
938 (emit_fusion_p9_store): Likewise.
939
940 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
941 new instructions in ISA 3.0.
942 (TARGET_CTZ): Likewise.
943 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
944 (TARGET_TOC_FUSION_FP): Likewise.
945
946 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
947 fusion unspecs.
948 (UNSPEC_FUSION_ADDIS): Likewise.
949 (QHSI mode iterator): New iterator for power9 fusion.
950 (GPR_FUSION): Likewise.
951 (FPR_FUSION): Likewise.
952 (mod<mode>3): Add support for ISA 3.0
953 modulus instructions.
954 (umod<mode>3): Likewise.
955 (divmod peephole): Likewise.
956 (udivmod peephole): Likewise.
957 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
958 instructions.
959 (ctz<mode>2_h): Likewise.
960 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
961 (ashdi3_extswsli_dot): Likewise.
962 (ashdi3_extswsli_dot2): Likewise.
963 (power9 fusion splitter): New power9/toc fusion support.
964 (toc_fusionload_<mode>): Likewise.
965 (toc_fusionload_di): Likewise.
966 (fusion_gpr_load_<mode>): Update predicate function.
967 (power9 fusion peephole2s): New power9/toc fusion support.
968 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
969 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
970 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
971 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
972 (fusion_p9_<mode>_constant): Likewise.
973
974 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
975
976 * optabs.c (prepare_libcall_arg): New function.
977 (expand_fixed_convert): Add call to prepare_libcall_arg.
978
979 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
980
981 * sched-int.h (dump_rgn_dependencies_dot): Declare
982 * sched-rgn.c (dump_rgn_dependencies_dot): New function
983 * print-rtl.h (print_insn): Add prototype
984
985 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
986 * common.opt (-fsched-verbose): Set default value to 1.
987 * invoke.texi (-fsched-verbose): Update the option's description.
988
989 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
990
991 * config/visium/visium.h (PRINT_OPERAND): Delete.
992 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
993 (PRINT_OPERAND_ADDRESS): Likewise.
994 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
995 to...
996 (visium_print_operand_punct_valid_p): ...this. New function.
997 (TARGET_PRINT_OPERAND): Define to...
998 (print_operand): Rename to...
999 (visium_print_operand): ...this.
1000 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1001 (visium_output_address): Rename to...
1002 (visium_print_operand_address): ...this.
1003 (print_operand_address): Delete.
1004
1005 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1006
1007 PR middle-end/68259
1008 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1009 Check that the type of the first operand is an aggregate type.
1010
1011 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1012
1013 * omp-low.c: Fix some OpenACC comment typos.
1014 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1015 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1016 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1017
1018 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
1019
1020 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1021
1022 2015-11-09 Jeff Law <law@redhat.com>
1023
1024 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1025 being in gimple/ssa form. Remove redundant check for SSA_NAME.
1026 Fix comment typo.
1027
1028 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1029 Peter Bergner <bergner@vnet.ibm.com>
1030
1031 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1032 ISA 3.0 (power9).
1033 (-mpower9-vector): Likewise.
1034 (-mpower9-dform): Likewise.
1035 (-mpower9-minmax): Likewise.
1036 (-mtoc-fusion): Likewise.
1037 (-mmodulo): Likewise.
1038 (-mfloat128-hardware): Likewise.
1039
1040 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1041 mask for ISA 3.0 (power9).
1042 (POWERPC_MASKS): Add new ISA 3.0 switches.
1043 (power9 cpu): Add power9 cpu.
1044
1045 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1046 power9.
1047 (ASM_CPU_SPEC): Likewise.
1048 (EXTRA_SPECS): Likewise.
1049
1050 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1051 PROCESSOR_POWER9.
1052
1053 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1054 power9.
1055 (rs6000_debug_reg_global): Add support for power9 fusion.
1056 (rs6000_setup_reg_addr_masks): Cache mode size.
1057 (rs6000_option_override_internal): Until real power9 tuning is
1058 added, use -mtune=power8 for -mcpu=power9.
1059 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1060 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1061 of Altivec registers.
1062 (rs6000_option_override_internal): Add support for ISA 3.0
1063 switches.
1064 (rs6000_loop_align): Add support for power9 cpu.
1065 (rs6000_file_start): Likewise.
1066 (rs6000_adjust_cost): Likewise.
1067 (rs6000_issue_rate): Likewise.
1068 (insn_must_be_first_in_group): Likewise.
1069 (insn_must_be_last_in_group): Likewise.
1070 (force_new_group): Likewise.
1071 (rs6000_register_move_cost): Likewise.
1072 (rs6000_opt_masks): Likewise.
1073
1074 * config/rs6000/rs6000.md (cpu attribute): Add power9.
1075 * config/rs6000/rs6000-tables.opt: Regenerate.
1076
1077 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1078 _ARCH_PWR9 if power9 support is available.
1079
1080 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1081 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1082
1083 * configure.ac: Determine if the assembler supports the ISA 3.0
1084 instructions.
1085 * config.in (HAVE_AS_POWER9): Likewise.
1086 * configure: Regenerate.
1087
1088 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1089 switches.
1090
1091 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1092
1093 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1094 Remove integer CONST_DOUBLE handling. It should never occur.
1095
1096 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1097
1098 PR target/68129
1099 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1100 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1101 Delete VOIDmode case. Assert that mode is not VOIDmode.
1102 * config/aarch64/predicates.md (const0_operand): Remove const_double
1103 match.
1104
1105 2015-11-09 Martin Liska <mliska@suse.cz>
1106
1107 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1108 body_info release function.
1109 * ipa-prop.c (ipa_release_body_info): New function.
1110 (ipa_analyze_node): Call the function.
1111 (ipa_node_params::~ipa_node_params): Release known_csts.
1112 * ipa-prop.h (ipa_release_body_info): Declare.
1113
1114 2015-11-09 Martin Liska <mliska@suse.cz>
1115
1116 * gcc.c (record_temp_file): Release name string.
1117 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1118 of vec.
1119 * lra-lives.c (free_live_range_list): Utilize
1120 lra_live_range_pool for allocation and deallocation.
1121 (create_live_range): Likewise.
1122 (copy_live_range): Likewise.
1123 (lra_merge_live_ranges): Likewise.
1124 (remove_some_program_points_and_update_live_ranges): Likewise.
1125 (lra_create_live_ranges_1): Release point_freq_vec that can
1126 be not freed from previous iteration of the function.
1127 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1128 vec.
1129 * tree-sra.c (sra_deinitialize): Release all vectors in
1130 base_access_vec.
1131 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1132 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1133 Release edge_info for a removed edge.
1134 (thread_through_all_blocks): Free region vector.
1135 * tree-ssa.h (free_dom_edge_info): Declare function extern.
1136
1137 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
1138
1139 * optabs.c (expand_vec_cond_expr): Always get sign from type.
1140 * tree.c (wide_int_to_tree): Support negative values for boolean.
1141 (build_nonstandard_boolean_type): Use signed type for booleans.
1142
1143 2015-11-09 Richard Biener <rguenther@suse.de>
1144
1145 PR tree-optimization/68248
1146 * tree-vect-generic.c (expand_vector_operations_1): Handle
1147 scalar rhs2.
1148
1149 2015-11-09 Richard Biener <rguenther@suse.de>
1150
1151 PR tree-optimization/56118
1152 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1153 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1154 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1155 function.
1156 (vect_slp_analyze_data_ref_dependences): Instead of computing
1157 all dependences of the region DRs just analyze the code motions
1158 SLP vectorization will perform. Remove SLP instances that
1159 cannot have their store/load motions applied.
1160 (vect_analyze_data_refs): Allow DRs without a vectype
1161 in BB vectorization.
1162
1163 2015-11-09 Julian Brown <julian@codesourcery.com>
1164
1165 * final.c (output_asm_insn): Pass VOIDmode to output_address.
1166 (output_address): Add MODE argument. Pass to print_operand_address
1167 hook.
1168 * targhooks.c (default_print_operand_address): Add MODE argument.
1169 * targhooks.h (default_print_operand_address): Update prototype.
1170 * output.h (output_address): Update prototype.
1171 * target.def (print_operand_address): Add MODE argument.
1172 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1173 output_address.
1174 (print_operand): Pass access mode to output_address.
1175 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1176 argument.
1177 (mcore_print_operand): Update calls to mcore_print_operand_address.
1178 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1179 output_address.
1180 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1181 output_address.
1182 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1183 global.
1184 (tilegx_print_operand): Don't set above global. Update calls to
1185 output_address.
1186 (tilegx_print_operand_address): Add MODE argument. Use instead of
1187 output_memory_reference_mode global.
1188 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1189 (frv_print_operand): Pass mode to frv_print_operand_address calls.
1190 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1191 output_address.
1192 * config/cris/cris.c (cris_print_operand_address): Add MODE
1193 argument.
1194 (cris_print_operand): Pass mode to output_address calls.
1195 * config/spu/spu.c (print_operand): Pass mode to output_address
1196 calls.
1197 * config/aarch64/aarch64.h (aarch64_print_operand)
1198 (aarch64_print_operand_address): Remove prototypes.
1199 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1200 global.
1201 (aarch64_print_operand): Make static. Update calls to
1202 output_address.
1203 (aarch64_print_operand_address): Add MODE argument. Use instead of
1204 aarch64_memory_reference_mode global.
1205 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1206 hooks.
1207 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1208 Delete macro definitions.
1209 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1210 calls.
1211 * config/xtensa/xtensa.c (print_operand): Pass mode in
1212 output_address calls.
1213 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1214 argument.
1215 (h83000_print_operand): Update calls to h8300_print_operand_address
1216 and output_address.
1217 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1218 argument.
1219 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1220 global.
1221 (tilepro_print_operand): Pass mode to output_address.
1222 (tilepro_print_operand_address): Add MODE argument. Use instead of
1223 output_memory_reference_mode.
1224 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1225 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1226 to output_address calls.
1227 (nvptx_print_operand_address): Add MODE argument.
1228 * config/alpha/alpha.c (print_operand): Pass mode argument in
1229 output_address calls.
1230 * config/m68k/m68k.c (print_operand): Pass mode argument in
1231 output_address call.
1232 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1233 (avr_print_operand): Update calls to avr_print_operand_address.
1234 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1235 argument. Update calls to output_address.
1236 (sparc_print_operand): Pass mode to output_address.
1237 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1238 argument.
1239 (iq2000_print_operand): Pass mode in output_address calls.
1240 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1241 MODE argument.
1242 (xstormy16_print_operand): Pass mode to
1243 xstormy16_print_operand_address calls.
1244 * config/mips/mips.c (mips_print_operand): Update calls to
1245 output_address.
1246 (mips_print_operand_address): Add MODE argument.
1247 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1248 to output_address.
1249 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1250 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1251 output_address.
1252 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1253 (rx_print_operand): Update calls to output_address,
1254 rx_print_operand_address.
1255 * config/nds32/nds32.c (nds32_print_operand): Update calls to
1256 output_address.
1257 (nds32_print_operand_address): Add MODE argument.
1258 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1259 output_address calls.
1260 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1261 output_address call.
1262 (c6x_print_address_operand): Update calls to output_address.
1263 (c6x_print_operand_address): Pass mode to above.
1264 * config/v850/v850.c (v850_print_operand_address): Add MODE
1265 argument.
1266 (v850_print_operand): Pass mode to v850_print_operand_address,
1267 output_address.
1268 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1269 argument.
1270 (mmix_print_operand): Pass mode in output_address calls.
1271 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1272 (sh_print_operand): Pass mem mode to output_address,
1273 sh_print_operand_address.
1274 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1275 argument.
1276 (cr16_print_operand): Pass mode to output_address,
1277 cr16_print_operand_address.
1278 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1279 output_address.
1280 * config/microblaze/microblaze.c (print_operand): Pass mode to
1281 output_address.
1282 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1283 output_address.
1284 (nios2_print_operand_address): Add MODE argument. Update call to
1285 nios2_print_operand_address.
1286 * config/s390/s390.c (print_operand): Pass mode to output_address.
1287 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1288 argument.
1289 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1290 output_address.
1291 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1292 Use instead of output_memory_reference_mode.
1293 (output_memory_reference_mode): Delete global.
1294 (arm_print_operand): Pass mem mode to output_address.
1295 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1296 argument.
1297 (m32r_print_operand): Pass mode to output_address.
1298 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1299 argument.
1300 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1301 * config/i386/i386.c (ix86_print_operand): Pass mode to
1302 output_address calls.
1303 (ix86_print_operand_address): Add MODE argument.
1304
1305 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1306
1307 PR middle-end/68251
1308 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1309 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1310 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1311 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1312
1313 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1314
1315 PR rtl-optimization/67749
1316 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1317 case before emitting the two blocks. Instead modify the register
1318 in the corresponding final insn of the basic block.
1319
1320 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1321
1322 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1323 assembler syntax.
1324 Support Solaris ld.
1325 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1326
1327 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1328 HAVE_INITFINI_ARRAY_SUPPORT.
1329 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1330 value.
1331
1332 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1333 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1334 Don't check HAVE_AS_SPARC_NOBITS.
1335 Heed SECTION_NOTYPE.
1336
1337 * configure: Regenerate.
1338 * config.in: Regenerate.
1339
1340 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1341
1342 PR middle-end/68253
1343 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1344
1345 2015-11-09 Richard Henderson <rth@redhat.com>
1346
1347 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1348 __SEG_GS, __SEG_TLS.
1349 (ix86_register_pragmas): Register address spaces __seg_fs,
1350 __seg_gs, __seg_tls.
1351 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1352 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1353 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1354 * config/i386/i386.c (ix86_decompose_address): Likewise.
1355 (ix86_legitimate_address_p): Likewise.
1356 (memory_address_length): Likewise. Check mem address space too.
1357 (ix86_print_operand): Use ix86_print_operand_address_as.
1358 (ix86_print_operand_address_as): Rename from
1359 ix86_print_operand_address, add new addr_space_t parameter.
1360 Validate that either the parameter or the ix86_address segment
1361 is default address space. Handle ADDR_SPACE_SEG_TLS.
1362 (ix86_print_operand_address): New.
1363 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1364 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1365 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1366 (ix86_addr_space_zero_address_valid): New.
1367 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1368 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1369 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1370 * config/i386/predicates.md (address_no_seg_operand): Likewise.
1371 (vsib_address_operand): Likewise.
1372 (address_mpx_no_base_operand): Likewise.
1373 (address_mpx_no_index_operand): Likewise.
1374 * doc/extend.texi (x86 Named Address Spaces): New section.
1375
1376 * config/i386/i386.c (ix86_check_no_addr_space): New.
1377 (decide_alg): Add have_as parameter.
1378 (alg_usable_p): Likewise; disable rep algorithms if set.
1379 (ix86_expand_set_or_movmem): Notice if either MEM has a
1380 non-default address space.
1381 (ix86_expand_strlen): Likewise.
1382 * config/i386/i386.md (strmov, strset): Likewise.
1383 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1384 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1385 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1386 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1387 *cmpstrnqi_1, *strlenqi_1): Likewise.
1388
1389 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1390 (*movabs<mode>_2): Likewise.
1391
1392 * dwarf2out.c (modified_type_die): Pass the address space number
1393 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1394 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1395 * targhooks.c (default_addr_space_debug): New.
1396 * targhooks.h (default_addr_space_debug): Declare.
1397 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1398 * doc/tm.texi: Rebuild.
1399
1400 * gimple.c (check_loadstore): Return false when 0 is a valid address.
1401 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1402 null when 0 is valid in the source address space.
1403 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1404 * targhooks.c (default_addr_space_zero_address_valid): New.
1405 * targhooks.h (default_addr_space_zero_address_valid): Declare.
1406 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1407 * doc/tm.texi: Rebuild.
1408
1409 * cselib.c (add_mem_for_addr): Compare address spaces when
1410 matching memories.
1411 (cselib_lookup_mem): Likewise.
1412 * fold-const.c (operand_equal_p): Check address spaces of
1413 pointer types before checking integer constants.
1414
1415 PR tree-opt/66768
1416 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1417 the correct type for the base.
1418
1419 2015-11-09 Jeff Law <law@redhat.com>
1420
1421 * tree-into-ssa.c (names_to_release): No longer static.
1422 * tree-into-ssa.h (names_to_release): Declare.
1423 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1424 (release_free_names_and_compact_live_names): New function extracted
1425 from pass_release_ssa_names::execute.
1426 (pass_release_ssa_names::execute): Use it.
1427
1428 2015-11-09 Alan Modra <amodra@gmail.com>
1429
1430 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1431 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1432 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1433 return value.
1434
1435 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1436
1437 PR rtl-optimization/68182
1438 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1439 branch with only one successor just like unconditional branches.
1440
1441 2015-11-08 Jeff Law <law@redhat.com>
1442
1443 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1444 non-FSM path has no edges marked with EDGE_DFS_BACK.
1445 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1446 (thread_single_edge, def_split_header_continue_p): Remove.
1447 (bb_ends_with_multiway_branch): Likewise.
1448 (thread_through_loop_header): Remove cases of threading from
1449 latch through the header. Simplify knowing we won't thread
1450 the latch.
1451 (thread_through_all_blocks): Simplify knowing that only the FSM
1452 threader needs to handle backedges.
1453
1454 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1455
1456 * doc/extend.texi (type attributes): Document scalar_storage_order.
1457 (Structure-Packing Pragmas): Rename into...
1458 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1459 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1460 (Warnings): Document -Wno-scalar-storage-order.
1461 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1462 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1463 extract_bit_field and store_bit_field.
1464 (initialize_argument_information): Adjust call to store_expr.
1465 (load_register_parameters): Adjust call to extract_bit_field.
1466 * expmed.c (check_reverse_storage_order_support): New function.
1467 (check_reverse_float_storage_order_support): Likewise.
1468 (flip_storage_order): Likewise.
1469 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1470 of the value if it is true. Pass REVERSE to recursive call after
1471 adjusting the target offset.
1472 Do not use extraction or movstrict instruction if REVERSE is true.
1473 Pass REVERSE to store_fixed_bit_field.
1474 (store_bit_field): Add REVERSE parameter and pass to it to above.
1475 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1476 store_split_bit_field and store_fixed_bit_field_1.
1477 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1478 order of the value if it is true and adjust the target offset.
1479 (store_split_bit_field): Add REVERSE parameter and pass it to
1480 store_fixed_bit_field. Adjust the target offset if it is true.
1481 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1482 of the value if it is true. Pass REVERSE to recursive call after
1483 adjusting the target offset.
1484 Do not use extraction or subreg instruction if REVERSE is true.
1485 Pass REVERSE to extract_fixed_bit_field.
1486 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1487 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1488 extract_split_bit_field and extract_fixed_bit_field_1.
1489 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1490 order of the value if it is true and adjust the target offset.
1491 (extract_split_bit_field): Add REVERSE parameter and pass it to
1492 extract_fixed_bit_field. Adjust the target offset if it is true.
1493 * expmed.h (flip_storage_order): Declare.
1494 (store_bit_field): Adjust prototype.
1495 (extract_bit_field): Likewise.
1496 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1497 (emit_group_store): Adjust call to store_bit_field.
1498 (copy_blkmode_from_reg): Likewise.
1499 (copy_blkmode_to_reg): Likewise.
1500 (write_complex_part): Likewise.
1501 (read_complex_part): Likewise.
1502 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1503 that it isn't true if the target is a register.
1504 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1505 and flip the storage order of the value.
1506 <BIT_IOR_EXPR>: Flip the storage order of the value.
1507 (get_bit_range): Adjust call to get_inner_reference.
1508 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1509 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1510 with reverse storage order.
1511 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1512 recursive calls and call to store_bit_field. Force the value into a
1513 register if it is true and then flip the storage order of the value.
1514 (store_expr): Add REVERSE parameter and pass it to above.
1515 (categorize_ctor_elements_1): Adjust call to
1516 initializer_constant_valid_p.
1517 (store_constructor_field): Add REVERSE parameter and pass it to
1518 recursive calls and call to store_field.
1519 (store_constructor): Add REVERSE parameter and pass it to calls to
1520 store_constructor_field and store_expr. Set it to true for an
1521 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1522 (store_field): Add REVERSE parameter and pass it to recursive calls
1523 and calls to store_expr and store_bit_field. Temporarily flip the
1524 storage order of the value with record type and integral mode and
1525 adjust the shift if it is true.
1526 (get_inner_reference): Add PREVERSEP parameter and set it to true
1527 upon encoutering a reference with reverse storage order.
1528 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1529 (expand_constructor): Adjust call to store_constructor.
1530 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1531 of the union type to store_expr in the MEM case and assert that it
1532 isn't set in the REG case. Adjust call to store_field.
1533 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1534 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1535 get_inner_reference and extract_bit_field. Temporarily flip the
1536 storage order of the value with record type and integral mode and
1537 adjust the shift if it is true. Flip the storage order of the value
1538 at the end if it is true.
1539 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1540 get_inner_reference. Do not fetch an inner reference if it is true.
1541 * expr.h (store_expr_with_bounds): Ajust prototype.
1542 (store_expr): Likewise.
1543 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1544 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1545 (optimize_bit_field_compare): Deal with reverse storage order.
1546 Adjust calls to get_inner_reference and make_bit_field_ref.
1547 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1548 get_inner_reference.
1549 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1550 to decode_field_reference and make_bit_field_ref.
1551 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1552 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1553 (fold_comparison): Adjust call to get_inner_reference.
1554 (split_address_to_core_and_offset): Adjust call to
1555 get_inner_reference.
1556 * gimple-expr.c (useless_type_conversion_p): Return false for array
1557 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1558 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1559 REF_REVERSE_STORAGE_ORDER flag.
1560 * lto-streamer-out.c (hash_tree): Deal with
1561 TYPE_REVERSE_STORAGE_ORDER.
1562 * output.h (assemble_real): Adjust prototype.
1563 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1564 * stor-layout.c (finish_record_layout): Propagate the
1565 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1566 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1567 (TYPE_SATURATING): Adjust.
1568 (REF_REVERSE_STORAGE_ORDER): Document.
1569 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1570 set it to true upon encoutering a reference with reverse storage
1571 order.
1572 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1573 * tree-inline.c (remap_gimple_op_r): Propagate the
1574 REF_REVERSE_STORAGE_ORDER flag.
1575 (copy_tree_body_r): Likewise.
1576 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1577 store_expr.
1578 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1579 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1580 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1581 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1582 REF_REVERSE_STORAGE_ORDER flag.
1583 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1584 (gimple_canonical_types_compatible_p): Likewise.
1585 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1586 (TYPE_SATURATING): Adjust.
1587 (REF_REVERSE_STORAGE_ORDER): New flag.
1588 (reverse_storage_order_for_component_p): New inline predicate.
1589 (storage_order_barrier_p): Likewise.
1590 (get_inner_reference): Adjust prototype.
1591 * varasm.c: Include expmed.h.
1592 (assemble_variable_contents): Adjust call to output_constant.
1593 (assemble_real): Add REVERSE parameter. Flip the storage
1594 order of the value if REVERSE is true.
1595 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1596 (assemble_constant_contents): Adjust call to output_constant.
1597 (output_constant_pool_2): Adjust call to assemble_real.
1598 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1599 TYPE_REVERSE_STORAGE_ORDER.
1600 (initializer_constant_valid_p): Add REVERSE parameter.
1601 (output_constant): Add REVERSE parameter.
1602 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1603 <REAL_TYPE>: Adjust call to assemble_real.
1604 <COMPLEX_TYPE>: Pass it to recursive calls.
1605 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
1606 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
1607 (struct oc_local_state): Add REVERSE field.
1608 (output_constructor_array_range): Adjust calls to output_constant.
1609 (output_constructor_regular_field): Likewise.
1610 (output_constructor_bitfield): Adjust call to output_constructor.
1611 Flip the storage order of the value if REVERSE is true.
1612 (output_constructor): Add REVERSE parameter. Set it to true for an
1613 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
1614 output_constructor_bitfield.
1615 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1616 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1617 * builtins.c (get_object_alignment_2): Likewise.
1618 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1619 and get_ref_base_and_extent.
1620 * dbxout.c (dbxout_expand_expr): Likewise.
1621 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1622 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1623 (loc_list_from_tree): Likewise.
1624 (fortran_common): Likewise.
1625 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1626 get_ref_base_and_extent.
1627 (get_base_constructor): Likewise.
1628 (fold_const_aggregate_ref_1): Likewise.
1629 * gimple-laddress.c (pass_laddress::execute): Adjust call to
1630 get_inner_reference.
1631 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1632 get_inner_reference and bail out on reverse storage order.
1633 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1634 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1635 build_ref_for_offset.
1636 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1637 get_ref_base_and_extent.
1638 (ipa_polymorphic_call_context): Likewise.
1639 (extr_type_from_vtbl_ptr_store): Likewise.
1640 (check_stmt_for_type_change): Likewise.
1641 (get_dynamic_type): Likewise.
1642 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1643 get_ref_base_and_extent.
1644 (compute_complex_assign_jump_func): Likewise.
1645 (get_ancestor_addr_info): Likewise.
1646 (compute_known_type_jump_func): Likewise.
1647 (determine_known_aggregate_parts): Likewise.
1648 (ipa_get_adjustment_candidate): Likewise.
1649 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1650 MEM_REF.
1651 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1652 (build_ref_for_offset): Adjust prototype.
1653 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1654 get_inner_reference.
1655 * tree-affine.c (tree_to_aff_combination): Adjust call to
1656 get_inner_reference.
1657 (get_inner_reference_aff): Likewise.
1658 * tree-data-ref.c (split_constant_offset_1): Likewise.
1659 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
1660 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1661 get_inner_reference.
1662 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1663 (dump_access): Print new fields.
1664 (create_access): Adjust call to get_ref_base_and_extent and set the
1665 REVERSE flag according to the result.
1666 (completely_scalarize_record): Set the REVERSE flag.
1667 (scalarize_elem): Add REVERSE parameter.
1668 (build_access_from_expr_1): Preserve storage order barriers.
1669 (build_accesses_from_assign): Likewise.
1670 (build_ref_for_offset): Add REVERSE parameter and set the
1671 REF_REVERSE_STORAGE_ORDER flag accordingly.
1672 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1673 the REF_REVERSE_STORAGE_ORDER flag if there are components.
1674 (analyze_access_subtree): Likewise.
1675 (create_artificial_child_access): Set the REVERSE flag.
1676 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1677 (turn_representatives_into_adjustments): Propagate REVERSE flag.
1678 (ipa_sra_check_caller): Adjust call to get_inner_reference.
1679 * tree-ssa-alias.c (ao_ref_base): Adjust call to
1680 get_ref_base_and_extent.
1681 (aliasing_component_refs_p): Likewise.
1682 (stmt_kills_ref_p_1): Likewise.
1683 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1684 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1685 Return true if reverse storage order.
1686 <BIT_FIELD_REF>: Likewise.
1687 <COMPONENT_REF>: Likewise.
1688 <ARRAY_REF>: Likewise.
1689 <ARRAY_RANGE_REF>: Likewise.
1690 (split_address_cost): Likewise. Bail out if reverse storage order.
1691 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1692 get_inner_reference. Bail out if reverse storage order.
1693 (bswap_replace): Adjust call to get_inner_reference.
1694 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1695 the REF_REVERSE_STORAGE_ORDER flag.
1696 <BIT_FIELD_REF>: Likewise.
1697 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1698 barriers.
1699 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1700 to the REF_REVERSE_STORAGE_ORDER flag.
1701 <BIT_FIELD_REF>: Likewise.
1702 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1703 (contains_storage_order_barrier_p): New predicate.
1704 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1705 Punt on storage order barriers if necessary.
1706 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1707 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1708 call to get_ref_base_and_extent.
1709 (do_structure_copy): Likewise.
1710 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1711 get_inner_reference.
1712 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
1713 order.
1714 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1715 * ubsan.c (instrument_bool_enum_load): Likewise.
1716 (instrument_object_size): Likewise.
1717 * var-tracking.c (track_expr_p): Adjust call to
1718 get_ref_base_and_extent
1719 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1720 get_inner_reference.
1721 * config/s390/s390.c (s390_expand_atomic): Adjust call to
1722 store_bit_field.
1723 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1724 extract_bit_field.
1725 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1726
1727 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
1728
1729 * config/sparc/sparc.opt (mfix-at697f): Add final period.
1730
1731 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1732
1733 PR rtl-optimization/67864
1734 * common/config/i386/i386-common.c (ix86_option_optimization_table)
1735 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1736 at -Os and up.
1737
1738 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1739
1740 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1741 internal functions.
1742
1743 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1744
1745 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1746 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1747
1748 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1749
1750 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1751 * internal-fn.c: Don't undef it here.
1752 * tree-core.h: Likewise.
1753
1754 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1755
1756 * builtins.c (fold_builtin_nan): Delete.
1757 (fold_builtin_memcmp): Remove case where both arguments are constant.
1758 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1759 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1760 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1761 * fold-const-call.c: Include fold-const.h.
1762 (host_size_t_cst_p): New function.
1763 (build_cmp_result, fold_const_builtin_nan): Likewise.
1764 (fold_const_call_1): New function, split out from...
1765 (fold_const_call): ...here (for all three interfaces). Handle
1766 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1767
1768 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1769
1770 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1771 (fold_builtin_1): Don't call them.
1772 * fold-const-call.c: Include tm.h.
1773 (fold_const_call_ss): New variant for integer-to-integer folds.
1774 (fold_const_call): Call it.
1775
1776 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1777
1778 * builtins.c (fold_builtin_classify): Move constant cases to...
1779 * fold-const-call.c (fold_const_call_ss): ...here.
1780
1781 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1782
1783 * builtins.h (c_getstr): Move to...
1784 * fold-const.h (c_getstr): ...here.
1785 * builtins.c (c_getstr): Move to...
1786 * fold-const.c (c_getstr): ...here.
1787
1788 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1789
1790 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1791 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1792
1793 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1794
1795 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1796 the dominance info; free it if we can't.
1797 (pass_call_cdce::execute): Don't free the dominance info here.
1798
1799 2015-11-06 Jeff Law <law@redhat.com>
1800
1801 * tree-ssa-threadedge.c (dummy_simplify): Remove.
1802 (thread_around_empty_blocks): Remove backedge_seen_p argument.
1803 If we thread to a backedge, then return false. Update recursive
1804 call to eliminate backedge_seen_p argument.
1805 (thread_through_normal_block): Remove backedge_seen_p argument.
1806 Remove backedge_seen_p argument from calls to
1807 thread_around_empty_blocks. Remove checks on backedge_seen_p.
1808 If we thread to a backedge, then return 0.
1809 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
1810 pass it to thread_through_normal_block or thread_through_empty_blocks.
1811 For joiner handling, if we see a backedge, do not try normal
1812 threading.
1813
1814 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1815
1816 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1817 * graphite-poly.c (new_scop): Initialize original_schedule.
1818 (free_scop): Free original_schedule.
1819 * graphite-poly.h (struct scop): Add field original_schedule.
1820 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1821 (build_poly_scop): Call build_scop_original_schedule.
1822
1823 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1824
1825 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1826 (build_pbb_minimal_scattering_polyhedrons): New.
1827 (build_scop_scattering): Remove.
1828 (build_scop_minimal_scattering): New.
1829 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1830 (build_poly_scop): Call build_scop_minimal_scattering.
1831
1832 2015-11-06 Jeff Law <law@redhat.com>
1833
1834 * cfg-flags.def (IGNORE): New edge flag.
1835 * tree-vrp.c (identify_jump_threads): Mark and clear edges
1836 scheduled for removal with EDGE_IGNORE around call into
1837 jump threader. Do no thread across edges with EDGE_IGNORE,
1838 but do allow threading across those with EDGE_DFS_BACK.
1839
1840 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
1841
1842 * doc/md.texi (multi-alternative constraints): Don't document
1843 alternatives inherently tied to reload for the user documentation.
1844
1845 2015-11-06 Michael Collison <michael.collison@linaro.org
1846 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1847
1848 Revert:
1849 2015-08-01 Michael Collison <michael.collison@linaro.org
1850 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1851
1852 * config/arm/arm.md (*arm_smin_cmp): New pattern.
1853 (*arm_umin_cmp): Likewise.
1854
1855 2015-11-06 Jakub Jelinek <jakub@redhat.com>
1856
1857 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1858 wording.
1859 * omp-low.c (check_omp_nesting_restrictions): Update for the
1860 various new OpenMP 4.5 nesting restrictions, clarified
1861 nesting glossary, closely nested region relationship clarified
1862 to mean explicit or implicit parallel regions (target/teams),
1863 use %</%> or %qs where appropriate.
1864
1865 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1866 Sebastian Pop <s.pop@samsung.com>
1867
1868 * graphite-scop-detection.c (loop_is_valid_scop): Call
1869 optimize_loop_nest_for_speed_p.
1870
1871 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1872 Sebastian Pop <s.pop@samsung.com>
1873
1874 * graphite-optimize-isl.c (optimize_isl): Call
1875 isl_options_set_schedule_maximize_band_depth.
1876
1877 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1878 Sebastian Pop <s.pop@samsung.com>
1879
1880 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1881 and exit edges should not be a part of irreducible loop.
1882 (scop_detection::can_represent_loop_1): Loops should not be
1883 irreducible.
1884 (scop_detection::harmful_stmt_in_region): All the basic block
1885 should belong to reducible loops.
1886
1887 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
1888
1889 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1890 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1891 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1892 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1893 (aarch64_tbx4v8qi): Rename to...
1894 aarch64_tbx4<mode>): ... this.
1895 (aarch64_qtbl3<mode>): New pattern.
1896 (aarch64_qtbx3<mode>): New pattern.
1897 (aarch64_qtbl4<mode>): New pattern.
1898 (aarch64_qtbx4<mode>): New pattern.
1899 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1900 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1901 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1902 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1903 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1904 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1905 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1906 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1907 functions.
1908
1909 2015-11-06 Mike Stump <mikestump@comcast.net>
1910
1911 PR debug/66728
1912 * dwarf2out.c (get_full_len): Return a value based upon the actual
1913 precision needed for the value.
1914 (add_const_value_attribute): Use a maximal wide-int for
1915 CONST_WIDE_INTs, not VOIDmode.
1916 (output_die): Don't ever output NULL with printf.
1917
1918 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1919 BLKmode nor VOIDmode values.
1920
1921 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1922
1923 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1924 and "range2".
1925 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1926 * diagnostic-core.h (warning_at_rich_loc): New declaration.
1927 (error_at_rich_loc): New declaration.
1928 (permerror_at_rich_loc): New declaration.
1929 (inform_at_rich_loc): New declaration.
1930 * diagnostic-show-locus.c (adjust_line): Delete.
1931 (struct point_state): New struct.
1932 (class colorizer): New class.
1933 (class layout_point): New class.
1934 (class layout_range): New class.
1935 (struct line_bounds): New.
1936 (class layout): New class.
1937 (colorizer::colorizer): New ctor.
1938 (colorizer::~colorizer): New dtor.
1939 (layout::layout): New ctor.
1940 (layout::print_source_line): New method.
1941 (layout::print_annotation_line): New method.
1942 (layout::get_state_at_point): New method.
1943 (layout::get_x_bound_for_row): New method.
1944 (diagnostic_show_locus): Reimplement in terms of class layout.
1945 (diagnostic_print_caret_line): Delete.
1946 * diagnostic.c (diagnostic_initialize): Replace
1947 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1948 (diagnostic_set_info_translated): Convert param from location_t
1949 to rich_location *. Eliminate calls to set_location on the
1950 message in favor of storing the rich_location ptr there.
1951 (diagnostic_set_info): Convert param from location_t to
1952 rich_location *.
1953 (diagnostic_build_prefix): Break out array into...
1954 (diagnostic_kind_color): New variable.
1955 (diagnostic_get_color_for_kind): New function.
1956 (diagnostic_report_diagnostic): Colorize the option_text
1957 using the color for the severity.
1958 (diagnostic_append_note): Update for change in signature of
1959 diagnostic_set_info.
1960 (diagnostic_append_note_at_rich_loc): New function.
1961 (emit_diagnostic): Update for change in signature of
1962 diagnostic_set_info.
1963 (inform): Likewise.
1964 (inform_at_rich_loc): New function.
1965 (inform_n): Update for change in signature of diagnostic_set_info.
1966 (warning): Likewise.
1967 (warning_at): Likewise.
1968 (warning_at_rich_loc): New function.
1969 (warning_n): Update for change in signature of diagnostic_set_info.
1970 (pedwarn): Likewise.
1971 (permerror): Likewise.
1972 (permerror_at_rich_loc): New function.
1973 (error): Update for change in signature of diagnostic_set_info.
1974 (error_n): Likewise.
1975 (error_at): Likewise.
1976 (error_at_rich_loc): New function.
1977 (sorry): Update for change in signature of diagnostic_set_info.
1978 (fatal_error): Likewise.
1979 (internal_error): Likewise.
1980 (internal_error_no_backtrace): Likewise.
1981 (source_range::debug): New function.
1982 * diagnostic.h (struct diagnostic_info): Eliminate field
1983 "override_column". Add field "richloc".
1984 (struct diagnostic_context): Add field "colorize_source_p".
1985 (diagnostic_override_column): Delete.
1986 (diagnostic_set_info): Convert param from location_t to
1987 rich_location *.
1988 (diagnostic_set_info_translated): Likewise.
1989 (diagnostic_append_note_at_rich_loc): New function.
1990 (diagnostic_num_locations): New function.
1991 (diagnostic_expand_location): Get the location from the
1992 rich_location.
1993 (diagnostic_print_caret_line): Delete.
1994 (diagnostic_get_color_for_kind): New declaration.
1995 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1996 (error_cb): Update for change in signature of "error" callback.
1997 (fatal_at): Likewise.
1998 (warning_at): Likewise.
1999 * input.c (linemap_client_expand_location_to_spelling_point): New.
2000 * pretty-print.c (text_info::set_range): New method.
2001 (text_info::get_location): New method.
2002 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2003 (struct text_info): Eliminate "locations" array in favor of
2004 "m_richloc", a rich_location *.
2005 (textinfo::set_location): Add a "caret_p" param, and reimplement
2006 in terms of a call to set_range.
2007 (textinfo::get_location): Eliminate inline implementation in favor of
2008 an out-of-line reimplementation.
2009 (textinfo::set_range): New method.
2010 * rtl-error.c (diagnostic_for_asm): Update for change in signature
2011 of diagnostic_set_info.
2012 * tree-diagnostic.c (default_tree_printer): Update for new
2013 "caret_p" param for textinfo::set_location.
2014 * tree-pretty-print.c (percent_K_format): Likewise.
2015
2016 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2017
2018 Properly apply.
2019 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2020 * config/aarch64/aarch64.c
2021 (aarch64_can_use_per_function_literal_pools_p): New.
2022 (aarch64_use_blocks_for_constant_p): Adjust declaration
2023 and use aarch64_can_use_function_literal_pools_p.
2024 (aarch64_select_rtx_section): Update.
2025
2026 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2027
2028 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2029 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2030 (arm_output_multireg_pop): Likewise.
2031 (output_move_double): Likewise.
2032 (output_move_quad): Likewise.
2033 (output_return_instruction): Likewise.
2034 (arm_print_operand): Remove support for %( and %. print modifiers.
2035 (arm_output_shift): Make unified asm.
2036 (arm_declare_function_name): Likewise.
2037 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2038 (ASM_APP_OFF): Adjust.
2039 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2040 (ASM_OUTPUT_REG_POP): Likewise.
2041 * config/arm/arm.md: Adjust uses of %., %(, %)
2042 * config/arm/sync.md: Likewise.
2043 * config/arm/thumb2.md: Likewise.
2044 * config/arm/ldmstm.md: Regenerate.
2045 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2046 * doc/invoke.texi (masm-unified-syntax): Update documentation.
2047
2048 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2049
2050 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2051
2052 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2053
2054 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2055 add OEP_MATCH_SIDE_EFFECTS.
2056 * fold-const.c (operand_equal_p): Update documentation; handle
2057 OEP_MATCH_SIDE_EFFECTS.
2058 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2059 OEP_MATCH_SIDE_EFFECTS.
2060
2061 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
2062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2063
2064 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2065 * config/aarch64/aarch64-protos.h: Declare.
2066 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2067 frsqrts.
2068 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2069 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2070 code when applicable.
2071 * config/aarch64/aarch64.md: Added enum entries.
2072 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2073 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2074 macros for assembly checks.
2075 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2076 frsqrts and frsqrte are not emitted.
2077 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2078 frsqrts and frsqrte are emitted.
2079 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2080
2081 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2082
2083 PR ipa/68057
2084 PR ipa/68220
2085 * ipa-polymorphic-call.c
2086 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2087 issue when offset is out of range.
2088 (contains_type_p): Fix out of range check, clear dynamic flag.
2089
2090 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
2091
2092 * config.gcc (e6500): Fix cpu_is_64bit typo.
2093
2094 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
2095
2096 * tree-sra.c (completely_scalarize): Properly handle negative array
2097 indices using offset_int.
2098
2099 2015-11-06 Richard Biener <rguenther@suse.de>
2100
2101 * alloc-pool.h (object_allocator::allocate): Default-initialize
2102 object.
2103
2104 2015-11-06 Richard Biener <rguenther@suse.de>
2105
2106 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2107 * lra.c (init_reg_info): Truncate copy_vec instead of
2108 re-allocating a new one and leaking the old.
2109 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2110 bb_infos vec.
2111 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2112 * postreload-gcse.c (free_mem): Free modify_mem_list and
2113 canon_modify_mem_list.
2114
2115 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
2116
2117 PR tree-optimization/68145
2118 * tree-vect-stmts.c (vectorizable_operation): Fix
2119 determination for booleans.
2120
2121 2015-11-06 Tom de Vries <tom@codesourcery.com>
2122
2123 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2124 cond_jump, instead of split after last nondebug insn before cond_jump.
2125 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2126 returning.
2127
2128 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2129
2130 PR target/68088
2131 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2132 subregs from accumulator and make sure it's a register.
2133
2134 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
2135
2136 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2137 low part to scalar.
2138 (reduc_uplus_<mode>): Remove.
2139 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2140 loongson_extract_lo_<mode>.
2141 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2142 reduc_smax_<mode>, reduc_smax_<mode>, use vec
2143 loongson_extract_lo_<mode>.
2144 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2145
2146 2015-11-06 Richard Biener <rguenther@suse.de>
2147
2148 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2149 members.
2150 (vect_stmt_in_region_p): Declare.
2151 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2152 (destroy_bb_vec_info): Likewise.
2153 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2154 (vect_get_and_check_slp_defs): Likewise.
2155 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2156 (vect_slp_bb): Likewise.
2157 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2158 in terms of vect_stmt_in_region_p.
2159 (vect_pattern_recog): Iterate over the BB region.
2160 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2161 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2162 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2163 * config/i386/i386.c: Include gimple-iterator.h.
2164 * config/aarch64/aarch64.c: Likewise.
2165
2166 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
2167
2168 PR rtl-optimization/67753
2169 PR rtl-optimization/64164
2170 * function.c (assign_parm_setup_block): Avoid allocating a
2171 stack slot if we don't have an ABI-reserved one. Emit the
2172 copy to target_reg in the conversion seq if the copy from
2173 entry_parm is in it too. Don't use the conversion seq to copy
2174 a PARALLEL to a REG or a CONCAT.
2175
2176 2015-11-06 Richard Biener <rguenther@suse.de>
2177
2178 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2179 equal_keys.
2180
2181 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2182 Thomas Schwinge <thomas@codesourcery.com>
2183 James Norris <jnorris@codesourcery.com>
2184
2185
2186 * gimplify.c (gimplify_scan_omp_clauses): Add support for
2187 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
2188 (gimplify_adjust_omp_clauses): Likewise.
2189 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2190 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2191 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2192 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2193 (omp_clause_code_name): Likewise.
2194 (walk_tree_1): Handle OMP_CLAUSE_TILE.
2195 * tree.h (OMP_TILE_LIST): New macro.
2196
2197 2015-11-05 Martin Sebor <msebor@redhat.com>
2198
2199 PR c++/67942
2200 * doc/invoke.texi (-Wplacement-new): Document new option.
2201
2202 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
2203
2204 PR tree-optimization/65963
2205 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2206 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2207
2208 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
2209
2210 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2211 (noce_convert_multiple_sets): Likewise.
2212 (noce_process_if_block): Call them.
2213
2214 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2215
2216 * gimple-fold.c: Include omp-low.h.
2217 (fold_internal_goacc_dim): New.
2218 (gimple_fold_call): Call it.
2219
2220 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2221 Ilya Verbin <ilya.verbin@intel.com>
2222
2223 * builtin-types.def
2224 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2225 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2226 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2227 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2228 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2229 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2230 (struct cgraph_simd_clone_arg): Adjust comment.
2231 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2232 to GOMP_target_ext. Add num_teams and thread_limit arguments.
2233 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2234 to GOMP_target_data_ext.
2235 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2236 to GOMP_target_update_ext.
2237 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2238 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2239 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2240 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2241 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2242 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2243 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2244 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2245 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2246 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2247 * tree-core.h (enum omp_clause_schedule_kind): Add
2248 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2249 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2250 OMP_CLAUSE_SCHEDULE_LAST value.
2251 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2252 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2253 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2254 OMP_FOR_CHECK. Remove comment.
2255 * tree-pretty-print.c (dump_omp_clause): Handle
2256 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2257 Simplify. Print schedule clause modifiers.
2258 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2259 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2260 cases.
2261 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2262 (omp_default_clause): Tweak for
2263 private/firstprivate/is_device_ptr variables on target
2264 construct and use_device_ptr on target data.
2265 (omp_check_private): Likewise.
2266 (omp_notice_variable): For references check whether what it refers
2267 to has mappable type, rather than the reference itself.
2268 (omp_is_private): Diagnose linear iteration variables on non-simd
2269 constructs.
2270 (omp_no_lastprivate): Return true only for Fortran.
2271 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2272 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2273 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2274 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2275 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
2276 lastprivate and linear when combined with distribute. Gimplify
2277 variable low-bound for array reduction. Look through
2278 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2279 reductions.
2280 (gimplify_adjust_omp_clauses_1): For implicit references to
2281 variables with reference type and when not ref to scalar or
2282 ref to pointer, map what they refer to using tofrom and
2283 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2284 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2285 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2286 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
2287 Diagnose the same var on both firstprivate and lastprivate on
2288 distribute construct.
2289 (gimplify_omp_for): Fix up handling of predetermined
2290 lastprivate or linear iter vars when combined with distribute.
2291 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2292 functions.
2293 (gimplify_omp_workshare): Call optimize_target_teams.
2294 * omp-low.c (struct omp_region): Add sched_modifiers field.
2295 (struct omp_for_data): Likewise.
2296 (omp_any_child_fn_dumped): New variable.
2297 (extract_omp_for_data): Fill in sched_modifiers, and mask out
2298 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2299 from sched_kind.
2300 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2301 bits of OMP_CLAUSE_SCHED_KIND.
2302 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2303 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
2304 for array section reductions.
2305 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2306 for distribute parallel for, if there are lastprivate clauses on the
2307 for.
2308 (lower_rec_input_clauses): Handle non-zero low-bound on array
2309 section reductions.
2310 (lower_reduction_clauses): Likewise.
2311 (lower_send_clauses): Look through POINTER_PLUS_EXPR
2312 for array section reductions.
2313 (expand_parallel_call): Use nonmonotonic entrypoints for
2314 nonmonotonic: dynamic/guided.
2315 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2316 child_fn if current_function_decl has assembler name set, but child_fn
2317 does not. Dump the header and IL of the child function when not in SSA
2318 form.
2319 (expand_omp_target): Likewise. Pass num_teams and thread_limit
2320 arguments to BUILT_IN_GOMP_TARGET.
2321 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2322 Initialize the extra _looptemp_ clause to fd->loop.n2.
2323 (expand_omp_for): Use nonmonotonic entrypoints for
2324 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
2325 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
2326 again if we have dumped any child functions.
2327 (lower_omp_for_lastprivate): Determine the right count variable
2328 for distribute simd, or distribute parallel for{, simd}.
2329 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2330 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
2331 support.
2332 (simd_clone_clauses_extract): Handle variable step
2333 for references and arguments passed by reference.
2334 (simd_clone_mangle): Mangle ref/uval/val variable steps.
2335 (simd_clone_adjust_argument_types): Handle
2336 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2337 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2338 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2339 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2340 (simd_clone_linear_addend): New function.
2341 (simd_clone_adjust): Handle variable step like similarly
2342 to constant step, use simd_clone_linear_addend to determine
2343 the actual step at runtime.
2344
2345 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2346
2347 * target.def (goacc.dim_limit): New hook.
2348 * targhooks.h (default_goacc_dim_limit): Declare.
2349 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2350 * doc/tm.texi: Rebuilt.
2351 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2352 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2353 (default_goacc_dim_limit): New.
2354 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2355 (nvptx_goacc_dim_limit) New.
2356 (TARGET_GOACC_DIM_LIMIT): Override.
2357 * tree-vrp.c: Include omp-low.h, target.h.
2358 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2359 IFN_GOACC_DIM_POS.
2360
2361 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2362
2363 * tree-vect-generic.c (do_compare): Use -1 for true
2364 result instead of 1.
2365
2366 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2367
2368 * config/aarch64/aarch64.c
2369 (aarch64_can_use_per_function_literal_pools_p): New.
2370 (aarch64_use_blocks_for_constant_p): Adjust declaration
2371 and use aarch64_can_use_function_literal_pools_p.
2372 (aarch64_select_rtx_section): Update.
2373
2374 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2375
2376 * targhooks.c (default_get_mask_mode): Use BLKmode in
2377 case target doesn't support required vector mode.
2378 * stor-layout.c (layout_type); Check for BLKmode.
2379
2380 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2381 Sebastian Pop <s.pop@samsung.com>
2382
2383 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2384 Remove use of parameter_rename_map.
2385 (copy_def): Remove.
2386 (copy_internal_parameters): Remove.
2387 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2388 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2389 (free_sese_info): Do not free parameter_rename_map.
2390 (set_rename): Do not use parameter_rename_map.
2391 (rename_uses): Update call to set_rename.
2392 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2393 * sese.h (parameter_rename_map_t): Remove.
2394 (struct sese_info_t): Remove field parameter_rename_map.
2395
2396 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2397 Sebastian Pop <s.pop@samsung.com>
2398
2399 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2400 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2401 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2402 anonymous namespace.
2403 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2404 (isl_id_for_pbb): Use a buffer of size 10.
2405 (isl_id_for_ssa_name): Same.
2406 * sese.c (set_rename): Add more dumps.
2407
2408 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2409
2410 * omp-low.c (struct omp_context): Remove reduction_map field.
2411 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2412 (new_omp_context, delete_omp_context, scan_omp_target): Remove
2413 reduction_map handling.
2414 (lower_omp_target): Remove obsolete openacc reduction handling.
2415
2416 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2417
2418 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2419
2420 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2421 Cesar Philippidis <cesar@codesourcery.com>
2422
2423 * config/nvptx/nvptx.c: Include gimple headers.
2424 (worker_red_size, worker_red_align, worker_red_name,
2425 worker_red_sym): New.
2426 (nvptx_option_override): Initialize worker reduction buffer.
2427 (nvptx_file_end): Write out worker reduction buffer var.
2428 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2429 nvptx_expand_cmp_swap): New builtin expanders.
2430 (enum nvptx_builtins): New.
2431 (nvptx_builtin_decls): New.
2432 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2433 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2434 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2435 nvptx_lockless_update): New helpers.
2436 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2437 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2438 (nvptx_goacc_reduction): New.
2439 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2440 TARGET_BUILTIN_DECL): Override.
2441 (TARGET_GOACC_REDUCTION): Override.
2442
2443 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2444 Cesar Philippidis <cesar@codesourcery.com>
2445
2446 * internal-fn.def (GOACC_REDUCTION): New.
2447 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2448 * internal-fn.c (expand_GOACC_REDUCTION): New.
2449 * target.def (goacc.reduction): New OpenACC hook.
2450 * targhooks.h (default_goacc_reduction): Declare.
2451 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2452 * doc/tm.texi: Rebuilt.
2453 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2454 scan_sharing_clauses): Remove oacc reduction handling here.
2455 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2456 (oacc_lower_reduction_var_helper): Delete.
2457 (lower_oacc_reductions): New.
2458 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2459 (lower_oacc_head_tail): Call lower_oacc_reductions.
2460 (oacc_gimple_assign, oacc_init_reduction_array,
2461 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2462 oacc_process_reduction_data): Delete.
2463 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2464 dummy OpenACC gang reduction for reductions at outer level.
2465 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2466 (default_goacc_reduction): New.
2467 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2468
2469 2015-11-04 Martin Liska <mliska@suse.cz>
2470
2471 * cgraphunit.c (cgraph_node::expand_thunk): Call
2472 allocate_struct_function before init_function_start.
2473 (cgraph_node::expand): Use push_cfun and pop_cfun.
2474 * config/i386/i386.c (ix86_code_end): Call
2475 allocate_struct_function before init_function_start.
2476 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2477 * function.c (init_function_start): Move preamble to all
2478 callers.
2479 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2480 (execute_one_pass): Handle newly added TODO_discard_function.
2481 (execute_pass_list_1): Terminate if cfun equals to NULL.
2482 (execute_pass_list): Do not push and pop cfun, expect that
2483 cfun is set.
2484 * tree-pass.h (TODO_discard_function): Define.
2485
2486 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2487
2488 * cfganal.c (inverted_post_order_compute): Remove conditional
2489 compilation, use flag_checking.
2490 * config.in: Regenerate.
2491 * configure: Regenerate.
2492 * configure.ac: Remove ENABLE_CHECKING.
2493 * genconditions.c: Do not #undef ENABLE_CHECKING.
2494 * sese.h (bb_in_region): Comment out broken check.
2495 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2496 conditional compilation, use flag_checking.
2497
2498 2015-11-04 Tom de Vries <tom@codesourcery.com>
2499
2500 PR tree-optimization/67742
2501 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2502 field.
2503 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2504 (create_variable_info_for_1): Add and handle handle_param parameter.
2505 Add restrict handling.
2506 (create_variable_info_for): Call create_variable_info_for_1 with extra
2507 arg.
2508 (make_param_constraints): Drop restrict_name parameter. Ignore
2509 vi->only_restrict_pointers.
2510 (intra_create_variable_infos): Call create_variable_info_for_1 with
2511 extra arg. Remove restrict handling. Call make_param_constraints with
2512 one fewer arg.
2513
2514 2015-11-04 Tom de Vries <tom@codesourcery.com>
2515
2516 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2517 variable.
2518
2519 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2520
2521 * config/arm/coff.h: Remove.
2522
2523 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2524
2525 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2526 check for aggregate types and beef up comment for mode check.
2527
2528 2015-11-03 Richard Biener <rguenther@suse.de>
2529
2530 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2531 data references here.
2532 * tree-vect-loop.c: Include cgraph.h.
2533 (vect_analyze_loop_2): Collect data references here.
2534 * tree-vect-slp.c (find_bb_location): Inline ...
2535 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2536 Factor in vect_slp_transform_bb.
2537 (vect_slp_transform_bb): Removed.
2538 (vect_slp_analyze_bb_1): Collect data references here.
2539 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2540 vect_slp_bb.
2541 * tree-vectorizer.h (vect_slp_bb): Declare.
2542 (vect_slp_analyze_bb): Remove.
2543 (vect_slp_transform_bb): Remove.
2544 (find_bb_location): Remove.
2545 (vect_analyze_data_refs): Remove stmt count reference parameter.
2546
2547 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2548
2549 * multiple_target.c (create_dispatcher_calls): Add target check
2550 on ifunc.
2551 (create_target_clone): Change assembler name for versioned declarations.
2552
2553 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2554 Chung-Lin Tang <cltang@codesourcery.com>
2555
2556 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2557 * omp-low.c (check_omp_nesting_restrictions): Allow
2558 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2559 contexts.
2560
2561 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2562
2563 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2564 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2565 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2566 builtin.
2567 (vmulxq_f32): Likewise.
2568 (vmulx_f64): New.
2569 (vmulxq_f64): Rewrite to call fmulx builtin.
2570 (vmulxs_f32): Likewise.
2571 (vmulxd_f64): Likewise.
2572 (vmulx_lane_f32): Remove.
2573 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2574
2575 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2576
2577 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2578 aarch64_reg_or_fp_zero for second operand.
2579
2580 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2581
2582 * gimple-expr.c: Include hash-set.h and rtl.h.
2583 (mark_addressable_queue): New var.
2584 (mark_addressable): Factor actual marking into...
2585 (mark_addressable_1): ... this. Queue it up during expand.
2586 (mark_addressable_2): New.
2587 (flush_mark_addressable_queue): New.
2588 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2589 * cfgexpand.c: Include gimple-expr.h.
2590 (pass_expand::execute): Flush mark_addressable queue.
2591
2592 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2593
2594 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2595 bb_no_side_effects_p tests...
2596 (tree_ssa_ifcombine_bb): ... here.
2597
2598 PR tree-optimization/68083
2599 * tree-ssa-ifcombine.c: Include tree-ssa.h.
2600 (bb_no_side_effects_p): Test for undefined uses too.
2601 * tree-ssa.c (gimple_uses_undefined_value_p): New.
2602 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2603
2604 2015-11-02 Jeff Law <law@redhat.com>
2605
2606 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2607 cases where the loop latch edge is in the middle of an FSM path.
2608
2609 2015-11-03 Tom de Vries <tom@codesourcery.com>
2610
2611 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2612 (make_param_constraints): ... this. Add and handle restrict_name
2613 parameter. Handle is_full_var case.
2614 (intra_create_variable_infos): Use make_param_constraints.
2615
2616 2015-11-03 Tom de Vries <tom@codesourcery.com>
2617
2618 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2619 make_copy_constraint call with make_constraint_from call.
2620
2621 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
2622
2623 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2624 PIE executables.
2625
2626 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
2627
2628 * builtins.h (fold_fma): Move to fold-const-call.h.
2629 * builtins.c: Include fold-const-call.h.
2630 (mathfn_built_in_2): New function, split out from...
2631 (mathfn_built_in_1): ...here.
2632 (do_real_to_int_conversion, fold_const_builtin_pow)
2633 (fold_const_builtin_logb, fold_const_builtin_significand)
2634 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2635 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2636 (fold_builtin_sincos): Use fold_const_call to handle constants.
2637 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2638 checks for ERROR_MARK. Use fold_const_call to handle constant
2639 folds for math functions.
2640 (fold_fma): Move to fold-const-call.c.
2641 * fold-const.c: Include fold-const-call.h.
2642 * Makefile.in (OBJS): Add fold-const-call.o.
2643 (PLUGIN_HEADERS): Add fold-const-call.h.
2644 * realmpfr.h (real_from_mpfr): Allow the format to be specified
2645 directly.
2646 * realmpfr.c (real_from_mpfr): Likewise.
2647 * fold-const-call.h, fold-const-call.c: New files.
2648
2649 2015-11-02 Julian Brown <julian@codesourcery.com>
2650
2651 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2652 brackets and semicolon.
2653
2654 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
2655
2656 Revert:
2657 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2658
2659 PR tree-optimization/65963
2660 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2661 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2662
2663 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
2664
2665 PR middle-end/68166
2666 * fold-const.c: Include "md5.h".
2667
2668 2015-11-01 Jeff Law <law@redhat.com>
2669
2670 * vmsdbgout.c: Revert unused header file reduction patch.
2671
2672 * config/mcore/mcore.c: Include regs.h.
2673
2674 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2675
2676 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2677
2678 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2679
2680 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2681 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2682 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2683
2684 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2685
2686 * ggc-common.c: Restore needed header for checking=release.
2687
2688 2015-10-31 Tom de Vries <tom@codesourcery.com>
2689
2690 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2691
2692 2015-10-31 Tom de Vries <tom@codesourcery.com>
2693
2694 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2695 existing varinfo for arguments.
2696
2697 2015-10-31 Tom de Vries <tom@codesourcery.com>
2698
2699 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2700 create_function_info_for. Dump constraints generated during
2701 create_function_info_for. Move intra_create_variable_infos call and
2702 function-return-values-escape bit to ...
2703 (create_function_info_for): ... here, and merge
2704 intra_create_variable_infos call with argument loop. Add and handle
2705 nonlocal_p parameter.
2706
2707 2015-10-31 Tom de Vries <tom@codesourcery.com>
2708
2709 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2710 updating is alap, and seperated from preceding code. Make sure
2711 insert_vi_for_tree is seperated from surrounding code.
2712
2713 2015-10-31 Tom de Vries <tom@codesourcery.com>
2714
2715 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2716
2717 2015-10-30 Jeff Law <law@redhat.com>
2718 Nathan Sidwell <nathan@acm.org>
2719
2720 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2721 args.
2722 (MOVE_MAX): Set to 8.
2723
2724 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
2725
2726 * cgraph.c: Include context.h for offloading.
2727 * varpool.c: Include context.h and omp-low.h.
2728
2729 2015-10-30 Anatoly Sokolov <aesok@post.ru>
2730
2731 * rtl.h (contains_symbol_ref_p): Declare.
2732 (SYMBOL_REF_P): Define.
2733 * rtlanal.c (contains_symbol_ref_p: New function.
2734 * lra-constraints.c (contains_symbol_ref_p): Remove.
2735 * var-tracking.c (contains_symbol_ref): Remove.
2736 (track_expr_p): Use contains_symbol_ref_p instead of
2737 contains_symbol_ref.
2738
2739 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2740
2741 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2742 * fold-const.c (get_array_ctor_element_at_index): New.
2743 (fold): Remove binary-search through CONSTRUCTOR, call previous.
2744
2745 * fold-const.h (get_array_ctor_element_at_index): New.
2746
2747 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2748
2749 * Makefile.in (OBJS): Add multiple_target.o.
2750 * attrib.c (make_attribute): Moved from config/i386/i386.c
2751 * config/i386/i386.c (make_attribute): Deleted.
2752 * multiple_target.c (create_dispatcher_calls): New.
2753 (get_attr_len): Ditto.
2754 (get_attr_str): Ditto.
2755 (separate_attrs): Ditto.
2756 (is_valid_asm_symbol): Ditto.
2757 (create_new_asm_name): Ditto.
2758 (create_target_clone): Ditto.
2759 (expand_target_clones): Ditto.
2760 (ipa_target_clone): Ditto.
2761 (ipa_dispatcher_calls): Ditto.
2762 * passes.def (pass_target_clone): Two new ipa passes.
2763 * tree-pass.h (make_pass_target_clone): Ditto.
2764 * doc/extend.texi (target_clones): New attribute description.
2765
2766 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
2767
2768 PR rtl-optimization/68106
2769 * lra-remat.c (input_regno_present_p): Process hard regs
2770 explicitly present in machine description insns.
2771 (call_used_input_regno_present_p): Ditto.
2772 (calculate_gen_cands): Ditto.
2773 (do_remat): Ditto.
2774
2775 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
2776
2777 * config/arm/neon-testgen.ml: Fix comment typo.
2778
2779 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2780
2781 * rtlanal.c (reg_set_p): Expand function comment.
2782
2783 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
2784
2785 * alias.c: Remove unused headers.
2786 * asan.c: Likewise.
2787 * attribs.c: Likewise.
2788 * auto-inc-dec.c: Likewise.
2789 * auto-profile.c: Likewise.
2790 * bb-reorder.c: Likewise.
2791 * bitmap.c: Likewise.
2792 * bt-load.c: Likewise.
2793 * builtins.c: Likewise.
2794 * caller-save.c: Likewise.
2795 * calls.c: Likewise.
2796 * ccmp.c: Likewise.
2797 * cfg.c: Likewise.
2798 * cfganal.c: Likewise.
2799 * cfgbuild.c: Likewise.
2800 * cfgcleanup.c: Likewise.
2801 * cfgexpand.c: Likewise.
2802 * cfghooks.c: Likewise.
2803 * cfgloop.c: Likewise.
2804 * cfgloopanal.c: Likewise.
2805 * cfgloopmanip.c: Likewise.
2806 * cfgrtl.c: Likewise.
2807 * cgraph.c: Likewise.
2808 * cgraphbuild.c: Likewise.
2809 * cgraphclones.c: Likewise.
2810 * cgraphunit.c: Likewise.
2811 * cilk-common.c: Likewise.
2812 * combine-stack-adj.c: Likewise.
2813 * combine.c: Likewise.
2814 * compare-elim.c: Likewise.
2815 * convert.c: Likewise.
2816 * coverage.c: Likewise.
2817 * cppbuiltin.c: Likewise.
2818 * cprop.c: Likewise.
2819 * cse.c: Likewise.
2820 * cselib.c: Likewise.
2821 * data-streamer-in.c: Likewise.
2822 * data-streamer-out.c: Likewise.
2823 * data-streamer.c: Likewise.
2824 * dbxout.c: Likewise.
2825 * dce.c: Likewise.
2826 * ddg.c: Likewise.
2827 * debug.c: Likewise.
2828 * df-core.c: Likewise.
2829 * df-problems.c: Likewise.
2830 * df-scan.c: Likewise.
2831 * dfp.c: Likewise.
2832 * dojump.c: Likewise.
2833 * dominance.c: Likewise.
2834 * domwalk.c: Likewise.
2835 * double-int.c: Likewise.
2836 * dse.c: Likewise.
2837 * dumpfile.c: Likewise.
2838 * dwarf2asm.c: Likewise.
2839 * dwarf2cfi.c: Likewise.
2840 * dwarf2out.c: Likewise.
2841 * emit-rtl.c: Likewise.
2842 * except.c: Likewise.
2843 * explow.c: Likewise.
2844 * expmed.c: Likewise.
2845 * expr.c: Likewise.
2846 * final.c: Likewise.
2847 * fixed-value.c: Likewise.
2848 * fold-const.c: Likewise.
2849 * function.c: Likewise.
2850 * fwprop.c: Likewise.
2851 * gcse.c: Likewise.
2852 * generic-match-head.c: Likewise.
2853 * ggc-common.c: Likewise.
2854 * gimple-builder.c: Likewise.
2855 * gimple-expr.c: Likewise.
2856 * gimple-fold.c: Likewise.
2857 * gimple-iterator.c: Likewise.
2858 * gimple-low.c: Likewise.
2859 * gimple-match-head.c: Likewise.
2860 * gimple-pretty-print.c: Likewise.
2861 * gimple-ssa-isolate-paths.c: Likewise.
2862 * gimple-ssa-strength-reduction.c: Likewise.
2863 * gimple-streamer-in.c: Likewise.
2864 * gimple-streamer-out.c: Likewise.
2865 * gimple-walk.c: Likewise.
2866 * gimple.c: Likewise.
2867 * gimplify-me.c: Likewise.
2868 * gimplify.c: Likewise.
2869 * godump.c: Likewise.
2870 * graph.c: Likewise.
2871 * graphds.c: Likewise.
2872 * haifa-sched.c: Likewise.
2873 * hw-doloop.c: Likewise.
2874 * ifcvt.c: Likewise.
2875 * init-regs.c: Likewise.
2876 * internal-fn.c: Likewise.
2877 * ipa-chkp.c: Likewise.
2878 * ipa-comdats.c: Likewise.
2879 * ipa-cp.c: Likewise.
2880 * ipa-devirt.c: Likewise.
2881 * ipa-icf-gimple.c: Likewise.
2882 * ipa-icf.c: Likewise.
2883 * ipa-inline-analysis.c: Likewise.
2884 * ipa-inline-transform.c: Likewise.
2885 * ipa-inline.c: Likewise.
2886 * ipa-polymorphic-call.c: Likewise.
2887 * ipa-profile.c: Likewise.
2888 * ipa-prop.c: Likewise.
2889 * ipa-pure-const.c: Likewise.
2890 * ipa-ref.c: Likewise.
2891 * ipa-reference.c: Likewise.
2892 * ipa-split.c: Likewise.
2893 * ipa-utils.c: Likewise.
2894 * ipa-visibility.c: Likewise.
2895 * ipa.c: Likewise.
2896 * ira-build.c: Likewise.
2897 * ira-color.c: Likewise.
2898 * ira-conflicts.c: Likewise.
2899 * ira-costs.c: Likewise.
2900 * ira-emit.c: Likewise.
2901 * ira-lives.c: Likewise.
2902 * ira.c: Likewise.
2903 * jump.c: Likewise.
2904 * langhooks.c: Likewise.
2905 * lcm.c: Likewise.
2906 * lists.c: Likewise.
2907 * loop-doloop.c: Likewise.
2908 * loop-init.c: Likewise.
2909 * loop-invariant.c: Likewise.
2910 * loop-iv.c: Likewise.
2911 * loop-unroll.c: Likewise.
2912 * lower-subreg.c: Likewise.
2913 * lra-assigns.c: Likewise.
2914 * lra-coalesce.c: Likewise.
2915 * lra-constraints.c: Likewise.
2916 * lra-eliminations.c: Likewise.
2917 * lra-lives.c: Likewise.
2918 * lra-remat.c: Likewise.
2919 * lra-spills.c: Likewise.
2920 * lra.c: Likewise.
2921 * lto-cgraph.c: Likewise.
2922 * lto-compress.c: Likewise.
2923 * lto-opts.c: Likewise.
2924 * lto-section-in.c: Likewise.
2925 * lto-section-out.c: Likewise.
2926 * lto-streamer-in.c: Likewise.
2927 * lto-streamer-out.c: Likewise.
2928 * lto-streamer.c: Likewise.
2929 * mcf.c: Likewise.
2930 * mode-switching.c: Likewise.
2931 * modulo-sched.c: Likewise.
2932 * optabs.c: Likewise.
2933 * opts-global.c: Likewise.
2934 * passes.c: Likewise.
2935 * plugin.c: Likewise.
2936 * postreload-gcse.c: Likewise.
2937 * postreload.c: Likewise.
2938 * predict.c: Likewise.
2939 * print-tree.c: Likewise.
2940 * profile.c: Likewise.
2941 * real.c: Likewise.
2942 * realmpfr.c: Likewise.
2943 * recog.c: Likewise.
2944 * ree.c: Likewise.
2945 * reg-stack.c: Likewise.
2946 * regcprop.c: Likewise.
2947 * reginfo.c: Likewise.
2948 * regrename.c: Likewise.
2949 * regstat.c: Likewise.
2950 * reload.c: Likewise.
2951 * reload1.c: Likewise.
2952 * reorg.c: Likewise.
2953 * resource.c: Likewise.
2954 * rtl-chkp.c: Likewise.
2955 * rtl-error.c: Likewise.
2956 * rtlanal.c: Likewise.
2957 * rtlhooks.c: Likewise.
2958 * sanopt.c: Likewise.
2959 * sched-deps.c: Likewise.
2960 * sched-ebb.c: Likewise.
2961 * sched-rgn.c: Likewise.
2962 * sdbout.c: Likewise.
2963 * sel-sched-dump.c: Likewise.
2964 * sel-sched-ir.c: Likewise.
2965 * sel-sched.c: Likewise.
2966 * sese.c: Likewise.
2967 * shrink-wrap.c: Likewise.
2968 * simplify-rtx.c: Likewise.
2969 * stack-ptr-mod.c: Likewise.
2970 * statistics.c: Likewise.
2971 * stmt.c: Likewise.
2972 * stor-layout.c: Likewise.
2973 * store-motion.c: Likewise.
2974 * stringpool.c: Likewise.
2975 * symtab.c: Likewise.
2976 * target-globals.c: Likewise.
2977 * targhooks.c: Likewise.
2978 * toplev.c: Likewise.
2979 * tracer.c: Likewise.
2980 * trans-mem.c: Likewise.
2981 * tree-affine.c: Likewise.
2982 * tree-call-cdce.c: Likewise.
2983 * tree-cfg.c: Likewise.
2984 * tree-cfgcleanup.c: Likewise.
2985 * tree-chkp-opt.c: Likewise.
2986 * tree-chkp.c: Likewise.
2987 * tree-chrec.c: Likewise.
2988 * tree-complex.c: Likewise.
2989 * tree-data-ref.c: Likewise.
2990 * tree-dfa.c: Likewise.
2991 * tree-diagnostic.c: Likewise.
2992 * tree-dump.c: Likewise.
2993 * tree-eh.c: Likewise.
2994 * tree-emutls.c: Likewise.
2995 * tree-if-conv.c: Likewise.
2996 * tree-inline.c: Likewise.
2997 * tree-into-ssa.c: Likewise.
2998 * tree-iterator.c: Likewise.
2999 * tree-loop-distribution.c: Likewise.
3000 * tree-nested.c: Likewise.
3001 * tree-nrv.c: Likewise.
3002 * tree-object-size.c: Likewise.
3003 * tree-outof-ssa.c: Likewise.
3004 * tree-parloops.c: Likewise.
3005 * tree-phinodes.c: Likewise.
3006 * tree-predcom.c: Likewise.
3007 * tree-pretty-print.c: Likewise.
3008 * tree-profile.c: Likewise.
3009 * tree-scalar-evolution.c: Likewise.
3010 * tree-sra.c: Likewise.
3011 * tree-ssa-address.c: Likewise.
3012 * tree-ssa-alias.c: Likewise.
3013 * tree-ssa-ccp.c: Likewise.
3014 * tree-ssa-coalesce.c: Likewise.
3015 * tree-ssa-copy.c: Likewise.
3016 * tree-ssa-dce.c: Likewise.
3017 * tree-ssa-dse.c: Likewise.
3018 * tree-ssa-forwprop.c: Likewise.
3019 * tree-ssa-ifcombine.c: Likewise.
3020 * tree-ssa-live.c: Likewise.
3021 * tree-ssa-loop-ch.c: Likewise.
3022 * tree-ssa-loop-im.c: Likewise.
3023 * tree-ssa-loop-ivcanon.c: Likewise.
3024 * tree-ssa-loop-ivopts.c: Likewise.
3025 * tree-ssa-loop-manip.c: Likewise.
3026 * tree-ssa-loop-niter.c: Likewise.
3027 * tree-ssa-loop-prefetch.c: Likewise.
3028 * tree-ssa-loop-unswitch.c: Likewise.
3029 * tree-ssa-loop.c: Likewise.
3030 * tree-ssa-math-opts.c: Likewise.
3031 * tree-ssa-operands.c: Likewise.
3032 * tree-ssa-phiopt.c: Likewise.
3033 * tree-ssa-phiprop.c: Likewise.
3034 * tree-ssa-pre.c: Likewise.
3035 * tree-ssa-propagate.c: Likewise.
3036 * tree-ssa-reassoc.c: Likewise.
3037 * tree-ssa-scopedtables.c: Likewise.
3038 * tree-ssa-sink.c: Likewise.
3039 * tree-ssa-strlen.c: Likewise.
3040 * tree-ssa-structalias.c: Likewise.
3041 * tree-ssa-tail-merge.c: Likewise.
3042 * tree-ssa-ter.c: Likewise.
3043 * tree-ssa-threadupdate.c: Likewise.
3044 * tree-ssa-uncprop.c: Likewise.
3045 * tree-ssa-uninit.c: Likewise.
3046 * tree-ssa.c: Likewise.
3047 * tree-ssanames.c: Likewise.
3048 * tree-stdarg.c: Likewise.
3049 * tree-streamer-in.c: Likewise.
3050 * tree-streamer-out.c: Likewise.
3051 * tree-streamer.c: Likewise.
3052 * tree-switch-conversion.c: Likewise.
3053 * tree-tailcall.c: Likewise.
3054 * tree-vect-data-refs.c: Likewise.
3055 * tree-vect-generic.c: Likewise.
3056 * tree-vect-loop-manip.c: Likewise.
3057 * tree-vect-loop.c: Likewise.
3058 * tree-vect-patterns.c: Likewise.
3059 * tree-vect-slp.c: Likewise.
3060 * tree-vect-stmts.c: Likewise.
3061 * tree-vectorizer.c: Likewise.
3062 * tree-vrp.c: Likewise.
3063 * tree.c: Likewise.
3064 * tsan.c: Likewise.
3065 * ubsan.c: Likewise.
3066 * value-prof.c: Likewise.
3067 * var-tracking.c: Likewise.
3068 * varasm.c: Likewise.
3069 * varpool.c: Likewise.
3070 * vmsdbgout.c: Likewise.
3071 * vtable-verify.c: Likewise.
3072 * web.c: Likewise.
3073 * wide-int-print.cc: Likewise.
3074 * wide-int.cc: Likewise.
3075 * xcoffout.c: Likewise.
3076
3077 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
3078
3079 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3080 between pass numbering and execution order.
3081
3082 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3083
3084 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3085 check for dependencies.
3086
3087 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3088
3089 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3090 CDI_DOMINATORS.
3091
3092 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3093
3094 * real.h (format_helper): New.
3095 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3096 (real_from_target, real_nan, real_2expN, real_value_truncate)
3097 (significand_size, real_from_string2, exact_real_inverse)
3098 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3099 (real_round, real_isinteger, real_from_integer): Replace
3100 machine_mode arguments with format_helper arguments.
3101 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3102 (real_from_integer, real_nan, real_2expN, real_convert)
3103 (real_value_truncate, exact_real_truncate, real_to_target)
3104 (real_from_target, significand_size, real_powi, real_trunc)
3105 (real_floor, real_ceil, real_round, real_isinteger): Replace
3106 machine_mode arguments with format_helper arguments.
3107 (real_to_target_fmt, real_from_target_fmt): Delete.
3108 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3109 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3110 argument with real_format.
3111 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3112
3113 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3114
3115 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3116 (fixed_to_decimal, fixed_convert_from_real)
3117 (real_convert_from_fixed): Fix mode arguments to real_2expN.
3118
3119 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3120
3121 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3122 SCALAR_FLOAT_MODE_P.
3123
3124 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3125
3126 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3127 (completely_scalarize): Comment zero-length arrays.
3128 (get_access_replacement): Correct comment re. precondition.
3129
3130 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3131
3132 * config/i386/i386.c (get_builtin_code_for_version): Set priority
3133 for PROCESSOR_ZNVER1.
3134 (enum processor_model): Add M_AMDFAM17H_znver1.
3135 (struct arch_names_table): Likewise.
3136 * doc/extend.texi: ADD znver1.
3137
3138 2015-10-30 Richard Biener <rguenther@suse.de>
3139
3140 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3141 fold () on single RHSs. Allow CONSTRUCTORS with trailing
3142 zeros to be folded to VECTOR_CSTs.
3143 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3144 * fold-const.c (fold): Use build_vector_from_ctor.
3145
3146 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
3147
3148 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3149 "mov %0.h[0], %1.h[0] to "neon_move".
3150 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3151 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3152 "mov_imm".
3153 (*cmovsi_insn_uxtw): Likewise.
3154
3155 2015-10-30 Tom de Vries <tom@codesourcery.com>
3156
3157 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3158 unsigned, and initialize, and use initial value instead of hardcoded
3159 constant. Add generic constraints dumping section. Don't dump global
3160 initializers constraints dumping section if empty. Don't update
3161 variable from if unused.
3162
3163 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3164
3165 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3166 flag_checking and/or CHECKING_P to eliminate conditional compilation
3167 on ENABLE_CHECKING.
3168 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3169 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3170 * config/i386/i386.c (ix86_print_operand_address): Likewise.
3171 (output_387_binary_op): Likewise.
3172 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3173 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3174 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3175 Likewise.
3176 * config/rs6000/rs6000.h: Likewise.
3177 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3178
3179 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
3180
3181 * config/sh/sh.opt (mfdpic): Add missing period.
3182
3183 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3184
3185 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3186 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3187 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3188 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3189 mcore_base_register_rtx_p, mcore_legitimate_index_p,
3190 mcore_legitimate_address_p): New functions.
3191 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3192
3193 2015-10-29 Jeff Law <law@redhat.com>
3194
3195 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3196 method.
3197 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3198 * tree-ssa-threadedge.c
3199 (record_temporary_equivalences_from_stmts_at_dest): Remove
3200 backedge_seen argument and associated code which invalidated
3201 equivalences based on the value of that argument.
3202 (thread_through_normal_block): Corresponding changes.
3203
3204 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3205
3206 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3207 function earlier in the file.
3208 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3209 df_regs_ever_live_p.
3210
3211 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3212
3213 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3214 by ignoring it.
3215
3216 2015-10-29 Richard Henderson <rth@redhat.com>
3217
3218 PR target/68124
3219 PR rtl-opt/67609
3220 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3221 sse check to the exact conditions of PR 67609.
3222
3223 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3224
3225 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3226 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3227 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3228 of the traditional names that TFmode uses for handling IEEE
3229 extended double. If -mfloat128, add KFmode functions for all of
3230 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3231 make TFmode use the same emulation functions as KFmode.
3232 (init_float128_ibm): Likewise.
3233 (init_float128_ieee): Likewise.
3234 (rs6000_generate_compare): For IEEE 128-bit floating point
3235 comparisons, call the unordered comparison function instead of the
3236 ordered comparison function.
3237 (rs6000_expand_float128_convert): Deal with operands that are
3238 memory operands. Restructure the code to use a switch statement on
3239 the mode. Add support for TFmode defaulting to either IBM extended
3240 double or IEEE 128-bit floating point. If the underlying types are
3241 the same, use a move instead of a conversion function.
3242 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3243 use for IEEE 128-bit floating point constants with -mfloat128.
3244 (rs6000_c_mode_for_suffix): Likewise.
3245 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3246 128-bit floating point with IBM extended double floating point.
3247 (rs6000_invalid_binary_op): Likewise.
3248 (rs6000_gen_le_vsx_permute): On little endian systems generate a
3249 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3250 types that can go in vector registers.
3251 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3252 point types that can go in vector registers on little endian
3253 PowerPC systems.
3254 (mark_swaps_for_removal): Likewise.
3255 (rs6000_analyze_swaps): Likewise.
3256 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3257
3258 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3259 rework IEEE 128-bit floating point insns to deal with TFmode being
3260 either IBM extended double or IEEE 128-bit floating point.
3261 (IFKF): Likewise.
3262 (IBM128): Update iterator to add condition that the mode is IBM
3263 extended double.
3264 (IEEE128): New iterator for IEEE 128-bit floating point.
3265 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3266 (FLOAT128): Likewise.
3267 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3268 iterator.
3269 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3270 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3271 instead of hard coding TFmode or KFmode.
3272 (negtf2_internal): Likewise.
3273 (neg<mode>2_internal): Likewise.
3274 (abs<mode>2): Likewise.
3275 (abstf2_internal): Likewise.
3276 (abs<mode>2_internal): Likewise.
3277 (ieee_128bit_neg<mode>2): Likewise.
3278 (ieee_128bit_neg<mode>2_internal): Likewise.
3279 (ieee_128bit_abs<mode>2): Likewise.
3280 (ieee_128bit_abs<mode>2_internal): Likewise.
3281 (ieee_128bit_nabs<mode>2): Likewise.
3282 (ieee_128bit_nabs<mode>2_internal): Likewise.
3283 (extendiftf2): Add explicit conversions between 128-bit floating
3284 point types. Drop the old conversions that had become unwieldy.
3285 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3286 (extendifkf2): Likewise.
3287 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3288 (extendtfkf2): Likewise.
3289 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3290 (trunciftf2): Likewise.
3291 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3292 (truncifkf2): Likewise.
3293 (float<SDI:mode><IFKF:mode>2): Likewise.
3294 (trunckftf2): Likewise.
3295 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3296 (trunctfif2): Likewise.
3297 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3298 (extenddftf2): Rework 128-bit floating point conversions to
3299 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3300 KFmode expanders into one function.
3301 (extenddf<mode>2): Likewise.
3302 (extenddftf2_fprs): Likewise.
3303 (extenddf<mode>2_fprs): Likewise.
3304 (extenddftf2_vsx): Likewise.
3305 (extenddf<mode>2_vsx): Likewise.
3306 (extendsftf2): Likewise.
3307 (extendsf<mode>2): Likewise.
3308 (trunctfdf2): Likewise.
3309 (trunc<mode>df2): Likewise.
3310 (trunctfdf2_internal1): Likewise.
3311 (trunc<mode>df2_internal1): Likewise.
3312 (trunctfdf2_internal2): Likewise.
3313 (trunc<mode>df2_internal2): Likewise.
3314 (trunctfsf2): Likewise.
3315 (trunc<mode>sf2): Likewise.
3316 (trunctfsf2_fprs): Likewise.
3317 (trunc<mode>sf2_fprs): Likewise.
3318 (floatsit2f): Likewise.
3319 (floatsi<mode>2): Likewise.
3320 (fix_trunc_helper): Likewise.
3321 (fix_trunc_helper<mode>): Likewise.
3322 (fix_trunctfsi2): Likewise.
3323 (fix_trunc<mode>si2): Likewise.
3324 (fix_trunctfsi2_fprs): Likewise.
3325 (fix_trunc<mode>si2_fprs): Likewise.
3326 (fix_trunctfsi2_internal): Likewise.
3327 (fix_trunc<mode>si2_internal): Likewise.
3328 (fix_trunctfdi2): Likewise.
3329 (fix_trunc<mode>di2): Likewise.
3330 (fixuns_trunctf<mode>2): Likewise.
3331 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3332 (floatditf2): Likewise.
3333 (floatdi<mode>2): Likewise.
3334 (floatuns<mode>tf2): Likewise.
3335 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3336 (cmptf_internal1): Use a mode iterator to add support for both
3337 types (IFmode, TFmode) that support IBM extended double.
3338 (cmp<mode>_internal1): Likewise.
3339 (cmptf_internal2): Likewise.
3340 (cmp<mode>_internal2): Likewise.
3341
3342 * doc/extend.texi (Floating Types): Document __ibm128 and
3343 __float128 on PowerPC.
3344
3345 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3346 -mfloat128 and -mno-float128.
3347
3348 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3349
3350 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3351 floating point modes that can go in vector registers.
3352 (MODES_TIEABLE_P): Move tests for vector modes before tests for
3353 scalar floating point, so that IEEE 128-bit floating point that
3354 can go in vector registers bind with vectors and not FP.
3355 (struct rs6000_args): Add libcall field.
3356
3357 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3358 and -mfloat128-software switches. Replace them with a binary
3359 -mfloat128 switch.
3360 (-mfloat128): Likewise.
3361
3362 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3363 128-bit floating point types in GPRs, even if the appropriate
3364 option enabling the type was not used.
3365 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3366 debugging.
3367 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3368 pre-decrement on IEEE 128-bit floating point values.
3369 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3370 is IEEE 128-bit floating point.
3371 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3372 128-bit floating point types that can go in vector registers.
3373 (rs6000_option_override_internal): Change -mfloat128-none and
3374 -mfloat128-software to -mfloat128, and move code to be near other
3375 VSX option handling.
3376 (rs6000_option_override_internal): Disable -mfloat128 if we don't
3377 have the Altivec ABI.
3378 (rs6000_init_builtins): Don't make TFmode use either IFmode or
3379 KFmode floating point nodes. Instead, have three separate nodes.
3380 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3381 eventually moving the long double default to IEEE 128-bit floating
3382 point.
3383 (rs6000_opt_masks): Add -mfloat128.
3384 (struct rs6000_opt_var): Fix typo in comment.
3385 (init_cumulative_args): Initialize libcall field in
3386 CUMULATIVE_ARGS.
3387 (rs6000_function_arg): Treat library functions as if they had
3388 prototypes to prevent IEEE 128-bit support functions from passing
3389 arguments in both GPRs and vector registers.
3390 (rs6000_arg_partial_bytes): Likewise.
3391
3392 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3393 an option that can be turned on via -mcpu=<xxx>.
3394
3395 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3396 longer used.
3397
3398 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3399 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3400 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3401 double is IBM extended double.
3402
3403 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3404 SUBREGs.
3405
3406 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3407
3408 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3409 * genconditions.c: Define CHECKING_P in the generated code.
3410 * genextract.c: Use flag_checking in insn_extract.
3411 * gengtype.c (main): Remove conditional compilation.
3412 * gengtype.h: Likewise.
3413
3414 2015-10-29 Jeff Law <law@redhat.com>
3415
3416 PR tree-optimization/67892
3417 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3418 in comment.
3419 (thread_through_normal_block): If we have seen a backedge, then
3420 do nothing. No longer call find_jump_threads_backwards here.
3421 (thread_across_edge): Use find_jump_threads_backwards to find
3422 jump threads if the old style threader was not successful.
3423 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3424 gsi_last_nondebug_bb. Return NULL if the block does not end
3425 with a control statement.
3426 (find_jump_threads_backwards): Setup code moved here from
3427 tree-ssa-threadedge.c::thread_through_normal_block. Accept
3428 single edge argument instead of name & block.
3429 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3430 prototype.
3431
3432 2015-10-29 Tom de Vries <tom@codesourcery.com>
3433
3434 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3435 types.
3436
3437 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3438
3439 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3440 ifs.
3441
3442 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3443
3444 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3445
3446 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3447
3448 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3449 guard_bb0 and use guard_bb throughout.
3450
3451 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3452
3453 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3454 unnecessary label.
3455
3456 2015-10-29 Richard Biener <rguenther@suse.de>
3457
3458 PR middle-end/68142
3459 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3460 overflow.
3461
3462 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3463
3464 * alias.c: Reorder #include statements and remove duplicates.
3465 * asan.c: Likewise.
3466 * attribs.c: Likewise.
3467 * auto-inc-dec.c: Likewise.
3468 * auto-profile.c: Likewise.
3469 * bb-reorder.c: Likewise.
3470 * bt-load.c: Likewise.
3471 * builtins.c: Likewise.
3472 * caller-save.c: Likewise.
3473 * calls.c: Likewise.
3474 * ccmp.c: Likewise.
3475 * cfg.c: Likewise.
3476 * cfganal.c: Likewise.
3477 * cfgbuild.c: Likewise.
3478 * cfgcleanup.c: Likewise.
3479 * cfgexpand.c: Likewise.
3480 * cfghooks.c: Likewise.
3481 * cfgloop.c: Likewise.
3482 * cfgloopanal.c: Likewise.
3483 * cfgloopmanip.c: Likewise.
3484 * cfgrtl.c: Likewise.
3485 * cgraph.c: Likewise.
3486 * cgraphbuild.c: Likewise.
3487 * cgraphclones.c: Likewise.
3488 * cgraphunit.c: Likewise.
3489 * cilk-common.c: Likewise.
3490 * combine-stack-adj.c: Likewise.
3491 * combine.c: Likewise.
3492 * compare-elim.c: Likewise.
3493 * convert.c: Likewise.
3494 * coverage.c: Likewise.
3495 * cppbuiltin.c: Likewise.
3496 * cprop.c: Likewise.
3497 * cse.c: Likewise.
3498 * cselib.c: Likewise.
3499 * data-streamer-in.c: Likewise.
3500 * data-streamer-out.c: Likewise.
3501 * data-streamer.c: Likewise.
3502 * dbxout.c: Likewise.
3503 * dce.c: Likewise.
3504 * ddg.c: Likewise.
3505 * debug.c: Likewise.
3506 * df-core.c: Likewise.
3507 * df-problems.c: Likewise.
3508 * df-scan.c: Likewise.
3509 * dfp.c: Likewise.
3510 * dojump.c: Likewise.
3511 * dominance.c: Likewise.
3512 * double-int.c: Likewise.
3513 * dse.c: Likewise.
3514 * dumpfile.c: Likewise.
3515 * dwarf2asm.c: Likewise.
3516 * dwarf2cfi.c: Likewise.
3517 * dwarf2out.c: Likewise.
3518 * emit-rtl.c: Likewise.
3519 * except.c: Likewise.
3520 * explow.c: Likewise.
3521 * expmed.c: Likewise.
3522 * expr.c: Likewise.
3523 * final.c: Likewise.
3524 * fixed-value.c: Likewise.
3525 * fold-const.c: Likewise.
3526 * function.c: Likewise.
3527 * fwprop.c: Likewise.
3528 * gcse.c: Likewise.
3529 * generic-match-head.c: Likewise.
3530 * ggc-common.c: Likewise.
3531 * gimple-builder.c: Likewise.
3532 * gimple-expr.c: Likewise.
3533 * gimple-fold.c: Likewise.
3534 * gimple-iterator.c: Likewise.
3535 * gimple-low.c: Likewise.
3536 * gimple-match-head.c: Likewise.
3537 * gimple-pretty-print.c: Likewise.
3538 * gimple-ssa-isolate-paths.c: Likewise.
3539 * gimple-ssa-strength-reduction.c: Likewise.
3540 * gimple-streamer-in.c: Likewise.
3541 * gimple-streamer-out.c: Likewise.
3542 * gimple-walk.c: Likewise.
3543 * gimple.c: Likewise.
3544 * gimplify-me.c: Likewise.
3545 * gimplify.c: Likewise.
3546 * godump.c: Likewise.
3547 * graph.c: Likewise.
3548 * graphite-poly.c: Likewise.
3549 * haifa-sched.c: Likewise.
3550 * hw-doloop.c: Likewise.
3551 * ifcvt.c: Likewise.
3552 * incpath.c: Likewise.
3553 * init-regs.c: Likewise.
3554 * internal-fn.c: Likewise.
3555 * ipa-chkp.c: Likewise.
3556 * ipa-comdats.c: Likewise.
3557 * ipa-cp.c: Likewise.
3558 * ipa-devirt.c: Likewise.
3559 * ipa-icf-gimple.c: Likewise.
3560 * ipa-icf.c: Likewise.
3561 * ipa-inline-analysis.c: Likewise.
3562 * ipa-inline-transform.c: Likewise.
3563 * ipa-inline.c: Likewise.
3564 * ipa-polymorphic-call.c: Likewise.
3565 * ipa-profile.c: Likewise.
3566 * ipa-prop.c: Likewise.
3567 * ipa-pure-const.c: Likewise.
3568 * ipa-ref.c: Likewise.
3569 * ipa-reference.c: Likewise.
3570 * ipa-split.c: Likewise.
3571 * ipa-utils.c: Likewise.
3572 * ipa-visibility.c: Likewise.
3573 * ipa.c: Likewise.
3574 * ira-build.c: Likewise.
3575 * ira-color.c: Likewise.
3576 * ira-conflicts.c: Likewise.
3577 * ira-costs.c: Likewise.
3578 * ira-emit.c: Likewise.
3579 * ira-lives.c: Likewise.
3580 * ira.c: Likewise.
3581 * jump.c: Likewise.
3582 * langhooks.c: Likewise.
3583 * lcm.c: Likewise.
3584 * lists.c: Likewise.
3585 * loop-doloop.c: Likewise.
3586 * loop-init.c: Likewise.
3587 * loop-invariant.c: Likewise.
3588 * loop-iv.c: Likewise.
3589 * loop-unroll.c: Likewise.
3590 * lower-subreg.c: Likewise.
3591 * lra-assigns.c: Likewise.
3592 * lra-coalesce.c: Likewise.
3593 * lra-constraints.c: Likewise.
3594 * lra-eliminations.c: Likewise.
3595 * lra-lives.c: Likewise.
3596 * lra-remat.c: Likewise.
3597 * lra-spills.c: Likewise.
3598 * lra.c: Likewise.
3599 * lto-cgraph.c: Likewise.
3600 * lto-compress.c: Likewise.
3601 * lto-opts.c: Likewise.
3602 * lto-section-in.c: Likewise.
3603 * lto-section-out.c: Likewise.
3604 * lto-streamer-in.c: Likewise.
3605 * lto-streamer-out.c: Likewise.
3606 * lto-streamer.c: Likewise.
3607 * mode-switching.c: Likewise.
3608 * modulo-sched.c: Likewise.
3609 * omp-low.c: Likewise.
3610 * optabs.c: Likewise.
3611 * opts-global.c: Likewise.
3612 * passes.c: Likewise.
3613 * plugin.c: Likewise.
3614 * postreload-gcse.c: Likewise.
3615 * postreload.c: Likewise.
3616 * predict.c: Likewise.
3617 * print-tree.c: Likewise.
3618 * profile.c: Likewise.
3619 * real.c: Likewise.
3620 * realmpfr.c: Likewise.
3621 * recog.c: Likewise.
3622 * ree.c: Likewise.
3623 * reg-stack.c: Likewise.
3624 * regcprop.c: Likewise.
3625 * reginfo.c: Likewise.
3626 * regrename.c: Likewise.
3627 * regstat.c: Likewise.
3628 * reload.c: Likewise.
3629 * reload1.c: Likewise.
3630 * reorg.c: Likewise.
3631 * resource.c: Likewise.
3632 * rtl-chkp.c: Likewise.
3633 * rtl-error.c: Likewise.
3634 * rtlanal.c: Likewise.
3635 * rtlhooks.c: Likewise.
3636 * sanopt.c: Likewise.
3637 * sched-deps.c: Likewise.
3638 * sched-ebb.c: Likewise.
3639 * sched-rgn.c: Likewise.
3640 * sese.c: Likewise.
3641 * shrink-wrap.c: Likewise.
3642 * simplify-rtx.c: Likewise.
3643 * stack-ptr-mod.c: Likewise.
3644 * statistics.c: Likewise.
3645 * stmt.c: Likewise.
3646 * stor-layout.c: Likewise.
3647 * store-motion.c: Likewise.
3648 * stringpool.c: Likewise.
3649 * symtab.c: Likewise.
3650 * target-globals.c: Likewise.
3651 * targhooks.c: Likewise.
3652 * toplev.c: Likewise.
3653 * tracer.c: Likewise.
3654 * trans-mem.c: Likewise.
3655 * tree-affine.c: Likewise.
3656 * tree-call-cdce.c: Likewise.
3657 * tree-cfg.c: Likewise.
3658 * tree-cfgcleanup.c: Likewise.
3659 * tree-chkp-opt.c: Likewise.
3660 * tree-chkp.c: Likewise.
3661 * tree-chrec.c: Likewise.
3662 * tree-complex.c: Likewise.
3663 * tree-data-ref.c: Likewise.
3664 * tree-dfa.c: Likewise.
3665 * tree-diagnostic.c: Likewise.
3666 * tree-dump.c: Likewise.
3667 * tree-eh.c: Likewise.
3668 * tree-emutls.c: Likewise.
3669 * tree-if-conv.c: Likewise.
3670 * tree-inline.c: Likewise.
3671 * tree-into-ssa.c: Likewise.
3672 * tree-iterator.c: Likewise.
3673 * tree-loop-distribution.c: Likewise.
3674 * tree-nested.c: Likewise.
3675 * tree-nrv.c: Likewise.
3676 * tree-object-size.c: Likewise.
3677 * tree-outof-ssa.c: Likewise.
3678 * tree-parloops.c: Likewise.
3679 * tree-phinodes.c: Likewise.
3680 * tree-predcom.c: Likewise.
3681 * tree-pretty-print.c: Likewise.
3682 * tree-profile.c: Likewise.
3683 * tree-scalar-evolution.c: Likewise.
3684 * tree-sra.c: Likewise.
3685 * tree-ssa-address.c: Likewise.
3686 * tree-ssa-alias.c: Likewise.
3687 * tree-ssa-ccp.c: Likewise.
3688 * tree-ssa-coalesce.c: Likewise.
3689 * tree-ssa-copy.c: Likewise.
3690 * tree-ssa-dce.c: Likewise.
3691 * tree-ssa-dom.c: Likewise.
3692 * tree-ssa-dse.c: Likewise.
3693 * tree-ssa-forwprop.c: Likewise.
3694 * tree-ssa-ifcombine.c: Likewise.
3695 * tree-ssa-live.c: Likewise.
3696 * tree-ssa-loop-ch.c: Likewise.
3697 * tree-ssa-loop-im.c: Likewise.
3698 * tree-ssa-loop-ivcanon.c: Likewise.
3699 * tree-ssa-loop-ivopts.c: Likewise.
3700 * tree-ssa-loop-manip.c: Likewise.
3701 * tree-ssa-loop-niter.c: Likewise.
3702 * tree-ssa-loop-prefetch.c: Likewise.
3703 * tree-ssa-loop-unswitch.c: Likewise.
3704 * tree-ssa-loop.c: Likewise.
3705 * tree-ssa-math-opts.c: Likewise.
3706 * tree-ssa-operands.c: Likewise.
3707 * tree-ssa-phiopt.c: Likewise.
3708 * tree-ssa-phiprop.c: Likewise.
3709 * tree-ssa-pre.c: Likewise.
3710 * tree-ssa-propagate.c: Likewise.
3711 * tree-ssa-reassoc.c: Likewise.
3712 * tree-ssa-sccvn.c: Likewise.
3713 * tree-ssa-scopedtables.c: Likewise.
3714 * tree-ssa-sink.c: Likewise.
3715 * tree-ssa-strlen.c: Likewise.
3716 * tree-ssa-structalias.c: Likewise.
3717 * tree-ssa-tail-merge.c: Likewise.
3718 * tree-ssa-ter.c: Likewise.
3719 * tree-ssa-threadedge.c: Likewise.
3720 * tree-ssa-threadupdate.c: Likewise.
3721 * tree-ssa-uncprop.c: Likewise.
3722 * tree-ssa-uninit.c: Likewise.
3723 * tree-ssa.c: Likewise.
3724 * tree-ssanames.c: Likewise.
3725 * tree-stdarg.c: Likewise.
3726 * tree-streamer-in.c: Likewise.
3727 * tree-streamer-out.c: Likewise.
3728 * tree-streamer.c: Likewise.
3729 * tree-switch-conversion.c: Likewise.
3730 * tree-tailcall.c: Likewise.
3731 * tree-vect-data-refs.c: Likewise.
3732 * tree-vect-generic.c: Likewise.
3733 * tree-vect-loop-manip.c: Likewise.
3734 * tree-vect-loop.c: Likewise.
3735 * tree-vect-patterns.c: Likewise.
3736 * tree-vect-slp.c: Likewise.
3737 * tree-vect-stmts.c: Likewise.
3738 * tree-vectorizer.c: Likewise.
3739 * tree-vrp.c: Likewise.
3740 * tree.c: Likewise.
3741 * tsan.c: Likewise.
3742 * ubsan.c: Likewise.
3743 * value-prof.c: Likewise.
3744 * var-tracking.c: Likewise.
3745 * varasm.c: Likewise.
3746 * varpool.c: Likewise.
3747 * vtable-verify.c: Likewise.
3748 * web.c: Likewise.
3749 * wide-int-print.cc: Likewise.
3750 * wide-int.cc: Likewise.
3751 * xcoffout.c: Likewise.
3752
3753 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
3754
3755 * Makefile.in (NO_PIE_CFLAGS): New.
3756 (NO_PIE_FLAG): Likewise.
3757 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3758 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3759 (BUILD_NO_PIE_CFLAGS): Likewise.
3760 (BUILD_NO_PIE_FLAG): Likewise.
3761 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3762 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3763 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3764 $(BUILD_NO_PIE_CFLAGS).
3765 (BUILD_CXXFLAGS): Likewise.
3766 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3767 $(BUILD_NO_PIE_FLAG).
3768 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
3769 (BUILD_NO_PIE_FLAG): Likewise.
3770 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3771 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3772 * configure: Regenerated.
3773
3774 2015-10-29 Richard Biener <rguenther@suse.de>
3775
3776 PR middle-end/56956
3777 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3778 unsigned conditonal negation to ABS_EXPR.
3779
3780 2015-10-29 Richard Biener <rguenther@suse.de>
3781
3782 * gimple-match-head.c (gimple_simplify): Remove premature checking
3783 of builtin_decl_implicit of function calls we simplify.
3784
3785 2015-10-29 Bin Cheng <bin.cheng@arm.com>
3786
3787 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3788 (get_computation_cost_at): Ditto.
3789 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3790 and inv_expr_id.
3791
3792 2015-10-28 Tom de Vries <tom@codesourcery.com>
3793
3794 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3795 superfluous code.
3796
3797 2015-10-28 Jason Merrill <jason@redhat.com>
3798
3799 * Makefile.in (TAGS): Include libcpp and libiberty.
3800
3801 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3802
3803 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3804 (extract_omp_for_data): Remove OpenACC special handling of
3805 chunking.
3806
3807 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3808 (struct parallel): Update comment.
3809 (nvptx_reorg): Likewise.
3810 (nvptx_neuter): Cleanup whitespace.
3811
3812 2015-10-28 Richard Henderson <rth@redhat.com>
3813
3814 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3815
3816 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3817
3818 PR target/67839
3819 * config/avr/predicates.md (low_io_address_operand): Don't
3820 consider MODE when computing upper bound.
3821 (io_address_operand): Likewise.
3822
3823 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3824
3825 * fold-const.c (operand_equal_p): Do not verify that types are
3826 compatible for MEM_REFs.
3827
3828 2015-10-28 Richard Biener <rguenther@suse.de>
3829
3830 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3831 in simplifying VEC_COND_EXPR conditions.
3832
3833 2015-10-28 Tom de Vries <tom@codesourcery.com>
3834
3835 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3836 into vi_next of a full_var.
3837
3838 2015-10-28 Tom de Vries <tom@codesourcery.com>
3839
3840 * tree-ssa-structalias.c (new_var_info, make_heapvar)
3841 (make_constraint_from_restrict, make_constraint_from_global_restrict)
3842 (create_function_info_for, create_variable_info_for_1)
3843 (create_variable_info_for): Add and handle add_id parameter.
3844 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3845 (init_base_vars): Add extra argument to calls to new_var_info.
3846 (get_vi_for_tree): Add extra argument to call to
3847 create_variable_info_for.
3848 (process_constraint, do_deref, process_all_all_constraints): Add extra
3849 argument to calls to new_scalar_tmp_constraint_exp.
3850 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3851 argument to calls to make_heapvar.
3852 (make_restrict_var_constraints): Add extra argument to call to
3853 make_constraint_from_global_restrict.
3854 (intra_create_variable_infos): Add extra argument to call to
3855 create_variable_info_for_1.
3856 (ipa_pta_execute): Add extra argument to call to
3857 create_function_info_for.
3858
3859 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3860
3861 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3862 (sibcall_value): Likewise.
3863
3864 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3865
3866 * config/nvptx/nvptx.h (struct machine_function): Add
3867 axis_predicate.
3868 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3869 nvptx_expand_oacc_join): Declare.
3870 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3871 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3872 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3873 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3874 UNSPECV_JOINING, UNSPECV_JOIN): New.
3875 (BITS, BITD): New mode iterators.
3876 (br_true_uni, br_false_uni): New.
3877 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3878 (oacc_dim_size, oacc_dim_pos): New.
3879 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3880 (oacc_fork, oacc_join): New.
3881 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3882 (worker_load<mode>, worker_store<mode>): New.
3883 (nvptx_barsync): New.
3884 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3885 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3886 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3887 worker_bcast_sym): New.
3888 (nvptx_option_override): Initialize worker broadcast buffer.
3889 (nvptx_emit_forking, nvptx_emit_joining): New.
3890 (nvptx_init_axis_predicate): New.
3891 (nvptx_declare_function_name): Init axis predicates.
3892 (nvptx_expand_call): Add fork/join markers around routine call.
3893 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3894 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3895 (nvptx_gen_vcast): New.
3896 (struct wcast_data_t): New.
3897 (enum propagate_mask): New.
3898 (nvptx_gen_wcast): New.
3899 (nvptx_print_operand): Add 'S' case.
3900 (struct parallel): New.
3901 (parallel::parallel, parallel::~parallel): New.
3902 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3903 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3904 nvptx_find_par, nvptx_discover_pars): New.
3905 (nvptx_propagate): New.
3906 (vprop_gen, nvptx_vpropagate): New.
3907 (wprop_gen, nvptx_wpropagate): New.
3908 (nvptx_wsync): New.
3909 (nvptx_single, nvptx_skip_par): New.
3910 (nvptx_process_pars, nvptx_neuter_pars): New.
3911 (ntptx_reorg): Split blocks, generate parallel structure, apply
3912 neutering.
3913 (nvptx_cannot_copy_insn_p): New.
3914 (nvptx_file_end): Emit worker broadcast decl.
3915 (nvptx_goacc_fork_join): New.
3916 (TARGET_CANNOT_COPY_INSN_P): Override.
3917 (TARGET_GOACC_FORK_JOIN): Override.
3918
3919 2015-10-28 Richard Biener <rguenther@suse.de>
3920
3921 * fold-const.c (negate_expr_p): Adjust the division case to
3922 properly avoid introducing undefined overflow.
3923 (fold_negate_expr): Likewise.
3924
3925 2015-10-28 Richard Biener <rguenther@suse.de>
3926
3927 PR tree-optimization/65962
3928 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3929 Avoid creating loop carried dependences also for outer loops
3930 of the loop a use to replace is in.
3931
3932 2015-10-28 Richard Biener <rguenther@suse.de>
3933
3934 * common.opt (fchecking): New flag controlling flag_checking.
3935 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3936 * timevar.c (timer::print): Adjust output.
3937 * doc/invoke.texi (fchecking): Document.
3938
3939 2015-10-28 Richard Biener <rguenther@suse.de>
3940
3941 PR middle-end/68067
3942 * fold-const.c (negate_expr_p): We cannot negate plus or minus
3943 if overflow is not wrapping. Likewise multiplication unless
3944 one operand is constant and not power of two.
3945 (fold_negate_expr): Adjust accordingly.
3946
3947 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3948
3949 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3950 fields.
3951 (is_oacc_parallel, is_oacc_kernels): New.
3952 (enclosing_target_ctx): May return NULL.
3953 (ctx_in_oacc_kernels_region): New.
3954 (check_oacc_kernel_gwv): New.
3955 (oacc_loop_or_target_p): Delete.
3956 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
3957 operands. Strip reductions fro kernels.
3958 (scan_omp_target): Don't calculate gwv mask.
3959 (lower_oacc_head_mark, lower_oacc_loop_marker,
3960 lower_oacc_head_tail): New.
3961 (struct oacc_collapse): New.
3962 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3963 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3964 Remove OpenACC handling.
3965 (expand_oacc_for): New.
3966 (expand_omp_for): Call expand_oacc_for.
3967 (lower_omp_for): Call lower_oacc_head_tail.
3968
3969 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
3970
3971 * attribs.c (check_attribute_tables): New function, broken out from...
3972 (init_attributes): Use it.
3973 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3974 gcc_checking_assert and checking_* functions to eliminate
3975 ENABLE_CHECKING conditionals.
3976 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3977 (pass_expand::execute): Likewise.
3978 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3979 * cgraphunit.c (mark_functions_to_output): Likewise.
3980 (cgraph_node::expand_thunk): Likewise.
3981 (symbol_table::compile): Likewise.
3982 * ddg.c (add_cross_iteration_register_deps): Likewise.
3983 (create_ddg_all_sccs): Likewise.
3984 * df-core.c (df_finish_pass, df_analyze): Likewise.
3985 * diagnostic-core.h: Likewise.
3986 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3987 * dominance.c (calculate_dominance_info): Likewise.
3988 * dwarf2out.c (add_AT_die_ref): Likewise.
3989 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3990 (loc_list_from_tree, gen_lexical_block_die): Likewise.
3991 gen_type_die_with_usage, gen_type_die): Likewise.
3992 (dwarf2out_decl): Likewise.
3993 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3994 * except.c (duplicate_eh_regions): Likewise.
3995 * fwprop.c (register_active_defs, update_df_init): Likewise.
3996 (fwprop_init, fwprop_done): Likewise.
3997 (update_uses): Likewise.
3998 * ggc-page.c (ggc_grow): Likewise.
3999 * gimplify.c (gimplify_body): Likewise.
4000 (gimplify_hasher::equal): Likewise.
4001 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4002 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4003 Likewise.
4004 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4005 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4006 * hash-table.h (::find_empty_slot_for_expand): Likewise.
4007 * ifcvt.c (if_convert): Likewise.
4008 * ipa-cp.c (ipcp_propagate_stage): Likewise.
4009 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4010 (odr_type_p, odr_types_equivalent_p): Likewise.
4011 (add_type_duplicate, get_odr_type): Likewise.
4012 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4013 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4014 (sem_item_optimizer::verify_classes): Likewise.
4015 (sem_item_optimizer::traverse_congruence_split): Likewise.
4016 (sem_item_optimizer::checking_verify_classes): New.
4017 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4018 method.
4019 * cfgrtl.c (commit_edge_insertions): Likewise.
4020 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4021 (rtl_flow_call_edges_add): Likewise.
4022 * cgraph.c (symbol_table::create_edge): Likewise.
4023 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4024 * cgraph.h (symtab_node): Likewise.
4025 (symtab_node::checking_verify_symtab_nodes): Define.
4026 (cgraph_node::checking_verify_cgraph_nodes): Define.
4027 * cfghooks.h (checking_verify_flow_info): Define.
4028 * cfgloop.h (checking_verify_loop_structure): Define.
4029 * dominance.h (checking_verify_dominators): Define.
4030 * et-forest.c: Fix comment.
4031 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4032 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4033 ENABLE_CHECKING conditionals.
4034 * ipa-inline-transform.c (save_inline_function_body): Likewise.
4035 * ipa-inline.c (inline_small_functions): Likewise.
4036 (early_inliner): Likewise.
4037 * ipa-inline.h (estimate_edge_growth): Likewise.
4038 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4039 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4040 (ipa_single_use): Likewise.
4041 * ira-int.h: Likewise.
4042 * ira.c (ira): Likewise.
4043 * loop-doloop.c (doloop_optimize_loops): Likewise.
4044 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4045 * loop-invariant.c (move_loop_invariants): Likewise.
4046 * lra-assigns.c (lra_assign): Likewise.
4047 * lra-constraints.c (lra_constraints): Likewise.
4048 * lra-eliminations.c (lra_eliminate): Likewise.
4049 * lra-int.h (struct lra_reg): Likewise.
4050 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4051 (lra_create_live_ranges_1): Likewise.
4052 * lra-remat.c (create_remat_bb_data): Likewise.
4053 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4054 (lra): Likewise.
4055 (check_rtl): Always define. Remove incorrect guard around
4056 extract_constrain_insn call.
4057 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4058 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4059 ENABLE_CHECKING conditionals.
4060 * lto-streamer-out.c (DFS::DFS): Likewise.
4061 (lto_output): Likewise.
4062 * lto-streamer.c (lto_streamer_init): Likewise.
4063 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4064 expand_omp_target, execute_expand_omp): Likewise.
4065 (lower_omp_target): Likewise.
4066 * passes.c (execute_function_todo): Likewise.
4067 (execute_todo, execute_one_pass): Likewise.
4068 (verify_curr_properties): Always define.
4069 * predict.c (tree_estimate_probability: Use flag_checking,
4070 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4071 ENABLE_CHECKING conditionals.
4072 (propagate_freq): Likewise.
4073 * pretty-print.c (pp_format): Likewise.
4074 * real.c (real_to_decimal_for_mode): Likewise.
4075 * recog.c (split_all_insns): Likewise.
4076 * regcprop.c (kill_value_one_regno): Likewise.
4077 (copy_value): Likewise.
4078 (validate_value_data): Define unconditionally.
4079 * reload.c: Fix comment.
4080 * timevar.c: Include options.h
4081 * tree-ssa.h (checking_verify_ssa): Define.
4082 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4083 * sched-deps.c (CHECK): Remove unused macro.
4084 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4085 gcc_checking_assert and checking_* functions to eliminate
4086 ENABLE_CHECKING conditionals.
4087 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4088 * sel-sched.c (struct moveop_static_params): Likewise.
4089 (find_best_reg_for_expr, move_cond_jump): Likewise.
4090 (move_op_orig_expr_not_found): Likewise.
4091 (code_motion_process_successors, move_op): Likewise.
4092 * ssa-iterators.h (first_readonly_imm_use): Likewise.
4093 (next_readonly_imm_use): Likewise.
4094 * store-motion.c (compute_store_table): Likewise.
4095 * symbol-summary.h (function_summary::function_summary): Likewise.
4096 * target.h (cumulative_args_t): Likewise.
4097 (get_cumulative_args, pack_cumulative_args): Likewise.
4098 * timevar.c: (timer::print): Likewise.
4099 * trans-mem.c (ipa_tm_execute): Likewise.
4100 * tree-cfg.c (move_stmt_op): Likewise.
4101 (move_sese_region_to_fn): Likewise.
4102 (gimple_flow_call_edges_add): Likewise.
4103 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4104 Likewise.
4105 * tree-eh.c (remove_unreachable_handlers): Likewise.
4106 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4107 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4108 * tree-into-ssa.c (update_ssa): Likewise.
4109 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4110 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4111 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4112 * tree-predcom.c (suitable_component_p): Likewise.
4113 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4114 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4115 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4116 * tree-ssa-live.h (register_ssa_partition): Likewise.
4117 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4118 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4119 (tree_transform_and_unroll_loop): Likewise.
4120 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4121 * tree-ssa-operands.c (get_expr_operands): Likewise.
4122 * tree-ssa-propagate.c (replace_exp_1): Likewise.
4123 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4124 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4125 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4126 * tree-ssanames.c (release_ssa_name_fn): Likewise.
4127 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4128 * tree-vect-loop-manip.c
4129 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4130 (slpeel_checking_verify_cfg_after_peeling): Likewise.
4131 (vect_do_peeling_for_loop_bound): Likewise.
4132 (vect_do_peeling_for_alignment): Likewise.
4133 * tree-vrp.c (supports_overflow_infinity): Likewise.
4134 (set_value_range): Likewise.
4135 * tree.c (free_lang_data_in_cgraph): Likewise.
4136 * value-prof.c (gimple_remove_histogram_value): Likewise.
4137 (free_hist): Likewise.
4138 * var-tracking.c (canonicalize_values_star): Likewise.
4139 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4140
4141 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4142
4143 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4144 IFN_GOACC_LOOP): New.
4145 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4146 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4147 IFN_UNIQUE_OACC_TAIL_MARK.
4148 (enum ifn_goacc_loop_kind): New.
4149 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4150 IFN_UNIQUE_OACC_JOIN cases.
4151 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4152 (expand_GOACC_LOOP): New.
4153 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4154 * omp-low.c: Include gimple-pretty-print.h.
4155 (struct oacc_loop): New.
4156 (enum oacc_loop_flags): New.
4157 (oacc_thread_numbers): New.
4158 (oacc_xform_loop): New.
4159 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4160 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4161 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4162 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4163 oacc_loop_discovery): New.
4164 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4165 oacc_loop_process): New.
4166 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4167 (execute_oacc_device_lower): Discover & process loops. Process
4168 internal fns.
4169 * target.def (goacc.fork_join): Change sense of hook, clarify
4170 documentation.
4171 * doc/tm.texi: Regenerated.
4172
4173 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4174
4175 * target-insns.def (oacc_fork, oacc_join): Define.
4176 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4177 (goacc.fork_join): New GOACC hook.
4178 * targhooks.h (default_goacc_fork_join): Declare.
4179 * omp-low.c (default_goacc_forkjoin): New.
4180 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4181 * doc/tm.texi: Regenerate.
4182
4183 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4184
4185 * omp-low.c (oacc_init_rediction_array): New.
4186 (oacc_initialize_reduction_data): Initialize array.
4187
4188 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4189
4190 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4191
4192 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4193
4194 * internal-fn.c (expand_UNIQUE): New.
4195 * internal-fn.h (enum ifn_unique_kind): New.
4196 * internal-fn.def (IFN_UNIQUE): New.
4197 * target-insns.def (unique): Define.
4198 * gimple.h (gimple_call_internal_unique_p): New.
4199 * gimple.c (gimple_call_same_target_p): Check internal fn
4200 uniqueness.
4201 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4202 * tree-ssa-threadedge.c
4203 (record_temporary_equivalences_from_stmts): Likewise.
4204 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4205
4206 2015-10-27 Richard Henderson <rth@redhat.com>
4207
4208 PR rtl-opt/67609
4209 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4210 narrowing subregs on SSE and MMX registers.
4211 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4212 appear to be sub-words of multi-register pseudos must be rejected.
4213 * doc/tm.texi: Regenerate.
4214
4215 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4216
4217 PR target/68102
4218 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4219 operands[0] is a reg before taking its REGNO in split condition.
4220 (*movdi_aarch64): Likewise.
4221
4222 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4223
4224 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4225 Handle floating point inner modes properly.
4226
4227 2015-10-27 Alan Hayward <alan.hayward@arm.com>
4228
4229 * tree-vect-looop.c
4230 (vectorizable_live_operation): Change iterator.
4231
4232 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4233 Aditya Kumar <aditya.k7@samsung.com>
4234
4235 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4236 function to schedule based on isl_schedule_node.
4237 (get_schedule_map_st): New schedule optimizer based on
4238 isl_schedule_node.
4239 (scop_get_domains): New. Return the isl_union_set containing the
4240 domains of all the pbbs.
4241 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4242
4243 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
4244
4245 PR target/67215
4246 * calls.c (prepare_call_address): Don't handle -fno-plt here.
4247 * config/i386/i386.c (ix86_expand_call): Generate indirect call
4248 via GOT for -fno-plt. Support indirect call via GOT for x32.
4249 * config/i386/predicates.md (sibcall_memory_operand): Allow
4250 GOT memory operand.
4251
4252 2015-10-27 Richard Biener <rguenther@suse.de>
4253
4254 PR tree-optimization/68104
4255 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4256 strided access check ...
4257 (vect_compute_data_refs_alignment): ... here.
4258
4259 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
4260 Joseph Myers <joseph@codesourcery.com>
4261 Mark Shinwell <shinwell@codesourcery.com>
4262 Andrew Stubbs <ams@codesourcery.com>
4263 Rich Felker <dalias@libc.org>
4264
4265 * config.gcc: Handle --enable-fdpic.
4266 * config/sh/constraints.md (Ccl): New constraint.
4267 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4268 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4269 __SH_FDPIC__.
4270 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4271 library functions.
4272 * config/sh/sh-protos.h (function_symbol_result): New struct.
4273 (function_symbol): Return function_symbol_result.
4274 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4275 declarations.
4276 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4277 target hook.
4278 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4279 (sh_option_override): Force -fPIC if FDPIC is in effect.
4280 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4281 UNSPEC_GOTOFFFUNCDESC cases.
4282 (prepare_move_operands): Use FDPIC initial GOT register for
4283 TLS-related GOT access; inhibit cross-section address offset constants
4284 for FDPIC.
4285 (sh_assemble_integer): New function.
4286 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4287 PC-relative call sites.
4288 (expand_ashiftrt): Adapt invocation of function_symbol.
4289 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4290 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4291 UNSPEC_GOTOFFFUNCDESC.
4292 (legitimize_pic_address): Resolve function symbols to function
4293 descriptors for FDPIC. Do not use GOT-relative addressing for local
4294 data that may be read-only on FDPIC.
4295 (sh_emit_storesi, sh_emit_storehi): New functions.
4296 (sh_trampoline_init): Generate FDPIC trampolines.
4297 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4298 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4299 (sh_output_mi_thunk): Generate FDPIC call.
4300 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
4301 FDPIC, generate call site labels to use PC-relative addressing rather
4302 than GOT-relative addressing.
4303 (sh_conditional_register_usage): Make PIC register fixed and call used
4304 when FDPIC is in effect.
4305 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4306 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4307 sh_get_fdpic_reg_initial_val): New functions.
4308 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4309 Handle -mfdpic.
4310 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4311 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4312 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4313 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4314 FDPIC_SELF_SPECS.
4315 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4316 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4317 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4318 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4319 constants.
4320 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4321 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4322 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4323 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4324 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4325 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4326 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4327 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4328 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4329 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4330 block_move_real, block_lump_real, block_move_real_i4,
4331 block_lump_real_i4): Add support for FDPIC calls.
4332 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4333 call_value_pop): Adjust for new function_symbol signature.
4334 * config/sh/sh.opt (-mfdpic): New option.
4335 * doc/install.texi (Options specification): Document --enable-fdpic.
4336 * doc/invoke.texi (SH Options): Document -mfdpic.
4337
4338
4339 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4340
4341 PR tree-optimization/65963
4342 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4343 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4344
4345 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4346
4347 PR target/67929
4348 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4349 * config/arm/constraints.md (Dp): Update callsite.
4350 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4351
4352 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4353
4354 * builtins.c (fold_builtin_load_exponent): Rename to...
4355 (fold_const_builtin_load_exponent): ...this and only handle
4356 constant arguments.
4357 (fold_builtin_2): Update accordingly.
4358 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4359
4360 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4361
4362 * builtins.c (fold_builtin_logb): Rename to...
4363 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4364 (fold_builtin_significand): Rename to...
4365 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4366 (fold_builtin_1): Update accordingly.
4367
4368 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4369
4370 * builtins.c (fold_builtin_fmin_fmax): Delete.
4371 (fold_builtin_2): Handle constant fmin and fmax arguments here.
4372 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4373
4374 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
4375
4376 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4377 for register extension into sign and zero register extension.
4378 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4379 for sign and zero register extension.
4380 (cortexa57_addrcost_table): Likewise.
4381 (xgene1_addrcost_table): Likewise.
4382
4383 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4384
4385 * fold-const.c (fold_minmax): Delete.
4386 (fold_binary_loc): Don't call it.
4387 * match.pd: Add rules previously handled by fold_minmax.
4388
4389 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4390
4391 * builtins.c (fold_builtin_fma): Remove constant handling.
4392 (fold_builtin_3): Handle constant fma arguments here.
4393
4394 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4395
4396 * builtins.c (fold_builtin_fabs): Remove constant handling.
4397 (fold_builtin_abs): Likewise.
4398
4399 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4400
4401 * builtins.c (fold_builtin_copysign): Delete.
4402 (fold_builtin_2): Handle constant copysign arguments here.
4403 * match.pd: Add rules previously handled by fold_builtin_copysign.
4404
4405 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4406
4407 * builtins.c (fold_builtin_signbit): Delete.
4408 (fold_builtin_2): Handle constant signbit arguments here.
4409 * match.pd: Add rules previously handled by fold_builtin_signbit.
4410
4411 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4412
4413 * match.pd: Handle sqrt(x) cmp 0 specially.
4414
4415 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
4416
4417 * tree-vect-generic.c (expand_vector_operations_1): Check
4418 optab type before using it.
4419
4420 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4421
4422 * config/aarch64/aarch64-protos.h
4423 (struct tune_params): Add autoprefetcher_model field.
4424 * config/aarch64/aarch64.c: Include params.h
4425 (generic_tunings): Specify autoprefetcher_model value.
4426 (cortexa53_tunings): Likewise.
4427 (cortexa57_tunings): Likewise.
4428 (cortexa72_tunings): Likewise.
4429 (thunderx_tunings): Likewise.
4430 (xgene1_tunings): Likewise.
4431 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4432 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4433 (aarch64_override_options_internal): Set
4434 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4435
4436 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4437
4438 * builtins.c (fold_builtin_exponent): Delete.
4439 (fold_builtin_2): Handle constant expN arguments here.
4440 * match.pd: Fold expN(logN(x)) -> x.
4441
4442 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4443
4444 * builtins.c (fold_builtin_powi): Delete.
4445 (fold_builtin_2): Handle constant powi arguments here.
4446 * match.pd: Add rules previously handled by fold_builtin_powi.
4447
4448 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4449
4450 * builtins.c (fold_builtin_pow): Delete in favor of...
4451 (fold_const_builtin_pow): ...this new function. Only handle constant
4452 arguments.
4453 (fold_builtin_2): Update accordingly.
4454 * match.pd: Add rules previously handled by fold_builtin_pow.
4455
4456 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4457
4458 * builtins.c (fold_builtin_hypot): Delete.
4459 (fold_builtin_2): Handle constant hypot arguments here.
4460 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4461 hypot(x, x) to fabs(x)*sqrt(2).
4462
4463 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4464
4465 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4466 instead of make_ssa_name if not yet in SSA form.
4467
4468 2015-10-27 Richard Biener <rguenther@suse.de>
4469
4470 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4471 (clear_edges): Likewise.
4472 * cfg.h (clear_edges): Adjust prototype.
4473 * cfgexpand.c (pass_expand::execute): Adjust.
4474 * cfgloop.c (release_recorded_exits): Add function argument and use
4475 it instead of cfun.
4476 * cfgloop.h (release_recorded_exits): Adjust prototype.
4477 (loops_state_satisfies_p): Add overload with function argument.
4478 (loops_state_set): Likewise.
4479 (loops_state_clear): Likewise.
4480 (struct loop_iterator): Add function argument to constructor
4481 and iterator and use it instead of cfun.
4482 (FOR_EACH_LOOP_FN): New macro.
4483 (loop_optimizer_finalize): Add overload with function argument.
4484 * loop-init.c (loop_optimizer_init): Adjust.
4485 (fix_loop_structure): Likewise.
4486 (loop_optimizer_finaliz): Add function argument and use it
4487 instead of cfun.
4488 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4489 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4490 * cgraph.c (release_function_body): Do not push/pop cfun.
4491 * final.c (rest_of_clean_state): Adjust.
4492 * graphite.c (graphite_finalize): Likewise.
4493 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4494 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4495 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4496 (tree_unroll_loops_completely): Likewise.
4497 (pass_complete_unrolli::execute): Likewise.
4498 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4499 Add function argument and use it instead of cfun.
4500 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4501 Adjust prototype.
4502 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4503 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4504 instead of cfun.
4505 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4506 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4507 instead of cfun.
4508 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4509 * tree-vrp.c (execute_vrp): Adjust.
4510 * value-prof.c (free_histograms): Add function argument and use it
4511 instead of cfun.
4512 * value-prof.h (free_histograms): Adjust prototype.
4513
4514 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4515
4516 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4517 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4518 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4519
4520 2015-10-27 Tom de Vries <tom@codesourcery.com>
4521
4522 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4523 field_type.
4524
4525 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4526
4527 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4528 (inv_can_prop_to_addr_use): New function.
4529 (record_use): Call can_prop_to_addr_uses, set the new field.
4530 (get_inv_cost): Count cost if inv can't be propagated into its
4531 address uses.
4532
4533 2015-10-26 Doug Evans <dje@google.com>
4534
4535 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4536
4537 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4538
4539 * match.pd (fold_widened_comparison): Apply simplifications to all
4540 integral types.
4541
4542 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4543
4544 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4545 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4546 * doc/tm.texi: Regenerated.
4547 * reorg.c (dbr_schedule): Use new hook.
4548 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4549
4550 2015-10-26 Jeff Law <law@redhat.com>
4551
4552 PR tree-optimization/68013
4553 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4554 Make sure the first block in the path is in VISITED_BBs.
4555
4556 2015-10-26 Richard Biener <rguenther@suse.de>
4557 Dominik Vogt <vogt@linux.vnet.ibm.com>
4558
4559 PR middle-end/67443
4560 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4561 Properly prune ref->ref for accesses outside of ref.
4562
4563 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4564
4565 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4566 new statements to be inserted if inplace. Allow calls to have
4567 nonempty sequences.
4568
4569 2015-10-26 Richard Biener <rguenther@suse.de>
4570
4571 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4572 (do_valueize): New function.
4573 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4574 replace_uses_by.
4575 * tree-ssa-threadedge.c: Remove builtins.h include, include
4576 gimple-fold.h
4577 (fold_assignment_stmt): Remove.
4578 (threadedge_valueize): New function.
4579 (record_temporary_equivalences_from_stmts): Use
4580 gimple_fold_stmt_to_constant_1, note additional cleanup
4581 opportunities.
4582
4583 2015-10-26 Richard Biener <rguenther@suse.de>
4584
4585 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4586 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4587
4588 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4589
4590 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4591 VEC_COND_EXPR types.
4592
4593 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4594
4595 * auto-inc-dec.c (insert_move_insn_before): Delete.
4596 (attempt_change): Remember to cost the simple move in the
4597 FORM_PRE_ADD and FORM_POST_ADD cases.
4598
4599 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
4600
4601 PR target/68091
4602 * config/sh/sh.c (sh_vector_mode_supported_p): Use
4603 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4604
4605 2015-10-26 Tom de Vries <tom@codesourcery.com>
4606
4607 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4608 factored out of ...
4609 (intra_create_variable_infos): ... here.
4610
4611 2015-10-26 Tom de Vries <tom@codesourcery.com>
4612
4613 * tree-ssa-structalias.c (intra_create_variable_infos): Add
4614 restrict_pointer_p and recursive_restrict_p variables.
4615
4616 2015-10-26 Tom de Vries <tom@codesourcery.com>
4617
4618 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4619 get_vi_for_tree call.
4620
4621 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4622
4623 PR middle-end/67989
4624 * optabs.c (expand_atomic_compare_and_swap): Handle case when
4625 ptarget_oval or ptarget_bool are const0_rtx.
4626
4627 2015-10-26 Christian Bruel <christian.bruel@st.com>
4628
4629 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4630 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4631 * cp/method.c (implicitly_declare_fn): Likewise.
4632 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4633 * java/class.c (add_method_1): Likewise.
4634
4635 2015-10-26 Richard Biener <rguenther@suse.de>
4636
4637 * alloc-pool.h (base_pool_allocator): Use placement new.
4638 (base_pool_allocator::remove): Likewise. Compute size outside of
4639 flag_checking.
4640
4641 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4642
4643 * builtins.c (do_real_to_int_conversion): New function.
4644 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4645 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4646 arguments here.
4647 * match.pd: Add rules previously handled by fold_fixed_mathfn
4648 and fold_builtin_int_roundingfn.
4649
4650 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4651
4652 * match.pd: Use macros to define built-in operator lists.
4653
4654 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
4655 Richard Biener <rguenther@suse.de>
4656
4657 * genmatch.c (dt_simplify::gen): Skip captures that are
4658 part of the result.
4659 (parser::parse_expr): Allow captures in results too.
4660 * builtins.c (fold_builtin_cexp): Delete.
4661 (fold_builtin_1): Handle constant cexp arguments here.
4662 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4663
4664 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
4665
4666 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4667 conditional compilation.
4668 (base_pool_allocator::remove): Use flag_checking.
4669
4670 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
4671
4672 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4673
4674 PR middle-end/68079
4675 * dojump.c (do_compare_and_jump): Canonicalize both function and
4676 method types.
4677
4678 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
4679
4680 PR target/68084
4681 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4682 for =@ccae.
4683
4684 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4685
4686 PR ipa/pr67600
4687 * ipa-polymorphic-call.c
4688 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4689 instance offset with offset of outer type.
4690
4691 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4692
4693 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4694
4695 2015-10-23 Caroline Tice <cmtice@google.com>
4696
4697 (from Richard Biener
4698 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
4699 call to iterative_hash_host_wide_int.
4700
4701 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4702
4703 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4704 Define as yes.
4705
4706 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4707
4708 * tree-vect-generic.c (expand_vector_operations_1): Check
4709 optab exists before use it.
4710
4711 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4712
4713 * tree-vect-generic.c (expand_vector_condition): Avoid
4714 uninitialized variable warning.
4715
4716 2015-10-23 Jeff Law <law@redhat.com>
4717
4718 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4719 here. Instead...
4720 (execute_todo): Call it here.
4721 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4722 statistics
4723 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4724
4725 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4726 Szabolcs Nagy <szabolcs.nagy@arm.com>
4727
4728 * config.gcc (enable_secureplt): Add *-linux*-musl*.
4729
4730 2015-10-23 Jeff Law <law@redhat.com>
4731
4732 PR tree-optimization/67830
4733 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4734 Explicitly verify the mask has no bits outside the type of
4735 the innermost operands.
4736
4737 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4738 Szabolcs Nagy <szabolcs.nagy@arm.com>
4739
4740 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4741 (MUSL_DYNAMIC_LINKER64): Define.
4742 (GNU_USER_DYNAMIC_LINKER32): Update.
4743 (GNU_USER_DYNAMIC_LINKER64): Update.
4744 (CHOOSE_DYNAMIC_LINKER): Update.
4745
4746 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4747 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4748 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4749 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4750 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4751 (CHOOSE_DYNAMIC_LINKER): Update.
4752 (INCLUDE_DEFAULTS): Redefine.
4753
4754 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4755
4756 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4757
4758 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4759 comparing addresses.
4760
4761 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4762
4763 * fold-const.c (operand_equal_p): Handle matching of vector
4764 constructors.
4765
4766 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4767
4768 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4769
4770 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
4771 Andrew Pinski <apinski@cavium.com>
4772
4773 PR rtl-optimization/67736
4774 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4775 of gen_lowpart.
4776
4777 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4778
4779 PR middle-end/68066
4780 * tree.c (build_truth_vector_type): Support BLK mode
4781 returned for boolean vector.
4782
4783 2015-10-23 Alan Hayward <alan.hayward@arm.com>
4784
4785 PR tree-optimization/65947
4786 * tree-vect-loop.c
4787 (vect_is_simple_reduction_1): Find condition reductions.
4788 (vect_model_reduction_cost): Add condition reduction costs.
4789 (get_initial_def_for_reduction): Add condition reduction initial var.
4790 (vect_create_epilog_for_reduction): Add condition reduction epilog.
4791 (vectorizable_reduction): Condition reduction support.
4792 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4793 * doc/sourcebuild.texi (Vector-specific attributes): Document
4794 vect_max_reduc
4795
4796 2015-10-23 Richard Biener <rguenther@suse.de>
4797
4798 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4799 and builtins.def.
4800
4801 2015-10-23 Richard Biener <rguenther@suse.de>
4802 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4803
4804 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4805 into (A ^ B) - B to match.pd
4806 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4807
4808 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4809 New simplifier.
4810 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4811 New simplifier.
4812 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4813 New simplifier.
4814 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4815 New simplifier.
4816 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4817 INTEGER_CST@1)): New simplifier.
4818
4819 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
4820
4821 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4822 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4823 (fold_builtin_ceil, fold_builtin_round): Delete.
4824 (fold_builtin_1): Handle constant trunc, floor, ceil and round
4825 arguments here.
4826 * convert.c (convert_to_real): Remove narrowing of rounding
4827 functions.
4828 * fold-const.h (integer_valued_real_unary_p)
4829 (integer_valued_real_binary_p, integer_valued_real_call_p)
4830 (integer_valued_real_single_p, integer_valued_real_p): Declare.
4831 * fold-const.c (tree_single_nonnegative_warnv_p): Move
4832 name_registered_for_update_p check to SSA_NAME case statement.
4833 Don't call tree_simple_nonnegative_warnv_p for SSA names.
4834 (integer_valued_real_unary_p, integer_valued_real_binary_p)
4835 (integer_valued_real_call_p, integer_valued_real_single_p)
4836 (integer_valued_real_invalid_p): New functions.
4837 (integer_valued_real_p): Move from fold-const.c and rework
4838 to call the functions above. Handle SSA names.
4839 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4840 * gimple-fold.c (gimple_assign_integer_valued_real_p)
4841 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4842 (gimple_stmt_integer_valued_real_p): New functions.
4843 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4844 Fold f(x)->x for the same f if x is known to be integer-valued.
4845 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4846 the result. Canonicalize floor(x) as trunc(x) if x is
4847 nonnegative.
4848
4849 2015-10-23 Tom de Vries <tom@codesourcery.com>
4850
4851 * tree-ssa-structalias.c (intra_create_variable_infos): Use
4852 make_constraint_from.
4853
4854 2015-10-23 Tom de Vries <tom@codesourcery.com>
4855
4856 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4857 setting of is_full_var in case of a single field.
4858
4859 2015-10-22 Martin Sebor <msebor@redhat.com>
4860
4861 PR driver/68043
4862 * config/i386/i386.opt: Add missing periods to the ends of sentences.
4863 * config/msp430/msp430.opt: Same.
4864
4865 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4866
4867 * doc/extend.exp (Global Register Variables): Rewrite.
4868
4869 2015-10-22 Jeff Law <law@redhat.com>
4870
4871 * genattrtab.c (main): If we do not have any annul-true or annul-false
4872 slots, then write out a dummy eligible_for_annul_true or
4873 eligible_for_annul_false as needed.
4874
4875 2015-10-22 Nick Clifton <nickc@redhat.com>
4876
4877 * config/msp430/msp430.opt: Add -msilicon-errata and
4878 -msilicon-errata-warn.
4879 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4880 assembler.
4881 * doc/invoke.texi: Document new options.
4882
4883 2015-10-22 Richard Biener <rguenther@suse.de>
4884
4885 PR tree-optimization/58497
4886 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4887 (expand_vector_operations_1): Use it. Lower operations on
4888 all uniform vectors to scalar operations if the HW supports it.
4889
4890 2015-10-22 Richard Biener <rguenther@suse.de>
4891
4892 PR tree-optimization/19049
4893 PR tree-optimization/65962
4894 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4895 to strided accesses if single-element interleaving doesn't work.
4896
4897 2015-10-22 Richard Biener <rguenther@suse.de>
4898
4899 PR middle-end/68046
4900 PR middle-end/61893
4901 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4902 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4903 (expand_unop): Likewise.
4904
4905 2015-10-22 Richard Biener <rguenther@suse.de>
4906
4907 * fold-const.c (fold_addr_of_array_ref_difference): Properly
4908 convert operands before folding a MINUS_EXPR.
4909 (fold_binary_loc): Move simplification of MINUS_EXPR on
4910 converted POINTER_PLUS_EXPRs ...
4911 * match.pd: ... here.
4912
4913 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4914
4915 * builtins.c (fold_builtin_tan): Delete.
4916 (fold_builtin_1): Handle constant tan arguments here.
4917 * match.pd: Simplify (tan (atan x)) to x.
4918
4919 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4920
4921 * builtins.c (fold_builtin_cproj): Delete.
4922 (fold_builtin_1): Handle constant arguments here.
4923 (build_complex_cproj): Move and rename to...
4924 * tree.c: (build_complex_inf): ...this.
4925 * tree.h (build_complex_inf): Declare.
4926 * match.pd: Fold cproj(x)->x if x has no infinity.
4927 Use build_complex_inf for existing cproj rules.
4928
4929 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4930
4931 PR target/68015
4932 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4933 already have a comparison result.
4934
4935 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4936
4937 PR target/63304
4938 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4939 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4940 (aarch64_classify_address): Likewise.
4941 (aarch64_secondary_reload): Likewise.
4942 (aarch64_override_options_after_change_1): Adjust.
4943 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4944 Use aarch64_nopcrelative_literal_loads.
4945 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4946 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4947 Declare.
4948
4949 2015-10-21 Martin Sebor <msebor@redhat.com>
4950
4951 PR driver/68043
4952 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4953 (print_filtered_help): Reference aliased option's name and encourage
4954 readers to use it in preference to the alias if the former is not
4955 documented. Mention when using an option is diagnosed.
4956 * gcc.c (display_help): End each sentence with a period.
4957
4958 * common.opt: End each sentence that describes an option with
4959 a period.
4960 * config/aarch64/aarch64.opt: Same.
4961 * config/alpha/alpha.opt: Same.
4962 * config/arc/arc.opt: Same.
4963 * config/arm/arm.opt: Same.
4964 * config/avr/avr.opt: Same.
4965 * config/bfin/bfin.opt: Same.
4966 * config/c6x/c6x.opt: Same.
4967 * config/cr16/cr16.opt: Same.
4968 * config/cris/cris.opt: Same.
4969 * config/cris/linux.opt: Same.
4970 * config/darwin.opt: Same.
4971 * config/epiphany/epiphany.opt: Same.
4972 * config/fr30/fr30.opt: Same.
4973 * config/frv/frv.opt: Same.
4974 * config/ft32/ft32.opt: Same.
4975 * config/g.opt: Same.
4976 * config/h8300/h8300.opt: Same.
4977 * config/i386/cygming.opt: Same.
4978 * config/i386/djgpp.opt: Same.
4979 * config/i386/i386.opt: Same.
4980 * config/i386/interix.opt: Same.
4981 * config/i386/mingw-w64.opt: Same.
4982 * config/i386/mingw.opt: Same.
4983 * config/ia64/ia64.opt: Same.
4984 * config/ia64/ilp32.opt: Same.
4985 * config/iq2000/iq2000.opt: Same.
4986 * config/linux.opt: Same.
4987 * config/lm32/lm32.opt: Same.
4988 * config/lynx.opt: Same.
4989 * config/m32c/m32c.opt: Same.
4990 * config/m32r/m32r.opt: Same.
4991 * config/m68k/ieee.opt: Same.
4992 * config/m68k/m68k.opt: Same.
4993 * config/mcore/mcore.opt: Same.
4994 * config/mep/mep.opt: Same.
4995 * config/microblaze/microblaze.opt: Same.
4996 * config/mips/mips.opt: Same.
4997 * config/mmix/mmix.opt: Same.
4998 * config/mn10300/mn10300.opt: Same.
4999 * config/moxie/moxie.opt: Same.
5000 * config/msp430/msp430.opt: Same.
5001 * config/nios2/elf.opt: Same.
5002 * config/nios2/nios2.opt: Same.
5003 * config/nvptx/nvptx.opt: Same.
5004 * config/pa/pa-hpux.opt: Same.
5005 * config/pa/pa-hpux1010.opt: Same.
5006 * config/pa/pa-hpux1111.opt: Same.
5007 * config/pa/pa-hpux1131.opt: Same.
5008 * config/pa/pa.opt: Same.
5009 * config/pa/pa64-hpux.opt: Same.
5010 * config/pdp11/pdp11.opt: Same.
5011 * config/rl78/rl78.opt: Same.
5012 * config/rs6000/476.opt: Same.
5013 * config/rs6000/aix64.opt: Same.
5014 * config/rs6000/darwin.opt: Same.
5015 * config/rs6000/linux64.opt: Same.
5016 * config/rs6000/rs6000.opt: Same.
5017 * config/rs6000/sysv4.opt: Same.
5018 * config/s390/s390.opt: Same.
5019 * config/s390/tpf.opt: Same.
5020 * config/sh/sh.opt: Same.
5021 * config/sol2.opt: Same.
5022 * config/sparc/long-double-switch.opt: Same.
5023 * config/sparc/sparc.opt: Same.
5024 * config/spu/spu.opt: Same.
5025 * config/stormy16/stormy16.opt: Same.
5026 * config/tilegx/tilegx.opt: Same.
5027 * config/tilepro/tilepro.opt: Same.
5028 * config/v850/v850.opt: Same.
5029 * config/vax/vax.opt: Same.
5030 * config/visium/visium.opt: Same.
5031 * config/vms/vms.opt: Same.
5032 * config/vxworks.opt: Same.
5033 * config/xtensa/xtensa.opt: Same.
5034
5035 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5036 Sebastian Pop <s.pop@samsung.com>
5037
5038 * graphite-scop-detection.c (parameter_index_in_region): Update call to
5039 invariant_in_sese_p_rec.
5040 * graphite-sese-to-poly.c (extract_affine): Same.
5041 * sese.c (invariant_in_sese_p_rec): Pass in an extra
5042 parameter has_vdefs.
5043 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5044 variable depends on virtual definitions in the current region.
5045 * sese.h (invariant_in_sese_p_rec): Update declaration.
5046
5047 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5048 Sebastian Pop <s.pop@samsung.com>
5049
5050 * graphite-scop-detection.c (build_scops): Do not handle scops
5051 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5052 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5053
5054 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
5055
5056 * config.in: Regenerate.
5057 * configure: Regenerate.
5058 * configure.ac (CHECKING_P): Define.
5059 * system.h: Use CHECKING_P.
5060
5061 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5062
5063 PR ipa/67056
5064 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5065 is negative we don't know the type.
5066 (check_stmt_for_type_change): Skip constructors of non-polymorphic
5067 types as those won't help devirutalization.
5068
5069 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5070
5071 * fold-const.c (operand_equal_p): Add code matching empty constructors.
5072
5073 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
5074
5075 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5076 comments.
5077 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5078 Add comments on sign of the result.
5079 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5080 Recurse on operand #1 instead of operand #0.
5081 <CEIL_MOD_EXPR>: Do not recurse.
5082 <ROUND_MOD_EXPR>: Likewise.
5083
5084 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5085
5086 * cfgrtl.c (pass_free_cfg::execute): Adjust.
5087 * final.c (dbr_sequence_length): Always define.
5088 (shorten_branches): Adjust.
5089 * genattr-common.c (main): Always define DELAY_SLOTS.
5090 * genattr.c (main): Unconditionally declare functions and define
5091 macros related to delay slots.
5092 * genattrtab.c (write_eligible_delay): Adjust.
5093 (main): Always write out delay slot functions.
5094 * opts.c (default_options_table): Adjust.
5095 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5096 (redirect_with_delay_list_safe_p): Likewise.
5097 (fill_simple_delay_slots): Likewise.
5098 (fill_slots_from_thread): Likewise.
5099 (make_return_insns): Likewise.
5100 (dbr_schedule): Likewise.
5101 (rest_of_handle_delay_slots): Likewise.
5102 (pass_delay_slots::gate): Likewise.
5103 * toplev.c (process_options): Likewise.
5104
5105 2015-10-21 Richard Henderson <rth@redhat.com>
5106
5107 * targhooks.c (default_addr_space_pointer_mode): Remove check
5108 for generic address space.
5109 (default_addr_space_address_mode): Likewise.
5110 (default_addr_space_valid_pointer_mode): Likewise.
5111 (default_addr_space_legitimate_address_p): Likewise.
5112 (default_addr_space_legitimize_address): Likewise.
5113 * target.def (addr_space.pointer_mode): Update documentation
5114 of default behavior.
5115 (addr_space.address_mode): Likewise.
5116 * tm.texi: Update.
5117
5118 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5119 address spaces.
5120
5121 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5122
5123 * builtins.c (fold_builtin_cabs): Delete.
5124 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5125 * match.pd: Add rules previously handled by fold_builtin_cabs.
5126
5127 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5128
5129 * fold-const.h (fold_strip_sign_ops): Delete.
5130 * fold-const.c (fold_strip_sign_ops): Likewise.
5131 (fold_unary_loc, fold_binary_loc): Remove calls to it.
5132 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5133 (fold_builtin_ccos): Delete.
5134 (fold_builtin_pow): Don't call fold_strip_sign_ops.
5135 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5136 Remove fndecl argument.
5137 (fold_builtin_1): Update calls accordingly. Handle constant
5138 cos, cosh, ccos and ccosh here.
5139
5140 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5141
5142 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5143 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5144 * common.opt (fssa-backprop): New option.
5145 * fold-const.h (negate_mathfn_p): Declare.
5146 * fold-const.c (negate_mathfn_p): Make public.
5147 * timevar.def (TV_TREE_BACKPROP): New.
5148 * tree-pass.h (make_pass_backprop): Declare.
5149 * passes.def (pass_backprop): Add.
5150 * gimple-ssa-backprop.c: New file.
5151
5152 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5153 Sebastian Pop <s.pop@samsung.com>
5154
5155 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5156 Do not call create_empty_if_region_on_edge when cond_expr is true.
5157 (translate_isl_ast_node_for): Check whether a guard has been generated.
5158
5159 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5160
5161 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5162 (operator=): Removed.
5163 (dr_info): Make alias_set number the last argument with default
5164 value of invalid_alias_set.
5165 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5166 of dr_info.
5167 (rewrite_reductions_out_of_ssa): Iterate only through the
5168 basic blocks which are inside region.
5169 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5170 * sese.h (struct sese_l): Removed assignment operator.
5171 (split_region_for_bb): Removed dead code.
5172
5173 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5174
5175 * graphite-poly.h (struct dr_info): Removed conversion constructor.
5176 (struct scop): Renamed scop::region to scop::scop_info
5177 (scop_set_region): Same.
5178 (SCOP_REGION): Removed
5179 (SCOP_CONTEXT): Removed.
5180 (POLY_SCOP_P): Removed.
5181 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5182 Rename scop->region to scop->scop_info.
5183 (add_parameters_to_ivs_params): Same.
5184 (graphite_regenerate_ast_isl): Same.
5185 * graphite-poly.c (new_scop): Same.
5186 (free_scop): Same.
5187 (print_scop_params): Same.
5188 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5189 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5190 (dot_all_scops_1): Rename scop->region to scop->scop_info.
5191 (scop_detection::nb_pbbs_in_loops): Same.
5192 (find_scop_parameters): Same.
5193 (try_generate_gimple_bb): Same.
5194 (gather_bbs::before_dom_children): Same.
5195 (gather_bbs::after_dom_children): Same.
5196 (build_scops): Same.
5197 * graphite-sese-to-poly.c (build_scop_scattering): Same.
5198 (extract_affine_chrec): Same.
5199 (extract_affine): Same.
5200 (set_scop_parameter_dim): Same.
5201 (build_loop_iteration_domains): Same.
5202 (create_pw_aff_from_tree): Same.
5203 (add_param_constraints): Same.
5204 (build_scop_iteration_domain): Same.
5205 (build_scop_drs): Same.
5206 (analyze_drs_in_stmts): Same.
5207 (insert_out_of_ssa_copy_on_edge): Same.
5208 (rewrite_close_phi_out_of_ssa):Same.
5209 (rewrite_reductions_out_of_ssa):Same.
5210 (handle_scalar_deps_crossing_scop_limits):Same.
5211 (rewrite_cross_bb_scalar_deps):Same.
5212 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5213 (build_poly_scop):Same.
5214 (build_alias_set): Use pointer to dr_info.
5215 * graphite.c (print_graphite_scop_statistics):
5216 (graphite_transform_loops):
5217 * sese.h (struct sese_l): Remove conversion constructor.
5218
5219 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5220
5221 PR middle-end/67966
5222 * tree.c (verify_type): Verify that TYPE_MODE match
5223 between TYPE_CANONICAL and type.
5224 * expr.c (store_expr_with_bounds): Revert my previous change.
5225 * expmed.c (store_bit_field_1): Revert prevoius change.
5226 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5227 to match for all types.
5228
5229 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
5230
5231 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5232 nesting.
5233
5234 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5235
5236 * doc/tm.texi: Regenerated.
5237 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5238 * stor-layout.c (layout_type): Use mode to get vector mask size.
5239 * target.def (get_mask_mode): New.
5240 * targhooks.c (default_get_mask_mode): New.
5241 * targhooks.h (default_get_mask_mode): New.
5242 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5243 for boolean vector.
5244 * tree.c (MAX_BOOL_CACHED_PREC): New.
5245 (nonstandard_boolean_type_cache): New.
5246 (build_nonstandard_boolean_type): New.
5247 (make_vector_type): Vector mask has no canonical type.
5248 (build_truth_vector_type): New.
5249 (build_same_sized_truth_vector_type): New.
5250 (truth_type_for): Support vector masks.
5251 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5252 (build_truth_vector_type): New.
5253 (build_same_sized_truth_vector_type): New.
5254 (build_nonstandard_boolean_type): New.
5255 * tree-cfg.c (verify_gimple_comparison) Require boolean
5256 vector type for vector comparison.
5257 (verify_gimple_assign_ternary): Likewise.
5258 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5259 condition operand.
5260 * tree-vect-stmts.c (vectorizable_condition): Use boolean
5261 vector type for vector comparison.
5262 * tree-vect-generic.c (elem_op_func): Add new operand to hold
5263 vector type.
5264 (do_unop): Adjust to modified function type.
5265 (do_binop): Likewise.
5266 (do_plus_minus): Likewise.
5267 (do_negate); Likewise.
5268 (expand_vector_piecewise): Likewise.
5269 (do_cond): Likewise.
5270 (do_compare): Use comparison instead of condition.
5271 (expand_vector_divmod): Use boolean vector type for comparison.
5272 (expand_vector_operations_1): Skip scalar mask operations.
5273
5274 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5275
5276 * omp-low.c (simd_clone_create): Set in_other_partition
5277 for created clones.
5278
5279 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5280
5281 * doc/extend.exp (Local Register Variables): Rewrite.
5282
5283 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5284
5285 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5286 and x*x in cases where the operands are sign ops. Extend these
5287 rules to handle copysign as a sign op (including for cos, cosh
5288 and pow, which already treated negate and abs as sign ops).
5289
5290 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
5291
5292 PR target/68018
5293 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5294 for 64-bit MS_ABI targets also when default incoming stack boundary
5295 is overriden.
5296
5297 2015-10-21 Richard Biener <rguenther@suse.de>
5298
5299 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5300 cond stmts, enhanced and split out from ...
5301 (vn_phi_eq): ... here.
5302
5303 2015-10-21 Richard Biener <rguenther@suse.de>
5304
5305 PR middle-end/68031
5306 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5307 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5308 (tree_single_nonnegative_warnv_p): ... here. For SSA names
5309 make sure they are not registered for update.
5310
5311 2015-10-21 Richard Biener <rguenther@suse.de>
5312
5313 PR tree-optimization/68026
5314 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5315 unsigned VARYING values.
5316
5317 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
5318
5319 * asan.c (asan_emit_stack_protection): Don't pass local stack to
5320 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5321 NULL and use local stack than.
5322 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5323 in addition to __asan_init.
5324 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5325 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5326 * asan.h (asan_intercepted_p): Handle new string builtins.
5327 * ubsan.c (ubsan_use_new_style_p): New function.
5328 (ubsan_instrument_float_cast): If location is unknown, assign
5329 input_location to loc. Propagate loc to ubsan_create_data if
5330 ubsan_use_new_style_p returned true.
5331
5332 2015-10-21 Jeff Law <law@redhat.com>
5333
5334 * Makefile.in (OBJS): Remove sched-vis.c
5335 * sched-vis.c: Removed. Code moved into...
5336 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
5337 * rtl.h: Remove prototypes for functions now living in print-rtl.c
5338 * print-rtl.h Add prototypes for new functions in print-rtl.c.
5339 * auto-inc-dec.c: Include print-rtl.h
5340 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5341 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5342
5343 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5344 ATTRIBUTE_UNUSED.
5345
5346 2015-10-21 Richard Biener <rguenther@suse.de>
5347 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5348
5349 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5350 to match.pd.
5351 Move (a * (1 << b)) is (a << b) to match.pd.
5352 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5353 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5354 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5355
5356 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5357 New simplifier.
5358 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5359 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5360 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5361 : New simplifier.
5362 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5363 New simplifier.
5364 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5365
5366 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
5367 Szabolcs Nagy <szabolcs.nagy@arm.com>
5368 Alan Modra <amodra@gmail.com>
5369
5370 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5371 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5372 (LINK_SPEC): Add %(link_secure_plt).
5373 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5374 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5375
5376 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
5377 Szabolcs Nagy <szabolcs.nagy@arm.com>
5378
5379 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5380 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5381
5382 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5383
5384 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5385 New function.
5386 (fusion_load_store): Use it.
5387 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5388 ldp and stp in VD modes.
5389 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5390 (store_pair<mode>, VD): Likewise.
5391
5392 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
5393
5394 PR rtl-optimization/67609
5395 * lra-splill.c (lra_final_code_change): Don't remove all
5396 sub-registers.
5397
5398 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5399
5400 * simplify-rtx.c (simplify_binary_operation): If either operand was
5401 a constant pool reference use them if all other simplifications failed.
5402
5403 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5404
5405 * config/aarch64/aarch64.md
5406 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5407 * config/aarch64/aarch64-simd.md
5408 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5410 (aarch64_fpconst_pow_of_2): New function.
5411 (aarch64_vec_fpconst_pow_of_2): Likewise.
5412 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5413 prototype.
5414 (aarch64_vec_fpconst_pow_of_2): Likewise.
5415 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5416 (aarch64_fp_vec_pow2): Likewise.
5417
5418 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
5419
5420 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5421 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
5422 * config/alpha/alpha.c (alpha_function_arg_advance): Update
5423 ALPHA_ARG_SIZE usage.
5424 (alpha_arg_partial_bytes): Ditto.
5425
5426 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5427
5428 PR target/66810
5429 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5430 error_mark_node decls.
5431
5432 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5433
5434 PR target/67963
5435 PR target/67985
5436 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5437 OPT_miamcu handling.
5438 * config/i386/i386.c (PTA_NO_80387): New macro.
5439 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5440 (ix86_option_override_internal): Update MASK_80387 from
5441 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5442 SSE math only if 80387 is supported. Don't change
5443 MASK_FLOAT_RETURNS.
5444 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5445 80387 is supported.
5446 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5447 if TARGET_80387 is true and TARGET_IAMCU is false.
5448 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5449 is true and TARGET_IAMCU_P is false.
5450
5451 2015-10-20 Richard Biener <rguenther@suse.de>
5452
5453 PR tree-optimization/68017
5454 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5455
5456 2015-10-20 Martin Liska <mliska@suse.cz>
5457
5458 * cgraphclones.c (cgraph_node::create_virtual_clone):
5459 Verify cgraph_node.local.versionable instead of calling
5460 tree_versionable_function_p.
5461 * ipa-cp.c (determine_versionability): Save the information
5462 to ipa_node_params summary.
5463 (ipcp_versionable_function_p): Use it.
5464 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5465 (ipcp_generate_summary): Do not compute cgraph_node
5466 versionability.
5467 * ipa-inline-analysis.c (inline_generate_summary): Compute
5468 versionability for all cgraph nodes.
5469 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5470 ipa_node_params::versionability.
5471 * ipa-prop.h (struct ipa_node_params): Declare it.
5472
5473 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5474
5475 PR other/67868
5476 * varasm.c (assemble_variable): Move special vtv handling to..
5477 (handle_vtv_comdat_sections): .. here. New function.
5478 (output_object_block): Handle vtv sections.
5479
5480 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5481
5482 PR target/66912
5483 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5484
5485 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5486
5487 * doc/extend.texi: Update documentation WRT inline functions.
5488
5489 2015-10-20 Alan Modra <amodra@gmail.com>
5490
5491 PR go/66870
5492 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5493 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5494 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5495
5496 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5497
5498 PR rtl-optimization/66790
5499 * df.h (DF_MIR): New macro.
5500 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5501 (DF_MIR_INFO_BB): New macro.
5502 (DF_MIR_IN, DF_MIR_OUT): New macros.
5503 (struct df_mir_bb_info): New.
5504 (df_mir): New macro.
5505 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5506 declarations.
5507 (df_mir_get_bb_info): New.
5508 * df-problems.c (struct df_mir_problem_data): New.
5509 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5510 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5511 df_mir_confluence_0, df_mir_confluence_n,
5512 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5513 df_mir_bottom_dump, df_mir_verify_solution_start,
5514 df_mir_verify_solution_end): New.
5515 (problem_MIR): New.
5516 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5517 * timevar.def (TV_DF_MIR): New.
5518 * ree.c: Include bitmap.h
5519 (add_removable_extension): Add an INIT_REGS parameter. Use it
5520 to skip zero-extensions that may get an uninitialized register.
5521 (find_removable_extensions): Compute must-initialized registers
5522 using the MIR dataflow problem. Update the call to
5523 add_removable_extension.
5524 (find_and_remove_re): Call df_mir_add_problem.
5525
5526 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5527
5528 * common/config/mn10300/mn10300-common.c
5529 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5530 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5531
5532 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5533
5534 * doc/extend.texi (Explicit Register Variables): Simplify and
5535 avoid unnecessary and confusion abbreviations. Update cross
5536 references.
5537 doc/implement-c.tex: Update cross reference.
5538
5539 2015-10-19 Jeff Law <law@redhat.com>
5540
5541 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5542 that create irreducible loops unless the path elimiantes a multiway
5543 branch.
5544
5545 2015-10-19 Richard Biener <rguenther@suse.de>
5546
5547 PR tree-optimization/67975
5548 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5549 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5550 core worker from ...
5551 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5552 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5553 instead of block number for PHIs with two or one args.
5554 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5555 blocks.
5556
5557 2015-10-19 Richard Biener <rguenther@suse.de>
5558
5559 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5560 (gimple_stmt_nonnegative_warnv_p): Use it.
5561 * match.pd (CPROJ): New operator list.
5562 (cproj (complex ...)): Move simplifications from ...
5563 * builtins.c (fold_builtin_cproj): ... here.
5564
5565 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5566
5567 * config/i386/i386.c (ix86_expand_vector_move): Use
5568 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5569 alignment.
5570
5571 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5572
5573 * doc/invoke.texi: Replace @optindex with @opindex.
5574
5575 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5576
5577 PR target/67995
5578 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5579 arch= is set, clear all bits in x_ix86_isa_flags, except for
5580 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5581
5582 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5583
5584 PR middle-end/68002
5585 * common.opt (fkeep-static-functions): New option.
5586 * doc/invoke.texi: Document it.
5587 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5588
5589 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5590
5591 * sched-int.h (struct autopref_multipass_data_): Remove offset
5592 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5593 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5594 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5595 (autopref_rank_data): New function.
5596 (autopref_rank_for_schedule): Use it.
5597 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5598
5599 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
5600
5601 PR other/65800
5602 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5603
5604 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5605
5606 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5607 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
5608 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5609 (STANDARD_STARTFILE_PREFIX_1): New.
5610 (STANDARD_STARTFILE_PREFIX_2): New.
5611
5612 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5613
5614 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5615 (darwin_driver_init): Note a version-min when provided on the c/l.
5616 * config/darwin.h (%darwin_minversion): Remove.
5617 * config/i386/darwin.h: Likewise.
5618 * config/rs6000/darwin.h: Likewise.
5619 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5620 rather than an arbitrary constant.
5621
5622 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5623
5624 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5625 PPC, detect conflicts between -arch and multilib settings. Detect
5626 and warn about conflicts between multiple -arch definitions.
5627
5628 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5629
5630 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5631
5632 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5633
5634 * lra-constraints.c (add_next_usage_insn): Change argument type
5635 from rtx to rtx_insn *.
5636
5637 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
5638
5639 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5640 for Lakemont.
5641
5642 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
5643
5644 * config/tilepro/gen-mul-tables.cc: Adjust include files.
5645 * config/tilegx/mul-tables.c: Regenerate.
5646 * config/tilepro/mul-tables.c: Regenerate.
5647
5648 * config/tilegx/tilegx-c.c: Adjust include files.
5649 * config/tilegx/tilegx.c: Likewise.
5650 * config/tilepro/tilepro-c.c: Likewise.
5651 * config/tilepro/tilepro.c: Likewise.
5652 * config/aarch64/aarch64-builtins.c: Likewise.
5653 * config/aarch64/aarch64.c: Likewise.
5654 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5655 * config/alpha/alpha.c: Likewise.
5656 * config/arc/arc.c: Likewise.
5657 * config/arm/aarch-common.c: Likewise.
5658 * config/arm/arm-builtins.c: Likewise.
5659 * config/arm/arm-c.c: Likewise.
5660 * config/arm/arm.c: Likewise.
5661 * config/avr/avr-c.c: Likewise.
5662 * config/avr/avr-devices.c: Likewise.
5663 * config/avr/avr-log.c: Likewise.
5664 * config/avr/avr.c: Likewise.
5665 * config/bfin/bfin.c: Likewise.
5666 * config/c6x/c6x.c: Likewise.
5667 * config/cr16/cr16.c: Likewise.
5668 * config/cris/cris.c: Likewise.
5669 * config/darwin-c.c: Likewise.
5670 * config/darwin-driver.c: Likewise.
5671 * config/darwin.c: Likewise.
5672 * config/default-c.c: Likewise.
5673 * config/epiphany/epiphany.c: Likewise.
5674 * config/epiphany/mode-switch-use.c: Likewise.
5675 * config/epiphany/resolve-sw-modes.c: Likewise.
5676 * config/fr30/fr30.c: Likewise.
5677 * config/frv/frv.c: Likewise.
5678 * config/ft32/ft32.c: Likewise.
5679 * config/glibc-c.c: Likewise.
5680 * config/h8300/h8300.c: Likewise.
5681 * config/i386/host-cygwin.c: Likewise.
5682 * config/i386/host-mingw32.c: Likewise.
5683 * config/i386/i386-c.c: Likewise.
5684 * config/i386/i386.c: Likewise.
5685 * config/i386/msformat-c.c: Likewise.
5686 * config/i386/winnt-cxx.c: Likewise.
5687 * config/i386/winnt-stubs.c: Likewise.
5688 * config/i386/winnt.c: Likewise.
5689 * config/ia64/ia64-c.c: Likewise.
5690 * config/ia64/ia64.c: Likewise.
5691 * config/iq2000/iq2000.c: Likewise.
5692 * config/lm32/lm32.c: Likewise.
5693 * config/m32c/m32c-pragma.c: Likewise.
5694 * config/m32c/m32c.c: Likewise.
5695 * config/m32r/m32r.c: Likewise.
5696 * config/mcore/mcore.c: Likewise.
5697 * config/mep/mep-pragma.c: Likewise.
5698 * config/mep/mep.c: Likewise.
5699 * config/microblaze/microblaze-c.c: Likewise.
5700 * config/microblaze/microblaze.c: Likewise.
5701 * config/mips/mips-tables.opt
5702 * config/mips/mips.c: Likewise.
5703 * config/mmix/mmix.c: Likewise.
5704 * config/mn10300/mn10300.c: Likewise.
5705 * config/moxie/moxie.c: Likewise.
5706 * config/msp430/msp430-c.c: Likewise.
5707 * config/msp430/msp430.c: Likewise.
5708 * config/nds32/nds32-cost.c: Likewise.
5709 * config/nds32/nds32-fp-as-gp.c: Likewise.
5710 * config/nds32/nds32-intrinsic.c: Likewise.
5711 * config/nds32/nds32-isr.c: Likewise.
5712 * config/nds32/nds32-md-auxiliary.c: Likewise.
5713 * config/nds32/nds32-memory-manipulation.c: Likewise.
5714 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5715 * config/nds32/nds32-predicates.c: Likewise.
5716 * config/nds32/nds32.c: Likewise.
5717 * config/nios2/nios2.c: Likewise.
5718 * config/nvptx/mkoffload.c: Likewise.
5719 * config/nvptx/nvptx.c: Likewise.
5720 * config/pa/pa.c: Likewise.
5721 * config/pdp11/pdp11.c: Likewise.
5722 * config/rl78/rl78-c.c: Likewise.
5723 * config/rl78/rl78.c: Likewise.
5724 * config/rs6000/host-darwin.c: Likewise.
5725 * config/rs6000/rs6000-c.c: Likewise.
5726 * config/rs6000/rs6000-linux.c: Likewise.
5727 * config/rs6000/rs6000.c: Likewise.
5728 * config/rx/rx.c: Likewise.
5729 * config/s390/s390-c.c: Likewise.
5730 * config/s390/s390.c: Likewise.
5731 * config/sh/sh-c.c: Likewise.
5732 * config/sh/sh-mem.cc: Likewise.
5733 * config/sh/sh.c: Likewise.
5734 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5735 * config/sh/sh_treg_combine.cc: Likewise.
5736 * config/sol2-c.c: Likewise.
5737 * config/sol2-cxx.c: Likewise.
5738 * config/sol2-stubs.c: Likewise.
5739 * config/sol2.c: Likewise.
5740 * config/sparc/sparc-c.c: Likewise.
5741 * config/sparc/sparc.c: Likewise.
5742 * config/spu/spu-c.c: Likewise.
5743 * config/spu/spu.c: Likewise.
5744 * config/stormy16/stormy16.c: Likewise.
5745 * config/v850/v850-c.c: Likewise.
5746 * config/v850/v850.c: Likewise.
5747 * config/vax/vax.c: Likewise.
5748 * config/visium/visium.c: Likewise.
5749 * config/vms/vms-c.c: Likewise.
5750 * config/vms/vms.c: Likewise.
5751 * config/vxworks.c: Likewise.
5752 * config/winnt-c.c: Likewise.
5753 * config/xtensa/xtensa.c: Likewise.
5754
5755 2015-10-16 Christian Bruel <christian.bruel@st.com>
5756
5757 PR target/67745
5758 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5759 (FUNCTION_BOUNDARY_P): New macro:
5760 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5761 New hook.
5762 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5763 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5764 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5765 * function.c (allocate_struct_function): Call
5766 relayout_function hook.
5767 * passes.c (rest_of_decl_compilation): Likewise.
5768
5769 2015-10-16 Christian Bruel <christian.bruel@st.com>
5770
5771 PR target/67745
5772 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5773 * config/arm/arm.c (arm_option_override_internal): Call
5774 arm_override_options_after_change_1.
5775 (arm_override_options_after_change): New function.
5776 (arm_override_options_after_change_1): Likewise.
5777 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5778
5779 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5780
5781 Revert:
5782 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5783 empty constructors.
5784
5785 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
5786
5787 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5788 argument is an ADDR_EXPR.
5789
5790 2015-10-16 Richard Biener <rguenther@suse.de>
5791
5792 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5793 and get rid of force_gimple_operand_gsi.
5794 (gimple_fold_builtin_memory_chk): Likewise.
5795 (gimple_fold_builtin_stxcpy_chk): Likewise.
5796 (rewrite_to_defined_overflow): Likewise.
5797 (gimple_convert_to_ptrofftype): New function.
5798 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5799
5800 2015-10-16 Richard Biener <rguenther@suse.de>
5801
5802 * tree-nested.h (build_addr): Adjust prototype.
5803 * tree-nested.c (build_addr): Remove context argument and use
5804 mark_addressable.
5805 (get_static_chain): Adjust calls to build_addr.
5806 (convert_nl_goto_reference): Likewise.
5807 (convert_tramp_reference_op): Likewise.
5808 (finalize_nesting_tree_1): Likewise.
5809 * value-prof.c (gimple_ic): Likewise.
5810 * gimple-low.c (lower_builtin_setjmp): Likewise.
5811 * tree-parloops.c (take_address_of): Likewise.
5812 (create_call_for_reduction_1): Likewise.
5813 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5814 (gimple_gen_ic_func_profiler): Likewise.
5815
5816 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5817
5818 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5819 empty constructors.
5820
5821 2015-10-16 Michael Collison <michael.collison@linaro.org>
5822 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5823
5824 * match.pd ((x < y) && (x < z) -> x < min (y,z),
5825 (x > y) and (x > z) -> x > max (y,z))
5826
5827 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
5828 Szabolcs Nagy <szabolcs.nagy@arm.com>
5829
5830 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5831 (DYNAMIC_LINKER): Renamed to ...
5832 (GLIBC_DYNAMIC_LINKER): This.
5833 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5834
5835 2015-10-15 Marek Polacek <polacek@redhat.com>
5836
5837 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5838 gimple_call_builtin instead of is_gimple_call.
5839
5840 2015-10-15 Richard Biener <rguenther@suse.de>
5841
5842 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5843
5844 2015-10-15 Richard Biener <rguenther@suse.de>
5845
5846 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5847 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5848 * tree-vect-loop.c (get_initial_def_for_induction): Drop
5849 use of force_gimple_operand in favor of gimple_build.
5850 Use vect_get_new_ssa_name.
5851 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5852 (vectorizable_mask_load_store): Likewise.
5853 (vectorizable_call): Likewise.
5854 (vectorizable_store): Likewise.
5855 (vectorizable_load): Likewise.
5856 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5857
5858 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
5859
5860 PR tree-optimization/67945
5861 * tree-pass.h (PROP_gimple_opt_math): New property flag.
5862 * generic-match-head.c (canonicalize_math_p): New function.
5863 * gimple-match-head.c: Include tree-pass.h.
5864 (canonicalize_math_p): New function.
5865 * match.pd: Group math built-in rules into simplifications
5866 and canonicalizations. Guard the latter with canonicalize_math_p.
5867 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5868 PROP_gimple_opt_math property.
5869
5870 2015-10-15 Marek Polacek <polacek@redhat.com>
5871
5872 PR tree-optimization/67953
5873 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5874
5875 2015-10-15 Jiong Wang <jiong.wang@arm.com>
5876
5877 * config.gcc: Recognize "." in architecture base name for AArch64.
5878
5879 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5880
5881 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5882 ROUND_UP macro.
5883 * config/mips/mips.c (mips_setup_incoming_varargs): Use
5884 ROUND_DOWN to calculate off.
5885 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5886 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5887 rounded_size.
5888
5889 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
5890
5891 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5892
5893 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
5894 Torvald Riegel <triegel@redhat.com>
5895
5896 PR target/67281
5897 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5898 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5899 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5900 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5901 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
5902 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5903 trechkpt, treclaim, tsr, ttest): New define_expands.
5904 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5905 __TM_FENCE__ for htm.
5906 * doc/extend.texi: Update documentation for htm builtins.
5907
5908 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5909
5910 PR target/67967
5911 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5912 REG_CFA_EXPRESSION to aligned SSE stores.
5913
5914 2015-10-14 Jeff Law <law@redhat.com>
5915
5916 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5917 num_threaded_edges for successful FSM threads too.
5918
5919 2015-10-14 Richard Biener <rguenther@suse.de>
5920
5921 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5922 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
5923 (vect_get_vec_def_for_operand): Remove unused parameter.
5924 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5925 (vect_create_epilog_for_reduction): Likewise.
5926 (vectorizable_reduction): Likewise.
5927 (vectorizable_live_operation): Likewise.
5928 * tree-vect-patterns.c (type_conversion_p): Likewise.
5929 (vect_recog_vector_vector_shift_pattern): Likewise.
5930 (check_bool_pattern): Likewise.
5931 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5932 (vect_analyze_slp_cost_1): Likewise.
5933 * tree-vect-stmts.c (process_use): Likewise.
5934 (vect_get_vec_def_for_operand): Do not handle reductions.
5935 (vect_get_vec_defs): Adjust.
5936 (vectorizable_mask_load_store): Likewise.
5937 (vectorizable_call): Likewise.
5938 (vectorizable_simd_clone_call): Likewise.
5939 (vect_get_loop_based_defs): Likewise.
5940 (vectorizable_conversion): Likewise.
5941 (vectorizable_assignment): Likewise.
5942 (vectorizable_shift): Likewise.
5943 (vectorizable_operation): Likewise.
5944 (vectorizable_store): Likewise.
5945 (vectorizable_load): Likewise.
5946 (vect_is_simple_cond): Likewise.
5947 (vectorizable_condition): Likewise.
5948 (vect_is_simple_use): Remove unused parameters.
5949 (vect_is_simple_use_1): Adjust and rename.
5950
5951 2015-10-14 Richard Biener <rguenther@suse.de>
5952
5953 PR tree-optimization/67915
5954 * match.pd: Handle comparisons of addresses of STRING_CSTs.
5955 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5956 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5957 stmt folding in favor of GIMPLE one.
5958
5959 2015-10-14 Marek Polacek <polacek@redhat.com>
5960
5961 PR tree-optimization/67815
5962 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5963 (reassociate_bb): Call it.
5964
5965 2015-10-14 Richard Biener <rguenther@suse.de>
5966
5967 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5968 Reset info at start.
5969 (vect_analyze_group_access_1): Add debug print.
5970 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5971 (vect_compute_single_scalar_iteration_cost): ... to this.
5972 (vect_analyze_loop_2): Adjust.
5973 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5974 * tree-vectorizer.h: ... here.
5975 (add_stmt_info_to_vec): Remove.
5976 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5977
5978 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
5979
5980 * targhooks.c (default_target_option_pragma_parse): Do not warn if
5981 called on behalf of "#pragma GCC pop_options".
5982
5983 2015-10-14 Tom de Vries <tom@codesourcery.com>
5984
5985 * cfganal.c (verify_no_unreachable_blocks): New function.
5986 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5987 verify_no_unreachable_blocks.
5988 cfganal.h (verify_no_unreachable_blocks): Declare.
5989
5990 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
5991
5992 * common.opt: Add flag_checking.
5993 * system.h (CHECKING_P): Define.
5994
5995 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5996 Aldy Hernandez <aldyh@redhat.com>
5997 Ilya Verbin <ilya.verbin@intel.com>
5998
5999 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6000 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6001 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6002 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6003 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6004 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6005 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6006 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6007 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6008 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6009 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6010 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6011 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6012 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6013 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6014 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6015 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6016 (struct cgraph_simd_clone_arg): Adjust comment.
6017 * coretypes.h (struct gomp_ordered): New forward decl.
6018 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6019 set critical clauses to it.
6020 (gimple_build_omp_ordered): Return gomp_ordered * instead of
6021 gimple *. Add CLAUSES argument, set ordered clauses to it.
6022 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6023 GIMPLE_OMP_ORDERED.
6024 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6025 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6026 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
6027 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6028 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
6029 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6030 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
6031 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6032 renumber
6033 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6034 (gomp_critical): Add clauses field.
6035 (gomp_ordered): New struct.
6036 (is_a_helper <gomp_ordered *>::test): New inline.
6037 (gimple_build_omp_critical): Add CLAUSES argument.
6038 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
6039 instead of gimple *.
6040 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6041 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6042 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6043 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6044 inline functions.
6045 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6046 (dump_gimple_omp_target): Handle enter data and exit data.
6047 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6048 (dump_gimple_omp_critical): Print clauses.
6049 (dump_gimple_omp_ordered): New function.
6050 (dump_gimple_omp_task): Handle taskloop.
6051 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6052 GIMPLE_OMP_ORDERED.
6053 * gimple-walk.c (walk_gimple_op): Walk clauses on
6054 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6055 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6056 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6057 (struct gimplify_omp_ctx): Add loop_iter_var,
6058 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6059 and target_firstprivatize_array_bases fields.
6060 (delete_omp_context): Release loop_iter_var.
6061 (gimplify_bind_expr): Handle ORT_NONE.
6062 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6063 ORT_COMBINED_TARGET.
6064 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6065 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6066 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
6067 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
6068 ctx->target_map_scalars_firstprivate.
6069 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
6070 data sharing clauses. For data sharing clause with VLA decl
6071 on omp target/target data don't add firstprivate for the pointer.
6072 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6073 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6074 the addition of ORT_COMBINED_TARGET.
6075 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
6076 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
6077 pointers as zero length array sections and
6078 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6079 data sharing.
6080 (omp_check_private): Handle omp_member_access_dummy_var vars.
6081 (find_decl_expr): New function.
6082 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
6083 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6084 Handle OMP_CLAUSE_GANG separately. Handle
6085 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6086 clauses. Diagnose linear clause on combined
6087 distribute {, parallel for} simd construct, unless it is the loop
6088 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6089 Handle map clauses with COMPONENT_REF. Initialize
6090 ctx->target_map_scalars_firstprivate,
6091 ctx->target_firstprivatize_array_bases and
6092 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
6093 linear clause even to target region if combined. Remove
6094 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6095 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
6096 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6097 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
6098 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6099 For linear clause on worksharing loop combined with parallel add
6100 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
6101 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
6102 omp_member_access_dummy_var vars. Add lastprivate clause to outer
6103 taskloop if needed.
6104 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6105 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6106 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6107 GOMP_MAP_POINTER.
6108 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
6109 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6110 in target body. Handle removal of struct mapping if struct is not
6111 seen in target body. Remove GOMP_MAP_STRUCT map clause on
6112 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
6113 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
6114 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6115 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6116 clause appear together. Handle
6117 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
6118 clause if it has map-type-modifier always. Handle
6119 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6120 clauses.
6121 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6122 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6123 callers.
6124 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
6125 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
6126 iterators in doacross loops.
6127 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6128 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
6129 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
6130 for the addition of ORT_COMBINED_TARGET.
6131 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6132 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
6133 and OMP_TARGET_EXIT_DATA.
6134 (gimplify_omp_ordered): New function.
6135 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6136 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
6137 Gimplify clauses on OMP_CRITICAL.
6138 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6139 expand_GOMP_SIMD_ORDERED_END): New functions.
6140 * internal-fn.def (GOMP_SIMD_ORDERED_START,
6141 GOMP_SIMD_ORDERED_END): New internal functions.
6142 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6143 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6144 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6145 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6146 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6147 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6148 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6149 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6150 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6151 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6152 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6153 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6154 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6155 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6156 adjust type.
6157 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6158 GOMP_target_data_41, adjust type.
6159 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6160 GOMP_target_update_41, adjust type.
6161 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6162 field.
6163 (struct omp_for_data): Add ordered and simd_schedule fields.
6164 (omp_member_access_dummy_var, unshare_and_remap_1,
6165 unshare_and_remap, is_taskloop_ctx): New functions.
6166 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6167 (extract_omp_for_data): Handle taskloops and doacross loops
6168 and simd schedule modifier.
6169 (omp_adjust_chunk_size): New function.
6170 (get_ws_args_for): Use it.
6171 (lookup_sfield): Change first argument to splay_tree_key,
6172 add overload with first argument tree.
6173 (maybe_lookup_field): Likewise.
6174 (use_pointer_for_field): Handle omp_member_access_dummy_var.
6175 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6176 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6177 (build_outer_var_ref): Add LASTPRIVATE argument, handle
6178 taskloops and omp_member_access_dummy_var vars.
6179 (build_sender_ref): Change first argument to splay_tree_key,
6180 add overload with first argument tree.
6181 (install_var_field): For mask & 8 use &DECL_UID as key instead
6182 of the tree itself.
6183 (fixup_child_record_type): Const qualify *.omp_data_i.
6184 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6185 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6186 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6187 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6188 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6189 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6190 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6191 kinds.
6192 (add_taskreg_looptemp_clauses): New function.
6193 (scan_omp_parallel): Use it.
6194 (scan_omp_task): Likewise.
6195 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6196 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6197 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6198 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
6199 sandwiched taskloop constructs. Type check
6200 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
6201 region. Diagnose depend(source) or depend(sink:...) on
6202 target constructs or task/taskloop.
6203 (handle_simd_reference): Use get_name.
6204 (lower_rec_input_clauses): Likewise. Ignore all
6205 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6206 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
6207 before passing it to omp_clause_{default,copy}_ctor. Handle
6208 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
6209 lastprivate_firstprivate flag for linear that needs copyin and
6210 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6211 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6212 on taskloop lookup decl in outer context. Pass true to
6213 build_outer_var_ref lastprivate argument. Handle
6214 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6215 outside of outer taskloop for.
6216 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6217 OMP_CLAUSE_DECL.
6218 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6219 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
6220 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
6221 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
6222 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6223 abstract origin. Handle omp_member_access_dummy_var vars.
6224 (expand_parallel_call): Use expand_omp_build_assign.
6225 (expand_task_call): Handle taskloop construct expansion. Add
6226 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
6227 integers. Add priority argument to GOMP_task* calls. Or in
6228 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6229 GOMP_task call.
6230 (expand_omp_build_assign): Add prototype. Add AFTER
6231 argument, if true emit statements after *GSI_P and continue linking.
6232 (expand_omp_taskreg): Adjust expand_task_call caller.
6233 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6234 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6235 zero_iter2_bb and first_zero_iter2 arguments, handle computation
6236 of counts even for ordered loops.
6237 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6238 (expand_omp_ordered_source, expand_omp_ordered_sink,
6239 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6240 functions.
6241 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
6242 clauses on worksharing loop. Handle DOACROSS loop expansion.
6243 (expand_omp_for_static_nochunk): Handle linear clauses on
6244 worksharing loop. Adjust expand_omp_for_init_counts
6245 callers.
6246 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
6247 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
6248 expand_omp_for_init_counts callers.
6249 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6250 functions.
6251 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6252 Handle doacross loops.
6253 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6254 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
6255 GOMP_target_{41,update_41,enter_exit_data} libcalls.
6256 (expand_omp): Don't expand ordered depend constructs here, record
6257 ord_stmt instead for later expand_omp_for_generic.
6258 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6259 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6260 clause as stand-alone directive.
6261 (lower_omp_ordered_clauses): New function.
6262 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6263 don't lower anything.
6264 (lower_omp_for_lastprivate): Use last _looptemp_ clause
6265 on taskloop for comparison.
6266 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
6267 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6268 expansion for linear adjustments.
6269 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6270 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6271 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
6272 to tree * pointing to the stmt's clauses.
6273 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6274 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6275 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6276 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6277 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6278 clauses. Always use short kind and 8-bit align shift.
6279 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6280 (struct lower_omp_regimplify_operands_data): New type.
6281 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6282 New functions.
6283 (lower_omp_1): Use lower_omp_regimplify_operands instead of
6284 gimple_regimplify_operands.
6285 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6286 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6287 clause as stand-alone directive.
6288 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6289 (simd_clone_mangle): Mangle the various linear kinds
6290 per the new ABI.
6291 (simd_clone_adjust_argument_types): Handle
6292 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6293 (simd_clone_init_simd_arrays): Don't do anything for uval.
6294 (simd_clone_adjust): Handle
6295 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6296 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6297 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6298 * omp-low.h (omp_member_access_dummy_var): New prototype.
6299 * passes.def (pass_simduid_cleanup): Schedule another copy of the
6300 pass after all optimizations.
6301 * tree.c (omp_clause_code_name): Add entries for
6302 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6303 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6304 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
6305 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6306 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6307 OMP_CLAUSE_REDUCTION 5 arguments. Handle
6308 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6309 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6310 clauses.
6311 * tree-core.h (enum omp_clause_linear_kind): New.
6312 (struct tree_omp_clause): Change type of map_kind
6313 from unsigned char to unsigned int. Add subcode.if_modifier
6314 and subcode.linear_kind fields.
6315 (enum omp_clause_code): Add
6316 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6317 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6318 (OMP_CLAUSE_REDUCTION): Document
6319 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6320 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6321 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6322 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
6323 operand.
6324 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
6325 operand.
6326 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6327 codes.
6328 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6329 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6330 char.
6331 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6332 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6333 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6334 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6335 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6336 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6337 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6338 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6339 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6340 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6341 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6342 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6343 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6344 * tree-inline.c (remap_gimple_stmt): Handle clauses on
6345 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
6346 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6347 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6348 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6349 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6350 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6351 (convert_local_omp_clauses): Likewise.
6352 * tree-pretty-print.c (dump_omp_clause): Handle
6353 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6354 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6355 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6356 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6357 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
6358 GOMP_MAP_FORCE_DEALLOC. Handle
6359 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6360 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6361 and clauses on OMP_ORDERED and OMP_CRITICAL.
6362 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6363 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6364 (vectorize_loops): Adjust comments.
6365 (pass_simduid_cleanup::execute): Likewise.
6366 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6367 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6368 * wide-int.h (wi::gcd): New.
6369
6370 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6371
6372 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6373 (ix86_function_arg_advance): Ditto.
6374 (ix86_function_arg): Ditto.
6375 (ix86_gimplify_va_arg): Ditto.
6376 (ix86_class_max_nregs): Ditto.
6377 (inline_memory_move_cost): Ditto.
6378 (ix86_set_reg_reg_cost): Ditto.
6379 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6380
6381 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
6382
6383 PR middle-end/67912
6384 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6385
6386 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6387
6388 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6389 ROUND_UP macro and UNITS_PER_WORD * 2.
6390 * config/sparc/sparc.c (sparc_compute_frame_size):
6391 Use ROUND_UP and ROUND_DOWN macros where applicable.
6392 (function_arg_record_value, function_arg_record_value_1)
6393 (function_arg_record_value_1): Ditto.
6394 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6395 alignment to double-word.
6396 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6397 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6398 rounded_size.
6399
6400 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
6401
6402 * rtl.h (print_insn): Fix prototype.
6403
6404 2015-10-13 Tom de Vries <tom@codesourcery.com>
6405
6406 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6407 -1. Add assert that returned entry matches phi argument.
6408 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6409 free_stmt_vec_info_vec ...
6410 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
6411 with -1.
6412
6413 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
6414
6415 PR tree-optimization/67909, 67947
6416 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6417 really skip the inner loop.
6418
6419 2015-10-13 Jeff Law <law@redhat.com>
6420
6421 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6422 Allow single block jump threading paths.
6423
6424 2015-10-13 Tom de Vries <tom@codesourcery.com>
6425
6426 PR tree-optimization/67476
6427 * doc/invoke.texi (@item parloops-schedule): New item.
6428 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6429 * tree-parloops.c: Include params-enum.h.
6430 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6431
6432 2015-10-13 Tom de Vries <tom@codesourcery.com>
6433
6434 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6435 * params-enum.h: New file.
6436 * opts.c (handle_param): Handle case that param arg is a string.
6437 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6438 * params.c (find_param): New function, factored out of ...
6439 (set_param_value): ... here.
6440 (param_string_value_p): New function.
6441 * params.h (struct param_info): Add value_names field.
6442 (find_param, param_string_value_p): Declare.
6443
6444 2015-10-13 Tom de Vries <tom@codesourcery.com>
6445
6446 PR tree-optimization/67476
6447 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6448
6449 2015-10-13 Richard Biener <rguenther@suse.de>
6450
6451 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6452 the data dependence vector.
6453 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6454 (vect_peeling_hash_get_lowest_cost): Likewise.
6455 (vect_enhance_data_refs_alignment): Adjust.
6456 (struct _vect_peel_info, struct _vect_peel_extended_info,
6457 struct peel_info_hasher): Move from ...
6458 * tree-vectorizer.h: ... here.
6459 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6460 (LOOP_VINFO_PEELING_HTAB): Likewise.
6461 (struct _loop_vec_info): Remove min_profitable_iters and
6462 peeling_htab members.
6463 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6464 here.
6465 (destroy_loop_vec_info): Adjust.
6466 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6467 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6468 to estimate alias versioning cost.
6469 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6470
6471 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6472
6473 * real.h (real_isinteger): Declare.
6474 * real.c (real_isinteger): New function.
6475 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6476 if y is an even integer.
6477
6478 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6479
6480 revert:
6481 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6482 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6483 counts when these are more informative.
6484
6485 2015-10-12 Jeff Law <law@redhat.com>
6486
6487 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6488 (fsm_find_control_stmt_paths): Change name of first argument to
6489 more accurately relfect what it really is. Handle simplification
6490 of GIMPLE_COND after finding a thread path for NAME.
6491 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6492 nontrivial conditions to be handled by FSM threader.
6493 (thread_through_normal_block): Extract the name to looup via
6494 FSM threader from COND_EXPR.
6495
6496 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6497 restriction that traced SSA_NAME is a user variable.
6498
6499 2015-10-12 Tom de Vries <tom@codesourcery.com>
6500
6501 PR tree-optimization/67476
6502 * omp-low.c (expand_omp_for_generic): Add missing phis.
6503
6504 2015-10-12 Tom de Vries <tom@codesourcery.com>
6505
6506 PR tree-optimization/67476
6507 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6508
6509 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6510
6511 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6512 tables: add tbl3 and tbx4.
6513 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6514 (aarch64_tbx4v8qi): New.
6515 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6516 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6517 Rewrite using builtin functions.
6518 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6519
6520 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6521
6522 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6523 ROUND_UP macro.
6524 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6525 Use ROUND_UP and ROUND_DOWN macros where applicable.
6526 (rs6000_darwin64_record_arg_flush): Ditto.
6527 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6528 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6529 rounded_size.
6530
6531 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6532
6533 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6534 (AARCH64_ROUND_DOWN): Ditto.
6535 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6536
6537 2015-10-12 Richard Biener <rguenther@suse.de>
6538
6539 PR ipa/67783
6540 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6541 code that analyzes IVs on each stmt but in a cheaper way avoiding
6542 quadratic behavior.
6543
6544 2015-10-12 Nick Clifton <nickc@redhat.com>
6545
6546 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6547 msp430_mcu_data, add fields for ISA and hardware multiply
6548 support. Import latest data from the devices.csv file.
6549 (msp430_override_option): Use the data from the new array.
6550 (msp430_use_f5_series_hwmult): Likewise.
6551 (use_32bit_hwmult): Likewise.
6552 (msp430_no_hwmult): Likewise.
6553 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6554 MCU names.
6555 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6556 not recognised then no hardware multiply support is assumed and
6557 that only the MSP430 ISA is allowed.
6558
6559 2015-10-12 Richard Biener <rguenther@suse.de>
6560
6561 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6562 related code ...
6563 (vect_analyze_loop_2): ... here.
6564
6565 2015-10-11 Jason Merrill <jason@redhat.com>
6566
6567 PR c++/67557
6568 * expr.c (store_field): Call store_constructor directly when
6569 storing a CONSTRUCTOR into a target smaller than its type.
6570 Guard against unsafe bitwise copy.
6571
6572 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6573
6574 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6575 counts when these are more informative.
6576
6577 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6578
6579 * tree-profile.c (tree_profiling): Do not clear
6580 pure/const when not instrumenting.
6581 (pass tree_profile): Add dump of symtab.
6582
6583 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6584
6585 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6586 addresses.
6587 (fold_addr_of_array_ref_difference): Likewise.
6588
6589 2015-10-11 Jeff Law <law@redhat.com>
6590
6591 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6592 tree-ssa-threadbackward.c.
6593 (fsm_find_control_statement_thread_paths): Likewise.
6594 (thread_through_normal_block): Break out FSM bits and move them
6595 into a new function in tree-ssa-threadbackward.c. Call new function
6596 instead.
6597 Minimize header file usage.
6598 * tree-ssa-threadbackward.h: New file.
6599 * tree-ssa-threadbackward.c: Likewise.
6600 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6601
6602 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
6603
6604 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6605
6606 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
6607
6608 PR rtl-optimization/67864
6609 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6610 fallthrough edges for conditional jumps. Don't sort candidate
6611 edges if not optimizing for speed.
6612
6613 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6614
6615 * defaults.h (REVERSE_CONDITION): New default definition.
6616 * jump.c (reversed_comparison_code_parts): Adjust.
6617
6618 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6619
6620 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6621 check HARD_FRAME_POINTER_IS_ARG_POINTER.
6622
6623 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6624
6625 * defaults.h (FRAME_ADDR_RTX): New default definition.
6626 * builtins.c (expand_builtin_return_addr): Adjust.
6627
6628 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6629
6630 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6631 * builtins.c (expand_builtin_return_addr): Adjust.
6632
6633 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6634
6635 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6636 * builtins.c (expand_builtin_return_addr): Adjust.
6637 * doc/tm.texi: Likewise.
6638 * doc/tm.texi.in: Likewise.
6639 * except.c (expand_builtin_unwind_init): Likewise.
6640
6641 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6642
6643 * builtins.c (expand_builtin_return_addr): Adjust.
6644 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6645
6646 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6647
6648 * tree.c (type_with_interoperable_signedness): New.
6649 (gimple_canonical_types_compatible_p): Use it.
6650 * tree.h (type_with_interoperable_signedness): Declare
6651
6652 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6653
6654 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6655 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6656 when OEP_ADDRESS_OF is se.
6657
6658 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6659 Sebastian Pop <s.pop@samsung.com>
6660
6661 * graphite-dependences.c (scop_get_dependences): Add dump of the
6662 data dependence graph.
6663 * graphite-poly.c (print_isl_union_map): New.
6664 (debug_isl_union_map): New.
6665 * graphite-poly.h (print_isl_union_map): Declare.
6666 (debug_isl_union_map): Declare.
6667
6668 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6669 Sebastian Pop <s.pop@samsung.com>
6670
6671 * graphite-poly.c (print_iteration_domain): Remove verbosity.
6672 Remove OpenScop formatting.
6673 (print_iteration_domains): Same.
6674 (debug_iteration_domain): Same.
6675 (debug_iteration_domains): Same.
6676 (print_pdr): Same.
6677 (debug_pdr): Same.
6678 (dump_gbb_cases): Same.
6679 (dump_gbb_conditions): Same.
6680 (print_pdrs): Same.
6681 (debug_pdrs): Same.
6682 (print_pbb_body): Same.
6683 (print_pbb): Same.
6684 (print_scop_params): Same.
6685 (print_scop_context): Same.
6686 (print_scop): Same.
6687 (debug_pbb_domain): Same.
6688 (debug_pbb): Same.
6689 (debug_scop_context): Same.
6690 (debug_scop): Same.
6691 (debug_scop_params): Same.
6692 * graphite-poly.h: Same.
6693 * graphite.c (graphite_transform_loops): Same.
6694
6695 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6696
6697 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6698 call that isn't needed.
6699
6700 2015-10-09 Jeff Law <law@redhat.com>
6701
6702 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6703 rather than moving each name to the freelist individually.
6704
6705 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
6706
6707 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6708 * frame-header-opt.c: New file.
6709 * config/mips/mips-proto.h (mips_register_frame_header_opt):
6710 Add prototype.
6711 * config/mips/mips.c (mips_compute_frame_info): Check
6712 optimize_call_stack flag.
6713 (mips_option_override): Register new frame_header_opt pass.
6714 (mips_frame_info, mips_int_mask, mips_shadow_set,
6715 machine_function): Move these types to...
6716 * config/mips/mips.h: here.
6717 (machine_function): Add does_not_use_frame_header and
6718 optimize_call_stack fields.
6719 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6720 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6721 Document new flags.
6722 * config/mips/mips.opt (mframe-header-opt): Add new option.
6723
6724 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
6725
6726 * config/i386/i386.c
6727 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6728 ROUND_DOWN where applicable.
6729
6730 2015-10-09 Jeff Law <law@redhat.com>
6731
6732 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6733 correct statement.
6734
6735 2015-10-09 Renlin Li <renlin.li@arm.com>
6736
6737 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6738 operands[0] and operands[2].
6739 (neon_vtrn<mode>_insn): Likewise.
6740 (neon_vzip<mode>_insn): Likewise.
6741
6742 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
6743
6744 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6745 ((X & C2) << C1): Expand to...
6746 (X {&,^,|} C2 << C1): ...This.
6747 ((X & C2) >> C1): Expand to...
6748 (X {&,^,|} C2 >> C1): ...This.
6749
6750 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
6751
6752 PR target/67895
6753 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6754 Adjust embedded rounding/SAE specifier position.
6755 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6756 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6757 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6758 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6759 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6760 Likewise.
6761 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6762
6763 2015-10-09 Martin Jambor <mjambor@suse.cz>
6764
6765 tree-optimization/67794
6766 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6767 between types of state,ents but accept original definitions as a
6768 parameter.
6769 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6770 iterate over definitions.
6771
6772 2015-10-09 James Norris <jnorris@codesourcery.com>
6773
6774 * config/rs6000/rs6000.c (rs6000_offload_options): New.
6775 (TARGET_OFFLOAD_OPTIONS): New.
6776
6777 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
6778
6779 PR middle-end/67891
6780 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6781
6782 PR middle-end/67766
6783 * function.c (expand_function_end): Move return value
6784 promotion past the handling of PARALLELs and CONCATs.
6785
6786 PR rtl-optimization/67828
6787 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6788 (tree_may_unswitch_on): Don't unswitch on expressions
6789 involving undefined values.
6790
6791 2015-10-09 Richard Biener <rguenther@suse.de>
6792
6793 * genmatch.c (print_operand): Fix formatting.
6794 (dt_node::append_simplify): Warn for multiple simplifiers
6795 that match the same pattern.
6796 * match.pd (log (exp @0)): Remove duplicates.
6797
6798 2015-10-09 Richard Biener <rguenth@suse.de>
6799
6800 PR target/67366
6801 * gimple-fold.c (optabs-query.h): Include
6802 (gimple_fold_builtin_memory_op): Allow unaligned stores
6803 when movmisalign_optabs are available.
6804
6805 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6806
6807 PR target/67366
6808 * config/arm/arm.md (movmisalign<mode>): New.
6809 * config/arm/iterators.md (HSI): New.
6810
6811 2015-10-09 Richard Biener <rguenther@suse.de>
6812
6813 PR tree-optimization/67891
6814 * gimple-match.h (gimple_simplified_result_is_gimple_val):
6815 New helper.
6816 (gimple_resimplify1): Declare.
6817 (gimple_resimplify2): Likewise.
6818 (gimple_resimplify3): Likewise.
6819 * gimple-match-head.c (gimple_resimplify1): Export.
6820 (gimple_resimplify2): Likewise.
6821 (gimple_resimplify3): Likewise.
6822 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6823 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6824 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6825 to avoid creating stmts without VN info.
6826
6827 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
6828
6829 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6830 of availability.
6831
6832 2015-10-08 Jeff Law <law@redhat.com>
6833
6834 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6835 and release_ssa_name in two places.
6836 (gimple_stringop_fixed_value): Similarly.
6837
6838 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6839 release_defs.
6840
6841 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6842 unlink_stmt_vdef and release_ssa_name_fn.
6843
6844 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6845 release_defs.
6846
6847 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
6848
6849 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6850 SSE register save area to 16 bytes only if the incoming stack
6851 boundary is no less than 16 bytes.
6852
6853 2015-10-08 Jeff Law <law@redhat.com>
6854
6855 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6856 release_ssa_name. Fix typo in comment.
6857
6858 2015-10-08 Nathan Sidwell <nathan@acm.org>
6859
6860 * config/nvptx/nvptx.h (struct machine_function): Add comment.
6861 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6862 may return pointer as well as in memory.
6863 (nvptx_output_return): Likewise.
6864
6865 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6866
6867 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6868 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6869 * match.pd: Add rules previously handled by fold_builtin_sqrt
6870 and fold_builtin_cbrt.
6871
6872 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6873
6874 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6875 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6876 * fold-const.h (tree_unary_nonnegative_warnv_p)
6877 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6878 (tree_expr_nonnegative_warnv_p): Add depth parameters.
6879 * fold-const.c: Include gimple-fold.h and params.h.
6880 (tree_ssa_name_nonnegative_warnv_p): New function.
6881 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6882 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6883 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6884 Add a depth parameter and increment it for recursive calls to
6885 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
6886 to handle SSA names.
6887 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6888 (gimple_stmt_nonnegative_warnv_p): Declare.
6889 * tree-vrp.c (remove_range_assertions): Remove assert that condition
6890 cannot be proven false.
6891 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6892 (gimple_stmt_nonnegative_warnv_p): Move to...
6893 * gimple-fold.c: ...here. Add depth parameters and pass them
6894 down to the tree routines. Accept statements that aren't
6895 assignments or calls but just return false for them.
6896 (gimple_val_nonnegative_real_p): Delete.
6897 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6898 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6899 Check HONOR_NANs first.
6900
6901 2015-10-08 Martin Jambor <mjambor@suse.cz>
6902
6903 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
6904 unnecessary MIN.
6905
6906 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6907
6908 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6909 in the tail of outer-loop.
6910
6911 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
6912
6913 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6914 return UI_NONE.
6915
6916 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6917
6918 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6919 "cfghooks.h", add prototypes for introduced new functions.
6920 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6921 checks on ability of loop unswitching to tree_unswitch_single_loop;
6922 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6923 on innermost loop check.
6924 (tree_unswitch_single_loop): Add all required checks on ability of
6925 loop unswitching under zero recursive level guard.
6926 (tree_unswitch_outer_loop): New function.
6927 (find_loop_guard): Likewise.
6928 (empty_bb_without_guard_p): Likewise.
6929 (used_outside_loop_p): Likewise.
6930 (get_vop_from_header): Likewise.
6931 (hoist_guard): Likewise.
6932 (check_exit_phi): Likewise.
6933
6934 2015-10-08 Marek Polacek <polacek@redhat.com>
6935
6936 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6937 ops element.
6938
6939 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6940
6941 PR c/65345
6942 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6943 create_tmp_var_raw instead of create_tmp_var.
6944
6945 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
6946
6947 * expr.c (store_expr_with_bounds): Handle aggregate moves from
6948 BLKmode.
6949 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6950 to define gimple type system; compare aggregates only by size.
6951
6952 2015-10-07 Jeff Law <law@redhat.com>
6953
6954 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6955 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6956 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
6957 unnecessarily.
6958
6959 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6960 Sebastian Pop <s.pop@samsung.com>
6961
6962 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6963 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6964 (generate_isl_schedule): Same.
6965 * graphite-optimize-isl.c (scop_get_domains): Same.
6966 (apply_schedule_map_to_scop): Same.
6967 * graphite-poly.c (print_iteration_domains): Same.
6968 (remove_gbbs_in_scop): Same.
6969 (new_scop): Same.
6970 (free_scop): Same.
6971 (print_scop): Same.
6972 * graphite-poly.h (struct scop): Rename bbs to pbbs.
6973 (SCOP_BBS): Remove.
6974 * graphite-scop-detection.c (compare_bb_depths): Remove.
6975 (graphite_sort_dominated_info): Remove.
6976 (try_generate_gimple_bb): Move out of scop_detection.
6977 (all_non_dominated_preds_marked_p): Remove.
6978 (build_scop_bbs_1): Remove.
6979 (build_scop_bbs): Remove.
6980 (nb_pbbs_in_loops): Do not use SCOP_BBS.
6981 (find_scop_parameters): Same.
6982 (sese_dom_walker): Rename gather_bbs.
6983 (before_dom_children): Call try_generate_gimple_bb and collect gbb
6984 and pbb.
6985 (build_scops): Call gather_bbs.
6986 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6987 (add_conditions_to_constraints): Same.
6988 (build_scop_iteration_domain): Same.
6989 (build_scop_drs): Same.
6990 (new_pbb_from_pbb): Same.
6991 * sese.c (new_sese_info): Create bbs.
6992 * sese.h (struct sese_info_t): Add bbs.
6993
6994 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
6995
6996 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6997 encoding in 64-bit mode.
6998
6999 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
7000
7001 PR target/66697
7002 * config/i386/i386.c (ix86_option_override_internal): Always use
7003 8-byte minimum stack boundary in 64-bit mode.
7004 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7005 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7006 Add a REG_CFA_EXPRESSION note if needed.
7007 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7008 (ix86_handle_force_align_arg_pointer_attribute): New.
7009 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7010 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7011 with ix86_handle_force_align_arg_pointer_attribute.
7012 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7013
7014 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7015 Sebastian Pop <s.pop@samsung.com>
7016
7017 * graphite-scop-detection.c (parameter_index_in_region): Remove
7018 use of SESE_ADD_PARAMS.
7019 (find_scop_parameters): Same.
7020 * sese.c (new_sese_info): Same.
7021 * sese.h (struct sese_info_t): Remove add_params.
7022 (SESE_ADD_PARAMS): Remove.
7023
7024 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7025 Sebastian Pop <s.pop@samsung.com>
7026
7027 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7028 an sese_info_p.
7029 (copy_def): Same.
7030 (copy_internal_parameters): Same.
7031 (translate_isl_ast_to_gimple): Use an sese_l.
7032 (build_iv_mapping): Same.
7033 * graphite-poly.c (new_sese): Rename new_sese_info.
7034 (free_sese): Rename free_sese_info.
7035 * graphite-poly.h (struct scop): Use an sese_info_p.
7036 (scop_set_region): Same.
7037 * graphite-scop-detection.c (struct sese_l): Moved...
7038 (get_entry_bb): Moved...
7039 (get_exit_bb): Moved...
7040 (parameter_index_in_region_1): Use an sese_info_p.
7041 (parameter_index_in_region): Same.
7042 (scan_tree_for_params): Same.
7043 (find_params_in_bb): Same.
7044 (sese_dom_walker): Use an sese_l.
7045 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7046 (reduction_phi_p): Same.
7047 (parameter_index_in_region_1): Use an sese_info_p.
7048 (propagate_expr_outside_region): Use an sese_l.
7049 * graphite.c: Replace uses of SCOP_REGION.
7050 * sese.c (sese_record_loop): Use an sese_info_p.
7051 (build_sese_loop_nests): Same.
7052 (sese_build_liveouts_use): Same.
7053 (sese_build_liveouts_bb): Same.
7054 (sese_build_liveouts_bb): Same.
7055 (sese_bad_liveouts_use): Same.
7056 (sese_reset_debug_liveouts_bb): Same.
7057 (sese_build_liveouts): Same.
7058 (new_sese): Renamed new_sese_info.
7059 (free_sese): Renamed free_sese_info.
7060 (set_rename): Use an sese_info_p.
7061 (graphite_copy_stmts_from_block): Same.
7062 (copy_bb_and_scalar_dependences): Same.
7063 (outermost_loop_in_sese_1): Use an sese_l.
7064 (outermost_loop_in_sese): Same.
7065 (if_region_set_false_region): Use an sese_info_p.
7066 (move_sese_in_condition): Same.
7067 (scalar_evolution_in_region): Use an sese_l.
7068 * sese.h (struct sese_l): ... here.
7069 (SESE_ENTRY): Remove.
7070 (SESE_ENTRY_BB): Remove.
7071 (SESE_EXIT): Remove.
7072 (SESE_EXIT_BB): Remove.
7073 (sese_contains_loop): Use an sese_info_p.
7074 (sese_nb_params): Same.
7075 (bb_in_sese_p): Use an sese_l.
7076 (stmt_in_sese_p): Same.
7077 (defined_in_sese_p): Same.
7078 (loop_in_sese_p): Same.
7079 (sese_loop_depth): Same.
7080 (struct ifsese_s): Use an sese_info_p.
7081 (gbb_loop_at_index): Use an sese_l.
7082 (nb_common_loops): Same.
7083 (scev_analyzable_p): Same.
7084
7085 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7086
7087 * config/i386/i386.c (ix86_conditional_register_usage): Use
7088 CALL_USED_REGISTERS_MASK.
7089 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7090
7091 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7092
7093 PR bootstrap/67385
7094 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7095 * configure: Regenerated.
7096
7097 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7098
7099 PR target/67850
7100 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7101 (ix86_set_current_function): This.
7102 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7103
7104 2015-10-07 Richard Biener <rguenther@suse.de>
7105
7106 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7107 (vinfo_for_stmt): Adjust.
7108 (set_vinfo_for_stmt): Likewise.
7109 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7110 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7111 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7112 of inner loop.
7113 (vect_analyze_loop_1): Remove.
7114 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7115 inner loop when vectorizing an outer loop by splitting out from ...
7116 (vect_analyze_loop_form): ... here.
7117
7118 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7119
7120 PR c/65345
7121 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7122 Use create_tmp_var_raw instead of create_tmp_var.
7123
7124 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
7125
7126 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7127 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7128 * real.c (CACHED_FRACTION): New helper macro.
7129 (dconst_third_ptr): Use it.
7130 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7131 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7132 dconst_sixth.
7133 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7134
7135 2015-10-06 Jeff Law <law@redhat.com>
7136
7137 PR tree-optimization/67816
7138 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7139 from remove_jump_threads_starting_at. Accept an edge rather than
7140 a basic block.
7141 * tree-ssa-threadupdate.c (removed_edges): New hash table.
7142 (remove_jump_threads_including): Note edges that get removed from
7143 the CFG for later pruning of jump threading paths including them.
7144 (thread_through_all_blocks): Remove paths which include edges that
7145 have been removed.
7146 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7147 on each outgoing edges when optimizing away a control statement.
7148
7149 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7150
7151 * reorg.c (emit_delay_sequence): Store list of delay slot insns
7152 in a vector instead of rtx_insn_list.
7153 (add_to_delay_list): Likewise.
7154 (delete_from_delay_slot): Likewise.
7155 (optimize_skip): Likewise.
7156 (redirect_with_delay_list_safe_p): Likewise.
7157 (check_annul_list_true_false): Likewise.
7158 (steal_delay_list_from_target): Likewise.
7159 (steal_delay_list_from_fallthrough): Likewise.
7160 (redundant_insn): Likewise.
7161 (fill_simple_delay_slots): Likewise.
7162 (fill_slots_from_thread): Likewise.
7163 (fill_eager_delay_slots): Likewise.
7164 (relax_delay_slots): Likewise.
7165
7166 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
7167
7168 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7169 For -mgpopt=local, also exclude unintialized common symbols.
7170 * doc/invoke.texi (Nios II Options): Document the change.
7171
7172 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7173
7174 * config/aarch64/iterators.md (vwcore): Add missing cases for
7175 V4HF/V8HF modes.
7176
7177 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7178 Sebastian Pop <s.pop@samsung.com>
7179
7180 * graphite-poly.c (new_scop): Initialize drs.
7181 * graphite-poly.h (struct dr_info): New.
7182 (struct scop): Add drs.
7183 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7184 (pdr_add_memory_accesses): Same.
7185 (build_poly_dr): Same.
7186 (build_alias_set): Same.
7187 (build_scop_drs): Same.
7188 (build_pbb_drs): Remove.
7189 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7190 * tree-data-ref.h (data_reference): Remove alias_set.
7191
7192 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7193 Sebastian Pop <s.pop@samsung.com>
7194
7195 * graphite-poly.c (free_data_refs_aux): Remove.
7196 (free_gimple_poly_bb): Do not call free_data_refs_aux.
7197 * graphite-poly.h (struct base_alias_pair): Remove.
7198 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7199 base_alias_pair and dr->aux.
7200 (build_alias_set): Same.
7201 * tree-data-ref.c (create_data_ref): Initialize alias_set.
7202 * tree-data-ref.h (data_reference): Add alias_set.
7203
7204 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7205 Sebastian Pop <s.pop@samsung.com>
7206
7207 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7208 Do not set PDR_BASE_OBJECT_SET.
7209 * graphite-poly.h (poly_dr): Same.
7210 (PDR_BASE_OBJECT_SET): Remove.
7211 (new_poly_dr): Update decl.
7212 * graphite-sese-to-poly.c (build_poly_dr): Update call to
7213 new_poly_dr.
7214 (write_alias_graph_to_ascii_dimacs): Remove.
7215 (write_alias_graph_to_ascii_dot): Remove.
7216 (write_alias_graph_to_ascii_ecc): Remove.
7217 (dr_same_base_object_p): Remove.
7218 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
7219 code.
7220 (build_base_obj_set_for_drs): Remove.
7221 (dump_alias_graphs): Remove.
7222 (build_scop_drs): Remove dead code.
7223
7224 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7225 Peter Bergner <bergner@vnet.ibm.com>
7226
7227 PR target/67808
7228 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7229 allow registers, but provide insns for the combiner to create for
7230 loads from memory. Separate VSX code from non-VSX code. For
7231 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7232 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7233 so that registers come before memory operations. Drop support from
7234 converting DFmode to TFmode, if the DFmode value is in a GPR
7235 register.
7236 (extenddftf2_fprs): Likewise.
7237 (extenddftf2_internal): Likewise.
7238 (extenddftf2_vsx): Likewise.
7239 (extendsftf2): In the expander, only allow registers, but provide
7240 insns for the combiner to create for stores and loads.
7241
7242 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7243
7244 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7245 from the decl parameter.
7246
7247 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
7248
7249 PR 67861
7250 * gimple-fold.c (gimple_fold_builtin): Add break after
7251 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7252
7253 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
7254
7255 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7256 to scop->isl_context.
7257
7258 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7259
7260 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7261 (output_probe_stack_range): Rotate the loop and simplify.
7262 (thumb1_expand_prologue): Tweak sorry message.
7263 * config/arm/arm.md (probe_stack): Use bare string.
7264
7265 2015-10-06 Nick Clifton <nickc@redhat.com>
7266
7267 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7268
7269 2015-10-06 Nick Clifton <nickc@redhat.com>
7270
7271 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7272 (ATTR_PERSIST): New constant.
7273 (msp430_data_attr): New function - verifies an attribute that only
7274 applies to variables.
7275 (msp430_attributes): Add noinit and persistent attributes.
7276 (noinit_section): New variable.
7277 (presis_section): New variable.
7278 (TARGET_ASM_INIT_SECTIONS): Define.
7279 (msp430_init_sections): New function - initialises the noinit and
7280 persist section variables.
7281 (msp430_select_section): Add support for noinit and persist
7282 attributes.
7283 (msp430_section_type_flags): Likewise.
7284 * doc/extend.texi: Document the reent, critical, wakeup, noinit
7285 and persistent attributes.
7286
7287 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7288 Sebastian Pop <s.pop@samsung.com>
7289
7290 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7291 (no_violations): Remove.
7292 (subtract_commutative_associative_deps): Remove.
7293 (compute_deps): Do not call subtract_commutative_associative_deps.
7294 (transform_is_safe): Remove.
7295 (graphite_legal_transform): Remove.
7296 * graphite-poly.h (graphite_legal_transform): Remove.
7297
7298 2015-10-05 Aditya Kumar <hiraditya@msn.com>
7299
7300 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7301 which are in this region are passed so gcc_assert and remove redundant
7302 computation.
7303 * sese.c (sese_build_liveouts): Pass only those bbs which are not
7304 in region.
7305 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7306 gcc_assert on that and remove unnecessary computation.
7307 (sese_build_liveouts_use): Same.
7308
7309 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7310
7311 * graphite-dependences.c (scop_get_reads): Renamed scop->context
7312 to scop->param_context.
7313 (scop_get_must_writes): Same.
7314 (scop_get_may_writes): Same.
7315 (scop_get_original_schedule): Same.
7316 (scop_get_transformed_schedule): Same.
7317 (subtract_commutative_associative_deps): Same.
7318 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7319 (generate_isl_context): Same.
7320 (generate_isl_schedule): Same.
7321 (scop_to_isl_ast): Same.
7322 (graphite_regenerate_ast_isl): Same.
7323 * graphite-optimize-isl.c (scop_get_domains): Same.
7324 (optimize_isl): Renamed scop->context to scop->param_context.
7325 * graphite-poly.c (new_poly_bb): Change the type of argument to
7326 gimple_poly_bb_p.
7327 (new_scop): Renamed scop->context to scop->param_context.
7328 (free_scop): Same.
7329 (print_scop_context): Same.
7330 * graphite-poly.h (new_poly_dr): Change the type of argument from
7331 void* to data_reference_p.
7332 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7333 (new_poly_bb): Change the type of argument from void* to
7334 gimple_poly_bb_p.
7335 (pbb_set_black_box): Same.
7336 (struct scop): Rename context to param_context, ctx to isl_context.
7337 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7338 Move declarations closer to assignment.
7339 (find_params_in_bb): Same.
7340 (find_scop_parameters): Same.
7341 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7342 Global to be used for statement IDs.
7343 (isl_id_for_pbb): Use ssa_name_version_typesize.
7344 (simple_copy_phi_p): Move declarations closer to assignment.
7345 (build_pbb_scattering_polyhedrons): Same.
7346 (build_scop_scattering): Same.
7347 (isl_id_for_ssa_name): Same.
7348 (extract_affine_name): Same.
7349 (extract_affine_int): Same.
7350 (extract_affine): Same.
7351 (set_scop_parameter_dim): Use renamed member.
7352 (build_loop_iteration_domains): Same.
7353 (add_param_constraints): Same.
7354 (build_scop_iteration_domain): Same.
7355 (pdr_add_data_dimensions): Same.
7356 (build_poly_dr): Same.
7357 (build_scop_drs): Move declarations closer to assignment.
7358 (analyze_drs_in_stmts): Same.
7359 (insert_out_of_ssa_copy): Same.
7360 (insert_out_of_ssa_copy_on_edge): Same.
7361 (propagate_expr_outside_region): Same.
7362 (rewrite_phi_out_of_ssa): Same.
7363 (rewrite_degenerate_phi): Same.
7364 (rewrite_reductions_out_of_ssa): Same.
7365 (rewrite_cross_bb_scalar_dependence): Same.
7366 (handle_scalar_deps_crossing_scop_limits): Same.
7367 (rewrite_cross_bb_scalar_deps): Same.
7368 * graphite.c (graphite_transform_loops): Use renamed member.
7369
7370 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
7371
7372 PR c/65345
7373 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7374 create_tmp_var_raw instead of create_tmp_var.
7375
7376 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7377
7378 PR c/65345
7379 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7380 Use create_tmp_var_raw instead of create_tmp_var.
7381
7382 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
7383
7384 PR target/67849
7385 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7386 split for upper-bank registers when target does not support
7387 AVX512VL.
7388 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7389 split when target does not support AVX512VL.
7390
7391 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
7392
7393 PR c/65345
7394 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7395 Adjust to use create_tmp_var_raw instead of create_tmp_var.
7396
7397 2015-10-06 Nick Clifton <nickc@redhat.com>
7398
7399 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7400 multiplication.
7401
7402 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7403
7404 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7405 (case ${target}): Add znver1.
7406 * config/i386/cpuid.h(bit_CLZERO): Define.
7407 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7408 -march=native recognize znver1 processors.
7409 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7410 znver1, clzero def_and_undef.
7411 * config/i386/i386.c (struct processor_costs znver1_cost): New.
7412 (m_znver1): New definition.
7413 (m_AMD_MULTIPLE): Includes m_znver1.
7414 (processor_target_table): Add znver1 entry.
7415 (ix86_target_string) : Add clzero entry.
7416 (static const char *const cpu_names): Add znver1 entry.
7417 (ix86_option_override_internal): Add znver1 instruction sets.
7418 (PTA_CLZERO) : New definition.
7419 (ix86_option_override_internal): Handle new clzerooption.
7420 (ix86_issue_rate): Add znver1.
7421 (ix86_adjust_cost): Add znver1.
7422 (ia32_multipass_dfa_lookahead): Add znver1.
7423 (has_dispatch): Add znver1.
7424 * config/i386/i386.h (TARGET_znver1): New definition.
7425 (TARGET_CLZERO): Define.
7426 (TARGET_CLZERO_P): Define.
7427 (struct ix86_size_cost): Add TARGET_ZNVER1.
7428 (enum processor_type): Add PROCESSOR_znver1.
7429 * config/i386/i386.md (define_attr "cpu"): Add znver1.
7430 (set_attr znver1_decode): New definitions for znver1.
7431 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7432 (mclzero): New.
7433 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7434 for znver1.
7435 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7436 * config/i386/x86-tune.def: Add znver1 tunings.
7437 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7438 * doc/invoke.texi: Add details about znver1
7439
7440 2015-10-06 Richard Biener <rguenther@suse.de>
7441
7442 PR tree-optimization/67859
7443 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7444 discard not inserted stmts.
7445
7446 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7447
7448 * doc/extend.texi (Template Instantiation): Reorder options and
7449 de-emphasize -frepo.
7450 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7451 example instead of -frepo.
7452
7453 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7454
7455 PR c/65345
7456 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7457 use create_tmp_var_raw rather than create_tmp_var.
7458
7459 2015-10-06 Richard Biener <rguenther@suse.de>
7460
7461 * tree-vectorizer.h (vec_info): New base class for...
7462 (_loop_vec_info): ... this and ...
7463 (_bb_vec_info): ... this.
7464 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7465 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7466 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7467 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7468 vect_destroy_datarefs): Adjust interface to take a vec_info *
7469 rather than both a loop_vec_info and a bb_vec_info argument.
7470 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7471 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7472 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7473 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7474 accordingly.
7475 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7476 (destroy_loop_vec_info, vect_analyze_loop_2,
7477 vect_is_simple_reduction_1, get_initial_def_for_induction,
7478 vect_create_epilog_for_reduction, vectorizable_reduction,
7479 vectorizable_live_operation, vect_transform_loop): Adjust.
7480 * tree-vect-patterns.c (type_conversion_p,
7481 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7482 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7483 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7484 check_bool_pattern, vect_recog_bool_pattern,
7485 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7486 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7487 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7488 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7489 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7490 (new_bb_vec_info): Initialize base classs.
7491 * tree-vect-stmts.c (record_stmt_cost, process_use,
7492 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7493 vectorizable_mask_load_store, vectorizable_call,
7494 vectorizable_simd_clone_call, vectorizable_conversion,
7495 vectorizable_assignment, vectorizable_shift,
7496 vectorizable_operation, vectorizable_store,
7497 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7498 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7499 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7500
7501 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7502
7503 PR c/65345
7504 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7505 create_tmp_var_raw rather than create_tmp_var.
7506
7507 2015-10-05 Marek Polacek <polacek@redhat.com>
7508
7509 * tree-ssa-loop-im.c
7510 (move_computations_dom_walker::before_dom_children): Don't set
7511 SSA_NAME_ANTI_RANGE_P.
7512 * tree-ssa-phiopt.c (value_replacement): Likewise.
7513
7514 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7515 Sebastian Pop <s.pop@samsung.com>
7516
7517 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7518
7519 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7520 Sebastian Pop <s.pop@samsung.com>
7521
7522 * graphite-poly.c (new_gimple_poly_bb): ... here.
7523 (free_data_refs_aux): ... here.
7524 (free_gimple_poly_bb): ... here.
7525 (remove_gbbs_in_scop): ... here.
7526 (new_scop): Call new_sese.
7527 (free_scop): Call remove_gbbs_in_scop and free_sese.
7528 * graphite-poly.h (base_alias_pair): ... here.
7529 (new_gimple_poly_bb): Declare.
7530 (free_gimple_poly_bb): Declare.
7531 * graphite-scop-detection.c (parameter_index_in_region_1):
7532 (parameter_index_in_region): ... here.
7533 (scan_tree_for_params): ... here.
7534 (find_params_in_bb): ... here.
7535 (find_scop_parameters): ... here.
7536 (build_scops): Call find_scop_parameters.
7537 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7538 (free_scops): Move...
7539 (single_pred_cond_non_loop_exit): Move...
7540 (sese_dom_walker::before_dom_children): Move...
7541 (sese_dom_walker::after_dom_children): Move...
7542 (build_poly_scop): Move...
7543 * graphite-sese-to-poly.h (base_alias_pair): Move...
7544 * graphite.c (free_scops): ... here.
7545
7546 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7547 Sebastian Pop <s.pop@samsung.com>
7548
7549 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7550 (trivially_empty_bb_p): Move...
7551 (same_close_phi_node): Move...
7552 (new_gimple_poly_bb): Move...
7553 (compare_bb_depths): Move...
7554 (graphite_sort_dominated_info): Move...
7555 (remove_duplicate_close_phi): Move...
7556 (make_close_phi_nodes_unique): Move...
7557 (canonicalize_loop_closed_ssa): Move...
7558 (canonicalize_loop_closed_ssa_form): Move...
7559 (loop_ivs_can_be_represented): Move...
7560 (single_pred_cond_non_loop_exit): Move...
7561 (graphite_can_represent_init): Move...
7562 (graphite_can_represent_scev): Move...
7563 (stmt_has_simple_data_refs_p): Move...
7564 (stmt_has_side_effects): Move...
7565 (graphite_can_represent_stmt): Move...
7566 (scop_detection): ... here.
7567 (sese_dom_walker): ... and here.
7568 (build_scops): Call all moved functions.
7569 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7570 (all_non_dominated_preds_marked_p): Move...
7571 (build_scop_bbs_1): Move...
7572 (build_scop_bbs): Move...
7573 (set_scop_parameter_dim): Move...
7574 (nb_pbbs_in_loops): Move...
7575 (build_poly_scop): Do not call all the moved functions.
7576
7577 2015-10-05 Martin Jambor <mjambor@suse.cz>
7578 Jan Hubicka <hubicka@ucw.cz>
7579
7580 * ipa-cp.c (ipcp_alignment_lattice): New type.
7581 (ipcp_param_lattices): Use the above to represent alignment.
7582 (ipcp_alignment_lattice::print): New function.
7583 (print_all_lattices): Use it to print alignment information.
7584 (ipcp_alignment_lattice::top_p): New function.
7585 (ipcp_alignment_lattice::bottom_p): Likewise.
7586 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7587 (ipcp_alignment_lattice::meet_with_1): Likewise.
7588 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7589 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7590 (initialize_node_lattices): Likewise.
7591 (propagate_alignment_accross_jump_function): Work with the new class
7592 for alignment lattices.
7593 (propagate_constants_accross_call): Pass only the alignment lattice to
7594 propagate_alignment_accross_jump_function.
7595 (ipcp_store_alignment_results): Work with the new class for alignment
7596 lattices.
7597
7598 2015-10-05 Marek Polacek <polacek@redhat.com>
7599
7600 PR tree-optimization/67821
7601 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7602
7603 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
7604
7605 PR other/65021
7606 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7607 function to...
7608 (mkoffload_cleanup): ... this. Adjust all users.
7609 (maybe_unlink): Look at save_temps and verbose flags instead of
7610 debug flag.
7611 (main): Parse "-save-temps" flag.
7612 (generate_target_descr_file, generate_target_offloadend_file)
7613 (generate_host_descr_file, prepare_target_image): Pass it on.
7614 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7615 (mkoffload_cleanup): New function.
7616 (maybe_unlink): Look at save_temps and verbose flags instead of
7617 debug flag.
7618 (main): Instead of calling utils_cleanup, register atexit handler
7619 for mkoffload_cleanup.
7620 (main): Parse "-save-temps" flag.
7621 (compile_native, main): Pass it on.
7622 * lto-wrapper.c (compile_offload_image): Likewise.
7623
7624 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7625
7626 * gimple.h (gimple_op_ptr): Require a non const gimple *.
7627 (gimple_assign_lhs_ptr): Likewise.
7628 (gimple_assign_rhs1_ptr): Likewise.
7629 (gimple_assign_rhs2_ptr): Likewise.
7630 (gimple_assign_rhs3_ptr): Likewise.
7631 (gimple_call_lhs_ptr): Likewise.
7632 (gimple_call_fn_ptr): Likewise.
7633 (gimple_call_chain_ptr): Likewise.
7634 (gimple_call_arg_ptr): Likewise.
7635 (gimple_cond_lhs_ptr): Likewise.
7636 (gimple_cond_rhs_ptr): Likewise.
7637 (gimple_switch_index_ptr): Likewise.
7638 (gimple_return_retval_ptr): Likewise.
7639
7640 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7641
7642 * gimple.h (gimple_asm_input_op_ptr): Remove.
7643 (gimple_asm_output_op_ptr): Likewise.
7644
7645 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7646
7647 * gimple.h (gimple_location_ptr): Remove.
7648 * tree-vrp.c (check_all_array_refs): Adjust.
7649
7650 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7651
7652 * tree-ssa-operands.c (build_uses): store tree * instead of
7653 tree.
7654 (finalize_ssa_uses): Adjust.
7655 (append_use): Likewise.
7656 (verify_ssa_operands): Likewise.
7657
7658 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7659
7660 * real.h (build_real_truncate): Declare.
7661 * tree.c (build_real_truncate): New function.
7662 (strip_float_extensions): Use it.
7663 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7664 (fold_builtin_hypot, fold_builtin_pow): Likewise.
7665 * match.pd: Likewise.
7666
7667 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7668 Jiong Wang <jiong.wang@arm.com>
7669
7670 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7671
7672 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7673
7674 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7675 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7676 (aarch64_print_operand, aarch64_float_const_representable_p)
7677 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7678 instead of REAL_VALUE_FROM_CONST_DOUBLE.
7679 * config/arc/arc.c (arc_print_operand): Likewise.
7680 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7681 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7682 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7683 Likewise.
7684 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7685 (consttable_16): Likewise.
7686 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7687 * config/avr/avr.c (avr_print_operand): Likewise.
7688 * config/bfin/bfin.md: Likewise (in a define_split).
7689 * config/c6x/c6x.md: Likewise (in a define_split).
7690 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7691 (cr16_print_operand): Likewise.
7692 * config/cris/cris.c (cris_print_operand): Likewise.
7693 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7694 * config/fr30/fr30.c (fr30_print_operand): Likewise.
7695 (fr30_const_double_is_zero): Likewise.
7696 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7697 * config/frv/frv.md: Likewise (in a define_split).
7698 * config/frv/predicates.md (int_2word_operand): Likewise.
7699 * config/h8300/h8300.c (h8300_print_operand): Likewise.
7700 * config/i386/i386.c (standard_80387_constant_p): Likewise.
7701 (ix86_print_operand, ix86_split_to_parts): Likewise.
7702 * config/i386/i386.md: Likewise (in a define_split).
7703 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7704 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7705 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7706 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7707 (print_operand): Likewise.
7708 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7709 * config/mep/mep.md: Likewise (in define_split).
7710 * config/microblaze/microblaze.c (microblaze_const_double_ok)
7711 (print_operand): Likewise.
7712 * config/mips/mips.md (consttable_float): Likewise.
7713 * config/mmix/mmix.c (mmix_intval): Likewise.
7714 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7715 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7716 * config/pa/pa.c (pa_singlemove_string): Likewise.
7717 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7718 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7719 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7720 (output_toc): Likewise.
7721 * config/rs6000/rs6000.md: Likewise (in define_splits).
7722 * config/rx/rx.c (rx_print_operand): Likewise.
7723 * config/s390/s390.c (s390_output_pool_entry): Likewise.
7724 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7725 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7726 (and also in define_splits).
7727 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7728 (fp_high_losum_p): Likewise.
7729 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7730 (*movsf_high): Likewise.
7731 * config/spu/spu.c (const_double_to_hwint): Likewise.
7732 * config/v850/v850.c (const_double_split): Likewise.
7733 * config/vax/vax.c (vax_float_literal): Likewise.
7734 * config/visium/visium.c (visium_expand_copysign): Likewise.
7735 * config/visium/visium.md: Likewise (in define_split).
7736 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7737 * config/xtensa/xtensa.c (print_operand): Likewise.
7738 (xtensa_output_literal): Likewise.
7739 * cprop.c (implicit_set_cond_p): Likewise.
7740 * dwarf2out.c (insert_float): Likewise.
7741 * expmed.c (expand_mult, make_tree): Likewise.
7742 * expr.c (compress_float_constant): Likewise.
7743 * rtlanal.c (split_double): Likewise.
7744 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7745 (simplify_const_unary_operation, simplify_binary_operation_1)
7746 (simplify_const_binary_operation): Likewise.
7747 (simplify_const_relational_operation): Likewise.
7748 * varasm.c (output_constant_pool_2): Likewise.
7749
7750 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7751
7752 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7753 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7754 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7755 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7756 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7757 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7758 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7759 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7760 (ix86_emit_swsqrtsf): Likewise.
7761 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7762 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7763 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7764 * config/pa/pa.c (pa_expand_builtin): Likewise.
7765 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7766 (rs6000_scale_v2df): Likewise.
7767 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7768 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7769 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7770 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7771 (vec_ctul): Likewise.
7772 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7773 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7774 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7775 * cse.c (fold_rtx): Likewise.
7776 * emit-rtl.c (immed_double_const): Likewise (in comments).
7777 (init_emit_once): Likewise.
7778 * expr.c (compress_float_constant, expand_expr_real_1)
7779 (const_vector_from_tree): Likewise.
7780 * optabs.c (expand_float, expand_fix): Likewise.
7781 * reg-stack.c (reg_to_stack): Likewise.
7782 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7783 (simplify_const_unary_operation, simplify_binary_operation_1)
7784 (simplify_const_binary_operation, simplify_relational_operation)
7785 (simplify_immed_subreg): Likewise.
7786
7787 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7788
7789 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7790 * doc/tm.texi: Regenerate.
7791 * real.h (REAL_ARITHMETIC): Delete.
7792 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7793 (ix86_expand_round_sse4): Use real_arithmetic instead of
7794 REAL_ARITHMETIC.
7795 * config/i386/sse.md (round<mode>2): Likewise.
7796 * rtl.h (rtx_to_tree_code): Likewise (in comment).
7797 * explow.c (rtx_to_tree_code): Likewise (in comment).
7798 * match.pd: Likewise.
7799 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7800 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7801 (expand_pow_as_sqrts): Likewise.
7802 * tree-pretty-print.c (dump_generic_node): Remove code that
7803 was conditional on REAL_ARITHMETIC being undefined.
7804
7805 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7806
7807 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7808 * doc/tm.texi: Regenerate.
7809 * real.h (real_less): Declare.
7810 (REAL_VALUES_LESS): Delete.
7811 * real.c (real_less): New function.
7812 (real_compare): Use it.
7813 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7814 of REAL_VALUES_LESS.
7815 * config/microblaze/microblaze.c (microblaze_const_double_ok):
7816 Likewise.
7817 * fold-const.c (fold_convert_const_int_from_real): Likewise.
7818 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7819 (simplify_const_relational_operation): Likewise.
7820 * tree-call-cdce.c (check_pow): Likewise.
7821 (gen_conditions_for_pow_cst_base): Likewise.
7822
7823 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7824
7825 * real.h (REAL_VALUES_IDENTICAL): Delete.
7826 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7827 instead of REAL_VALUES_IDENTICAL.
7828 * fold-const.c (operand_equal_p): Likewise.
7829 * ipa-icf.c (sem_variable::equals): Likewise.
7830 * tree-complex.c (some_nonzerop): Likewise.
7831 (expand_complex_multiplication): Likewise.
7832 * tree.c (simple_cst_equal): Likewise.
7833 * varasm.c (compare_constant): Likewise.
7834
7835 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7836
7837 * real.h (real_equal): Declare.
7838 (REAL_VALUES_EQUAL): Delete.
7839 * real.c (real_equal): New function.
7840 (real_compare): Use it.
7841 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7842 * doc/tm.texi: Regenerate.
7843 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7844 real_equal instead of REAL_VALUES_EQUAL.
7845 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7846 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7847 (fp_const_from_val): Likewise.
7848 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7849 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7850 (floating_exact_log2): Likewise.
7851 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7852 * config/vax/vax.c (vax_float_literal): Likewise.
7853 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7854 * cprop.c (implicit_set_cond_p): Likewise.
7855 * expmed.c (expand_mult): Likewise.
7856 * fold-const.c (const_binop): Likewise.
7857 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7858 (simplify_const_binary_operation): Likewise.
7859 (simplify_const_relational_operation): Likewise.
7860 * tree-call-cdce.c (check_pow): Likewise.
7861 (gen_conditions_for_pow_cst_base): Likewise.
7862 * tree-inline.c (estimate_num_insns): Likewise.
7863 * tree-ssa-dom.c (record_equality): Likewise.
7864 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7865 (gimple_expand_builtin_pow): Likewise.
7866 (pass_optimize_widening_mul::execute): Likewise.
7867 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7868 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7869 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7870
7871 2015-10-05 Richard Biener <rguenther@suse.de>
7872
7873 PR ipa/67783
7874 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7875 consider loop header PHI defs as IVs.
7876
7877 2015-10-05 Richard Biener <rguenther@suse.de>
7878
7879 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7880 call handling ...
7881 (create_expression_by_pieces): ... here and build GIMPLE
7882 calls directly. Use gimple_build API and avoid force_gimple_operand.
7883 (insert_into_preds_of_block): Simplify.
7884 (do_regular_insertion): Add comment.
7885
7886 2015-10-04 Jason Merrill <jason@redhat.com>
7887
7888 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7889
7890 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
7891
7892 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7893 check for general register.
7894 (ix86_emit_save_regs): Ditto.
7895 (ix86_emit_save_regs_using_mov): Ditto.
7896 (ix86_emit_restore_regs_using_pop): Ditto.
7897 (ix86_emit_restore_regs_using_mov): Ditto.
7898
7899 2015-10-03 Marek Polacek <polacek@redhat.com>
7900
7901 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7902 (insn-dfatab.o): Likewise.
7903
7904 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
7905
7906 * config.gcc (xtensa*-*-uclinux*): New configuration.
7907 * config/xtensa/uclinux.h: New file.
7908 * config/xtensa/uclinux.opt: New file.
7909
7910 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
7911
7912 * doc/cpp.texi (Standard Predefined Macros): Document value of
7913 __cplusplus for C++14.
7914
7915 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
7916
7917 * gcc.c (process_command): Use spec_machine rather than
7918 spec_host_machine to build tooldir_prefix2.
7919
7920 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7921 Bernd Schmidt <bernds@codesourcery.com>
7922
7923 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7924 (Token, Stmt): Remove structs.
7925 (decls, vars, fns): Remove variables.
7926 (alloc_comment, append_stmt, is_keyword): Remove macros.
7927 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7928 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7929 (parse_init, parse_file): Remove functions.
7930 (read_file): Accept a pointer to a length and store into it.
7931 (process): Don't try to parse the input file, just write it out as
7932 a string, but looking for maps. Also write out the length.
7933 (main): Don't use "-S" to compile PTX code.
7934
7935 2015-10-02 Jeff Law <law@redhat.com>
7936
7937 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7938 fixups.
7939
7940 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7941
7942 PR target/67822
7943 * config/nvptx/mkoffload.c (main): Scan the argument vector for
7944 -fopenmp, and skip generating an offloading image if specified.
7945
7946 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
7947
7948 * system.h (ROUND_UP): New macro definition.
7949 (ROUND_DOWN): Ditto.
7950 * ggc-page.c (ROUND_UP): Remove local macro definition.
7951 (PAGE_ALIGN): Implement using ROUND_UP macro.
7952
7953 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7954 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7955 to align values.
7956 (ix86_compute_frame_layout): Ditto.
7957 (ix86_expand_prologue): Ditto.
7958 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7959 to round down values.
7960 (expand_set_or_movmem_via_rep): Ditto.
7961
7962 2015-10-02 Marek Polacek <polacek@redhat.com>
7963
7964 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7965
7966 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
7967
7968 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7969 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7970 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7971 (free_gimple_bb): Renamed free_gimple_poly_bb.
7972 (try_generate_gimple_bb): Hoist loop invariant code.
7973 (analyze_drs_in_stmts): Same.
7974 (build_scop_drs): Call renamed functions.
7975 (new_pbb_from_pbb): Same.
7976 (scop_ivs_can_be_represented): Delete as functionality now moved to
7977 graphite-scop-detection.c
7978 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7979
7980 2015-10-02 Aditya Kumar <hiraditya@msn.com>
7981
7982 * graphite-scop-detection.c (stmt_has_side_effects): New function
7983 outlined from stmt_simple_for_scop_p.
7984 (graphite_can_represent_stmt): Same.
7985 (stmt_simple_for_scop_p): Moved code out of this function for better
7986 readability.
7987
7988 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7989
7990 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7991 F_AVX512IFMA.
7992 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7993
7994 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7995
7996 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7997
7998 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
7999
8000 PR rtl-optimization/67756
8001 * lra-constraints.c (match_reload): Add a new parameter. Use it
8002 for creating a pseudo with the same value.
8003 (curr_insn_transform): Pass a new argument to match_reload.
8004
8005 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8006
8007 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8008 (expand_vec_perm_even_odd_1): Handle V64QImode.
8009 (ix86_expand_vec_perm_const_1): Try expansion with
8010 expand_vec_perm_even_odd_trunc as well.
8011 * config/i386/sse.md (VI124_AVX512F): Rename to ...
8012 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8013 to V54QI.
8014 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8015 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8016 to V32HI and V16SI.
8017 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8018 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8019 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8020 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8021 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8022 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8023
8024 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8025
8026 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8027 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8028
8029 2015-10-02 Jason Merrill <jason@redhat.com>
8030
8031 PR c/59218
8032 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8033 (diagnose_tm_1_op): Also diagnose volatile accesses in
8034 transaction_safe function.
8035
8036 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
8037
8038 * system.h (malloc.h): Don't include obsolete header.
8039
8040 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8041
8042 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8043 (TLS_SECTION_ASM_FLAG): Delete.
8044
8045 2015-10-02 Marek Polacek <polacek@redhat.com>
8046
8047 PR c/64249
8048 * doc/invoke.texi: Document -Wduplicated-cond.
8049 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8050 (insn-dfatab.o): Likewise.
8051 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8052 warning.
8053
8054 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
8055
8056 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8057 sequences.
8058
8059 2015-10-02 Renlin Li <renlin.li@arm.com>
8060
8061 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8062
8063 2015-10-02 Renlin Li <renlin.li@arm.com>
8064
8065 PR target/66776
8066 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8067
8068 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8069
8070 PR rtl-optimization/67786
8071 PR rtl-optimization/67787
8072 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8073 it modifies a reg used in the condition calculation.
8074
8075 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
8076
8077 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8078 alternatives for reads from memory and moves from general-purpose
8079 registers.
8080 (*aarch64_combinez_be<mode>): Likewise.
8081
8082 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
8083
8084 PR target/51726
8085 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8086 selectany within this function without need to keep attribute.
8087 (i386_pe_encode_section_info): Remove selectany-code.
8088
8089 2015-10-02 Richard Biener <rguenther@suse.de>
8090
8091 * tree-ssa-sccvn.c (has_VN_INFO): New function.
8092 (free_scc_vn): Use it.
8093 (visit_use): Remove dead code and refactor to use gassign
8094 and use less indentation.
8095
8096 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8097
8098 PR target/67788
8099 PR target/67789
8100 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8101 (rs6000_cannot_copy_insn_p): New function.
8102 * config/rs6000/rs6000.md (cannot_copy): New attribute.
8103 (load_toc_v4_PIC_1_normal): Set cannot_copy.
8104 (load_toc_v4_PIC_1_476): Ditto.
8105
8106 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8107
8108 * graphite-scop-detection.c (struct sese_l): New conversion constructor
8109 so that this type can be pushed into a vec.
8110 (class scop_builder): use sese_l to collect scops.
8111 (get_scops): New getter function.
8112 (remove_intersecting_scops): Use sese_l instead of scops_p.
8113 (intersects): Same.
8114 (add_scop): Same.
8115 (subsumes): Same.
8116 (remove_subscops): Same.
8117 (build_scops): Add scops to vec<scops_p> once all the scops have been
8118 detected.
8119
8120 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8121
8122 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8123 Renamed type from gimple_bb_p to gimple_poly_bb_p.
8124 (translate_isl_ast_node_user): Same.
8125 * graphite-poly.c (new_poly_bb): Same.
8126 * graphite-poly.h (gbb_from_bb): Same.
8127 * sese.h: Same.
8128 * graphite-sese-to-poly.c (new_gimple_bb):
8129 gimple_bb_p -> gimple_poly_bb_p
8130 (build_scop_scattering): Same.
8131 (find_params_in_bb): Same.
8132 (add_conditions_to_domain): Same.
8133 (sese_dom_walker::before_dom_children): Same.
8134 (analyze_drs_in_stmts): Same.
8135 (new_pbb_from_pbb): Same.
8136 (free_data_refs_aux): New pointer to type base_alias_pair.
8137 * graphite-sese-to-poly.h: Same.
8138 * sese.c (if_region_set_false_region): Fixed Indentation.
8139 (move_sese_in_condition): Same.
8140
8141 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8142 Aditya Kumar <aditya.k7@samsung.com>
8143
8144 PR tree-optimization/66980
8145 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8146 when data reference analysis has failed.
8147
8148 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8149 Aditya Kumar <aditya.k7@samsung.com>
8150
8151 PR tree-optimization/67754
8152 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8153 scev analysis on the same loop nest as analyze_drs_in_stmts.
8154 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8155 renamed...
8156 (try_generate_gimple_bb): Call outermost_loop_in_sese.
8157 (analyze_drs_in_stmts): Same.
8158 * sese.c (outermost_loop_in_sese): ...here.
8159
8160 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8161 Aditya Kumar <aditya.k7@samsung.com>
8162
8163 PR tree-optimization/67754
8164 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8165 recursion on the inner loops.
8166
8167 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8168
8169 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8170 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8171 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8172 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8173 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8174
8175 2015-10-01 Marek Polacek <polacek@redhat.com>
8176
8177 PR c/65345
8178 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8179 create_tmp_var_raw rather than create_tmp_var.
8180
8181 2015-10-01 Marek Polacek <polacek@redhat.com>
8182
8183 PR tree-optimization/67769
8184 * tree-ssa-phiopt.c (conditional_replacement): Call
8185 reset_flow_sensitive_info_in_bb.
8186 (minmax_replacement): Likewise.
8187 (abs_replacement): Likewise.
8188
8189 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
8190
8191 * builtins.c: Don't include gomp-constants.h.
8192 (fold_builtin_1): Don't fold acc_on_device here.
8193 * gimple-fold.c: Include gomp-constants.h.
8194 (gimple_fold_builtin_acc_on_device): New.
8195 (gimple_fold_builtin): Call it.
8196
8197 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
8198
8199 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8200 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8201
8202 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
8203
8204 * config/arm/aarch-common-protos.h
8205 (aarch_accumulator_forwarding): New.
8206 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8207 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8208 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8209 * config/arm/cortex-a53.md: Rewrite.
8210
8211 2015-10-01 Richard Biener <rguenther@suse.de>
8212
8213 * gimple-match.h (mprts_hook): Declare.
8214 * gimple-match.head.c (mprts_hook): Define.
8215 (maybe_push_res_to_seq): Use new hook.
8216 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8217 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8218 (vn_ssa_aux::has_constants): Remove.
8219 * tree-ssa-sccvn.c: Include gimple-match.h.
8220 (VN_INFO_GET): Assert we don't re-use SSA names.
8221 (vn_get_expr_for): Remove.
8222 (expr_has_constants): Likewise.
8223 (stmt_has_constants): Likewise.
8224 (simplify_binary_expression): Likewise.
8225 (simplify_unary_expression): Likewise.
8226 (vn_lookup_simplify_result): New hook.
8227 (visit_copy): Adjust.
8228 (visit_reference_op_call): Likewise.
8229 (visit_phi): Likewise.
8230 (visit_use): Likewise.
8231 (process_scc): Likewise.
8232 (init_scc_vn): Likewise.
8233 (visit_reference_op_load): Likewise. Use match-and-simplify and
8234 a gimple seq for inserted expressions.
8235 (try_to_simplify): Remove GENERIC stmt combining code.
8236 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8237 * tree-ssa-pre.c (eliminate_insert): Adjust.
8238 (eliminate_dom_walker::before_dom_children): Likewise.
8239
8240 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8241
8242 * doc/invoke.texi (Optimization Options): Add
8243 -freorder-blocks-algorithm=.
8244 (Optimize Options) <-O>: Add -freorder-blocks.
8245 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
8246 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8247 <-freorder-blocks>: Also enabled at levels -O and -Os.
8248 <-freorder-blocks-algorithm=>: Document new option.
8249
8250 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8251
8252 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8253 with flag_reorder_blocks_algorithm.
8254 * common.opt (freorder-blocks-algorithm=): New flag.
8255 (reorder_blocks_algorithm): New enum.
8256 * flag-types.h (reorder_blocks_algorithm): New enum.
8257 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8258 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8259
8260 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8261
8262 * bb-reorder.c: Add intro comment.
8263 (reorder_basic_blocks_software_trace_cache): Print a header to
8264 the dump file.
8265 (edge_order): New function.
8266 (reorder_basic_blocks_simple): New function.
8267 (reorder_basic_blocks): Choose between the STC and the simple
8268 algorithms (always choose the former).
8269
8270 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8271
8272 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8273 function, factored out from ...
8274 (reorder_basic_blocks): ... here.
8275
8276 2015-10-01 Tom de Vries <tom@codesourcery.com>
8277
8278 * tree-cfg.c (dump_function_to_file): Dump function attributes using
8279 __attribute__(()) string. Move dumping of function attributes to before
8280 function name.
8281
8282 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
8283
8284 PR target/66870
8285 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8286 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8287 based on gold linker version.
8288 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8289 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8290 * configure, config.in: Regenerate.
8291
8292 2015-10-01 Alan Modra <amodra@gmail.com>
8293
8294 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8295 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8296 (rs6000_output_mi_thunk): Likewise.
8297
8298 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8299
8300 * config/nvptx/mkoffload.c (process): Change offload data format.
8301
8302 2015-09-30 Jeff Law <law@redhat.com>
8303
8304 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8305 with constant conditions.
8306 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8307 (remove_ctrl_stmt_and_useless_edges): No longer static.
8308 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8309 (remove_ctrl_stmt_and_useless_edges): Likewise.
8310
8311 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8312 Cesar Philippidis <cesar@codesourcery.com>
8313
8314 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8315 (TARGET_GOACC_VALIDATE_DIMS): Override.
8316 * target.def (TARGET_GOACC): New target hook prefix.
8317 (validate_dims): New hook.
8318 * targhooks.h (default_goacc_validate_dims): New.
8319 * omp-low.c (oacc_validate_dims): New.
8320 (execute_oacc_device_lower): New.
8321 (default_goacc_validate_dims): New.
8322 (pass_data_oacc_device_lower): New.
8323 (pass_oacc_device_lower): New pass.
8324 (make_pass_oacc_device_lower): New.
8325 * tree-pass.h (make_pass_oacc_device_lower): Declare.
8326 * passes.def (pass_oacc_device_lower): Add it.
8327 * doc/tm.texi: Rebuilt.
8328 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8329 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8330
8331 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8332
8333 PR rtl-optimization/67037
8334 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8335
8336 2015-09-30 Bernd Schmidt <bernds@redhat.com>
8337
8338 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8339 * passes.c: Include tree-ssanames.h.
8340 (execute_function_todo): Flush the pending free SSA_NAMEs after
8341 eliminating unreachable basic blocks.
8342 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8343 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8344 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8345 (flush_ssanames_freelist): New function.
8346 (release_ssaname_fn): Put released names on the queue.
8347 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8348 * tree-ssanames.h (flush_ssanames_freelist): Declare.
8349
8350 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8351
8352 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8353 (generate_target_descr_file, generate_target_offloadend_file)
8354 (generate_host_descr_file, prepare_target_image): Pass it on.
8355 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8356 (compile_native, main): Pass it on.
8357 * lto-wrapper.c (compile_offload_image): Likewise.
8358
8359 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8360 Ilya Verbin <ilya.verbin@intel.com>
8361 Andrey Turetskiy <andrey.turetskiy@intel.com>
8362
8363 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8364 (prepare_target_image, main): Refactor argv building to use
8365 obstacks.
8366
8367 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8368
8369 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8370 * config/spu/spu.c (spu_expand_atomic_op): New function.
8371 * config/spu/spu.md (AINT): New mode iterator.
8372 (ATOMIC): New code iterator.
8373 (atomic_name, atomic_pred): New code predicates.
8374 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8375 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8376 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8377 "atomic_<atomic_name>_fetch<mode>"): Likewise.
8378
8379 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
8380
8381 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8382 debug insns.
8383 (scalar_chain::convert_reg): Likewise.
8384
8385 2015-09-30 Richard Biener <rguenther@suse.de>
8386
8387 * builtins.c: Add comment that no new simplifications should
8388 be added here.
8389
8390 2015-09-30 Marek Polacek <polacek@redhat.com>
8391
8392 PR tree-optimization/67690
8393 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8394 reset_flow_sensitive_info_in_bb.
8395 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8396 * tree-ssanames.c: Include "gimple-iterator.h".
8397 (reset_flow_sensitive_info_in_bb): New function.
8398 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8399
8400 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8401
8402 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8403 variable, replacing it with...
8404 (offload_abi): ... this new variable. Adjust all users.
8405 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8406
8407 2015-09-30 Matthias Klose <doko@ubuntu.com>
8408
8409 * configure.ac: Remove extraneous ;;.
8410 * configure: Regenerate.
8411
8412 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8413
8414 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8415 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8416 predicate, disallow register for operand 2.
8417
8418 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
8419
8420 * graphite-dependences.c (scop_get_dependences): Moved in down
8421 in order to be visible to its caller.
8422 * graphite-poly.h: Removed compute_deps, and extend_schedule.
8423
8424 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8425 Aditya Kumar <aditya.k7@samsung.com>
8426
8427 PR tree-optimization/67754
8428 * graphite-optimize-isl.c (optimize_isl): Call
8429 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8430
8431 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8432
8433 * builtins.c (expand_builtin_acc_on_device): Delete.
8434 (expand_builtin): Don't call it.
8435 (fold_builtin_1): Fold acc_on_device.
8436
8437 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8438
8439 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8440 (ix86_nsaved_sseregs): Likewise.
8441
8442 2015-09-29 Jeff Law <law@redhat.com>
8443
8444 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8445 computation of unused value.
8446
8447 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8448 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8449 inline macro expansion.
8450
8451 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8452
8453 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8454 (gen_shl_sext): Likewise.
8455 * config/sh/sh.md (divsi3): Likewise.
8456 (imm->ext_dest_operand splitter): Likewise.
8457
8458 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8459 Aditya Kumar <aditya.k7@samsung.com>
8460
8461 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8462 (nb_data_writes_in_bb): Remove.
8463 (split_pbb): Remove.
8464 (split_reduction_stmt): Remove.
8465 (is_reduction_operation_p): Remove.
8466 (phi_contains_arg): Remove.
8467 (follow_ssa_with_commutative_ops): Remove.
8468 (detect_commutative_reduction_arg): Remove.
8469 (detect_commutative_reduction_assign): Remove.
8470 (follow_inital_value_to_phi): Remove.
8471 (edge_initial_value_for_loop_phi): Remove.
8472 (initial_value_for_loop_phi): Remove.
8473 (used_outside_reduction): Remove.
8474 (detect_commutative_reduction): Remove.
8475 (translate_scalar_reduction_to_array_for_stmt): Remove.
8476 (remove_phi): Remove.
8477 (dr_indices_valid_in_loop): Remove.
8478 (close_phi_written_to_memory): Remove.
8479 (translate_scalar_reduction_to_array): Remove.
8480 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8481 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8482 (rewrite_commutative_reductions_out_of_ssa): Remove.
8483 (build_poly_scop): Remove call to
8484 rewrite_commutative_reductions_out_of_ssa.
8485
8486 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8487
8488 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8489 Add new insn types for vector load and store pairs.
8490 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8491 types "neon_ldp{,_q}".
8492 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8493 "neon_ldp{,_q}".
8494 (neon_store_complex): Add insn types "neon_stp{,_q}".
8495 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8496 "neon_{ldp,stp}_q".
8497
8498 2015-09-29 Jeff Law <law@redhat.com>
8499
8500 * config/rx/constraints.md (Int08): Fix undefined left shift
8501 behaviour.
8502 (Sint08, Sint16, Sint24): Likewise.
8503 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8504
8505 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8506 behaviour.
8507
8508 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8509 left shift behaviour.
8510 * config/msp430/constraints.md ('L' constraint): Similarly.
8511 ('Ys' constraint): Similarly.
8512
8513 2015-09-29 Richard Biener <rguenther@suse.de>
8514
8515 PR tree-optimization/67170
8516 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8517 the translate function pointer parameter to get the
8518 bool whether to disambiguate only by reference.
8519 (walk_non_aliased_vuses): Likewise.
8520 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8521 (get_continuation_for_phi_1): Likewise.
8522 (get_continuation_for_phi): Likewise.
8523 (walk_non_aliased_vuses): Likewise.
8524 * tree-ssa-sccvn.c (const_parms): New bitmap.
8525 (vn_reference_lookup_3): Adjust for interface change.
8526 Disambiguate parameters pointing to readonly memory.
8527 (free_scc_vn): Free const_parms.
8528 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8529
8530 2015-09-29 Richard Biener <rguenther@suse.de>
8531
8532 PR tree-optimization/67741
8533 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8534 builtin calls with correct signature.
8535
8536 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8537
8538 PR target/65105
8539 * config/i386/i386.c: Include dbgcnt.h.
8540 (has_non_address_hard_reg): New.
8541 (convertible_comparison_p): New.
8542 (scalar_to_vector_candidate_p): New.
8543 (remove_non_convertible_regs): New.
8544 (scalar_chain): New.
8545 (scalar_chain::scalar_chain): New.
8546 (scalar_chain::~scalar_chain): New.
8547 (scalar_chain::add_to_queue): New.
8548 (scalar_chain::mark_dual_mode_def): New.
8549 (scalar_chain::analyze_register_chain): New.
8550 (scalar_chain::add_insn): New.
8551 (scalar_chain::build): New.
8552 (scalar_chain::compute_convert_gain): New.
8553 (scalar_chain::replace_with_subreg): New.
8554 (scalar_chain::replace_with_subreg_in_insn): New.
8555 (scalar_chain::emit_conversion_insns): New.
8556 (scalar_chain::make_vector_copies): New.
8557 (scalar_chain::convert_reg): New.
8558 (scalar_chain::convert_op): New.
8559 (scalar_chain::convert_insn): New.
8560 (scalar_chain::convert): New.
8561 (convert_scalars_to_vector): New.
8562 (pass_data_stv): New.
8563 (pass_stv): New.
8564 (make_pass_stv): New.
8565 (ix86_option_override): Created and register stv pass.
8566 (flag_opts): Add -mstv.
8567 (ix86_option_override_internal): Likewise.
8568 * config/i386/i386.md (SWIM1248x): New.
8569 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8570 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8571 (*anddi3_doubleword): New.
8572 (*zext<mode>_doubleword): New.
8573 (*zextsi_doubleword): New.
8574 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8575 (*<code>di3_doubleword): New.
8576 * config/i386/i386.opt (mstv): New.
8577 * dbgcnt.def (stv_conversion): New.
8578
8579 2015-09-29 Tom de Vries <tom@codesourcery.com>
8580
8581 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8582
8583 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8584
8585 PR target/67716
8586 * config/sh/sh.c (sh_override_options_after_change): New.
8587 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8588 (sh_option_override): Move align_loops, align_jumps and
8589 align_functions handling into sh_override_options_after_change.
8590
8591 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8592
8593 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8594 (nvptx_record_offload_symbol): Record function execution geometry.
8595 * config/nvptx/mkoffload.c (process): Include launch geometry in
8596 function data.
8597 * omp-low.c (oacc_launch_pack): New.
8598 (replace_oacc_fn_attrib): New.
8599 (set_oacc_fn_attrib): New.
8600 (get_oacc_fn_attrib): New.
8601 (expand_omp_target): Create keyed varargs for GOACC_parallel call
8602 generation.
8603 * omp-low.h (get_oacc_fn_attrib): Declare.
8604 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8605 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8606 * tree.h (OMP_CLAUSE_EXPR): New.
8607 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8608
8609 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8610 Sebastian Pop <s.pop@samsung.com>
8611
8612 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8613
8614 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8615 Sebastian Pop <s.pop@samsung.com>
8616
8617 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8618 * graphite-scop-detection.c (struct sese_l): New type.
8619 (get_entry_bb): API for getting entry bb of SESE.
8620 (get_exit_bb): API for getting exit bb of SESE.
8621 (class debug_printer): New type. Simple printer in debug mode.
8622 (trivially_empty_bb_p): New. Return true when BB is empty or
8623 contains only debug instructions.
8624 (graphite_can_represent_expr): Call scalar_evoution_in_region
8625 instead of analyze_scalar_evolution. Pass in scop instead of only
8626 the scop entry.
8627 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8628 scop entry.
8629 (stmt_simple_for_scop_p): Same.
8630 (harmful_stmt_in_bb): Same.
8631 (graphite_can_represent_loop): Deleted.
8632 (struct scopdet_info): Deleted.
8633 (scopdet_basic_block_info): Deleted.
8634 (build_scops_1): Deleted.
8635 (bb_in_sd_region): Deleted.
8636 (find_single_entry_edge): Deleted.
8637 (find_single_exit_edge): Deleted.
8638 (create_single_entry_edge): Deleted.
8639 (sd_region_without_exit): Deleted.
8640 (create_single_exit_edge): Deleted.
8641 (unmark_exit_edges): Deleted.
8642 (mark_exit_edges): Deleted.
8643 (create_sese_edges): Deleted.
8644 (build_graphite_scops): Deleted.
8645 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8646 (build_scops): Use the new scop_builder to build scops.
8647 (dot_all_scops_1): Use the new pretty printer. Print loop father
8648 as well.
8649 (loop_body_is_valid_scop): New. Return true if loop body is a
8650 valid scop.
8651 (class scop_builder): New. Builds SCoPs for polyhedral
8652 optimizations.
8653 (scop_builder): New constructor.
8654 (static sese_l invalid_sese): sese_l with invalid edges.
8655 (get_sese): Get an sese (from a loop) if possible, invalid_sese
8656 otherwise.
8657 (get_nearest_dom_with_single_entry): Get nearest dominator of a
8658 basic_block with single entry. Return NULL if we get to the
8659 beginning of a function.
8660 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8661 a basic_block with single exit. Return NULL if we get to the
8662 beginning of a function.
8663 (print_sese): Pretty-print SESE.
8664 (merge_sese): Merge two SESEs if possible and return the new SESE.
8665 (build_scop_depth): Start building the SCoP within a loop nest.
8666 (build_scop_breadth): Start building the SCoP at a single loop
8667 depth. Merge adjacent SESEs if valid.
8668 (can_represent_loop_1): Returns true if Graphite can represent
8669 loop inside SCoP. Helper for can_represent_loop.
8670 (can_represent_loop): Returns true if Graphite can represent LOOP
8671 and all its nested loops in SCoP.
8672 (loop_is_valid_scop): Returns true if LOOP and all its nests
8673 constitute a valid SCoP.
8674 (region_has_one_loop): Returns true of a region has only one loop.
8675 (add_scop): Add SCoP to the list of valid scops. Removes an
8676 already existing scop if it intersects with or subsumed by this one.
8677 (harmful_stmt_in_region): Returns true if SCoP has any statment
8678 which cannot be represented by Graphite.
8679 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8680 (remove_subscops): Remove any SCoP from the list of already found
8681 SCoPs, if subsumed by S1.
8682 (intersects): Return true if region bounded by SCoPs S1 and S2
8683 intersect.
8684 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8685 * graphite.c (print_graphite_scop_statistics):
8686 (print_graphite_statistics): Print SCoP info while debugging.
8687 (graphite_initialize): Early exit in case number of loops in a
8688 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8689 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8690 (graphite_finalize):
8691 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8692 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8693 (recompute_all_dominators): Recalculate POST_DOMINATORS.
8694 * tree-cfg.c (print_loops): Print the function name while printing
8695 loops.
8696
8697 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8698 Sebastian Pop <s.pop@samsung.com>
8699
8700 PR tree-optimization/67700
8701 * graphite-sese-to-poly.c (parameter_index_in_region): Call
8702 invariant_in_sese_p_rec.
8703 (extract_affine): Same.
8704 (rewrite_cross_bb_scalar_deps): Call update_ssa.
8705 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
8706 * sese.h (invariant_in_sese_p_rec): Declare.
8707
8708 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
8709
8710 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8711
8712 2015-09-28 Jiong Wang <jiong.wang@arm.com>
8713
8714 Revert:
8715 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8716 Jiong Wang <jiong.wang@arm.com>
8717
8718 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8719 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8720 (REG_CLASS_NAMES): Likewise.
8721 (REG_CLASS_CONTENTS): Likewise.
8722 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8723 (aarch64_register_move_cost): Likewise.
8724 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8725 possible.
8726 * config/aarch64/constraints.md (Uc0): New constraint.
8727
8728 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
8729
8730 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8731
8732 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
8733
8734 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8735 SECTION_EXCLUDE in XO mapping class.
8736
8737 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8738
8739 PR target/54236
8740 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8741 and handle ne and eq codes.
8742 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8743 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
8744 CONST_INT_P. Use reverse_condition.
8745 (sh_split_treg_set_expr): Likewise.
8746
8747 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
8748
8749 * config/arm/types.md (type): Add rotate_imm.
8750 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8751 ROR immediate case.
8752 (*rorsi3_insn_uxtw): Likewise.
8753 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8754 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8755 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8756
8757 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8758
8759 PR rtl-optimization/67481
8760 * ifcvt.c (contains_ccmode_rtx_p): New function.
8761 (insn_valid_noce_process_p): Use it.
8762
8763 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8764
8765 PR rtl-optimization/67456
8766 PR rtl-optimization/67464
8767 PR rtl-optimization/67465
8768 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8769 move in the mode of x. Handle combination of complex and simple
8770 block pairs as well as the case when one is empty.
8771
8772 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8773
8774 * doc/gimple.texi: Update references to gimple_statement_base.
8775 * gdbhooks.py: Likewise.
8776 * gimple.h: Likewise.
8777
8778 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8779
8780 * config/sparc/driver-sparc.c: map LEON to leon3
8781
8782 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8783
8784 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8785 and make it inverse to change default
8786 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8787 supervisor mode
8788 * doc/invoke.texi: Document change of default
8789
8790 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8791
8792 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8793 true on %f0 for a target without FPU.
8794 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8795 without FPU.
8796 (untyped_return): Do not load %f0 for a target without FPU.
8797
8798 2015-09-28 Andrew Pinski <apinski@cavium.com>
8799
8800 * config/aarch64/aarch64.md (prefetch):
8801 Change the predicate of operand 0 to register_operand.
8802
8803 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
8804
8805 * config/i386/predicates.md (register_sse4nonimm_operand): New
8806 predicate.
8807 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8808 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8809 Use register_sse4nonimm_operand as operand 0 predicate.
8810 (*vec_extractv8hi_sse2): Remove insn pattern.
8811 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8812 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8813
8814 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8815 Kaz Kojima <kkojima@gcc.gnu.org>
8816
8817 PR target/67391
8818 * config/sh/sh-protos.h (sh_lra_p): Declare.
8819 * config/sh/sh.c (sh_lra_p): Make non-static.
8820 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8821 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
8822 Expand into addsi3_scr if operands[2] if needed.
8823 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
8824 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
8825 (addsi3_scr, *addsi3): New insn_and_split patterns.
8826
8827 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
8828
8829 PR rtl-optimization/64164
8830 PR tree-optimization/67312
8831 PR middle-end/67340
8832 PR middle-end/67490
8833 PR bootstrap/67597
8834 * cfgexpand.c (parm_in_stack_slot_p): Remove.
8835 (ssa_default_def_partition): Remove.
8836 (get_rtl_for_parm_ssa_default_def): Remove.
8837 (set_rtl): Check that RTL assignments match expectations.
8838 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
8839 default def location for params and results. Record SSA names
8840 or types in REG and MEM attrs, respectively.
8841 (set_parm_rtl): New.
8842 (expand_one_ssa_partition): Drop logic that assigned MEMs with
8843 unassigned addresses.
8844 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8845 deferred stack alloc vars.
8846 (expand_used_vars): Skip partitions holding parm default defs.
8847 Move adjust_one_expanded_partition_var loop...
8848 (pass_expand::execute): ... here. Drop redundant assert.
8849 Adjust comments before the final loop over all ssa names.
8850 Require assigned rtl of parms and results to match exactly.
8851 Reset its attributes to match them, not any other variables in
8852 the same partition.
8853 (expand_debug_expr): Use entry value for PARM's default defs
8854 only iff they have zero nondebug uses.
8855 * cfgexpand.h (parm_in_stack_slot_p): Remove.
8856 (get_rtl_for_parm_ssa_default_def): Remove.
8857 (set_parm_rtl): Declare.
8858 * doc/invoke.texi: Improve wording.
8859 * explow.c (promote_decl_mode): Fix promote_function_mode for
8860 result decls not by reference.
8861 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8862 bypass TYPE_MODE to get the actual vector mode.
8863 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
8864 2015-08-19's changes as follows. Drop include of
8865 basic-block.h and df.h.
8866 (rtl_for_parm): Remove.
8867 (maybe_reset_rtl_for_parm): Remove.
8868 (parm_in_unassigned_mem_p): Remove.
8869 (use_register_for_decl): Add logic for RESULT_DECLs matching
8870 assign_parms' behavior.
8871 (split_complex_args): Revert.
8872 (assign_parms_augmented_arg_list): Revert. Add comment
8873 referencing the logic above.
8874 (assign_parm_adjust_stack_rtl): Revert.
8875 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
8876 of SET_DECL_RTL. Set up a REG if the parm demands so.
8877 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
8878 calls into a single set_parm_rtl. Set up a temporary RTL
8879 temporarily for expand_assignment.
8880 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
8881 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
8882 (assign_bounds): Revert.
8883 (assign_parms): Revert. Use set_parm_rtl.
8884 (allocate_struct_function): Relayout result and parms of
8885 non-abstruct functions.
8886 (expand_function_start): Revert. Use set_parm_rtl. If the
8887 result is not a hard reg, create a pseudo from the promoted
8888 mode of the default def. Promote static chain mode.
8889 * tree-outof-ssa.c (remove_ssa_form): Drop unused
8890 partition_has_default_def. Set up
8891 partitions_for_parm_default_defs.
8892 (finish_out_of_ssa): Remove partition_has_default_def.
8893 Release partitions_for_parm_default_defs.
8894 * tree-outof-ssa.h (struct ssaexpand): Remove
8895 partition_has_default_def. Add
8896 partitions_for_parm_default_defs.
8897 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8898 stor-layout.h.
8899 (build_ssa_conflict_graph): Fix conflict-detection of default
8900 defs of even unused default defs of params and results.
8901 (for_all_parms): New.
8902 (create_default_def): New.
8903 (register_default_def): New.
8904 (coalesce_with_default): New.
8905 (create_outofssa_var_map): Create default defs for all parms
8906 and results, and register their partitions. Add GIMPLE_RETURN
8907 operands as coalesce candidates with results. Add default
8908 defs of each parm or result as coalesce candidates with its
8909 other defs. Mark each result def, and each default def of
8910 parms, as used_in_copy.
8911 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
8912 with the ssa names, even anonymous ones. Drop
8913 parm_in_stack_slot_p calls. Require same signedness and
8914 alignment.
8915 (coalesce_ssa_name): Add coalesce candidates for all defs of
8916 each parm and result, even unused ones.
8917 (parm_default_def_partition_arg): New type.
8918 (set_parm_default_def_partition): New.
8919 (get_parm_default_def_partitions): New.
8920 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8921 * tree-ssa-live.c (partition_view_init): Regard unused defs of
8922 parms and results as used.
8923 (verify_live_on_entry): Don't error out just because they're
8924 not live.
8925
8926 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
8927
8928 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8929 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8930 (output_fde): Don't output length for debug_frame on AIX.
8931 (output_call_frame_info): Don't output length for debug_frame on AIX.
8932 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8933 HAVE_XCOFF_DWARF_EXTRAS.
8934 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8935 HAVE_XCOFF_DWARF_EXTRAS.
8936 (output_compilation_unit_header): Don't output length on AIX.
8937 (output_pubnames): Don't output length on AIX.
8938 (output_aranges): Delete argument. Compute length locally. Don't
8939 output length on AIX.
8940 (output_line_info): Don't output length on AIX.
8941 (dwarf2out_finish): Don't compute aranges_length.
8942 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8943 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8944 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8945 symbol decoration for AIX.
8946 (rs6000_xcoff_debug_unwind_info): New.
8947 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8948 for SECTION_DEBUG.
8949 (rs6000_xcoff_declare_function_name): Emit different
8950 .function pseudo-op when DWARF2_DEBUG. Don't call
8951 xcoffout_declare_function for DWARF2_DEBUG.
8952 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8953 Redefine.
8954 * config/rs6000/aix71.h: New.
8955 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8956 locations support.
8957 * configure: Regenerate.
8958 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8959 DWARF support.
8960
8961 2015-09-26 Jeff Law <law@redhat.com>
8962
8963 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8964 behaviour.
8965 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8966 behaviour.
8967
8968 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8969 behaviour
8970
8971 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8972 undefined behaviour.
8973
8974 * config/cris/cris.md (asrandb): Fix left shift undefined
8975 behaviour.
8976 (asrandw): Likewise.
8977
8978 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
8979
8980 PR target/61578
8981 * lra-constarints.c (match_reload): Check presence of the input pseudo
8982 in the output operand.
8983
8984 2015-09-25 Tobias Burnus <burnus@net-b.de>
8985
8986 * doc/invoke.texi (-fsanitize): Minor wording tweak.
8987
8988 2015-09-25 Tobias Burnus <burnus@net-b.de>
8989
8990 * doc/invoke.texi (-fsanitize): Update URLs.
8991
8992 2015-09-25 Teresa Johnson <tejohnson@google.com>
8993
8994 * opts.c (finish_options): Unset -freorder-blocks-and-partition
8995 if not using profile.
8996
8997 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8998
8999 PR pretty-print/67567
9000 * pretty-print.c (pp_string): Add gcc_checking_assert.
9001 * pretty-print.h (output_buffer_append_r): Likewise.
9002
9003 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9004
9005 PR target/67675
9006 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9007 addr2 individually. Don't emit logical or insn if one is known to
9008 be aligned approriately.
9009 (sh_expand_cmpnstr): Likewise.
9010
9011 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
9012
9013 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9014 __builtin_aarch64_fp[sc]r arguments into a register.
9015
9016 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
9017
9018 * config.gcc (x86_archs): Replace lakemount with lakemont.
9019 (with_cpu): Likewise.
9020 (with_arch): Likewise.
9021 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9022 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
9023 __tune_lakemount__ with __tune_lakemont__.
9024 * config/i386/i386.c (lakemount_cost): Renamed to ...
9025 (lakemont_cost): This.
9026 (m_LAKEMOUNT): Renamed to ...
9027 (m_LAKEMONT): This.
9028 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9029 (processor_target_table): Replace "lakemount" with "lakemont".
9030 (processor_alias_table): Likewise.
9031 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9032 PROCESSOR_LAKEMONT.
9033 (ix86_adjust_cost): Likewise.
9034 (ia32_multipass_dfa_lookahead): Likewise.
9035 * config/i386/i386.h (processor_type): Likewise.
9036 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9037 * doc/invoke.texi: Replace lakemount with lakemont. Replace
9038 Lakemount with Lakemont.
9039
9040 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
9041
9042 * config.gcc (x86_archs): Replace iamcu with lakemount.
9043 (with_cpu): Likewise.
9044 (with_arch): Likewise.
9045 * doc/invoke.texi: Likewise.
9046 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9047 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
9048 __tune_iamcu__ with __tune_lakemount__.
9049 * config/i386/i386.c (iamcu_cost): Renamed to ...
9050 (lakemount_cost): This.
9051 (m_IAMCU): Renamed to ...
9052 (m_LAKEMOUNT): This.
9053 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9054 (processor_target_table): Replace "iamcu" with "lakemount".
9055 (processor_alias_table): Likewise.
9056 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9057 PROCESSOR_LAKEMOUNT.
9058 (ix86_adjust_cost): Likewise.
9059 (ia32_multipass_dfa_lookahead): Likewise.
9060 * config/i386/i386.h (processor_type): Likewise.
9061 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9062
9063 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
9064
9065 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9066 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9067 Declare.
9068 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9069 (pa_expand_compare_and_swap_loop): New.
9070 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9071 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9072 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9073 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9074 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9075 Revise.
9076
9077 2015-09-24 Michael Collison <michael.collison@linaro.org>
9078
9079 PR other/57195
9080 * read-md.c (read_name): Allow mode iterators inside angle
9081 brackets in rtl expressions.
9082
9083 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
9084
9085 PR target/61578
9086 * ira-color.c (update_allocno_cost): Add parameter.
9087 (update_costs_from_allocno): Decrease conflict cost. Pass the new
9088 parameter.
9089
9090 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9091
9092 PR driver/67640
9093 * opts-common.c (prune_options): Discard all -fdiagnostics-color
9094 but the last one, which is moved to the front to be processed
9095 first.
9096 * opts.c (enable_warning_as_error): Reject options that do not
9097 control warnings.
9098
9099 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9100
9101 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9102
9103 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9104
9105 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9106 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9107 (aarch64_cannot_force_const_mem): Likewise.
9108 (aarch64_classify_address): Likewise.
9109 (aarch64_classify_symbolic_expression): Likewise.
9110 (aarch64_print_operand): Likewise.
9111 (aarch64_classify_symbol): Likewise.
9112 (aarch64_mov_operand_p): Likewise.
9113 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9114 (aarch64_mov_operand): Likewise.
9115
9116 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
9117
9118 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9119 for info->spe_gp_size.
9120
9121 2015-09-24 Richard Biener <rguenther@suse.de>
9122
9123 PR lto/67699
9124 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9125 abstract origins.
9126
9127 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
9128
9129 * tree-object-size.c (plus_stmt_object_size)
9130 (cond_expr_object_size): Change the formal parameters from gimple
9131 to gimple *.
9132 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9133 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9134 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9135
9136 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9137
9138 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9139 Check for ld -type pie on Solaris 11.x and 12.
9140 * configure: Regenerate.
9141 * config.in: Regenerate.
9142
9143 * gcc.c (LD_PIE_SPEC): Allow redefinition.
9144
9145 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9146 (STARTFILE_SPEC): Use it.
9147 (ENDFILE_CRTEND_SPEC): Define.
9148 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9149 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9150 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9151 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9152 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9153 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9154 (ENDFILE_ARCH_SPEC): Define.
9155 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9156
9157 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9158
9159 * configure.ac (gcc_cv_solaris_crts): New test.
9160 * configure. Regenerate.
9161 * config.in: Regenerate.
9162 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9163 HAVE_SOLARIS_CRTS variant.
9164
9165 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9166
9167 * tree-inline.h (count_insns_seq): Delete prototype.
9168 (estimate_num_insns_seq): Define prototype.
9169 * tree-inline.c (count_insns_seq): Delete.
9170 (estimate_num_insns_seq): Remove static qualifier.
9171 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9172 with estimate_num_insns_seq.
9173
9174 2015-09-24 Richard Biener <rguenther@suse.de>
9175
9176 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9177 members.
9178 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9179 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
9180 offset.
9181 (ao_ref_init_from_vn_reference): Record clique and base in the
9182 built base.
9183 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9184
9185 2015-09-24 Richard Biener <rguenther@suse.de>
9186
9187 PR tree-optimization/48885
9188 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9189 as not including any restrict tags from other pointers.
9190
9191 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9192
9193 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9194 character when appending to offload_targets.
9195
9196 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9197 offload targets by commas, not colons.
9198 * config.in: Regenerate.
9199 * configure: Likewise.
9200 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9201 instead of setting up the default offload targets here...
9202 (process_command): ..., do it here.
9203 libgomp/
9204 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9205 targets are separated by commas.
9206 * config.h.in: Regenerate.
9207
9208 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9209 Nathan Sidwell <nathan@codesourcery.com>
9210
9211 * omp-low.h (omp_reduction_init_op): Declare.
9212 * omp-low.c (omp_reduction_init_op): New, broken out of ...
9213 (omp_reduction_init): ... here. Call it.
9214 * tree-parloops.c (initialize_reductions): Use
9215 omp_reduction_init_op.
9216
9217 2015-09-23 Richard Biener <rguenther@suse.de>
9218
9219 PR middle-end/67662
9220 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9221 undefined overflow unless they will cancel out.
9222
9223 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9224
9225 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9226 insn emit.
9227
9228 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9229
9230 PR c/49655
9231 * opts.h (write_langs): Declare.
9232 * opts-global.c (write_langs): Make it extern.
9233
9234 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
9235
9236 PR target/67391
9237 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9238 overlapping regs when matching the pattern.
9239
9240 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9241
9242 * config/aarch64/aarch64-simd.md
9243 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9244 (aarch64_float_truncate_hi_v4sf_le): New.
9245 (aarch64_float_truncate_hi_v4sf_be): Likewise.
9246
9247 2015-09-23 Richard Biener <rguenther@suse.de>
9248
9249 * tree-ssa-structalias.c (intra_create_variable_infos): Build
9250 representatives for all restrict qualified pointer destinations.
9251
9252 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9253
9254 * config/i386/i386.md (define_code_attr mshift): New.
9255 (define_mode_iterator SWI1248_AVX512BW): Rename ...
9256 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9257 only.
9258 (define_insn "*k<logic><mode>"): Use new iterator name.
9259 (define_insn "*<mshift><mode>3"): New.
9260
9261 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
9262
9263 PR middle-end/67649
9264 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9265 mark the block as accessible.
9266
9267 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9268
9269 * function.c (thread_prologue_and_epilogue_insns): Delete
9270 orig_entry_edge argument to try_shrink_wrapping.
9271 * shrink-wrap.c (can_get_prologue): New function.
9272 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9273 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
9274 can_get_prologue where needed. Remove code that finds a single
9275 edge for the prologue. Remove code that tests if any reg clobbered
9276 by the prologue is live on the prologue edge. Remove code that finds
9277 the new prologue edge after duplicating blocks. Make a new prologue
9278 block and edge.
9279 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9280
9281 2015-09-22 Jeff Law <law@redhat.com>
9282
9283 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9284 behavior.
9285
9286 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
9287
9288 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
9289 -Wtemplates, -Wnamespaces): Document.
9290
9291 2015-09-22 Tom de Vries <tom@codesourcery.com>
9292
9293 PR tree-optimization/67671
9294 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9295 pointer references as restrict.
9296
9297 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9298
9299 * config/nios2/nios2.c (nios2_legitimize_address): When handling
9300 'reg + reloc' cases, allow first operand to be non-REG, and use
9301 force_reg() to enforce address pattern.
9302
9303 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
9304
9305 PR target/67480
9306 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9307 (define_mode_iterator VI12_AVX_AVX512F): New.
9308 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9309 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9310 (define_insn "*<code><mode>3"): ... Into new pattern using
9311 VI12_AVX_AVX512F iterators without masking.
9312
9313 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9314
9315 * config.gcc: Support "skylake-avx512".
9316 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9317 PROCESSOR_SKYLAKE_AVX512.
9318 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9319 (processor_target_table): Add "skylake-avx512".
9320 (PTA_SKYLAKE_AVX512): Define.
9321 (ix86_option_override_internal): Add "skylake_avx512".
9322 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9323 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9324 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9325 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9326 * doc/invoke.texi (skylake-avx512): New.
9327
9328 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9329
9330 * config/i386/i386.md (define_insn "kunpckhi"): Fix
9331 operand in pattern.
9332 (define_insn "kunpcksi"): Ditto.
9333 (define_insn "kunpckdi"): Ditto.
9334
9335 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9336
9337 * config/i386/i386.md (define_split not/xor SWI1248x): Use
9338 iterator instead of fixed modes.
9339
9340 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9341
9342 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9343 Adjust declaration.
9344 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9345 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
9346 out_result. Update to support update-fetch operations.
9347 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9348 Adjust for change to aarch64_gen_atomic_ldop.
9349 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9350 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9351 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9352 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9353 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9354
9355 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9356
9357 * config/aarch64/aarch64-protos.h
9358 (aarch64_atomic_ldop_supported_p): Declare.
9359 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9360 (enum aarch64_atomic_load_op_code): New.
9361 (aarch64_emit_atomic_load_op): New.
9362 (aarch64_gen_atomic_ldop): Update to support load-operate
9363 patterns.
9364 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9365 to an expander.
9366 (aarch64_atomic_<atomic_optab><mode>): New.
9367 (aarch64_atomic_<atomic_optab><mode>_lse): New.
9368 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9369 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9370 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9371
9372 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9373
9374 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9375 (UNSPECV_ATOMIC_LDOP_OR): New.
9376 (UNSPECV_ATOMIC_LDOP_BIC): New.
9377 (UNSPECV_ATOMIC_LDOP_XOR): New.
9378 (UNSPECV_ATOMIC_LDOP_PLUS): New.
9379 (ATOMIC_LDOP): New.
9380 (atomic_ldop): New.
9381 (aarch64_atomic_load<atomic_ldop><mode>): New.
9382
9383 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9384
9385 * config/aarch64/aarch64.md
9386 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9387 pattern.
9388
9389 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9390
9391 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9392 Declare.
9393 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9394 (aarch64_gen_atomic_ldop): New.
9395 (aarch64_split_atomic_op): Fix whitespace and add a comment.
9396 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9397 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9398 (atomic_exchange<mode>): Replace with an expander.
9399 (aarch64_atomic_exchange<mode>): New.
9400 (aarch64_atomic_exchange<mode>_lse): New.
9401 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9402 (aarch64_atomic_swp<mode>): New.
9403
9404 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9405
9406 * tree-inline.c (expand_call_inline): Use inform for extra note.
9407 Do not give a note with UNKNOWN_LOCATION.
9408 Replace input_location with gimple_location (stmt).
9409 Use true/false instead of TRUE/FALSE.
9410
9411 2015-09-22 Tom de Vries <tom@codesourcery.com>
9412
9413 PR tree-optimization/67666
9414 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9415 with single field non-conservative.
9416
9417 2015-09-21 David S. Miller <davem@davemloft.net>
9418
9419 PR/67622
9420 Revert:
9421 2015-09-11 David S. Miller <davem@davemloft.net>
9422
9423 * config/sparc/constraints.md: Make "U" constraint a real register
9424 constraint.
9425 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9426 (D_MODES, DF_MODES): Add missing cast.
9427 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9428 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9429 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9430 cost to 8.
9431 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9432 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9433 provide these insn when flag_pic.
9434
9435 2015-09-17 David S. Miller <davem@davemloft.net>
9436
9437 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9438 Declare.
9439 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9440 function.
9441 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9442 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9443 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9444 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9445 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9446 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9447 provide when flag_pic.
9448
9449 2015-09-21 Jeff Law <law@redhat.com>
9450
9451 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9452 behavior.
9453
9454 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9455
9456 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9457
9458 2015-09-21 Richard Biener <rguenther@suse.de>
9459
9460 * passes.c (rest_of_decl_compilation): Do not call
9461 dwarf2out_early_global_decl for aliases.
9462
9463 2015-09-21 Richard Biener <rguenther@suse.de>
9464
9465 PR debug/67664
9466 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9467 attribute parameter. Early exit if either DW_AT_const_value
9468 or DW_AT_location are present already.
9469 (gen_variable_die): Adjust caller.
9470 (dwarf2out_late_global_decl): Likewise.
9471
9472 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9473
9474 PR target/67657
9475 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9476 sh_peephole_emit_move_insn): Add new functions.
9477 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9478 sh_peephole_emit_move_insn): Declere them.
9479 * config/sh/sh.md: Use them in various peephole2 patterns.
9480
9481 2015-09-21 Richard Biener <rguenther@suse.de>
9482
9483 PR middle-end/67651
9484 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9485 address with -fno-delete-null-pointer-checks.
9486
9487 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9488
9489 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9490 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9491 (reduc_uplus_v16qi): Remove.
9492
9493 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9494 (reduc_<VEC_reduc_name>_v2df): Remove.
9495 (reduc_<VEC_reduc_name>_v4sf): Remove.
9496 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9497
9498 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9499 gen_ function by removing * prefix.
9500 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9501
9502 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9503
9504 PR middle-end/60832
9505 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9506 Print i_bound without converting it to a tree.
9507
9508 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9509
9510 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9511 operands[4] operands[5] swap with std::swap, removed tmp variable.
9512 (arm_evpc_neon_vzip): Replaced in0/in1 and
9513 out0/out1 swaps with std::swap, removed x variable.
9514 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9515 out0/out1 swaos with std::swap, removed x variable.
9516 (arm_expand_vec_perm_const_1): Replaced
9517 d->op0/d->op1 swap with std::swap, removed x variable.
9518 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9519 out0/out1 swaps with std::swap, removed x variable.
9520
9521 2015-09-21 Jonathan Yong <10walls@gmail.com>
9522
9523 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9524 sysroot/usr/lib/32api for additional win32 libraries,
9525 fixes failing Cygwin bootstrapping.
9526
9527 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9528
9529 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9530
9531 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9532
9533 PR target/67126
9534 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9535 (*mov_t_msb_neg): Rewrite negc pattern.
9536
9537 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9538
9539 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9540 immediate generation code.
9541
9542 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9543
9544 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9545 redundant immediate generation code.
9546
9547 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9548
9549 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9550 (AARCH64_NUM_BITMASKS): Remove.
9551 (aarch64_bitmasks_cmp): Remove.
9552 (aarch64_build_bitmask_table): Remove.
9553
9554 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9555
9556 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9557 slow immediate matching loops with a faster algorithm.
9558
9559 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9560
9561 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9562 faster algorithm.
9563
9564 2015-09-20 Jeff Law <law@redhat.com>
9565
9566 PR tree-optimization/47679
9567 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9568 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9569 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9570 (thread_through_normal_block): Use record_temporary_equivalences.
9571
9572 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9573
9574 * coretypes.h (gimple): Change typedef to be a forward declaration.
9575 * gimple.h (gimple_statement_base): rename to gimple.
9576 * (all functions and types using gimple): Adjust.
9577 * *.[ch]: Likewise.
9578
9579 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9580 David Edelsohn <dje.gcc@gmail.com>
9581
9582 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9583 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9584 (EH_FRAME_THROUGH_COLLECT2): Define.
9585 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9586 (ASM_OUTPUT_DWARF_PCREL): Define.
9587 (ASM_OUTPUT_DWARF_DATAREL): Define.
9588
9589 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9590
9591 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9592 of TARGET_ELF32.
9593
9594 2015-09-18 Jeff Law <law@redhat.com>
9595
9596 PR tree-optimization/47679
9597 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
9598 it here ...
9599 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9600 object. Update constructor.
9601 (pass_dominator::execute): Corresponding chagnes to declaration
9602 and initialization of avail_exprs_stack. Update constructor call
9603 for dom_opt_dom_walker object.
9604 (lookup_avail_expr, record_cond): Accept additional argument. Pass
9605 it down to children as needed.
9606 (record_equivalences_from_incoming_edge): Likewise.
9607 (eliminate_redundant_computations): Likewise.
9608 (record_equivalences_from_stmt): Likewise.
9609 (simplify_stmt_for_jump_threading): Likewise.
9610 (record_temporary_equivalences): Likewise.
9611 (optimize_stmt): Likewise.
9612 (dom_opt_dom_walker::thread_across_edge): Update access to
9613 avail_exprs_stack object and pass it to children as needed.
9614 (dom_opt_dom_walker::before_dom_children): Similarly.
9615 (dom_opt_dom_walker::after_dom_children): Similarly.
9616 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9617 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9618 Add avail_expr_stack argument. Pass it to children as needed.
9619 (dummy_simplify): Likewise.
9620 (simplify_control_stmt_condition): Likewise.
9621 (thread_around_empty_blocks): Likewise.
9622 (thread_through_normal_block): Likewise.
9623 (thread_across_edge): Likewise.
9624 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9625 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9626
9627 PR tree-optimization/47679
9628 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
9629 it here ...
9630 (dom_opt_dom_walker): New private member holding the const_and_copies
9631 object. Update constructor.
9632 (pass_dominator::execute): Corresponding changes to declaration
9633 and initialization of const_and_copies. Update constructor call
9634 for the dom_opt_dom_walker object.
9635 (record_temporary_equivalences): Accept const_and_copies argument
9636 pass it down to children as needed.
9637 (record_equality): Likewise.
9638 (record_equivalences_from_incoming_edge): Likewise.
9639 (cprop_into_successor_phis, optimize_stmt): Likewise.
9640 (eliminate_redundant_computations): Likewise.
9641 (dom_opt_dom_walker::thread_across_edge): Update access to
9642 const_and_copies object and pass it to children as needed.
9643 (dom_opt_dom_walker::before_dom_children): Similarly.
9644 (dom_opt_dom_walker::after_dom_children): Similarly.
9645
9646 PR tree-optimization/47679
9647 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
9648 it into the avail_exprs_stack class.
9649 (pass_dominator::execute): Corresponding changes to declaration
9650 and initialization of avail_exprs. Pass avail_exprs to
9651 dump_dominator_optimization_stats.
9652 (record_cond): Extract avail_exprs from avail_exprs_stack.
9653 (lookup_avail_expr): Similarly.
9654 (htab_staticstics): Remove unnecessary prototype. Move to earlier
9655 position in file.
9656 (dump_dominator_optimization_stats): Make static and prototype.
9657 Add argument for the hash table to dump.
9658 (debug_dominator_optimization_stats): Remove.
9659 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9660 prototype.
9661 (debug_dominator_optimization_stats): Similarly.
9662 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9663 "void" in prototype for pop_to_marker method. Add accessor method
9664 for the underlying avail_exprs table.
9665
9666 * tree-ssa-threadedge.c: Remove trailing whitespace.
9667
9668 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
9669
9670 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9671 unsigned.
9672 (pa_ldil_cint_p): Likewise.
9673 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9674 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9675 Update callers.
9676 * config/pa/pa.md: Likewise.
9677
9678 2015-09-18 David Malcolm <dmalcolm@redhat.com>
9679
9680 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9681 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9682 (diagnostic_show_locus): Likewise.
9683 (diagnostic_print_caret_line): Likewise.
9684 * diagnostic-show-locus.c: New file.
9685
9686 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
9687
9688 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9689 "back" parameter. Declare label in #if block.
9690
9691 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
9692
9693 PR middle-end/67619
9694 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9695 the address to a register.
9696
9697 2015-09-18 Jeff Law <law@redhat.com>
9698
9699 PR tree-optimization/47679
9700 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9701 * tree-ssa-dom.c: Remove unnecessary header includes.
9702 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9703 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9704 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9705 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9706 (pass_phi_only_cprop::execute): Likewise.
9707 (make_pass_phi_only_cprop): Likewise.
9708 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
9709 uses of file scoped statics by passing the required objects
9710 as parameters wherever needed.
9711
9712 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
9713 David Edelsohn <dje.gcc@gmail.com>
9714
9715 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9716 EH_FRAME_THROUGH_COLLECT2.
9717 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9718 DW_EH_PE_datarel.
9719 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9720 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
9721 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9722 * except.c (switch_to_exception_section): Use a read-only section
9723 even if EH_FRAME_SECTION_NAME is undefined.
9724 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9725 * collect2.c (write_c_file_stat): Provide dbase on AIX.
9726 (scan_prog_file): Don't export __dso_handle nor
9727 __gcc_unwind_dbase.
9728 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9729 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9730 (ASM_OUTPUT_DWARF_PCREL): Define.
9731 (ASM_OUTPUT_DWARF_DATAREL): Define.
9732 (EH_FRAME_THROUGH_COLLECT2): Define.
9733 (EH_FRAME_IN_DATA_SECTION): Delete.
9734 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9735 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9736 Declare.
9737 (rs6000_asm_output_dwarf_datarel): Declare.
9738 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9739 (rs6000_aix_asm_output_dwarf_datarel): New.
9740 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9741 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9742 (EH_FRAME_THROUGH_COLLECT2): Define.
9743 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9744 (EH_FRAME_THROUGH_COLLECT2): Define.
9745 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9746 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9747 (EH_FRAME_THROUGH_COLLECT2): New.
9748 (ASM_OUTPUT_DWARF_DATAREL): New.
9749 * doc/tm.texi: Regenerate.
9750
9751 2015-09-18 Richard Biener <rguenther@suse.de>
9752
9753 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9754 we're in early phase.
9755 (schedule_generic_params_dies_gen): Likewise.
9756 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9757 work as possible, retaining unhandled cases.
9758 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9759 clear out generic_type_instances at the end.
9760 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9761 (dwarf2out_early_finish): ... here. Do most of
9762 gen_remaining_tmpl_value_param_die_attribute here.
9763
9764 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
9765
9766 PR tree-optimization/67283
9767 * tree-sra.c (type_consists_of_records_p): Rename to...
9768 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9769 (completely_scalarize_record): Rename to...
9770 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9771 (scalarize_elem): New.
9772 (analyze_all_variable_accesses): Follow renamings.
9773
9774 2015-09-18 Richard Biener <rguenther@suse.de>
9775
9776 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9777 in early-dwarf.
9778
9779 2015-09-18 Richard Biener <rguenther@suse.de>
9780
9781 PR tree-optimization/66142
9782 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9783 treat MEM[&x] and x the same.
9784 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9785 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9786 when we simplified sth.
9787 (vn_reference_maybe_forwprop_address): Likewise.
9788 (valueize_refs_1): When we simplified through
9789 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9790 set valueized_anything to true.
9791 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9792 one ref kills the other instead of just a offset-based test.
9793 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9794 for the operand_equal_p test to compare bases and also compare
9795 sizes.
9796
9797 2015-09-17 Christian Bruel <christian.bruel@st.com>
9798
9799 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9800
9801 2015-09-17 Richard Henderson <rth@redhat.com>
9802
9803 PR libstdc++/65913
9804 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9805 pointers that encode the alignment of the object.
9806
9807 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9808
9809 PR rtl-optimization/66790
9810 * df-problems.c (LIVE): Amend documentation.
9811
9812 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
9813
9814 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9815 and optabs-tree.o.
9816 (GTFILES): Replace optabs.c with optabs-libfunc.c.
9817 * genopinit.c (main): Add an include guard to insn-opinit.h.
9818 Protect the rtx_code parts with NUM_RTX_CODE.
9819 * optabs.h: Split parts out to...
9820 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9821 * optabs.c: Split parts out to...
9822 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9823 * cilk-common.c: Include optabs-query.h rather than optabs.h.
9824 * fold-const.c: Likewise.
9825 * target-globals.c: Likewise.
9826 * tree-if-conv.c: Likewise.
9827 * tree-ssa-forwprop.c: Likewise.
9828 * tree-ssa-loop-prefetch.c: Likewise.
9829 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9830 Remove unncessary include files.
9831 * tree-ssa-phiopt.c: Likewise.
9832 * tree-ssa-reassoc.c: Likewise.
9833 * tree-switch-conversion.c: Likewise.
9834 * tree-vect-data-refs.c: Likewise.
9835 * tree-vect-generic.c: Likewise.
9836 * tree-vect-loop.c: Likewise.
9837 * tree-vect-patterns.c: Likewise.
9838 * tree-vect-slp.c: Likewise.
9839 * tree-vect-stmts.c: Likewise.
9840 * tree-vrp.c: Likewise.
9841 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9842 rather than optabs.h.
9843 * expr.c: Include optabs-tree.h.
9844 * function.c: Likewise.
9845
9846 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9847
9848 PR middle-end/65958
9849 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9850 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9851 * config/arm/arm.c: Include common/common-target.h.
9852 (use_return_insn): Return 0 if the static chain register was saved
9853 above a non-APCS frame.
9854 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9855 (struct scratch_reg): New.
9856 (get_scratch_register_on_entry): New function.
9857 (release_scratch_register_on_entry): Likewise.
9858 (arm_emit_probe_stack_range): Likewise.
9859 (output_probe_stack_range): Likewise.
9860 (arm_expand_prologue): Factor out code dealing with the IP register
9861 for nested function and adjust it for stack checking.
9862 Invoke arm_emit_probe_stack_range if static builtin stack checking
9863 is enabled.
9864 (thumb1_expand_prologue): Sorry out if static builtin stack checking
9865 is enabled.
9866 (arm_expand_epilogue): Add the saved static chain register, if any, to
9867 the amount of pre-pushed registers to pop.
9868 (arm_frame_pointer_required): Return true if static stack checking is
9869 enabled and we want to catch the exception with the EABI unwinder.
9870 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9871 (UNSPEC_PROBE_STACK_RANGE): Likewise.
9872 * config/arm/arm.md (probe_stack): New insn.
9873 (probe_stack_range): Likewise.
9874
9875 2015-09-17 Richard Biener <rguenther@suse.de>
9876
9877 * genmatch.c (parser::parse_expr): Improve error message
9878 for mis-placed flags.
9879
9880 2015-09-17 Richard Biener <rguenther@suse.de>
9881
9882 * passes.c (rest_of_decl_compilation): Always call early_global_decl
9883 debug hook when we created a varpool node.
9884 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9885 dwarf2out_early_global_decl, when not just add location or
9886 value attributes to existing DIEs.
9887
9888 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
9889
9890 * config/aarch64/aarch64.md (copysigndf3): New.
9891 (copysignsf3): Likewise.
9892
9893 2015-09-17 David S. Miller <davem@davemloft.net>
9894
9895 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9896 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9897 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9898 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9899 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9900 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9901 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9902 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9903 provide when flag_pic.
9904
9905 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
9906
9907 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9908 object_allocator change.
9909
9910 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9911
9912 PR tree-optimization/66388
9913 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9914 (dump_iv): Dump no_overflow information.
9915 (alloc_iv): Initialize new field for struct iv.
9916 (mark_bivs): Count number of no_overflow bivs.
9917 (find_deriving_biv_for_expr, record_biv_for_address_use): New
9918 functions.
9919 (idx_find_step): Call new functions above.
9920 (add_candidate_1, add_candidate): New paramter.
9921 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9922 (get_computation_aff): Simplify convertion of cand for BIV.
9923 (get_computation_cost_at): Step cand's base if necessary.
9924
9925 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9926
9927 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9928 parameter.
9929 (tree_simplify_using_condition): Ditto.
9930 (simplify_using_initial_conditions): Ditto.
9931 (loop_exits_before_overflow): Pass new argument to function
9932 simplify_using_initial_conditions. Remove case for type conversions
9933 simplification.
9934 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9935 parameter.
9936 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9937 in iv base using loop initial conditions.
9938
9939 2015-09-16 Jeff Law <law@redhat.com>
9940
9941 PR tree-optimization/47679
9942 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9943 (free_all_edge_infos): Use it.
9944 (allocate_edge_info): Free preexisting edge info data.
9945 (pass_dominator::execute): Set up initial edge info structures.
9946 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9947 thread_across_edge.
9948 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9949 If non-null, then push/pop markers appropriately.
9950 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9951 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9952 thread-across_edge.
9953
9954 2015-09-16 James Bowman <james.bowman@ftdichip.com>
9955
9956 * config/ft32/ft32.c: Fix the memory address space predicate.
9957
9958 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9959
9960 PR target/67573
9961 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9962 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9963
9964 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9965
9966 * toplev.h (check_global_declaration): Remove declaration.
9967 * toplev.c (check_global_declaration): Move to ...
9968 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9969 (analyze_functions): Update call.
9970
9971 2015-09-16 David S. Miller <davem@davemloft.net>
9972
9973 * lra-constraints.c (simplify_operand_subreg): Do not assume that
9974 lowpart of a SUBREG has offset zero.
9975
9976 2015-09-16 Jeff Law <law@redhat.com>
9977
9978 PR tree-optimization/47679
9979 * tree-ssa-dom.c (enum expr_kind): Moved from here to
9980 tree-ssa-scopedtables.h.
9981 (struct hashable_expr, class expr_hash_elt): Likewise.
9982 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9983 Move associated methods into tree-ssa-scopedtables.c.
9984 (avail_expr_hash, initialize_expr_from_cond): Similarly.
9985 (hashable_expr_equal_p, add_expr_commutative): Likewise.
9986 (add_hashable_expr): Likewise.
9987 (record_cond): Delete element directly.
9988 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9989 private copy ctor and assignment operator methods.
9990 (expr_elt_hasher): Inline trivial methods.
9991 (initialize_expr_from_cond): Prototype.
9992 * tree-ssa-scopedtables.c: Add necessary includes, functions and
9993 methods that were previously in tree-ssa-dom.c. Improve various
9994 comments.
9995
9996 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
9997
9998 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9999
10000 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
10001
10002 PR bootstrap/67587
10003 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10004 fixup_partitions.
10005
10006 2015-09-16 Richard Biener <rguenther@suse.de>
10007
10008 PR middle-end/67253
10009 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10010 location of possibly shared trees.
10011
10012 2015-09-16 Richard Biener <rguenther@suse.de>
10013
10014 PR middle-end/67271
10015 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10016
10017 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
10018
10019 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10020 offset and size computations instead of HOST_WIDE_INT.
10021
10022 2015-09-16 Richard Biener <rguenther@suse.de>
10023
10024 PR middle-end/67442
10025 * fold-const.c (extract_muldiv_1): Properly extend multiplication
10026 result before builting a tree via wide_int_to_tree.
10027
10028 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
10029
10030 * Makefile.in: Add memory-block.cc
10031 (pool_allocator::initialize): Use fixed block size.
10032 (pool_allocator::release): Use memory_block_pool.
10033 (pool_allocator::allocate): Likewise.
10034 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10035 object pools.
10036 * cfg.c (initialize_original_copy_tables): Likewise.
10037 * cselib.c (elt_list_pool, elt_loc_list_pool,
10038 cselib_val_pool): Likewise.
10039 * df-problems.c (df_chain_alloc): Likewise.
10040 * df-scan.c (df_scan_alloc): Likewise.
10041 * dse.c (cse_store_info_pool, rtx_store_info_pool,
10042 read_info_type_pool, insn_info_type_pool, bb_info_pool,
10043 group_info_pool, deferred_change_pool): Likewise.
10044 * et-forest.c (et_nodes, et_occurrences): Likewise.
10045 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10046 ipcp_agg_lattice_pool): Likewise.
10047 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10048 * ipa-profile.c (histogram_pool): Likewise.
10049 * ipa-prop.c (ipa_refdesc_pool): Likewise.
10050 * ira-build.c (live_range_pool, allocno_pool, object_pool,
10051 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10052 * ira-color.c (update_cost_record_pool): Likewise.
10053 * lra-lives.c (lra_live_range_pool): Likewise.
10054 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10055 * memory-block.cc: New file.
10056 * memory-block.h: New file.
10057 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10058 * sched-deps.c (sched_deps_init): Likewise.
10059 * sel-sched-ir.c (sched_lists_pool): Likewise.
10060 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10061 * tree-sra.c (access_pool): Likewise.
10062 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10063 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10064 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10065 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10066 * tree-ssa-strlen.c (strinfo_pool): Likewise.
10067 * tree-ssa-structalias.c (variable_info_pool): Likewise.
10068 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10069 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10070
10071 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10072
10073 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10074 definition.
10075 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10076 call0 ABI.
10077
10078 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10079
10080 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10081 to pass TLS call argument, according to current ABI.
10082 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10083 callx0 for TLS call, according to current ABI.
10084
10085 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10086
10087 * tree-eh.c (lower_try_finally_dup_block): Clear location information
10088 on stack restore statements.
10089 (decide_copy_try_finally): Do not consider a stack restore statement as
10090 coming from sources.
10091
10092 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
10093
10094 * config/alpha/alpha.c (alpha_expand_block_clear): Use
10095 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10096
10097 2015-09-15 Jeff Law <law@redhat.com>
10098
10099 PR tree-optimization/47679
10100 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10101 methods and private members.
10102 (avail_exprs_stack): Similarly. Change type of global
10103 from a pair of expr_hash_elt_t to the new class.
10104 (expr_elt_hasher::hash): Corresponding changes.
10105 (expr_elt_hasher::equal): Similarly.
10106 (avail_expr_hash): Similarly.
10107 (pass_dominator::execute): Similarly.
10108 (dom_opt_dom_walker::thread_across_edge): Similarly.
10109 (record_cond): Similarly.
10110 (dom_opt_dom_walker::before_dom_children): Similarly.
10111 (dom_opt_dom_walker::after_dom_children): Similarly.
10112 (lookup_avail_expr): Likewise.
10113 (initialize_hash_element): Now a expr_hash_elt constructor.
10114 (initialize_hash_element_from_expr): Similarly.
10115 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10116 (free_expr_hash_elt): Call dtor for the element.
10117 (remove_local_expressions_from_table): Now the "pop_to_marker"
10118 method in the available_exprs_stack class.
10119 (avail_expr_stack::record_expr): Method factored out.
10120 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10121 Fix formatting.
10122 (hashable_expr_equal_p): Fix formatting.
10123
10124 2015-09-15 David Malcolm <dmalcolm@redhat.com>
10125
10126 * input.h (location_get_source_line): Drop "expanded_location"
10127 param in favor of a file and line number.
10128 * input.c (location_get_source_line): Likewise.
10129 (dump_location_info): Update for change in signature of
10130 location_get_source_line.
10131 * diagnostic.c (diagnostic_print_caret_line): Likewise.
10132
10133 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10134
10135 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10136 Bump to 4KB for SJLJ exceptions.
10137 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
10138 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10139 * doc/tm.texi: Regenerate.
10140
10141 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10142
10143 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10144 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
10145 Update prototype.
10146
10147 2015-09-15 Richard Biener <rguenther@suse.de>
10148
10149 PR tree-optimization/67470
10150 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10151 structure for PHI hoisting by inserting a forwarder block
10152 if appropriate.
10153
10154 2015-09-15 Christian Bruel <christian.bruel@st.com>
10155
10156 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10157 (arm_option_print): New function.
10158
10159 2015-09-15 Christian Bruel <christian.bruel@st.com>
10160
10161 PR target/52144
10162 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10163 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10164 Remove flags parameter.
10165 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10166 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10167 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10168 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10169 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10170 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10171 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10172 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10173
10174 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10175
10176 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10177
10178 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10179 AARCH64_VALID_SIMD_DREG_MODE.
10180
10181 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10182
10183 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10184 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10185 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10186 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10187 aarch64_ld4_lane<mode>): Combine together, making...
10188 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10189 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10190 aarch64_st4_lane<mode>): Combine together, making...
10191 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10192 * config/aarch64/iterators.md (nregs): Add comment.
10193
10194 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10195
10196 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10197 Change operand mode from <V_TWO_ELEM> to BLK.
10198 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10199 (aarch64_vec_store_lanesoi_lane<mode): Likewise
10200 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10201 (aarch64_ld2_lane<mode>): Likewise.
10202 (aarch64_st2_lane<VQ:mode>): Likewise.
10203 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10204
10205 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10206
10207 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10208 Change operand mode from <V_FOUR_ELEM> to BLK.
10209 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10210 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10211 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10212 (aarch64_ld4_lane<mode>): Likewise.
10213 (aarch64_st4_lane<mode>): Likewise.
10214 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10215
10216 2015-09-15 Richard Biener <rguenther@suse.de>
10217
10218 PR middle-end/67563
10219 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10220 transfer EH info from old to new stmt.
10221 (replace_call_with_value): Likewise.
10222 (replace_call_with_call_and_fold): Likewise.
10223 (gimple_fold_builtin_memory_op): Likewise.
10224 (gimple_fold_builtin_memset): Likewise.
10225 (gimple_fold_builtin_stpcpy): Likewise.
10226 (gimple_fold_call): Likewise.
10227
10228 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10229
10230 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10231 comment.
10232 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10233 (aarch64_simd_intEI_type_node): Likewise.
10234 (aarch64_simd_builtin_std_type): Remove EImode case.
10235 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10236 * config/aarch64/aarch64-modes.def: Remove EImode.
10237
10238 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10239
10240 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10241 Change operand mode from <V_THREE_ELEM> to BLK.
10242 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10243 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10244 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10245 (aarch64_ld3_lane<mode>): Likewise.
10246 (aarch64_st3_lane<mode>): Likewise.
10247 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10248
10249 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10250
10251 * config/aarch64/aarch64-simd.md
10252 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10253 Change all TImode operands to BLKmode.
10254 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10255 Change all EImode operands to BLKmode.
10256 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10257 Change all OImode operands to BLKmode.
10258
10259 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10260 and call set_mem_size.
10261 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10262
10263 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10264
10265 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10266
10267 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10268 to...
10269 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10270
10271 (vec_store_lanesci_lane<mode>): Rename to...
10272 (aarch64_vec_store_lanesci_lane<mode>): ...this.
10273
10274 (vec_store_lanesxi_lane<mode>): Rename to...
10275 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10276
10277 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10278 aarch64_st4_lane<mode>): Follow renaming.
10279
10280 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10281
10282 * config/s390/s390.c (s390_const_operand_ok): Add missing
10283 brackets.
10284
10285 2015-09-15 Richard Biener <rguenther@suse.de>
10286
10287 PR lto/67568
10288 * lto-streamer.h (lto_location_cache::current_sysp): Properly
10289 initialize.
10290 * lto-streamer-out.c (clear_line_info): Likewise.
10291
10292 2015-09-15 Richard Biener <rguenther@suse.de>
10293
10294 * doc/match-and-simplify.texi: Fix wording.
10295
10296 2015-09-15 Bin Cheng <bin.cheng@arm.com>
10297
10298 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10299 unnecessary type conversion in op1.
10300
10301 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10302
10303 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10304 (dup_block_and_redirect): Delete function.
10305 (can_dup_for_shrink_wrapping): New function.
10306 (fix_fake_fallthrough_edge): New function.
10307 (try_shrink_wrapping): Rewrite function.
10308 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10309
10310 2015-09-14 Rich Felker <dalias@libc.org>
10311
10312 * configure.ac: Change target pattern for sh TLS support
10313 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10314 * configure: Regenerate.
10315
10316 2015-09-14 Jeff Law <law@redhat.com>
10317
10318 PR tree-optimization/47679
10319 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10320 type rather than void *.
10321
10322 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10323
10324 PR fortran/67460
10325 * diagnostic.c (diagnostic_initialize): Do not set
10326 some_warnings_are_errors.
10327 (diagnostic_finish): Use DK_WERROR count instead.
10328 (diagnostic_report_diagnostic): Do not set
10329 some_warnings_are_errors.
10330 * diagnostic.h (struct diagnostic_context): Remove
10331 some_warnings_are_errors.
10332
10333 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
10334
10335 * config/sparc/predicates.md (const_all_ones_operand): Use
10336 CONSTM1_RTX to simplify definition.
10337
10338 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
10339
10340 PR target/67061
10341 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10342 Handle call insns.
10343
10344 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
10345
10346 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10347 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10348 OPT_fshow_column to handled saved option cases.
10349 (append_compiler_options): Do not skip the above added options.
10350
10351 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10352
10353 PR target/63304
10354 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10355 nopcrelative_literal_loads.
10356 (aarch64_classify_address): Likewise.
10357 (aarch64_constant_pool_reload_icode): Define.
10358 (aarch64_secondary_reload): Handle secondary reloads for
10359 literal pools.
10360 (aarch64_override_options): Handle nopcrelative_literal_loads.
10361 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10362 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10363 Define.
10364 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10365 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10366 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10367 predicate.
10368 * doc/invoke.texi (mpc-relative-literal-loads): Document.
10369
10370 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
10371
10372 PR middle-end/67401
10373 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10374 sync_compare_and_swap_optab libcall to target_oval.
10375
10376 2015-09-14 Marek Polacek <polacek@redhat.com>
10377
10378 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10379 value.
10380 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10381
10382 2015-09-11 Mark Wielaard <mjw@redhat.com>
10383
10384 PR c/28901
10385 * toplev.c (check_global_declaration): Check and use
10386 warn_unused_const_variable.
10387 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10388 (-Wunused-variable): Remove non-constant. For C implies
10389 -Wunused-const-variable.
10390 (-Wunused-const-variable): New.
10391
10392 2015-09-14 Richard Biener <rguenther@suse.de>
10393
10394 * doc/match-and-simplify.texi: Update for changed syntax
10395 of inner ifs and the new switch expression.
10396
10397 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10398
10399 * config/i386/haswell.md: New file describing Haswell pipeline.
10400 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10401 haswell-like processors.
10402 (ix86_reassociation_width): Increase reassociation width for 64-bit
10403 Haswell processor family.
10404 * config/i386/i386.md: Introduce haswell cpu and include new md file.
10405
10406 2015-09-14 Richard Biener <rguenther@suse.de>
10407
10408 * doc/match-and-simplify.texi: Fixup some formatting issues
10409 and document the 's' flag.
10410
10411 2015-09-13 Olivier Hainque <hainque@adacore.com>
10412 Eric Botcazou <ebotcazou@adacore.com>
10413
10414 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10415 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
10416 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10417 (TARGET_CPU_gr5): Likewise.
10418 (TARGET_CPU_gr6): Likewise.
10419 (MULTILIB_DEFAULTS): Likewise.
10420 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10421 for mcpu=gr5 and mcpu=gr6.
10422 (MULTILIB_DIRNAMES): Adjust accordingly.
10423
10424 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10425
10426 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10427 (mem_ref_p): Likewise.
10428 (outermost_indep_loop): Adjust.
10429 (mem_ref_in_stmt): Likewise.
10430 (determine_max_movement): Likewise.
10431 (mem_ref_alloc): Likewise.
10432 (record_mem_ref_loc): Likewise.
10433 (set_ref_stored_in_loop): Likewise.
10434 (mark_ref_stored): Likewise.
10435 (gather_mem_refs_stmt): Likewise.
10436 (mem_refs_may_alias_p): Likewise.
10437 (for_all_locs_in_loop): Likewise.
10438 (struct rewrite_mem_ref_loc): Likewise.
10439 (rewrite_mem_refs): Likewise.
10440 (struct first_mem_ref_loc_1): Likewise.
10441 (first_mem_ref_loc): Likewise.
10442 (struct sm_set_flag_if_changed): Likewise.
10443 (execute_sm_if_changed_flag_set): Likewise.
10444 (execute_sm): Likewise.
10445 (hoist_memory_references):
10446 (struct ref_always_accessed): Likewise.
10447 (ref_always_accessed_p): Likewise.
10448 (refs_independent_p): Likewise.
10449 (record_dep_loop): Likewise.
10450 (ref_indep_loop_p_1): Likewise.
10451 (ref_indep_loop_p_2): Likewise.
10452 (ref_indep_loop_p): Likewise.
10453 (can_sm_ref_p): Likewise.
10454 (find_refs_for_sm): Likewise.
10455 (tree_ssa_lim_finalize): Likewise.
10456
10457 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10458
10459 * dwarf2out.c (dw_attr_ref): Remove typedef.
10460 (dw_line_info_ref): Likewise.
10461 (pubname_ref): Likewise.
10462 (dw_ranges_ref): Likewise.
10463 (dw_ranges_by_label_ref): Likewise.
10464 (comdat_type_node_ref): Likewise.
10465 (get_AT): Adjust.
10466 (get_AT_low_pc): Likewise.
10467 (get_AT_hi_pc): Likewise.
10468 (get_AT_string): Likewise.
10469 (get_AT_flag): Likewise.
10470 (get_AT_unsigned): Likewise.
10471 (get_AT_ref): Likewise.
10472 (get_AT_file): Likewise.
10473 (remove_AT): Likewise.
10474 (print_die): Likewise.
10475 (check_die): Likewise.
10476 (die_checksum): Likewise.
10477 (attr_checksum_ordered): Likewise.
10478 (struct checksum_attributes): Likewise.
10479 (collect_checksum_attributes): Likewise.
10480 (die_checksum_ordered): Likewise.
10481 (same_die_p): Likewise.
10482 (is_declaration_die): Likewise.
10483 (clone_die): Likewise.
10484 (clone_as_declaration): Likewise.
10485 (copy_declaration_context): Likewise.
10486 (break_out_comdat_types): Likewise.
10487 (copy_decls_walk): Likewise.
10488 (output_location_lists): Likewise.
10489 (external_ref_hasher::hash): Likewise.
10490 (optimize_external_refs_1): Likewise.
10491 (build_abbrev_table): Likewise.
10492 (size_of_die): Likewise.
10493 (unmark_all_dies): Likewise.
10494 (size_of_pubnames): Likewise.
10495 (output_die_abbrevs): Likewise.
10496 (output_die): Likewise.
10497 (output_pubnames): Likewise.
10498 (add_ranges_num): Likewise.
10499 (add_ranges_by_labels): Likewise.
10500 (add_high_low_attributes): Likewise.
10501 (gen_producer_string): Likewise.
10502 (dwarf2out_set_name): Likewise.
10503 (new_line_info_table): Likewise.
10504 (prune_unused_types_walk_attribs): Likewise.
10505 (prune_unused_types_update_strings): Likewise.
10506 (prune_unused_types): Likewise.
10507 (resolve_addr): Likewise.
10508 (optimize_location_lists_1): Likewise.
10509 (index_location_lists): Likewise.
10510 (dwarf2out_finish): Likewise.
10511
10512 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10513
10514 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10515
10516 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10517
10518 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10519 (dump_asserts_for): Adjust.
10520 (register_new_assert_for): Likewise.
10521 (process_assert_insertions): Likewise.
10522 (insert_range_assertions): Likewise.
10523
10524 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10525
10526 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10527 and remove typedef.
10528 (new_temp_expr_table): Adjust.
10529 (free_temp_expr_table): Likewise.
10530 (version_to_be_replaced_p): Likewise.
10531 (make_dependent_on_partition): Likewise.
10532 (add_to_partition_kill_list): Likewise.
10533 (remove_from_partition_kill_list): Likewise.
10534 (add_dependence): Likewise.
10535 (finished_with_expr): Likewise.
10536 (process_replaceable): Likewise.
10537 (kill_expr): Likewise.
10538 (kill_virtual_exprs): Likewise.
10539 (mark_replaceable): Likewise.
10540 (find_replaceable_in_bb): Likewise.
10541 (find_replaceable_exprs): Likewise.
10542 (debug_ter): Likewise.
10543
10544 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10545
10546 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10547 (struct btr_user): Rename from btr_user_s.
10548 (struct btr_def): Rename from btr_def_s.
10549 (find_btr_def_group): Adjust.
10550 (add_btr_def): Likewise.
10551 (new_btr_user): Likewise.
10552 (note_other_use_this_block): Likewise.
10553 (compute_defs_uses_and_gen): Likewise.
10554 (link_btr_uses): Likewise.
10555 (build_btr_def_use_webs): Likewise.
10556 (block_at_edge_of_live_range_p): Likewise.
10557 (btr_def_live_range): Likewise.
10558 (combine_btr_defs): Likewise.
10559 (move_btr_def): Likewise.
10560 (migrate_btr_def): Likewise.
10561 (migrate_btr_defs): Likewise.
10562
10563 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10564
10565 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10566 (shared_hash): Remove typedef.
10567 (struct dataflow_set): Adjust.
10568 (shared_hash_unshare): Likewise.
10569 (dataflow_set_merge): Likewise.
10570 (vt_initialize): Likewise.
10571 (vt_finalize): Likewise.
10572
10573 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10574
10575 * var-tracking.c (struct location_chain): Rename from
10576 location_chain_def.
10577 (struct variable_part): Adjust.
10578 (variable_htab_free): Likewise.
10579 (unshare_variable): Likewise.
10580 (get_init_value): Likewise.
10581 (get_addr_from_local_cache): Likewise.
10582 (drop_overlapping_mem_locs): Likewise.
10583 (val_reset): Likewise.
10584 (struct variable_union_info): Likewise.
10585 (variable_union): Likewise.
10586 (find_loc_in_1pdv): Likewise.
10587 (insert_into_intersection): Likewise.
10588 (intersect_loc_chains): Likewise.
10589 (canonicalize_loc_order_check): Likewise.
10590 (canonicalize_values_mark): Likewise.
10591 (canonicalize_values_star): Likewise.
10592 (canonicalize_vars_star): Likewise.
10593 (variable_merge_over_cur): Likewise.
10594 (remove_duplicate_values): Likewise.
10595 (variable_post_merge_new_vals): Likewise.
10596 (variable_post_merge_perm_vals): Likewise.
10597 (find_mem_expr_in_1pdv): Likewise.
10598 (dataflow_set_preserve_mem_locs): Likewise.
10599 (dataflow_set_remove_mem_locs): Likewise.
10600 (variable_part_different_p): Likewise.
10601 (onepart_variable_different_p): Likewise.
10602 (find_src_set_src): Likewise.
10603 (dump_var): Likewise.
10604 (set_slot_part): Likewise.
10605 (clobber_slot_part): Likewise.
10606 (delete_slot_part): Likewise.
10607 (vt_expand_var_loc_chain): Likewise.
10608 (emit_note_insn_var_location): Likewise.
10609 (vt_finalize): Likewise.
10610
10611 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10612
10613 * dse.c (store_info_t): Remove typedef.
10614 (group_info_t): Likewise.
10615 (const_group_info_t): Likewise.
10616 (deferred_change_t): Likewise.
10617 (get_group_info): Adjust.
10618 (free_store_info): Likewise.
10619 (canon_address): Likewise.
10620 (clear_rhs_from_active_local_stores): Likewise.
10621 (record_store): Likewise.
10622 (replace_read): Likewise.
10623 (check_mem_read_rtx): Likewise.
10624 (scan_insn): Likewise.
10625 (remove_useless_values): Likewise.
10626 (dse_step1): Likewise.
10627 (dse_step2_init): Likewise.
10628 (dse_step2_nospill): Likewise.
10629 (scan_stores_nospill): Likewise.
10630 (scan_reads_nospill): Likewise.
10631 (dse_step3_exit_block_scan): Likewise.
10632 (dse_step3): Likewise.
10633 (dse_step5_nospill): Likewise.
10634 (dse_step6): Likewise.
10635
10636 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10637
10638 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10639 (alias_set_entry): Remove typedef.
10640 (alias_set_subset_of): Adjust.
10641 (alias_sets_conflict_p): Likewise.
10642 (init_alias_set_entry): Likewise.
10643 (get_alias_set): Likewise.
10644 (new_alias_set): Likewise.
10645 (record_alias_subset): Likewise.
10646
10647 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
10648
10649 * doc/install.texi (Downloading the source): Mark up
10650 contrib/download_prerequisites properly and drop leading "./".
10651
10652 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10653
10654 * config/arc/arc.h: Remove define of STRUCT_VALUE.
10655 * config/lm32/lm32.h: Likewise.
10656 * config/mep/mep.h: Likewise.
10657 * config/visium/visium.h: Likewise.
10658 * system.h: Poison STRUCT_VALUE macro.
10659
10660 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
10661
10662 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10663 CONSTANT_P operands.
10664
10665 2015-09-11 David S. Miller <davem@davemloft.net>
10666
10667 * config/sparc/constraints.md: Make "U" constraint a real register
10668 constraint.
10669 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10670 (D_MODES, DF_MODES): Add missing cast.
10671 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10672 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10673 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10674 cost to 8.
10675 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10676 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10677 provide these insn when flag_pic.
10678
10679 2015-09-11 Jeff Law <law@redhat.com>
10680
10681 PR tree-optimization/47679
10682 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10683 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10684 member with m_. Update inline member functions as necessary. Add
10685 toplevel comment.
10686 * tree-ssa-scopedtables.c: Update const_and_copies's member
10687 functions to use m_ prefix to access the stack.
10688
10689 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10690
10691 * graphite-optimize-isl.c (disable_tiling): Remove.
10692 (get_schedule_for_band): Do not use disable_tiling.
10693 (get_prevector_map): Delete function.
10694 (enable_polly_vector): Remove.
10695 (get_schedule_for_band_list): Remove dead code.
10696
10697 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10698
10699 * graphite-optimize-isl.c (get_tile_map): Refactor.
10700 (get_schedule_for_band): Same.
10701 (getScheduleForBand): Same.
10702 (get_prevector_map): Same.
10703 (get_schedule_for_band_list): Same.
10704 (get_schedule_map): Same.
10705 (get_single_map): Same.
10706 (apply_schedule_map_to_scop): Same.
10707 (optimize_isl): Same.
10708
10709 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10710
10711 PR target/63304
10712 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10713 (movtf): Delete.
10714 * config/aarch64/iterators.md (GPF_TF_F16): New.
10715 (GPF_F16): Delete.
10716
10717 2015-09-10 Nathan Sidwell <nathan@acm.org>
10718
10719 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10720 (nvptx_reorg): Adjust comments.
10721
10722 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
10723
10724 PR bootstrap/67363
10725 * configure.ac: Check if setenv and unsetenv are declared.
10726 * configure: Rebuild.
10727 * config.in: Rebuild.
10728 * system.h: Declare setenv and unsetenv if not declared.
10729
10730 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10731
10732 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10733 commentary to simplify permute mask adjustment equation.
10734 (special_handling_values): Add SH_VPERM.
10735 (const_load_sequence_p): New function.
10736 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10737 the mask loaded from the constant pool.
10738 (adjust_vperm): New function.
10739 (handle_special_swappables): Call adjust_vperm.
10740 (dump_swap_insn_table): Handle SH_VPERM.
10741
10742 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 * shrink-wrap.c (requires_stack_frame_p): Remove static.
10745 * shrink-wrap.h (requires_stack_frame_p): Put back.
10746
10747 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
10748
10749 * reload1.c (elimination_costs_in_insn): Locally turn
10750 -Wmaybe-uninitialized into a warning.
10751
10752 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
10753
10754 * shrink-wrap.c (requires_stack_frame_p): Make static.
10755 (prepare_shrink_wrap): Likewise.
10756 (dup_block_and_redirect): Likewise.
10757 * shrink-wrap.h: Remove declarations of those functions.
10758
10759 2015-09-10 Mark Wielaard <mjw@redhat.com>
10760
10761 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10762
10763 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
10764
10765 PR target/67506
10766 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10767 missing simplify_gen_subreg.
10768
10769 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10770
10771 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10772 the vector element is bigger than 64 bit.
10773
10774 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10775
10776 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10777 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10778
10779 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10780
10781 * config/s390/s390.c: Add V1TImode to constant pool modes.
10782
10783 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10784
10785 PR target/67439
10786 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10787 predicate. Set predicable_short_it attr to "no".
10788
10789 2015-09-10 Jiong Wang <jiong.wang@arm.com>
10790
10791 PR rtl-optimization/67421
10792 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10793 left wide shift tranformation.
10794
10795 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10796
10797 * common/config/arc/arc-common.c: Remove references to A5.
10798 * config/arc/arc-opts.h: Likewise.
10799 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10800 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10801 * config/arc/t-arc-newlib: Likewise.
10802
10803 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10804
10805 * config/arc/arc.md (length): Fix attribute length for conditional
10806 executed instructions with long immediate.
10807
10808 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10809
10810 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10811 type for second alternative.
10812
10813 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
10814
10815 * doc/invoke.texi (Downloading GCC): Mention
10816 contrib/download_prerequisites script.
10817
10818 2015-09-10 Jakub Jelinek <jakub@redhat.com>
10819
10820 PR c++/67523
10821 * gimplify.c (gimplify_omp_for): If inner stmt is not found
10822 for combined loop, assert seen_error () and return GS_ERROR.
10823
10824 PR middle-end/67521
10825 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10826 if decl is already in outer->variables.
10827
10828 PR middle-end/67517
10829 * gimplify.c (gimplify_scan_omp_clauses): Instead of
10830 asserting that decl is not specified in octx->variables,
10831 break out of the loop if it is.
10832
10833 PR c++/67514
10834 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10835 iterator is not explicitly determined, but is defined inside
10836 of the combined workshare region, handle it like if it has
10837 DECL_EXPR in OMP_FOR_PRE_BODY.
10838
10839 2015-09-09 Nathan Sidwell <nathan@acm.org>
10840
10841 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10842 (*cmp<mode>): Add assembler spacing.
10843 (setcc_int<mode>, set_cc_float<mode>): Likewise.
10844 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10845 level.
10846 (write_func_decl_from_insn): Refactor argument loops & comma emission.
10847 (nvptx_expand_call): Likewise.
10848 (nvptx_output_call_insn): Likewise.
10849 (nvptx_reorg_subreg): Add spacing.
10850
10851 2015-09-09 Marek Polacek <polacek@redhat.com>
10852
10853 PR middle-end/67512
10854 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10855 for comparisons.
10856
10857 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10858
10859 PR c++/53184
10860 * doc/invoke.texi ([Wsubobject-linkage]): Document.
10861
10862 2015-09-09 Tom de Vries <tom@codesourcery.com>
10863
10864 * params-list.h: Add missing copyright notice.
10865
10866 2015-09-09 Nathan Sidwell <nathan@acm.org>
10867
10868 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10869 sel_truesi, not andsi.
10870
10871 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10872
10873 * config/arm/arm.md (*subsi3_compare0): Rename to...
10874 (subsi3_compare0): ... This.
10875 (modsi3): New define_expand.
10876 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10877 when operand is power of 2.
10878
10879 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10880
10881 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10882 (*neg<mode>2_compare0): Rename to...
10883 (neg<mode>2_compare0): ... This.
10884 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10885 Move check for speed inside the if-then-elses. Reflect
10886 CSNEG sequence in MOD by power of 2 case.
10887
10888 2015-09-09 Alan Modra <amodra@gmail.com>
10889
10890 PR target/67378
10891 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10892 reload replacement for PRE_MODIFY address reg.
10893
10894 2015-09-09 Sebastian Pop <s.pop@samsung.com>
10895
10896 PR tree-optimization/53852
10897 * config.in: Regenerate.
10898 * configure: Regenerate.
10899 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10900 * graphite-optimize-isl.c (optimize_isl): Stop computation when
10901 PARAM_MAX_ISL_OPERATIONS is reached.
10902 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10903 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10904 result equal to isl_stat_ok as the status now can be isl_error_quota.
10905 (subtract_commutative_associative_deps): Same.
10906 (compute_deps): Same.
10907
10908 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10909 Sebastian Pop <s.pop@samsung.com>
10910
10911 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10912 Return the parameter if it was saved in corresponding
10913 parameter_rename_map of the region.
10914 (copy_def): Copy def from sese region to the newly created region.
10915 (copy_internal_parameters): Copy all the internal parameters defined
10916 within a region to the newly created region.
10917 (graphite_regenerate_ast_isl): Copy parameters to the new region before
10918 translating isl to gimple.
10919 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10920 the loop-nest does not have any data-references.
10921 (build_graphite_scops): Create a scop only when there is at least one
10922 loop inside it.
10923 (contains_only_close_phi_nodes): Deleted.
10924 (print_graphite_scop_statistics): Deleted
10925 (print_graphite_statistics): Deleted
10926 (limit_scops): Deleted.
10927 (build_scops): Removed call to limit_scops.
10928 * sese.c (new_sese): Construct.
10929 (free_sese): Destruct.
10930 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10931 added.
10932 (set_rename): Pass sese region so that parameters inside the region can
10933 be added to its parameter_rename_map.
10934 (rename_uses): Pass sese region.
10935 (graphite_copy_stmts_from_block): Do not copy parameters that have been
10936 generated in the header of the scop. For each SSA_NAME in the
10937 parameter_rename_map rename its usage.
10938 (invariant_in_sese_p_rec): Return false if tree t is defined outside
10939 sese region.
10940 (scalar_evolution_in_region): If the tree t is invariant just return t.
10941 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10942 struct sese to keep track of all the parameters which need renaming.
10943 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10944 any data-refs.
10945 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10946
10947 2015-09-08 Tom de Vries <tom@codesourcery.com>
10948
10949 * Makefile.in (generated_files): Add params.list.
10950 (params.list, s-params.list): Add rule.
10951 * params.h (enum compiler_param): Include params-list.h. Move define
10952 DEFPARAM, include params.def and undef DEFPARAM ...
10953 * params-list.h: ... here. New file.
10954
10955 2015-09-08 David Malcolm <dmalcolm@redhat.com>
10956
10957 * pretty-print.h (printer_fn): Fix typo in comment.
10958
10959 2015-09-07 Jeff Law <law@redhat.com>
10960
10961 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10962
10963 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10964
10965 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10966 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10967 (arm_neon_fp16_hw): New.
10968
10969 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10970
10971 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10972 UNITS_PER_WORD >= 4.
10973
10974 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10975
10976 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10977 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10978 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10979 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10980 (aarch64_float_extend_lo_v2df): Rename to...
10981 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10982
10983 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10984 (float_extend_lo): Add v4sf.
10985
10986 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10987 * config/aarch64/iterators.md (VQ_HSF): New iterator.
10988 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10989 (Vwide): New mode_attr.
10990
10991 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10992
10993 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10994 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10995 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10996 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10997 V4HF and V8HF variants to iterator.
10998
10999 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11000
11001 * config/aarch64/iterators.md (VDQF_F16): New.
11002 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11003
11004 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11005
11006 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11007 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11008 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11009 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11010 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11011 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11012 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11013 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11014 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11015 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11016 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11017 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11018 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11019 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11020 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11021 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11022 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11023 vld1q_dup_f16): New.
11024
11025 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11026
11027 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11028 Reparameterize to...
11029 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11030 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11031 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11032
11033 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11034 v8hf variant.
11035 (float_truncate_lo_): Use BUILTIN_VDF iterator.
11036
11037 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11038
11039 * config/aarch64/iterators.md (VDF, Vdtype): New.
11040 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11041
11042 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11043
11044 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11045 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11046 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11047 Add __builtin_aarch64_simd_hf.
11048 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11049 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11050 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11051 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11052 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11053 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11054 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11055 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11056 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11057
11058 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11059 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11060 (VDC, Vdbl): Add V4HF.
11061
11062 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11063
11064 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11065 V4HFmode and V8HFmode.
11066 (aarch64_split_simd_move): Add case for V8HFmode.
11067 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11068 (aarch64_simd_builtin_std_type): Handle HFmode.
11069 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11070
11071 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11072 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11073 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11074
11075 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11076 Float16x8_t.
11077
11078 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11079 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11080 New typedefs.
11081 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11082 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11083 vst1q_lane_f16): New.
11084 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11085 (VALLDI_F16, VALL_F16): New.
11086 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11087 Add cases for V4HF and V8HF.
11088 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11089
11090 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11091
11092 * config/arm/arm-builtins.c (VAR11, VAR12): New.
11093 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11094 vld4_dup): Add v4hf variant.
11095 (vget_high, vget_low): Add v8hf variant.
11096 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11097 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11098 v4hf and v8hf variants.
11099
11100 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11101 (VDX): Add V4HF.
11102 (V_DOUBLE): Add case for V4HF.
11103 (VQX): Add V8HF.
11104 (V_HALF): Add case for V8HF.
11105 (VDQX): Add V4HF, V8HF.
11106 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11107 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11108
11109 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11110 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11111 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11112 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11113 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11114 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11115 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11116 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11117 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11118
11119 (neon_vcreate, neon_vreinterpretv8qi<mode>,
11120 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11121 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11122 Change VDX to VD_RE.
11123
11124 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11125 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11126 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11127
11128 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11129 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11130 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11131 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11132 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11133 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11134 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11135 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11136 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11137
11138 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11139
11140 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11141 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11142 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11143 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11144 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11145 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11146 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11147 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11148 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11149 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11150 New.
11151
11152 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11153
11154 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11155
11156 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11157
11158 * config/arm/arm-builtins.c (v8hf_UP): New.
11159 (arm_init_simd_builtin_types): Initialise Float16x8_t.
11160
11161 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11162
11163 * config/arm/arm_neon.h (float16x8_t): New typedef.
11164
11165 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11166
11167 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11168 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11169 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11170 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11171 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11172 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11173 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11174 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11175 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11176 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11177
11178 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
11179
11180 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11181 non-alphanumeric characters in the symbol name.
11182
11183 2015-09-07 Marek Polacek <polacek@redhat.com>
11184
11185 PR inline-asm/67448
11186 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11187 a memory input.
11188
11189 2015-09-07 Marek Polacek <polacek@redhat.com>
11190
11191 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11192
11193 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
11194
11195 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11196 not warn.
11197
11198 2015-09-04 Jakub Jelinek <jakub@redhat.com>
11199
11200 PR middle-end/67452
11201 * tree-ssa-live.c: Include cfgloop.h.
11202 (remove_unused_locals): Clear loop->simduid if simduid is about
11203 to be removed from cfun->local_decls.
11204
11205 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11206
11207 PR target/65210
11208 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11209 attribute as well.
11210
11211 2015-09-04 Tom de Vries <tom@codesourcery.com>
11212
11213 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11214
11215 2015-09-04 Jeff Law <law@redhat.com>
11216
11217 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11218 unnecessary constructor. It's now trivial and implemented inside...
11219 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11220 constructor. Add comments to various methods. Remove unused
11221 private fields.
11222 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11223 * tree-vrp.c (identify_jump_threads): Likewise.
11224 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11225 indentation issues.
11226 (thread_across_edge): Similarly.
11227 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11228 arguments in constructor call.
11229
11230 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11231
11232 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11233 temp path contains a '-'.
11234
11235 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11236 Petr Murzin <petr.murzin@intel.com>
11237 Kirill Yukhin <kirill.yukhin@intel.com>
11238
11239 * config/i386/i386-builtin-types.def
11240 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11241 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11242 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11243 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11244 * config/i386/i386.c
11245 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11246 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11247 IX86_BUILTIN_SCATTERALTDIV16SI.
11248 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11249 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11250 __builtin_ia32_scatteraltdiv8si.
11251 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11252 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11253 IX86_BUILTIN_SCATTERALTDIV16SI.
11254 (ix86_vectorize_builtin_scatter): New.
11255 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11256 ix86_vectorize_builtin_scatter.
11257
11258 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11259 Petr Murzin <petr.murzin@intel.com>
11260 Kirill Yukhin <kirill.yukhin@intel.com>
11261
11262 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11263 * doc/tm.texi: Regenerate.
11264 * target.def: Add scatter builtin.
11265 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11266 for loads/stores in case of gather/scatter accordingly.
11267 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11268 STMT_VINFO_GATHER_P(S).
11269 (vect_check_gather): Rename to ...
11270 (vect_check_gather_scatter): this.
11271 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11272 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11273 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11274 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11275 variable and new checkings for it accordingly.
11276 * tree-vect-stmts.c
11277 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11278 STMT_VINFO_GATHER_P(S).
11279 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11280 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11281
11282 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11283
11284 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11285 define_insn.
11286 (mulv16qi3): New define_expand.
11287
11288 2015-09-03 Martin Sebor <msebor@redhat.com>
11289
11290 PR c/66516
11291 * doc/extend.texi (Other Builtins): Document when the address
11292 of a built-in function can be taken.
11293
11294 2015-09-03 Richard Biener <rguenther@suse.de>
11295
11296 * dwarf2out.c (flush_limbo_die_list): Split out from ...
11297 (dwarf2out_early_finish): ... here.
11298 (dwarf2out_finish): Do not call dwarf2out_early_finish but
11299 flush_limbo_die_list. Assert we have no deferred asm names.
11300
11301 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11302
11303 * optabs.c (expand_binop): Don't create a broadcast vector with a
11304 source element wider than the inner mode.
11305
11306 2015-09-03 Richard Biener <rguenther@suse.de>
11307
11308 * varasm.c (output_constant): Use fold_convert instead of
11309 wide_int_to_tree.
11310
11311 2015-09-03 Tom de Vries <tom@codesourcery.com>
11312
11313 PR tree-optimization/65637
11314 * omp-low.c (expand_omp_for_static_chunk): Handle case that
11315 fin_bb has 2 predecessors.
11316
11317 2015-09-03 Tom de Vries <tom@codesourcery.com>
11318
11319 PR tree-optimization/65637
11320 * omp-low.c (find_phi_with_arg_on_edge): New function.
11321 (expand_omp_for_static_chunk): Fix inner loop phi.
11322
11323 2015-09-03 Tom de Vries <tom@codesourcery.com>
11324
11325 PR tree-optimization/65637
11326 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11327 that head is NULL.
11328
11329 2015-09-03 Tom de Vries <tom@codesourcery.com>
11330
11331 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11332
11333 2015-09-03 Tom de Vries <tom@codesourcery.com>
11334
11335 * doc/invoke.texi (parloops-chunk-size): Add item.
11336 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11337 * tree-parloops.c: Include params.h.
11338 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11339 param parloops-chunk-size is used.
11340
11341 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11342
11343 PR middle-end/67351
11344 * fold-const.c (fold_binary_loc) : Move
11345 Transform (x >> c) << c into x & (-1<<c) or
11346 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11347 types using simplify and match.
11348 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11349 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11350
11351 2015-09-03 Richard Biener <rguenther@suse.de>
11352
11353 PR ipa/66705
11354 * tree-ssa-structalias.c (ctor_for_analysis): New function.
11355 (create_variable_info_for_1): Use ctor_for_analysis instead
11356 of get_constructor.
11357 (create_variable_info_for): Likewise.
11358
11359 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
11360
11361 PR ipa/67280
11362 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11363 in new callgraph edge.
11364
11365 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
11366
11367 PR target/59810
11368 PR target/63652
11369 PR target/63653
11370 * config/aarch64/aarch64-simd.md
11371 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11372 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11373 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11374 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11375
11376 2015-09-02 Alan Modra <amodra@gmail.com>
11377
11378 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11379 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11380 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11381
11382 2015-09-02 Alan Modra <amodra@gmail.com>
11383
11384 PR target/67417
11385 * config/rs6000/predicates.md (current_file_function_operand): Don't
11386 return true for weak symbols.
11387 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11388
11389 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
11390 Andrew Bennett <andrew.bennett@imgtec.com>
11391
11392 * config/mips/mips-opts.h (mips_cb_setting): New enum.
11393 * config/mips/mips-protos.h: Add definitions for
11394 mips_output_jump and mips_output_equal_conditional_branch
11395 * config/mips/mips.c (MIPS_JR): Change to support the
11396 JIC instruction.
11397 (mips_emit_compare): Add support for the MIPS R6 conditional
11398 compact branches.
11399 (mips_process_sync_loop): Likewise.
11400 (mips_output_order_conditional_branch): Likewise.
11401 (mips16_build_call_stub): Change MIPS_CALL to
11402 mips_output_jump.
11403 (mips_print_operand_punctuation): Update 's' case to only
11404 apply to micromips r2.
11405 (mips_adjust_insn_length): Add support for forbidden slot
11406 hazards.
11407 (mips_avoid_hazard): Likewise.
11408 (mips_reorg_process_insns): Likewise.
11409 (mips_output_jump): New function.
11410 (mips_output_equal_conditional_branch): Likewise.
11411 (mips_output_conditional_branch): Use jrc/bc if compact
11412 branch support is enabled. Ensure the forbidden slots
11413 between the two branch instructions is filled with a nop.
11414 (mips_option_override): Add support to process the compact
11415 branch option and set the correct defaults. Prevent
11416 non-explict relocs being using for MIPS R6.
11417 (mips_trampoline_init): Add compact branch support.
11418 (mips_mult_zero_zero_cost): Allow zero initialisation of
11419 accumulators with TARGET_DSP.
11420 * config/mips/mips.h (TARGET_CB_NEVER): New define.
11421 (TARGET_CB_MAYBE): New define.
11422 (TARGET_CB_ALWAYS): New define.
11423 (ISA_HAS_DELAY_SLOTS): New define.
11424 (ISA_HAS_COMPACT_BRANCHES): New define.
11425 (ISA_HAS_JRC): New define.
11426 (MIPS_BRANCH_C): New define.
11427 (MIPS_CALL): Removed.
11428 (MICROMIPS_J): Removed.
11429 * config/mips/mips.md (compact_form): New attr.
11430 (hazard): Add support for forbidden slots.
11431 (define_delay): Add support for compact branches.
11432 (*branch_order<mode>): Likewise.
11433 (*branch_order<mode>_inverted): Likewise.
11434 (*branch_equality<mode>): Likewise.
11435 (*branch_equality<mode>_inverted): Likewise.
11436 (*jump_absolute): Likewise.
11437 (*jump_pic): Likewise.
11438 (indirect_jump): Use mips_output_jump to produce assembly output.
11439 (tablejump_<mode>"): Likewise.
11440 (*<optab>"): Likewise.
11441 (<optab>_internal): Likewise.
11442 (sibcall_internal): Likewise.
11443 (sibcall_value_internal): Likewise.
11444 (sibcall_value_multiple_internal): Likewise.
11445 (call_internal): Likewise.
11446 (call_split): Likewise.
11447 (call_internal_direct): Likewise.
11448 (call_direct_split): Likewise.
11449 (call_value_internal): Likewise.
11450 (call_value_split): Likewise.
11451 (call_value_internal_direct): Likewise.
11452 (call_value_direct_split): Likewise.
11453 (call_value_multiple_internal): Likewise.
11454 (call_value_multiple_split): Likewise.
11455 (mips_get_fcsr_mips16_<mode>): Likewise.
11456 (mips_set_fcsr_mips16_<mode>): Likewise.
11457 (tls_get_tp_mips16_<mode>): Likewise.
11458 * config/mips/mips.opt: Add -mcompact-branches option.
11459 * config/mips/predicates.md (order_operator): Ensure the
11460 conditional compact branches are only used if the ISA them.
11461 * doc/invoke.texi: Document -mcompact-branches option.
11462
11463 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11464
11465 PR target/61578
11466 * lra-lives.c (process_bb_lives): Process move pseudos with the
11467 same value for copies and preferences
11468 * lra-constraints.c (match_reload): Create match reload pseudo
11469 with the same value from single dying input pseudo.
11470
11471 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11472
11473 PR target/67405
11474 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11475
11476 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11477
11478 * trans-mem.c: Add contributed-by.
11479 * trans-mem.h: Same.
11480
11481 2015-09-01 Richard Biener <rguenther@suse.de>
11482
11483 * expr.c (expand_expr_real_1): For expanding TERed defs
11484 set the current location to that of the def if not UNKNOWN.
11485
11486 2015-09-01 David Sherwood <david.sherwood@arm.com>
11487
11488 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11489
11490 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11491
11492 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11493 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11494 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11495 Include rtl-iter.h.
11496 (noce_simple_bbs): New function.
11497 (noce_try_move): Bail if basic blocks are not simple.
11498 (noce_try_store_flag): Likewise.
11499 (noce_try_store_flag_constants): Likewise.
11500 (noce_try_addcc): Likewise.
11501 (noce_try_store_flag_mask): Likewise.
11502 (noce_try_cmove): Likewise.
11503 (noce_try_minmax): Likewise.
11504 (noce_try_abs): Likewise.
11505 (noce_try_sign_mask): Likewise.
11506 (noce_try_bitop): Likewise.
11507 (bbs_ok_for_cmove_arith): New function.
11508 (noce_emit_all_but_last): Likewise.
11509 (noce_emit_insn): Likewise.
11510 (noce_emit_bb): Likewise.
11511 (noce_try_cmove_arith): Handle non-simple basic blocks.
11512 (insn_valid_noce_process_p): New function.
11513 (contains_mem_rtx_p): Likewise.
11514 (bb_valid_for_noce_process_p): Likewise.
11515 (noce_process_if_block): Allow non-simple basic blocks
11516 where appropriate.
11517
11518 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11519
11520 * tree-ssa-dom.c (record_equivalences_from_phis,
11521 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11522 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11523
11524 2015-09-01 Nick Clifton <nickc@redhat.com>
11525
11526 * config/msp430/msp430.opt (mcpu): Fix typo.
11527
11528 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11529
11530 * config/aarch64/aarch64.c (aarch64_set_current_function):
11531 Re-layout any vector parameters have non-simd layout.
11532 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11533 Delete.
11534 (aarch64_simd_expand_args): Delete call to the above.
11535
11536 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11537
11538 * doc/invoke.texi (asan-stack): Add space before option.
11539
11540 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11541
11542 * tree.h (zerop): New function.
11543 * tree.c (zerop): Likewise.
11544 (element_precision): Handle expressions.
11545 * match.pd (define_predicates): Add zerop.
11546 (x <= +Inf): Fix comment.
11547 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11548 * fold-const.c (fold_binary_loc): ... here. Remove.
11549
11550 2015-08-31 Richard Biener <rguenther@suse.de>
11551
11552 PR middle-end/67381
11553 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11554
11555 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11556
11557 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11558 (CEXPI): New operator list.
11559 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11560 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11561 Converted from ...
11562 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11563
11564 2015-08-31 Tom de Vries <tom@codesourcery.com>
11565
11566 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11567 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11568 parameter.
11569 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11570 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11571 (rewrite_into_loop_closed_ssa): ... here.
11572 (replace_uses_in_dominated_bbs): Remove function.
11573 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11574 rewrite_into_loop_closed_ssa_1.
11575
11576 2015-08-31 Michael Matz <matz@suse.de>
11577
11578 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11579 enter entry and exit blocks for reverse post order.
11580
11581 2015-08-31 Richard Biener <rguenther@suse.de>
11582
11583 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11584 (lto_location_cache::current_sysp): Likewise.
11585 (output_block::current_sysp): Likewise.
11586 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11587 (lto_location_cache::apply_location_cache): Properly record
11588 system header locations.
11589 (lto_location_cache::input_location): Input whether a file
11590 is a system header.
11591 * lto-streamer-out.c (lto_output_location): Stream whether a file
11592 is a system header.
11593
11594 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11595
11596 PR bootstrap/67363
11597 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11598
11599 2015-08-31 Tom de Vries <tom@codesourcery.com>
11600
11601 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11602 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11603 Improve function header comments.
11604
11605 2015-08-30 Michael Collison <michael.collison@linaro.org>
11606
11607 PR other/67320
11608 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11609 standard names
11610
11611 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11612
11613 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11614 special_handling bitfield.
11615 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11616 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11617 that represents a general xxpermdi.
11618 (insn_is_swappable_p): Add handling for vec_concat of two
11619 doublewords, which maps to a specific xxpermdi.
11620 (adjust_xxpermdi): New function.
11621 (adjust_concat): Likewise.
11622 (handle_special_swappables): Call adjust_xxpermdi and
11623 adjust_concat.
11624 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11625
11626 2015-08-30 Rich Felker <dalias@libc.org>
11627
11628 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11629 case instead of sh[123456ble]-*-*.
11630
11631 2015-08-29 Anatoly Sokolov <aesok@post.ru>
11632
11633 * ira.c (print_unform_and_important_classes,
11634 print_translated_classes): Remove reg_class_names static array.
11635 (print_unform_and_important_classes): Rename to ...
11636 (print_uniform_and_important_classes): ... this.
11637 (ira_debug_allocno_classes): Update accordingly.
11638
11639 2015-08-29 Tom de Vries <tom@codesourcery.com>
11640
11641 PR tree-optimization/46193
11642 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11643 clause.
11644
11645 2015-08-28 Jeff Law <law@redhat.com>
11646
11647 PR lto/66752
11648 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11649 unable to find X NE 0 in the tables, return X as the simplified
11650 condition.
11651 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11652 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11653 to VISISTED_BBS.
11654 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11655 after removing the control flow statement and unnecessary edges.
11656
11657 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
11658
11659 Revert:
11660 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11661
11662 PR tree-optimization/67283
11663 * tree-sra.c (type_consists_of_records_p): Rename to...
11664 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11665
11666 (completely_scalarize_record): Rename to...
11667 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11668 code to:
11669 (scalarize_elem): New.
11670
11671 2015-08-28 Jiong Wang <jiong.wang@arm.com>
11672
11673 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11674 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11675 (aarch64_symbol_type): Likewise.
11676 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11677 Likewise.
11678 (aarch64_expand_mov_immediate): Likewise.
11679 (aarch64_print_operand): Likewise.
11680 (aarch64_classify_tls_symbol): Likewise.
11681
11682 2015-08-28 Richard Biener <rguenther@suse.de>
11683
11684 * cgraphunit.c (symbol_table::compile): Move early debug generation
11685 and finish...
11686 (symbol_table::finalize_compilation_unit): ... back here and
11687 add a !seen_error () guard.
11688
11689 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11690
11691 * toplev.c (process_options): Do not use flag_loop_block,
11692 flag_loop_interchange, and flag_loop_strip_mine. Add check for
11693 flag_loop_optimize_isl.
11694
11695 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11696
11697 * Makefile.in (OBJS): Remove graphite-blocking.o and
11698 graphite-interchange.o.
11699 * common.opt (floop-strip-mine, floop-interchange, floop-block):
11700 Alias of floop-nest-optimize.
11701 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11702 Document as alias of -floop-nest-optimize.
11703 * graphite-blocking.c: Remove.
11704 * graphite-interchange.c: Remove.
11705 * graphite-optimize-isl.c: Include dumpfile.h.
11706 (getScheduleForBand): Add dump for tiled loops. Use
11707 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11708 * graphite-poly.c (scop_max_loop_depth): Remove.
11709 (print_scattering_function_1): Remove.
11710 (print_scattering_function): Remove.
11711 (print_scattering_functions): Remove.
11712 (debug_scattering_function): Remove.
11713 (debug_scattering_functions): Remove.
11714 (apply_poly_transforms): Remove use of flag_loop_block,
11715 flag_loop_strip_mine, and flag_loop_interchange.
11716 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11717 PBB_ORIGINAL.
11718 (print_pdr_access_layout): Remove.
11719 (print_pdr): Print ISL representation.
11720 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11721 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11722 (free_scop): Same.
11723 (openscop_print_pbb_domain): Remove.
11724 (print_pbb): Remove call to print_scattering_function.
11725 (openscop_print_scop_context): Remove.
11726 (print_scop_context): Do not print matrices anymore.
11727 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11728 SCOP_TRANSFORMED_SCHEDULE.
11729 (print_isl_set): Add printing of a new line.
11730 (print_isl_map): Same.
11731 (print_isl_aff): Same.
11732 (print_isl_constraint): Same.
11733 (loop_to_lst): Remove.
11734 (scop_to_lst): Remove.
11735 (lst_indent_to): Remove.
11736 (print_lst): Remove.
11737 (debug_lst): Remove.
11738 (dot_lst_1): Remove.
11739 (dot_lst): Remove.
11740 (reverse_loop_at_level): Remove.
11741 (reverse_loop_for_pbbs): Remove.
11742 * graphite-poly.h (pdr_dim_iter_domain): Remove.
11743 (pdr_nb_params): Remove.
11744 (pdr_alias_set_dim): Remove.
11745 (pdr_subscript_dim): Remove.
11746 (pdr_iterator_dim): Remove.
11747 (pdr_parameter_dim): Remove.
11748 (same_pdr_p): Remove.
11749 (struct poly_scattering): Remove.
11750 (struct poly_bb): Remove _original, _transformed, _saved.
11751 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11752 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11753 (PBB_NB_LOCAL_VARIABLES): Remove.
11754 (PBB_NB_SCATTERING_TRANSFORM): Remove.
11755 (schedule_to_scattering): Remove.
11756 (number_of_write_pdrs): Remove.
11757 (pbb_dim_iter_domain): Remove.
11758 (pbb_nb_params): Remove.
11759 (pbb_nb_scattering_orig): Remove.
11760 (pbb_nb_scattering_transform): Remove.
11761 (pbb_nb_dynamic_scattering_transform): Remove.
11762 (pbb_nb_local_vars): Remove.
11763 (pbb_iterator_dim): Remove.
11764 (pbb_parameter_dim): Remove.
11765 (psco_scattering_dim): Remove.
11766 (psct_scattering_dim): Remove.
11767 (psct_local_var_dim): Remove.
11768 (psco_iterator_dim): Remove.
11769 (psct_iterator_dim): Remove.
11770 (psco_parameter_dim): Remove.
11771 (psct_parameter_dim): Remove.
11772 (psct_dynamic_dim): Remove.
11773 (psct_static_dim): Remove.
11774 (psct_add_local_variable): Remove.
11775 (new_lst_loop): Remove.
11776 (new_lst_stmt): Remove.
11777 (free_lst): Remove.
11778 (copy_lst): Remove.
11779 (lst_add_loop_under_loop): Remove.
11780 (lst_depth): Remove.
11781 (lst_dewey_number): Remove.
11782 (lst_dewey_number_at_depth): Remove.
11783 (lst_pred): Remove.
11784 (lst_succ): Remove.
11785 (lst_find_pbb): Remove.
11786 (find_lst_loop): Remove.
11787 (lst_find_first_pbb): Remove.
11788 (lst_empty_p): Remove.
11789 (lst_find_last_pbb): Remove.
11790 (lst_contains_p): Remove.
11791 (lst_contains_pbb): Remove.
11792 (lst_create_nest): Remove.
11793 (lst_remove_from_sequence): Remove.
11794 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11795 (lst_niter_for_loop): Remove.
11796 (pbb_update_scattering): Remove.
11797 (lst_update_scattering_under): Remove.
11798 (lst_update_scattering): Remove.
11799 (lst_insert_in_sequence): Remove.
11800 (lst_replace): Remove.
11801 (lst_substitute_3): Remove.
11802 (lst_distribute_lst): Remove.
11803 (lst_remove_all_before_including_pbb): Remove.
11804 (lst_remove_all_before_excluding_pbb): Remove.
11805 (struct scop): Remove original_schedule, transformed_schedule, and
11806 saved_schedule.
11807 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11808 (SCOP_SAVED_SCHEDULE): Remove.
11809 (poly_scattering_new): Remove.
11810 (poly_scattering_free): Remove.
11811 (poly_scattering_copy): Remove.
11812 (store_scattering_pbb): Remove.
11813 (store_lst_schedule): Remove.
11814 (restore_lst_schedule): Remove.
11815 (store_scattering): Remove.
11816 (restore_scattering_pbb): Remove.
11817 (restore_scattering): Remove.
11818 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11819 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
11820 compute the scattering polyhedron dimension from the dimension of
11821 pbb->domain.
11822 (build_scop_scattering): Update call to
11823 build_pbb_scattering_polyhedrons.
11824 (build_poly_scop): Remove call to scop_to_lst.
11825 * graphite.c (graphite_transform_loops): Add call to print_scop.
11826 (gate_graphite_transforms): Remove use of flag_loop_block,
11827 flag_loop_interchange, and flag_loop_strip_mine.
11828
11829 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11830
11831 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11832 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11833 -floop-nest-optimize.
11834 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11835 (generate_luj_sepclass): Remove.
11836 (generate_luj_options): Remove.
11837 (set_options): Remove opt_luj.
11838 (scop_to_isl_ast): Remove opt_luj.
11839 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11840 flag_loop_unroll_jam.
11841 (getPrevectorMap_full): Remove.
11842 (getScheduleForBandList): Remove map_sepcl.
11843 (getScheduleMap): Same.
11844 (apply_schedule_map_to_scop): Remove sepcl.
11845 (optimize_isl): Same.
11846 * graphite-poly.c (apply_poly_transforms): Remove check for
11847 flag_loop_unroll_jam.
11848 (new_poly_bb): Remove map_sepclass.
11849 * graphite-poly.h (struct poly_bb): Same.
11850 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11851 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11852 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11853 * toplev.c (process_options): Remove flag_loop_unroll_jam.
11854
11855 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
11856
11857 PR target/67317
11858 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11859 (addqi3_cc): Ditto.
11860 (UNSPEC_ADD_CARRY): Remove.
11861 (addqi3_cconly_overflow): New expander.
11862 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11863 Adjust for changed add<mode>3_carry.
11864 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11865 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11866 (<plusminus_insn><mode>3_carry): Remove expander.
11867 (*<plusminus_insn><mode>3_carry): Split insn pattern to
11868 add<mode>3_carry and sub<mode>3_carry.
11869 (plusminus_carry_mnemonic): Remove code attribute.
11870 (add<mode>3_carry): Canonicalize insn pattern.
11871 (*addsi3_carry_zext): Ditto.
11872 (sub<mode>3_carry): Ditto.
11873 (*subsi3_carry_zext): Ditto.
11874 (adcx<mode>3): Remove insn pattern.
11875 (addcarry<mode>): New insn pattern.
11876 (subborrow<mode>): Ditto.
11877 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11878 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11879 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11880 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11881 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11882 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11883 Rewrite expander to not clobber carry flag chains.
11884
11885 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
11886
11887 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11888 instead of a rotate.
11889
11890 2015-08-27 Marek Polacek <polacek@redhat.com>
11891
11892 PR middle-end/67005
11893 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11894 an entry into an irreducible region.
11895
11896 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11897
11898 * configure: Regenerate.
11899
11900 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11901
11902 PR tree-optimization/67283
11903 * tree-sra.c (type_consists_of_records_p): Rename to...
11904 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11905
11906 (completely_scalarize_record): Rename to...
11907 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11908 (scalarize_elem): New.
11909
11910 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11911
11912 * tree-sra.c (completely_scalarize_var): Rename to...
11913 (create_total_scalarization_access): ... Here. Drop call to
11914 completely_scalarize_record.
11915
11916 (analyze_all_variable_accesses): Replace completely_scalarize_var
11917 with create_total_scalarization_access and completely_scalarize_record.
11918
11919 2015-08-27 Alan Modra <amodra@gmail.com>
11920
11921 PR target/67356
11922 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11923 for operand 1.
11924
11925 2015-08-27 Richard Biener <rguenther@suse.de>
11926
11927 * passes.c (rest_of_decl_compilation): Guard early_global_decl
11928 call with !seen_error ().
11929 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11930 early debug generation and finish...
11931 (symbol_table::compile): ... here to put it after a !seen_error ()
11932 guard.
11933
11934 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11935
11936 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11937 Solaris 12+.
11938
11939 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11940 Andre Vieira <andre.simoesdiasvieira@arm.com>
11941
11942 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11943 (*cb<optab><mode>1): Likewise.
11944 (*tb<optab><mode>1): Likewise.
11945 (*cb<optab><mode>1): Likewise.
11946 * config/aarch64/iterators.md (inv_cb): New code attribute.
11947 (inv_tb): Likewise.
11948 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11949 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11950
11951 2015-08-27 Richard Biener <rguenther@suse.de>
11952
11953 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11954
11955 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11956
11957 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11958 trap to fix ICE.
11959
11960 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11961
11962 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11963 Add declaration.
11964
11965 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11966 comment.
11967 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11968 floating point in VSX registers.
11969 (rs6000_output_move_128bit): Always print out the set insn if we
11970 can't generate an appropriate 128-bit move.
11971 (rs6000_generate_compare): Add support for IEEE 128-bit floating
11972 point in VSX registers comparisons.
11973 (rs6000_expand_float128_convert): Likewise.
11974
11975 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11976 predicate for only GPR hard registers.
11977
11978 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11979 modes to iterators. Add new iterators for moving 128-bit values in
11980 scalar FPR registers and VSX registers.
11981 (FMOVE128): Likewise.
11982 (FMOVE128_FPR): Likewise.
11983 (FMOVE128_GPR): Likewise.
11984 (FMOVE128_VSX): Likewise.
11985 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11986 in VSX registers.
11987 (IFKF): Likewise.
11988 (IBM128): Likewise.
11989 (TFIFKF): Likewise.
11990 (RELOAD): Add IEEE 128-bit floating point modes.
11991 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11992 floating point in VSX registers modes.
11993 (signbit<mode>2, IBM128 iterator): Likewise.
11994 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11995 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11996 (negtf2): Likewise.
11997 (neg<mode>2, TFIFKF iterator): Likewise.
11998 (negtf2_internal): Likewise.
11999 (abstf2): Likewise.
12000 (abs<mode>2, TFIFKF iterator): Likewise.
12001 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12002 VSX insn support for negate, absolute value, and negative absolute
12003 value.
12004 (ieee_128bit_vsx_neg<mode>2): Likewise.
12005 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12006 (ieee_128bit_vsx_abs<mode>2): Likewise.
12007 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12008 (ieee_128bit_vsx_nabs<mode>2): Likewise.
12009 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12010 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12011 floating point in VSX registers.
12012 (unpack<mode>_dm): Likewise.
12013 (unpack<mode>_nodm): Likewise.
12014 (pack<mode>): Likewise.
12015 (unpackv1ti): Likewise.
12016 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12017 (packv1ti): Likewise.
12018 (pack<mode>, FMOVE128_VSX iterator): Likewise.
12019 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12020 registers.
12021 (extenddftf2_internal): Likewise.
12022 (trunctfdf2): Likewise.
12023 (trunctfdf2_internal2): Likewise.
12024 (fix_trunc_helper): Likewise.
12025 (fix_trunctfdi2"): Likewise.
12026 (floatditf2): Likewise.
12027 (floatuns<mode>tf2): Likewise.
12028 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12029 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12030 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12031 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12032 (float<SDI:mode><IFKF:mode>2): Likewise.
12033 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12034
12035 2015-08-26 Renlin Li <renlin.li@arm.com>
12036
12037 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12038
12039 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12040 Jiong Wang <jiong.wang@arm.com>
12041
12042 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12043 (tlsie_tiny_<mode>): New define_insn.
12044 (tlsie_tiny_sidi): Likewise.
12045 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12046 SYMBOL_TINY_TLSIE.
12047 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12048 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12049 SYMBOL_TINY_TLSIE.
12050 (aarch64_expand_mov_immediate): Likewise.
12051 (aarch64_print_operand): Likewise.
12052 (arch64_classify_tls_symbol): Likewise.
12053
12054 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12055
12056 * config/arm/arm-arches.def: Replace single value flags with
12057 an initializer built from ARM_FSET_MAKE_CPU1.
12058 * config/arm/arm-cores.def: Likewise.
12059 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12060 derivation from the ARM_CORE macro definition, use the given value
12061 instead.
12062 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12063 ARM_ARCH macro definition, use the given value instead.
12064
12065 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12066
12067 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12068 feature set.
12069 (struct builtin_description): Replace field mask with field
12070 features.
12071 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12072 (IWMMXT2_BUILTIN): Likewise.
12073 (IWMMXT2_BUILTIN2): Likewise.
12074 (FP_BUILTIN): Likewise.
12075 (CRC32_BUILTIN): Likewise.
12076 (CRYPTO_BUILTIN): Likewise.
12077 (iwmmx_mbuiltin): Likewise.
12078 (iwmmx2_mbuiltin): Likewise.
12079 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12080 struct builtin_description.
12081
12082 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12083
12084 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12085 (struct builtin_description): Change type of mask to unsigned
12086 long.
12087 * config/arm/arm-protos.h (insn_flags): Declare as type
12088 arm_feature_set.
12089 (tune_flags): Likewise.
12090 * config/arm/arm.c (feature_count): New.
12091 (insn_flags): Define as type arm_feature_set.
12092 (tune_flags): Likewise.
12093 (struct processors): Define field flags as type arm_feature_set.
12094 (all_cores): Update for change to struct processors.
12095 (all_architectures): Likewise.
12096 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12097 macros.
12098 (arm_option_override_internal): Likewise.
12099 (arm_option_override): Likewise.
12100
12101 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12102 Jiong Wang <jiong.wang@arm.com>
12103
12104 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12105 tls size for tiny, small, large memory model.
12106 (aarch64_load_symref_appropriately): Support new symbol types.
12107 (aarch64_expand_mov_immediate): Likewise.
12108 (aarch64_print_operand): Likewise.
12109 (aarch64_classify_tls_symbol): Likewise.
12110 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12111 (aarch64_symbol_type): Likewise.
12112 * config/aarch64/aarch64.md (tlsle): Deleted.
12113 (tlsle12_<mode>): New define_insn.
12114 (tlsle24_<mode>): Likewise.
12115 (tlsle32_<mode>): Likewise.
12116 (tlsle48_<mode>): Likewise.
12117 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12118 "aarch64_tlsle32".
12119
12120 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12121
12122 * config/arm/arm-protos.h (FL_NONE): New.
12123 (FL_ANY): New.
12124 (arm_feature_set): New.
12125 (ARM_FSET_MAKE): New.
12126 (ARM_FSET_MAKE_CPU1): New.
12127 (ARM_FSET_MAKE_CPU2): New.
12128 (ARM_FSET_CPU1): New.
12129 (ARM_FSET_CPU2): New.
12130 (ARM_FSET_EMPTY): New.
12131 (ARM_FSET_ANY): New.
12132 (ARM_FSET_HAS_CPU1): New.
12133 (ARM_FSET_HAS_CPU2): New.
12134 (ARM_FSET_HAS_CPU): New.
12135 (ARM_FSET_ADD_CPU1): New.
12136 (ARM_FSET_ADD_CPU2): New.
12137 (ARM_FSET_DEL_CPU1): New.
12138 (ARM_FSET_DEL_CPU2): New.
12139 (ARM_FSET_UNION): New.
12140 (ARM_FSET_INTER): New.
12141 (ARM_FSET_XOR): New.
12142 (ARM_FSET_EXCLUDE): New.
12143 (AFM_FSET_IS_EMPTY): New.
12144 (ARM_FSET_CPU_SUBSET): New.
12145
12146 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12147
12148 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12149 SYMBOL_TLSLE to SYMBOL_TLSLE24.
12150 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12151 Likewise.
12152 (aarch64_expand_mov_immediate): Likewise.
12153 (aarch64_print_operand): Likewise.
12154 (aarch64_classify_symbol): Likewise.
12155
12156 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12157
12158 * config/aarch64/aarch64.opt (mtls-size): New entry.
12159 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12160 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12161 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12162
12163 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12164
12165 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12166 ARM_CORE entry. Fix some white-space.
12167 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12168 ARM_CORE definition.
12169
12170 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12171
12172 * fold-const.c (fold_binary_loc) : Move Optimize
12173 root(x)*root(y) as root(x*y) to match.pd.
12174 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12175 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12176 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12177 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12178 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12179 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12180 (mult (exps:s @0) (exps:s @1)) : New simplifier.
12181 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12182 (rdiv @0 (exps:s @1)) : New simplifier.
12183
12184 2015-08-25 Joseph Myers <joseph@codesourcery.com>
12185
12186 * gcc.c (driver::finalize): Only assign to extra_specs if
12187 [EXTRA_SPECS].
12188
12189 2015-08-25 Marek Polacek <polacek@redhat.com>
12190
12191 PR middle-end/67330
12192 * varasm.c (declare_weak): Return after giving an error.
12193
12194 2015-08-25 David Malcolm <dmalcolm@redhat.com>
12195
12196 * gcc-main.c (main): Add params to driver ctor.
12197 * gcc.c (class env_manager): New.
12198 (env): New global.
12199 (env_manager::init): New.
12200 (env_manager::get): New.
12201 (env_manager::xput): New.
12202 (env_manager::restore): New.
12203 Poison getenv and putenv.
12204 (DEFAULT_TARGET_SYSTEM_ROOT): New.
12205 (target_system_root): Update initialization to use
12206 DEFAULT_TARGET_SYSTEM_ROOT.
12207 (struct spec_list): Add field "default_ptr".
12208 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12209 (init_spec): Likewise.
12210 (set_spec): Clear field "default_ptr".
12211 (read_specs): Free "spec" and "buffer".
12212 (xputenv): Reimplement in terms of env_manager.
12213 (process_command): Replace ::getenv calls with calls to the
12214 env_manager singleton.
12215 (process_brace_body): Free string in three places.
12216 (driver::driver): New.
12217 (driver::~driver): New.
12218 (used_arg): Convert from a function to...
12219 (class used_arg_t): ...this class, and...
12220 (used_arg): ...this new global instance.
12221 (used_arg_t::finalize): New function.
12222 (getenv_spec_function): Add "const" to local "value". Replace
12223 ::getenv call with call to the env_manager singleton.
12224 (path_prefix_reset): New function.
12225 (driver::finalize): New function.
12226 * gcc.h (driver::driver): New.
12227 (driver::~driver): New.
12228 (driver::finalize): New.
12229
12230 2015-08-25 Nathan Sidwell <nathan@acm.org>
12231
12232 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12233 target doesn't have one.
12234
12235 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12236
12237 PR target/67346
12238 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12239
12240 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12241
12242 PR target/67344
12243 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12244 a define_insn, remove second alternative.
12245
12246 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
12247 Joseph Myers <joseph@codesourcery.com>
12248
12249 * gcc.c (struct switchstr): Expand comment.
12250
12251 2015-08-25 Nathan Sidwell <nathan@acm.org>
12252
12253 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12254 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12255
12256 2015-08-25 Richard Biener <rguenther@suse.de>
12257
12258 PR middle-end/67306
12259 * genmatch.c (expr::gen_transform): Verify the result of
12260 builtin_decl_implicit.
12261 (dt_simplify::gen_1): Likewise.
12262
12263 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
12264
12265 * config/arm/constraints.md: Also list Cs and US ARM-specific
12266 constraints as used.
12267
12268 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
12269
12270 PR target/66609
12271 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12272 UNSPEC_PCREL.
12273 (nonpic_symbol_mentioned_p): Likewise.
12274 (sh_delegitimize_address): Likewise.
12275 (sh_function_ok_for_sibcall): Take into account weak symbols.
12276 (sh_expand_sym_label2reg): New.
12277 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12278 * config/sh/sh.md (UNSPEC_PCREL): New enum.
12279 (call_pcrel): Use sh_expand_sym_label2reg.
12280 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12281 (symPCREL_label2reg) New expand.
12282
12283 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12284
12285 * graphite-poly.c: Change type of region from void* to sese.
12286 * graphite-poly.h (struct scop): Changing the type of scop::region
12287 from void* to sese. Change accessor macro accordingly.
12288 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12289
12290 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12291
12292 * graphite-scop-detection.c (stmt_simple_for_scop_p):
12293 Constrain only on INTEGER_TYPE.
12294
12295 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12296
12297 PR target/67211
12298 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12299 -mefficient-unaligned-vsx on ISA 2.7.
12300
12301 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12302 option to a masked option.
12303
12304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12305 logic for -mefficient-unaligned-vsx so that it is set via an arch
12306 ISA option, instead of being set if -mtune=power8 is set. Move
12307 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12308 near other default option handling.
12309
12310 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12311
12312 * genflags.c (gen_macro): Delete.
12313 (gen_proto): Don't create GEN.*CALL.* macros.
12314 * gensupport.h (get_file_location): Declare.
12315 * gensupport.c (rtx_locs): New variable.
12316 (read_md_rtx): Record rtx locations.
12317 (get_file_location): New function.
12318 * target-insns.def (call, call_pop, call_value, call_value_pop)
12319 (sibcall, sibcall_value): New patterns.
12320 * gentarget-def.c (parse_argument): New function.
12321 (def_target_insn): Use it. Handle optional operands. Raise an
12322 error if an .md pattern has the wrong number of operands for the
12323 pattern name. Remove the names of unused operands from the prototype.
12324 * builtins.c (expand_builtin_apply): Use targetm functions
12325 instead of HAVE_call_value and GEN_CALL_VALUE.
12326 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
12327 and sibcall_value_pop.
12328 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12329 of GEN_CALL.
12330 * config/alpha/alpha.md (untyped_call): Likewise.
12331 * config/iq2000/iq2000.md (untyped_call): Likewise.
12332 * config/m68k/m68k.md (untyped_call): Likewise.
12333 * config/mips/mips.md (untyped_call): Likewise.
12334 * config/pa/pa.md (untyped_call): Likewise.
12335 * config/rs6000/rs6000.md (untyped_call): Likewise.
12336 * config/sparc/sparc.md (untyped_call): Likewise.
12337 * config/tilegx/tilegx.md (untyped_call): Likewise.
12338 * config/tilepro/tilepro.md (untyped_call): Likewise.
12339 * config/visium/visium.md (untyped_call): Likewise.
12340 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12341 gen_call_value instead of GEN_CALL_VALUE.
12342 * config/arm/arm.md (untyped_call): Likewise.
12343 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12344 GEN_CALL.
12345
12346 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12347
12348 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12349 (have_cbranchcc4): New variable.
12350 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12351 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12352 (if_convert): Initialize have_cbranchcc4.
12353
12354 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12355
12356 * builtins.c (expand_cmpstrn): Rename to...
12357 (expand_cmpstrn_or_cmpmem): ...this.
12358 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12359 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12360 Remove mode argument.
12361 (expand_builtin): Update accordingly.
12362
12363 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12364
12365 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12366 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
12367 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12368 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12369 Add predicates for operands 0 and 3.
12370 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12371 operand.
12372 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12373 immediate_operand to nonmemory_operand.
12374
12375 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12376
12377 * df-scan.c (df_insn_info_init_fields): New function, split out
12378 from...
12379 (df_insn_create_insn_record): ...here.
12380 (df_insn_info_free_fields): New function, split out from...
12381 (df_insn_info_delete): ...here.
12382 (df_insn_rescan): Use the new functions instead of freeing and
12383 reallocating the df_insn_info.
12384
12385 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12386
12387 * doc/install.texi (Binaries): Remove links no longer valid.
12388
12389 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12390
12391 * config/nvptx/mkoffload.c (process): Replace
12392 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12393
12394 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
12395
12396 PR target/67329
12397 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12398
12399 2015-08-24 Renlin Li <renlin.li@arm.com>
12400
12401 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12402 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12403 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12404 * config/arm/constraints.md ("j"): Add check for high code.
12405
12406 2015-08-24 Tom de Vries <tom@codesourcery.com>
12407
12408 PR tree-optimization/65468
12409 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12410 chunk_size is one.
12411
12412 2015-08-24 Nathan Sidwell <nathan@acm.org>
12413
12414 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12415 change to nvptx_type_from_mode call. Use arg_promotion for both
12416 split and non-split args.
12417
12418 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12419
12420 * target-insns.def (movstr): New pattern.
12421 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12422 (expand_movstr): Use targetm rather than HAVE_movstr/
12423 CODE_FOR_movstr.
12424
12425 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12426
12427 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12428 cast syntax.
12429
12430 2015-08-24 Andrew Pinski <apinski@cavium.com>
12431
12432 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12433 AARCH64_EXTRA_TUNING_OPTION.
12434 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12435 New enum.
12436 (aarch64_extra_tuning_flags): Base the shifted value on the index
12437 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12438 * config/aarch64/aarch64.c: Remove the last argument to
12439 AARCH64_EXTRA_TUNING_OPTION.
12440
12441 2015-08-23 Nathan Sidwell <nathan@acm.org>
12442
12443 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12444 decls.
12445 (nvptx_declare_function_name): Insert formatting tabs for
12446 consistency.
12447
12448 2015-08-23 Tom de Vries <tom@codesourcery.com>
12449
12450 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12451 parm_decl, rather than generating a dummy default def in cfun.
12452 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12453 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12454 (move_stmt_op): Handle PARM_DECl.
12455 (gather_ssa_name_hash_map_from): New function.
12456 (move_sese_region_to_fn): Add default defs for function params, and add
12457 them to vars_map. Release copied ssa names.
12458 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12459
12460 2015-08-23 Tom de Vries <tom@codesourcery.com>
12461
12462 * doc/sourcebuild.texi: Rename vect_no_int_max with
12463 vect_no_int_min_max. Update description.
12464
12465 2015-08-22 Andrew Pinski <apinski@cavium.com>
12466
12467 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12468 * config/aarch64/aarch64-protos.h
12469 (aarch64_fusion_pairs_index): New enum.
12470 (aarch64_fusion_pairs): Base the shifted value on the index instead
12471 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12472 of the argument to AARCH64_FUSION_PAIR.
12473 * config/aarch64/aarch64.c: Remove the last argument to
12474 AARCH64_FUSION_PAIR.
12475
12476 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12477
12478 * dominance.c (new_zero_array): Define.
12479 (dom_info): Redefine as class with proper encapsulation.
12480 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12481 Add new members.
12482 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12483 allocations/deallocations. Pass function as parameter (instead of
12484 using cfun).
12485 (dom_info::get_idom): Define accessor method.
12486 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12487 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12488 (calculate_dominance_info): Adjust to use dom_info class.
12489 (verify_dominators): Likewise.
12490
12491 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12492
12493 * print-rtl.c (print_rtx): Check the correct range for
12494 flag_dump_unnumbered_links to behave as documented.
12495
12496 PR rtl-optimization/67227
12497 PR rtl-optimization/64164
12498 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12499 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12500 identical gimple_reg exprs.
12501
12502 2015-08-21 Nathan Sidwell <nathan@acm.org>
12503
12504 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12505 expansion.
12506 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12507 crtl->stack_alignment_needed to determine alignment.
12508 (nvptx_get_drap_rtx): New.
12509 (TARGET_GET_DRAP_RTX): Override.
12510 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12511
12512 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12513
12514 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12515
12516 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12517
12518 * configure.ac: Remove uwin* cases.
12519 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12520 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12521 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12522 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12523 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12524 i[34567]86-*-uwin*, powerpc-*-beos*.
12525
12526 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12527
12528 * gencodes.c (gencodes): Print the comma for the preceding
12529 enum value rather than the current one. Use aliased enum values
12530 rather than #defines for compiled-out patterns.
12531 (main): Update accordingly. Replace LAST_INSN_CODE with
12532 NUM_INSN_CODES.
12533 * lra.c (insn_code_data): Update accordingly.
12534 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12535 * recog.h (target_recog): Likewise.
12536 (preprocess_insn_constraints): Change parameter to unsigned int.
12537 * recog.c (preprocess_insn_constraints): Likewise.
12538 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12539 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12540
12541 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12542
12543 PR rtl-optimization/61657
12544 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12545 unsigned. Remove superflous uint64_t cast.
12546
12547 2014-08-21 Felix Yang <felix.yang@huawei.com>
12548 Jiji Jiang <jiangjiji@huawei.com>
12549
12550 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12551 argument and get builtin function code directly from CALL.
12552 (gimple_stringop_fixed_value): Modified accordingly.
12553 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12554 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12555
12556 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12557
12558 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12559
12560 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12561
12562 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12563 to match.pd.
12564 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12565 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12566 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12567 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12568 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12569 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12570 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12571 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12572 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12573 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12574
12575 * match.pd (SIN ) : New Operator.
12576 (TAN) : New Operator.
12577 (mult (SQRT@1 @0) @1) : New simplifier.
12578 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12579 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12580 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12581 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12582 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12583 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12584 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12585 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12586 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12587 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12588
12589 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12590
12591 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12592 loop if EXPR is simplified to const value.
12593
12594 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12595
12596 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12597 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12598
12599 2015-08-21 Richard Biener <rguenther@suse.de>
12600
12601 PR middle-end/67285
12602 * gimple-fold.c (replace_stmt_with_simplification): Assert
12603 seq is empty when replacing a call with itself but different
12604 arguments.
12605 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12606 a call require that it is const.
12607
12608 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12609
12610 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12611 * builtins.c (get_object_alignment_2): Adjust.
12612 * varasm.c (align_variable): Likewise.
12613 (get_variable_align): Likewise.
12614 (build_constant_desc): Likewise.
12615 (force_const_mem): Likewise.
12616 * doc/tm.texi.in: Likewise.
12617 * doc/tm.texi: Regenerate.
12618
12619 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12620
12621 * genconfig.c (main): Always define HAVE_cc0.
12622 * recog.c (rest_of_handle_peephole2): Adjust.
12623
12624 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12625
12626 * reorg.c (relax_delay_slots): Don't use #if to check value of
12627 HAVE_cc0.
12628
12629 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12630
12631 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12632 * targhooks.c (default_have_conditional_execution): Adjust.
12633
12634 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12635
12636 * rtl.h (rtvec_all_equal_p): Declare.
12637 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12638 * rtl.c (rtvec_all_equal_p): New function.
12639 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12640 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12641 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12642 * config/arm/arm.c (neon_vdup_constant): Likewise.
12643 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12644 * config/tilegx/constraints.md (W, Y): Likewise.
12645 * config/tilepro/constraints.md (W, Y): Likewise.
12646 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12647 (classify_immediate): Use unwrap_const_vec_duplicate.
12648 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12649 (reg_or_v2s8bit_operand): Likewise.
12650 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12651 (reg_or_v4s8bit_operand): Likewise.
12652
12653 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12654
12655 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12656 (vec_shasigma_be): New #define.
12657 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12658 (VPMSUMH): Likewise.
12659 (VPMSUMW): Likewise.
12660 (VPMSUMD): Likewise.
12661 (VPMSUM): New BU_P8V_OVERLOAD_2.
12662 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12663 entries for VEC_MADD and VEC_VPMSUM.
12664
12665 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
12666
12667 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12668 Multiply argument avr_n_flash by 64 to match unit of "KiB".
12669 (avr_pgm_check_var_decl): Same.
12670
12671 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
12672
12673 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12674 initialization of HFmode scalar type (float16_t) to...
12675 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12676 code.
12677
12678 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12679
12680 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12681 having an -mfp16-format.
12682
12683 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12684
12685 * config/i386/predicates.md (vector_all_ones_operand): Use
12686 CONSTM1_RTX to simplify definition.
12687
12688 2015-08-20 Richard Biener <rguenther@suse.de>
12689
12690 * toplev.c (compile_file): Remove loop calling late_global_decl
12691 on all symbols.
12692 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12693 on decls we assembled.
12694
12695 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
12696
12697 * common/config/aarch64/aarch64-common.c
12698 (AARCH64_CPU_NAME_LENGTH): Delete.
12699 (aarch64_option_extension): New.
12700 (all_extensions): Likewise.
12701 (processor_name_to_arch): Likewise.
12702 (arch_to_arch_name): Likewise.
12703 (all_cores): New.
12704 (all_architectures): Likewise.
12705 (aarch64_get_extension_string_for_isa_flags): Likewise.
12706 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12707 architecture names.
12708 * config/aarch64/aarch64-protos.h
12709 (aarch64_get_extension_string_for_isa_flags): New.
12710 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12711 (aarch64_option_print): Get the string to print from
12712 aarch64_get_extension_string_for_isa_flags.
12713 (aarch64_declare_function_name): Likewise.
12714 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12715 (MCPU_TO_MARCH_SPEC): This.
12716 (ASM_CPU_SPEC): Use it.
12717 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12718 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12719 (EXTRA_SPEC_FUNCTIONS): Use it.
12720
12721 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
12722
12723 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12724 expansion when !ISA_HAS_LWL_LWR.
12725 (mips_block_move_straight): Update the size of elements copied to
12726 account for alignment when !ISA_HAS_LWL_LWR.
12727 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12728
12729 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12730
12731 * expr.c (expand_expr_real_2): Check gimple statement during
12732 LSHIFT_EXPR expand.
12733
12734 2015-08-19 Magnus Granberg <zorry@gentoo.org>
12735
12736 * common.opt (fstack-protector): Initialize to -1.
12737 (fstack-protector-all): Likewise.
12738 (fstack-protector-strong): Likewise.
12739 (fstack-protector-explicit): Likewise.
12740 * configure.ac: Add --enable-default-ssp.
12741 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
12742 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12743 -1.
12744 * doc/install.texi: Document --enable-default-ssp.
12745 * config.in: Regenerated.
12746 * configure: Likewise.
12747
12748 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
12749
12750 PR rtl-optimization/64164
12751 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12752 (parm_in_stack_slot_p): ... this. Disregard mode, what
12753 matters is whether the parm will live in a pseudo or a stack
12754 slot.
12755 (expand_one_ssa_partition): Deal with params without a default
12756 def. Disregard mode.
12757 * cfgexpand.h: Renamed function declaration.
12758 * tree-ssa-coalesce.c: Adjust.
12759 * function.c (split_complex_args): Allocate stack slot for
12760 unassigned parms before splitting.
12761 (parm_in_unassigned_mem_p): New. Use it instead of
12762 parm_maybe_byref_p throughout this file.
12763 (assign_parm_setup_block): Use it. Accept pseudos in the
12764 expand-assigned rtl.
12765 (assign_parm_setup_reg): Drop BLKmode requirement.
12766 (assign_parm_setup_stack): Allocate and fill in the address of
12767 unassigned MEM parms.
12768
12769 2015-08-19 David Sherwood <david.sherwood@arm.com>
12770
12771 * genmodes.c (emit_mode_unit_size_inline): New function.
12772 (emit_mode_unit_precision_inline): New function.
12773 (emit_insn_modes_h): Emit new #define. Emit new functions.
12774 (emit_mode_unit_size): New function.
12775 (emit_mode_unit_precision): New function.
12776 (emit_mode_adjustments): Add mode_unit_size adjustments.
12777 (emit_insn_modes_c): Emit new arrays.
12778 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12779 use new inline methods.
12780
12781 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12782
12783 * config/aarch64/aarch64.c (bit_count): Delete prototype
12784 and definition.
12785 (aarch64_print_operand): Use popcount_hwi instead of the above.
12786
12787 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12788
12789 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12790 comment.
12791
12792 2015-08-19 Marek Polacek <polacek@redhat.com>
12793
12794 PR middle-end/67133
12795 * gimple-ssa-isolate-paths.c
12796 (insert_trap_and_remove_trailing_statements): Rename to ...
12797 (insert_trap): ... this. Don't remove trailing statements; split
12798 block instead.
12799 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12800
12801 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
12802
12803 PR other/67042
12804 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12805 conditionalize the whole on __GNUC__. Add fallback code
12806 depending neither on undefined nor implementation-defined behaviour.
12807
12808 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12809
12810 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12811 whitespaces with tab.
12812
12813 2015-08-19 Florian Weimer <fweimer@redhat.com>
12814
12815 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12816 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12817 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12818 Move Name_Ids instantiation to the Prj.Proc package, to avoid
12819 trampolines.
12820
12821 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12822
12823 * config/arm/arm.c (bounds_check): Use %wd print format
12824 for HOST_WIDE_INT arguments.
12825
12826 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
12827
12828 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12829 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12830 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12831 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12832 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12833 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12834 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12835 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12836 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12837 typedefs.
12838
12839 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
12840
12841 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12842 function.c, graphite-scop-detection.c, haifa-sched.c,
12843 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12844 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12845 varasm.c: Remove typedefs of structs.
12846
12847 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12848
12849 * config/rs6000/altivec.h (vec_adde): New define.
12850 (vec_addec): Likewise.
12851 (vec_double): Likewise.
12852 (vec_bperm): Likewise.
12853 (vec_gb): Likewise.
12854 * config/rs6000/rs6000-builtin.def (ADDE): New
12855 BU_ALTIVEC_OVERLOAD_3.
12856 (ADDEC): Likewise.
12857 (DOUBLE): New BU_VSX_OVERLOAD_1.
12858 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12859 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12860 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12861 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12862 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12863 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12864 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12865 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12866 and P8V_BUILTIN_VEC_VBPERMQ.
12867
12868 2015-08-18 Jason Merrill <jason@redhat.com>
12869
12870 * print-tree.c (print_node): Handle TREE_BINFO.
12871
12872 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12873
12874 PR middle-end/36757
12875 * builtins.c (expand_builtin_signbit): Add asserts to make sure
12876 we can expand BUILT_IN_SIGNBIT inline.
12877 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12878 * doc/extend.texi: Document the type-generic __builtin_signbit.
12879
12880 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
12881
12882 PR rtl-optimization/67218
12883 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12884 (simplify_unary_operation_1): Use it.
12885
12886 2015-08-18 Marek Polacek <polacek@redhat.com>
12887
12888 PR middle-end/67222
12889 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12890 if the call isn't valid.
12891 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12892 gimple_call_builtin_p.
12893 (call_may_clobber_ref_p_1): Likewise.
12894 (stmt_kills_ref_p): Likewise.
12895
12896 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
12897
12898 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12899 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12900 (mips_hard_regno_scratch_ok): Likewise.
12901 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12902 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12903
12904 2015-08-18 Bin Cheng <bin.cheng@arm.com>
12905
12906 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12907 (determine_value_range): Call refine_value_range_using_guard for
12908 each loop initial condition to improve value range.
12909
12910 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
12911
12912 * config/i386/i386.c: Remove include of fibheap.h.
12913
12914 2015-08-17 Richard Biener <rguenther@suse.de>
12915
12916 PR tree-optimization/67221
12917 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12918 (sccvn_dom_walker::before_dom_children): Mark backedges of
12919 non-executable blocks as not executable.
12920
12921 2015-08-17 David Sherwood <david.sherwood@arm.com>
12922
12923 * config/arm/arm.c (neon_element_bits): Replace call to
12924 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12925 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12926 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12927 (neon_vdup_lane<mode>): Likewise.
12928 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12929 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12930 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12931 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12932 * config/spu/spu.c (arith_immediate_p): Likewise.
12933 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12934 * expr.c (expand_expr_real_2): Likewise.
12935 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12936 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12937 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12938 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12939 New variable.
12940 * fold-const.c (fold_binary_loc): Replace call to
12941 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12942 GET_MODE_UNIT_PRECISION (m).
12943
12944 2015-08-17 Mike Stump <mikestump@comcast.net>
12945
12946 * config/arm/arm.c (arm_block_move_unaligned_straight):
12947 Emit normal move instead of unaligned load when source or destination
12948 are appropriately aligned.
12949
12950 2015-08-17 Richard Biener <rguenther@suse.de>
12951 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12952
12953 PR middle-end/16107
12954 * match.pd (div (coss (op @0) : New simplifier.
12955
12956 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
12957
12958 PR rtl-optimization/64164
12959 PR bootstrap/66978
12960 PR middle-end/66983
12961 PR rtl-optimization/67000
12962 PR middle-end/67034
12963 PR middle-end/67035
12964 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12965 * tree-ssa-copyrename.c: Removed.
12966 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12967 -ftree-coalesce-vars.
12968 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12969 * common.opt (ftree-copyrename): Ignore.
12970 (ftree-coalesce-inlined-vars): Likewise.
12971 * doc/invoke.texi: Remove the ignored options above.
12972 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12973 * tree-ssa-coalesce.h: ... here.
12974 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12975 headers required by it.
12976 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12977 across variables when flag_tree_coalesce_vars. Check register
12978 use and promoted modes to allow coalescing. Do not coalesce
12979 maybe-byref parms with SSA_NAMEs of other variables, or
12980 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
12981 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12982 with its member functions to tree-ssa-coalesce.c.
12983 (var_map_base_init): Likewise. Renamed to
12984 compute_samebase_partition_bases.
12985 (partition_view_normal): Drop want_bases parameter.
12986 (partition_view_bitmap): Likewise.
12987 * tree-ssa-live.h: Adjust declarations.
12988 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12989 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12990 default defs at the entry point.
12991 (dump_part_var_map): New.
12992 (compute_optimized_partition_bases): New, called by...
12993 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12994 of compute_samebase_partition_bases. Adjust.
12995 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12996 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12997 (ssa_default_def_partition): New.
12998 (get_rtl_for_parm_ssa_default_def): New.
12999 (align_local_variable, add_stack_var): Support anonymous SSA
13000 names.
13001 (defer_stack_allocation): Likewise. Declare earlier.
13002 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13003 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13004 Do no record deferred-allocation marker in
13005 SA.partition_to_pseudo.
13006 (expand_stack_vars): Adjust check for the marker in it.
13007 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13008 redundant MEM attr setting.
13009 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13010 from...
13011 (expand_one_stack_var): ... this. New wrapper to check and
13012 skip already expanded SSA partitions.
13013 (record_alignment_for_reg_var): New, factored out of...
13014 (expand_one_var): ... this.
13015 (expand_one_ssa_partition): New.
13016 (adjust_one_expanded_partition_var): New.
13017 (expand_one_register_var): Check and skip already expanded SSA
13018 partitions.
13019 (expand_used_vars): Don't create DECLs for anonymous SSA
13020 names. Expand all SSA partitions, then adjust all SSA names.
13021 (pass::execute): Replace the loops that set
13022 SA.partition_to_pseudo from partition leaders and cleared
13023 DECL_RTL for multi-location variables, and that which used to
13024 rename vars and set attrs, with one that clears DECL_RTL and
13025 checks that PARMs and RESULTs default_defs match DECL_RTL.
13026 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13027 * emit-rtl.c: Include stor-layout.h.
13028 (set_reg_attrs_for_parm): Handle NULL decl.
13029 (set_reg_attrs_for_decl_rtl): Take mode from expression if
13030 it's not a DECL.
13031 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13032 rather than its possibly-NULL DECL.
13033 * explow.c (promote_ssa_mode): New.
13034 * explow.h (promote_ssa_mode): Declare.
13035 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13036 (read_complex_part): Export.
13037 * expr.h (read_complex_part): Declare.
13038 * cfgexpand.h (parm_maybe_byref_p): Declare.
13039 * function.c: Include cfgexpand.h.
13040 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13041 (use_register_for_parm_decl): Wrapper for the above to
13042 special-case the result_ptr.
13043 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13044 (split_complex_args): Take assign_parm_data_all argument.
13045 Pass it to rtl_for_parm. Set up rtl and context for split
13046 args. Reset complex parm before fetching its default decl
13047 rtl.
13048 (assign_parms_unsplit_complex): Use the default-def complex
13049 parm rtl if it matches the components.
13050 (assign_parms_augmented_arg_list): Adjust.
13051 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13052 multiple locations. Recognize split complex args.
13053 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13054 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13055 (assign_parm_setup_block): Prefer SSA-assigned location, and
13056 fill in its address if the memory location of a maybe-byref
13057 parm was not assigned by cfgexpand.
13058 (assign_parm_setup_reg): Likewise. Adjust its mode as
13059 needed. Use entry_parm for equiv if stack_parm is NULL. Make
13060 sure passed_pointer parms don't need conversion. Copy address
13061 or value as needed.
13062 (assign_parm_setup_stack): Prefer SSA-assigned location.
13063 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13064 rtl before testing for pointer bounds. Special-case result_ptr.
13065 (expand_function_start): Maybe reset DECL_RTL of result.
13066 Prefer SSA-assigned location for result and static chain.
13067 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
13068 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
13069 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13070 anonymous SSA names. Use promote_ssa_mode.
13071 (get_temp_reg): Likewise.
13072 (remove_ssa_form): Adjust.
13073 * stor-layout.c (layout_decl): Don't set mem attributes of
13074 non-MEMs.
13075 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13076 and get its reg_usage for reg invalidation.
13077 (compute_bb_dataflow): Pass it insn.
13078 (emit_notes_in_bb): Likewise.
13079
13080 2015-08-14 Marek Polacek <polacek@redhat.com>
13081
13082 * tree-core.h (tree_base): Fix typo.
13083
13084 2015-08-14 Marek Polacek <polacek@redhat.com>
13085
13086 PR middle-end/67133
13087 * gimple.c (infer_nonnull_range_by_attribute): Check that the
13088 nonnull argument position is not outside function arguments.
13089
13090 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
13091
13092 PR target/67143
13093 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13094 'lconst_atomic' with 'const_atomic'.
13095 (atomic_fetch_<optab><mode>): Likewise.
13096 (atomic_<optab>_fetch<mode>): Likewise.
13097 * config/aarch64/iterators.md (lconst-atomic): Move below
13098 'const_atomic'.
13099 (const_atomic): New.
13100
13101 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
13102 Bernd Schmidt <bernds@codesourcery.com>
13103
13104 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13105 debug options.
13106 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13107 (DWARF2_DEBUGGING_INFO): Don't define.
13108 * debug.h (dwarf2_lineno_debug_hooks): Declare.
13109 * toplev.c (process_options): Add a case for it.
13110 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13111 (dwarf2out_init): Skip most initializations if
13112 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13113 case.
13114 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13115 DWARF2_LINENO_DEBUGGING_INFO.
13116 * opts.c (set_debug_level): Likewise.
13117
13118 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
13119
13120 * config/arm/types.md (is_neon_type): Add missing types.
13121
13122 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13123
13124 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13125 for skylake.
13126 * config/i386/i386.c (PTA_SKYLAKE): New macros.
13127 (processor_alias_table): Add skylake description.
13128 (enum processor_model): Add skylake processor.
13129 (arch_names_table): Add skylake record.
13130 * doc/invoke.texi: Add skylake item.
13131
13132 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
13133
13134 * ira-int.h: Include recog.h.
13135 * ira-build.c: Don't include recog.h.
13136 * ira-color.c: Likewise.
13137 * ira-conflicts.c: Likewise.
13138 * ira-costs.c: Likewise.
13139 * ira-emit.c: Likewise.
13140 * ira-lives.c: Likewise.
13141 * ira.c: Likewise.
13142 * sched-deps.c: Likewise.
13143 * sel-sched.c: Likewise.
13144 * target-globals.c: Likewise.
13145
13146 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
13147
13148 PR bootstrap/55035
13149 * reload1.c (elimination_costs_in_insn): Make it obvious to the
13150 compiler that the n_dups and n_operands loop bounds are invariant.
13151
13152 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13153
13154 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13155 expressions in A and B.
13156
13157 2015-08-13 Richard Biener <rguenther@suse.de>
13158
13159 * tree.c (nonnull_arg_p): Move from ...
13160 * tree-vrp.c (nonnull_arg_p): ... here.
13161 * tree.h (nonnull_arg_p): Declare.
13162 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13163 here, register ptr != 0 for nonnull_arg_p pointer arguments.
13164 Properly initialize static chain and by-reference result pointer.
13165 (run_scc_vn): Adjust.
13166
13167 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13168
13169 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13170 TUNE_I6400.
13171
13172 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13173
13174 * config/aarch64/aarch64-protos.h
13175 (aarch64_gen_atomic_cas): Declare.
13176 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13177 Choose appropriate instruction pattern for the target.
13178 (aarch64_gen_atomic_cas): New.
13179 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13180 (atomic_compare_and_swap<mode>_1): Rename to
13181 aarch64_compare_and_swap<mode>. Fix some indentation.
13182 (aarch64_compare_and_swap<mode>_lse): New.
13183 (aarch64_atomic_cas<mode>): New.
13184
13185 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13186
13187 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13188 (TARGET_LSE): New.
13189
13190 2015-08-13 Richard Biener <rguenther@suse.de>
13191
13192 PR tree-optimization/67191
13193 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13194 assert we value-numbered last stmts operand because it can validly
13195 trigger for unreachable code.
13196
13197 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13198
13199 PR rtl-optimization/67103
13200 * ifcvt.c (noce_try_store_flag_constants): Move
13201 x = (-(test != 0) & (b - a)) + a transformation to...
13202 (noce_try_cmove): ... Here. Try it if normal conditional
13203 move fails.
13204
13205 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13206
13207 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13208 pseudo-processors.
13209 * config/mips/mips.md (processor): Remove w32 and w64.
13210
13211 2015-08-13 Richard Biener <rguenther@suse.de>
13212
13213 PR tree-optimization/66502
13214 PR tree-optimization/67167
13215 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13216 backedge arguments.
13217 (vn_phi_lookup): Adjust.
13218 (vn_phi_insert): Likewise.
13219 (visit_phi): Prefer to value-number to another PHI node
13220 over value-numbering to a PHI argument.
13221 (init_scc_vn): Mark DFS back edges.
13222
13223 2015-08-13 Richard Biener <rguenther@suse.de>
13224
13225 * gimple.h (gcall::code_): New constant static member.
13226 (gcond::code_): Likewise.
13227 * gimple.c (gcall::code_): Define.
13228 (gcond::code_): Likewise.
13229 (is_a_helper <const gcond *>): Add.
13230 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13231 and forward to a new gcall overload with less checking and a
13232 cheaper way to access the operand.
13233 (gimple_call_lhs_ptr): Likewise.
13234 (gimple_call_set_lhs): Likewise.
13235 (gimple_call_internal_p): Likewise.
13236 (gimple_call_with_bounds_p): Likewise.
13237 (gimple_call_set_with_bounds): Likewise.
13238 (gimple_call_internal_fn): Likewise.
13239 (gimple_call_set_ctrl_altering): Likewise.
13240 (gimple_call_ctrl_altering_p): Likewise.
13241 (gimple_call_fntype): Likewise.
13242 (gimple_call_fn): Likewise.
13243 (gimple_call_fn_ptr): Likewise.
13244 (gimple_call_set_fndecl): Likewise.
13245 (gimple_call_fndecl): Likewise.
13246 (gimple_call_chain): Likewise.
13247 (gimple_call_num_args): Likewise.
13248 (gimple_call_arg): Likewise.
13249 (gimple_call_arg_ptr): Likewise.
13250 (gimple_call_set_arg): Likewise.
13251 (gimple_call_noreturn_p): Likewise.
13252 (gimple_cond_code): Likewise.
13253 (gimple_cond_lhs): Likewise.
13254 (gimple_cond_rhs): Likewise.
13255 (gimple_has_lhs): Reduce checking.
13256
13257 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13258
13259 PR middle-end/25529
13260 * match.pd (div (mult @0 @1) @1) : New simplifier.
13261
13262 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13263
13264 PR target/67071
13265 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13266 predicate to allow construction of vector constants using the
13267 VSLDOI vector shift instruction.
13268
13269 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13270 declaration.
13271
13272 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13273 the number of bytes to be shifted left and filled in with either
13274 all zero or all one bits.
13275 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13276 methods exist.
13277 (output_vec_const_move): On power8, generate XXLORC to generate
13278 a vector constant with all 1's. Do a split if we need to use a
13279 VSLDOI instruction.
13280
13281 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13282 properly test for the MSB.
13283
13284 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13285 vector constants that can be created with VSLDOI.
13286
13287 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13288
13289 revert:
13290 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13291 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13292 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13293 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13294 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13295 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13296 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13297 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13298 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13299
13300 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
13301
13302 * config/xtensa/constraints.md (define_constraint "Y"): New
13303 constraint.
13304 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13305 * config/xtensa/linux.h (ASM_SPEC): Likewise.
13306 * config/xtensa/predicates.md (move_operand): Match constants
13307 and symbols in the presence of TARGET_AUTO_LITPOOLS.
13308 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13309 immediate references to TLS data.
13310 (xtensa_emit_move_sequence): Don't force constants to memory in
13311 the presence of TARGET_AUTO_LITPOOLS.
13312 (print_operand): Add 'y' format, same as default, but capable of
13313 printing SF mode constants as well.
13314 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13315 (movsf_internal): Add movi pattern that loads literal.
13316 (movsf, movdf): Don't force constants to memory in the presence
13317 of TARGET_AUTO_LITPOOLS.
13318 (movdf_internal): Add 'Y' constraint.
13319 * config/xtensa/xtensa.opt (mauto-litpools): New option.
13320 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13321
13322 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13323
13324 * config/arm/arm-fpus.def: Replace booleans with feature flags.
13325 Update comment.
13326 * config/arm/arm.c (ARM_FPU): Update macro.
13327 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13328 (TARGET_FP16): Likewise.
13329 (TARGET_CRYPTO): Likewise.
13330 (TARGET_NEON): Likewise.
13331 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
13332 field features.
13333
13334 2015-08-12 Tom de Vries <tom@codesourcery.com>
13335
13336 PR other/67092
13337 PR other/67098
13338 * doc/install.texi: Remove --with_host_libstdcxx item. Update
13339 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13340 accordingly. Mention default for --with-stage1-ldflags.
13341
13342 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13343
13344 * config/arm/arm.h (arm_fpu_feature_set): New.
13345 (ARM_FPU_FSET_HAS): New.
13346 (FPU_FL_NONE): New.
13347 (FPU_FL_NEON): New.
13348 (FPU_FL_FP16): New.
13349 (FPU_FL_CRYPTO): New.
13350
13351 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13352
13353 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13354 after -mcmodel=large -fPIC sorry.
13355
13356 2015-08-12 Richard Biener <rguenther@suse.de>
13357
13358 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13359 comparison operand order and commutative ternary op operand order.
13360 (sccvn_dom_walker::cond_stack): New state to track temporary
13361 expressions.
13362 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13363 no longer valid.
13364 (sccvn_dom_walker::record_cond): Add a single temporary conditional
13365 expression.
13366 (sccvn_dom_walker::record_conds): Add a temporary conditional
13367 expressions and all related expressions also true/false.
13368 (sccvn_dom_walker::before_dom_children): Record temporary
13369 expressions based on the controlling condition of a single
13370 predecessor. When trying to simplify a conditional statement
13371 lookup expressions we might have inserted earlier.
13372
13373 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
13374
13375 PR target/67127
13376 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13377 to ARM core registers.
13378
13379 2015-08-12 Nathan Sidwell <nathan@acm.org>
13380
13381 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13382 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13383
13384 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
13385
13386 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13387 line with comments.
13388 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13389
13390 2015-08-12 Richard Biener <rguenther@suse.de>
13391
13392 * gimple.h (remove_pointer): New trait.
13393 (GIMPLE_CHECK2): New inline template function.
13394 (gassign::code_): New constant static member.
13395 (is_a_helper<const gassign *>): Add.
13396 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13397 and forward to a new gassign overload with less checking and a
13398 cheaper way to access the operand.
13399 (gimple_assign_lhs_ptr): Likewise.
13400 (gimple_assign_set_lhs): Likewise.
13401 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13402 Likewise.
13403 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13404 Likewise.
13405 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13406 Likewise.
13407 (gimple_assign_rhs_code): Likewise.
13408 * gimple.c (gassign::code_): Define.
13409
13410 2015-08-12 Richard Biener <rguenther@suse.de>
13411
13412 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13413 Eliminate edges marked as not executable by SCCVN.
13414 * tree-ssa-sccvn.c: Include gimple-iterator.h.
13415 (cond_dom_walker): Rename to sccvn_dom_walker.
13416 (sccvn_dom_walker::before_dom_children): Value-number defs
13417 of all stmts.
13418 (run_scc_vn): Remove loop value-numbering all SSA names.
13419 Drop not visited SSA names to varying.
13420
13421 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13422
13423 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13424 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13425 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13426 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13427 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13428 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13429 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13430 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13431 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13432
13433 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13434
13435 PR target/66954
13436 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13437 to enum feature_priority and feature_list.
13438 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13439 and isa_names_table.
13440
13441 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13442
13443 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13444 vect_induction_def.
13445
13446 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13447
13448 PR c/66098
13449 PR c/66711
13450 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13451 account when deciding what was the command-line status.
13452
13453 2015-08-11 Nathan Sidwell <nathan@acm.org>
13454
13455 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13456
13457 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13458 we're not the only contributor to target phi.
13459
13460 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13461
13462 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13463 FIXED_REG0.
13464
13465 2015-08-11 Tom de Vries <tom@codesourcery.com>
13466
13467 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13468
13469 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13470
13471 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13472 with CPU_SLM.
13473 * config/i386/i386.md (cpu): Remove knl.
13474
13475 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13476
13477 PR libgomp/65742
13478 PR middle-end/66332
13479 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13480 open-coded sequence.
13481 * omp-low.c (oacc_process_reduction_data): Remove handline of
13482 GOMP_DEVICE_HOST_NONSHM.
13483
13484 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13485 GET_MODE_INNER changes.
13486
13487 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13488 Ilya Verbin <ilya.verbin@intel.com>
13489
13490 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13491
13492 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13493
13494 * doc/options.texi (EnabledBy): Document that the argument must be
13495 a Common option.
13496 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13497 Not enabled by -Wall.
13498 * optc-gen.awk: Give nicer error messages. Detect if the argument
13499 of EnabledBy is not a Common option.
13500 * common.opt (Wnull-dereference): Not enabled by -Wall.
13501 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13502
13503 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13504
13505 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13506 model == 0x4f as Broadwell.
13507
13508 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13509
13510 PR rtl-optimization/67028
13511 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13512 Add test to see if a const_int fits in the new mode.
13513
13514 2015-08-07 DJ Delorie <dj@redhat.com>
13515
13516 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13517
13518 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13519
13520 PR rtl-optimization/67029
13521 * ira-color.c: Include "recog.h" before including "ira-int.h".
13522 * target-globals.c: Likewise.
13523 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13524 adds an alternative_mask argument and use it instead of
13525 preferred_alternatives.
13526 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13527 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13528 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13529 (sched_analyze_insn): Update call to
13530 ira_implicitly_set_insn_hard_regs.
13531 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13532 (implicit_clobber_conflict_p): Update call to
13533 ira_implicitly_set_insn_hard_regs.
13534
13535 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13536
13537 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13538
13539 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13540
13541 PR target/67002
13542 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13543 currently_expanding_to_rtl is set.
13544
13545 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13546
13547 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13548 * configure: Regenerate.
13549
13550 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13551 Jiong Wang <jiong.wang@arm.com>
13552
13553 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13554 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13555 (REG_CLASS_NAMES): Likewise.
13556 (REG_CLASS_CONTENTS): Likewise.
13557 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13558 (aarch64_register_move_cost): Likewise.
13559 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13560 possible.
13561 * config/aarch64/constraints.md (Uc0): New constraint.
13562
13563 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13564
13565 * config/aarch64/constraints.md (Usf): Add the test of
13566 aarch64_is_noplt_call_p.
13567
13568 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13569
13570 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13571 declaration.
13572 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13573 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13574 (call_symbol): Likewise.
13575
13576 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13577
13578 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13579 for vectorizing multiplication patterns.
13580 * tree-vectorizer.h: Adjust the number of patterns.
13581
13582 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13583
13584 * config/i386/sse.md (*vec_concatv2df): Declare added
13585 alternatives as sselog type.
13586
13587 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13588
13589 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13590 all GPRs.
13591
13592 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13593
13594 * config/s390/s390.c (s390_expand_tbegin): Expand either
13595 tbegin_1_z13 or tbegin_1 depending on VX flag.
13596 * config/s390/s390.md ("tbegin_1_z13"): New expander.
13597
13598 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13599
13600 * config/s390/s390.opt: Clarify description for -mzvector
13601 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13602 -mzvector.
13603
13604 2015-08-06 Richard Biener <rguenther@suse.de>
13605
13606 * gimple.h (gimple_call_set_fn): Access op member directly.
13607 (gimple_call_chain_ptr): Likewise.
13608 (gimple_call_set_chain): Likewise.
13609 (gimple_cond_lhs_ptr): Likewise.
13610 (gimple_cond_set_lhs): Likewise.
13611 (gimple_cond_rhs_ptr): Likewise.
13612 (gimple_cond_set_rhs): Likewise.
13613 (gimple_cond_true_label): Likewise.
13614 (gimple_cond_set_true_label): Likewise.
13615 (gimple_cond_set_false_label): Likewise.
13616 (gimple_cond_false_label): Likewise.
13617 (gimple_label_label): Likewise.
13618 (gimple_label_set_label): Likewise.
13619 (gimple_goto_set_dest): Likewise.
13620 (gimple_asm_input_op): Likewise.
13621 (gimple_asm_input_op_ptr): Likewise.
13622 (gimple_asm_set_input_op): Likewise.
13623 (gimple_asm_output_op): Likewise.
13624 (gimple_asm_output_op_ptr): Likewise.
13625 (gimple_asm_set_output_op): Likewise.
13626 (gimple_asm_clobber_op): Likewise.
13627 (gimple_asm_set_clobber_op): Likewise.
13628 (gimple_asm_label_op): Likewise.
13629 (gimple_asm_set_label_op): Likewise.
13630 (gimple_switch_index): Likewise.
13631 (gimple_switch_index_ptr): Likewise.
13632 (gimple_return_retval_ptr): Likewise.
13633 (gimple_return_retval): Likewise.
13634 (gimple_return_set_retval): Likewise.
13635 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
13636 (gimple_switch_label): Likewise.
13637 (gimple_switch_set_label): Likewise.
13638
13639 2015-08-06 Richard Biener <rguenther@suse.de>
13640
13641 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13642 bool comparison canonicalization and restrict to integers.
13643
13644 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
13645
13646 * coretypes.h (enum symbol_visibility): Relocate here.
13647 * flag-types.h (enum symbol_visibility): Remove.
13648 * tree-core.h (enum symbol_visibility): Remove.
13649
13650 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
13651
13652 PR target/66870
13653 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13654 for no_split_stack function attribute along with
13655 flag_split_stack.
13656 (rs6000_expand_split_stack_prologue): Likewise.
13657
13658 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
13659 Jeff Law <law@redhat.com>
13660
13661 PR c/16351
13662 * doc/invoke.texi (Wnull-dereference): New.
13663 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13664 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13665 Warn for potential NULL dereferences.
13666 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13667 * ubsan.c (instrument_nonnull_arg): Call
13668 infer_nonnull_range_by_attribute.
13669 (instrument_nonnull_return): Likewise.
13670 * common.opt (Wnull-dereference); New.
13671 * gimple.c (infer_nonnull_range): Remove bool arguments.
13672 (infer_nonnull_range_by_dereference): New.
13673 (infer_nonnull_range_by_attribute): New.
13674 * gimple.h: Update declarations.
13675
13676 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13677
13678 * gensupport.c (sequence_num): Replace with...
13679 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13680 ...these new variables.
13681 (init_rtx_reader_args_cb): Update accordingly.
13682 (get_num_code_insns): Likewise.
13683 (read_md_rtx): Rework to use a while loop and get_c_test.
13684 Use the new counters. Remove redundant DEFINE_SUBST case.
13685 * genoutput.c (gen_split): Delete.
13686 (main): Don't call it.
13687
13688 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13689
13690 * gensupport.h (get_c_test): Declare.
13691 * gensupport.c (get_c_test): New function.
13692 * genconditions.c (main): Use it.
13693 * genrecog.c (validate_pattern): Likewise.
13694 (match_pattern_1): Likewise. Remove c_test argument.
13695 (match_pattern): Update accordingly and remove c_test argument.
13696 (main): Update accordingly.
13697
13698 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13699
13700 * gensupport.h (get_num_insn_codes): Declare.
13701 * gensupport.c (get_num_insn_codes): New function.
13702 * genattrtab.c (optimize_attrs): Rename max_insn_code to
13703 num_insn_codes.
13704 (main): Likewise. Use get_num_insn_codes.
13705 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13706
13707 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13708
13709 PR middle-end/66311
13710 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13711 is zero- rather than sign-extended.
13712
13713 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13714
13715 * target-insns.def (can_extend): Delete.
13716
13717 2015-08-05 Richard Biener <rguenther@suse.de>
13718
13719 PR tree-optimization/67121
13720 * tree-if-conv.c (combine_blocks): Clear range-info produced
13721 by stmts no longer executed conditionally.
13722
13723 2015-08-05 Nick Clifton <nickc@redhat.com>
13724
13725 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13726 to allow identical far pointers to remain.
13727
13728 2015-08-05 Richard Biener <rguenther@suse.de>
13729
13730 PR middle-end/67120
13731 * match.pd: Compare address bases with == if they are decls
13732 or SSA names, not operand_equal_p. Otherwise fail.
13733
13734 2015-08-05 Richard Biener <rguenther@suse.de>
13735
13736 PR tree-optimization/67055
13737 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13738 NULL gimple_block.
13739
13740 * g++.dg/torture/pr67055.C: New testcase.
13741
13742 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13743
13744 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13745 noavx512vl.
13746 (define_attr "enabled"): Handle avx521vl and noavx512vl.
13747 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13748 AVX-512 alternative out of SSE.
13749 (define_insn "*vec_concatv2df"): Ditto.
13750
13751 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13752
13753 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13754 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13755 CODE_FOR_avx_ptestv4di.
13756 * config/i386/sse.md (define_mode_iterator V_AVX): New.
13757 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13758 (define_insn "avx_ptest256"): Merge this ...
13759 (define_insn "sse4_1_ptest"): And this ...
13760 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13761
13762 2015-08-05 Richard Biener <rguenther@suse.de>
13763
13764 PR tree-optimization/67109
13765 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13766 against too big groups. Print whether this is a load or store
13767 group. Rename from ...
13768 (vect_analyze_group_access): ... this which is now a wrapper
13769 dissolving an invalid group.
13770 (vect_analyze_data_ref_accesses): Print whether this is a load
13771 or store group.
13772
13773 2015-08-05 Richard Biener <rguenther@suse.de>
13774
13775 PR middle-end/67107
13776 * match.pd: Guard const_binop result checking against NULL_TREE
13777 result.
13778
13779 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
13780
13781 * cse.c (cse_insn): Restoring old behaviour for src_eqv
13782 when dest and value in the REG_EQUAL are same and dest
13783 is STRICT_LOW_PART.
13784
13785 2015-08-04 Anatoly Sokolov <aesok@post.ru>
13786
13787 * config/moxie/moxie.h (PRINT_OPERAND,
13788 PRINT_OPERAND_ADDRESS): Remove macros.
13789 * config/moxie/moxie-protos.h (moxie_print_operand,
13790 moxie_print_operand_address): Remove declaration.
13791 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13792 TARGET_PRINT_OPERAND_ADDRESS): Define.
13793 (moxie_print_operand, moxie_print_operand_address): Make static.
13794
13795 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
13796
13797 PR target/66731
13798 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13799 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13800
13801 2015-08-04 Richard Biener <rguenther@suse.de>
13802
13803 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13804 generated code.
13805 (dt_operand::gen_gimple_expr): Adjust.
13806
13807 2015-08-04 Richard Biener <rguenther@suse.de>
13808
13809 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13810 bool compares on RHS.
13811 * match.pd: Add X ==/!= !X is false/true pattern.
13812
13813 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
13814
13815 * config/aarch64/aarch64.c: Change inner loop statement cost
13816 to be consistent with other targets.
13817
13818 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
13819
13820 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13821 targets.
13822
13823 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
13824
13825 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13826 (machine_function): Remove pseudos field.
13827
13828 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13829
13830 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13831 Exit early and use target_option_current_node if processing current
13832 pragma.
13833
13834 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13835
13836 * doc/extend.texi (AArch64 Function Attributes): New node.
13837 (AArch64 Pragmas): Likewise.
13838
13839 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13840
13841 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13842 Initialize simd builtins if TARGET_SIMD.
13843 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13844 Make sure that the builtins are initialized only once no matter how
13845 many times the function is called.
13846 (aarch64_init_builtins): Unconditionally initialize crc builtins.
13847 (aarch64_relayout_simd_param): New function.
13848 (aarch64_simd_expand_args): Use above during argument expansion.
13849 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13850 simd builtins if TARGET_SIMD.
13851 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13852 prototype.
13853 (aarch64_relayout_simd_types): Likewise.
13854
13855 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13856
13857 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13858 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13859 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13860 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13861 static keyword.
13862 (aarch64_reset_previous_fndecl): New function.
13863 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13864 the string.
13865 * config/aarch64/aarch64-c.c: New file.
13866 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13867 Push and pop options at beginning and end. Remove ifdef
13868 __ARM_FEATURE_CRC32.
13869 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13870 Add pragma +nothing+simd and +nothing+crypto where appropriate.
13871 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13872 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13873 Define prototype.
13874 (aarch64_register_pragmas): Likewise.
13875 (aarch64_reset_previous_fndecl): Likewise.
13876 (aarch64_process_target_attr): Likewise.
13877 (aarch64_override_options_internal): Likewise.
13878
13879 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13880
13881 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13882 New function.
13883 (aarch64_can_inline_p): Likewise.
13884 (TARGET_CAN_INLINE_P): Define.
13885
13886 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13887
13888 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13889 Remove static. Handle OPT_mgeneral_regs_only,
13890 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13891 OPT_momit_leaf_frame_pointer.
13892 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13893 (aarch64_attr_opt_type): New enum.
13894 (aarch64_attribute_info): New struct.
13895 (aarch64_handle_attr_arch): New function.
13896 (aarch64_handle_attr_cpu): Likewise.
13897 (aarch64_handle_attr_tune): Likewise.
13898 (aarch64_handle_attr_isa_flags): Likewise.
13899 (aarch64_attributes): New table.
13900 (aarch64_process_one_target_attr): New function.
13901 (num_occurences_in_str): Likewise.
13902 (aarch64_process_target_attr): Likewise.
13903 (aarch64_option_valid_attribute_p): Likewise.
13904 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13905 * config/aarch64/aarch64-protos.h: Include input.h
13906 (aarch64_handle_option): Declare prototype.
13907
13908 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13909
13910 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13911 * config/aarch64/aarch64.c: Include target-globals.h
13912 (aarch64_previous_fndecl): New variable.
13913 (aarch64_set_current_function): New function.
13914 (TARGET_SET_CURRENT_FUNCTION): Define.
13915
13916 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13917
13918 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13919 (explicit_arch): Likewise.
13920 (x_aarch64_isa_flags): Likewise.
13921 (mgeneral-regs-only): Mark as Save.
13922 (mfix-cortex-a53-835769): Likewise.
13923 (mcmodel=): Likewise.
13924 (mstrict-align): Likewise.
13925 (momit-leaf-frame-pointer): Likewise.
13926 (mtls-dialect): Likewise.
13927 (master=): Likewise.
13928 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13929 (aarch64_isa_flags): Remove extern declaration.
13930 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13931 to indicate success or failure.
13932 (aarch64_validate_march): Likewise.
13933 (aarch64_validate_mtune): Likewise.
13934 (aarch64_isa_flags): Delete.
13935 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13936 instead of aarch64_isa_flags.
13937 (aarch64_get_tune_cpu): New function.
13938 (aarch64_get_arch): Likewise.
13939 (aarch64_override_options): Use above and set up explicit_tune_core
13940 and explicit_arch.
13941 (aarch64_print_extension): Move earlier in file. Add isa_flags
13942 argument and use that instead of the global aarch64_isa_flags.
13943 (aarch64_option_save): New function.
13944 (aarch64_option_restore): Likewise.
13945 (aarch64_option_print): Likewise.
13946 (aarch64_declare_function_name): Likewise.
13947 (aarch64_start_file): Delete.
13948 (TARGET_ASM_FILE_START): Do not define.
13949 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13950 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13951 Declare prototype.
13952
13953 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13954
13955 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13956 flag_omit_leaf_frame_pointer to 2.
13957
13958 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13959
13960 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13961 define to 0 or 1.
13962 (TARGET_FIX_ERR_A53_835769): New macro.
13963 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13964 handling of opts->x_aarch64_fix_a53_err835769.
13965 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13966 than aarch64_fix_a53_err835769.
13967 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13968 * config/aarch64/aarch64-linux.h: Likewise.
13969
13970 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
13971
13972 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13973 ix86_expand_int_movcc as boolean.
13974
13975 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13976
13977 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13978 (aarch64_cpu_string): Likewise.
13979 (aarch64_tune_string): Likewise.
13980 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13981 (aarch64_parse_extension): Return aarch64_parse_opt_result.
13982 Add extra argument to put result into.
13983 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
13984 (aarch64_parse_cpu): Add arguments to put results into. Return
13985 aarch64_parse_opt_result.
13986 (aarch64_parse_tune): Likewise.
13987 (aarch64_override_options_after_change_1): New function.
13988 (aarch64_override_options_internal): New function.
13989 (aarch64_validate_mcpu): Likewise.
13990 (aarch64_validate_march): Likewise.
13991 (aarch64_validate_mtune): Likewise.
13992 (aarch64_override_options): Update to reflect above changes.
13993 Move some logic into aarch64_override_options_internal.
13994 Initialize target_option_default_node and target_option_current_node.
13995 (aarch64_override_options_after_change): Move logic into
13996 aarch64_override_options_after_change_1 and call it with global_options.
13997 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13998 flag values from that.
13999
14000 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14001
14002 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14003 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14004 * config/aarch64/aarch64.c (struct processor): Add arch field.
14005 (all_architectures): Handle above, move above all_cores.
14006 (all_cores): Handle above.
14007 (aarch64_parse_arch): Handle above changes.
14008 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14009 above. Update comments.
14010 (armv8.1-a): Likewise.
14011 * config/aarch64/aarch64-cores.def: Update according to above.
14012 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14013 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14014 aarch64_arch_driver_info.
14015
14016 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14017
14018 * config/aarch64/aarch64.c (struct processor): Add ident field.
14019 Rename core sched_core.
14020 (all_cores): Handle above changes.
14021 (all_architectures): Likewise.
14022 (aarch64_parse_arch): Likewise.
14023 (aarch64_override_options): Likewise.
14024
14025 2015-08-04 Richard Biener <rguenther@suse.de>
14026
14027 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14028 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14029 comparisons embedded in [VEC_]COND_EXPRs.
14030
14031 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
14032
14033 * tree-if-conv.c: Fix various typos in comments.
14034 * tree-vect-stmts.c: Likewise.
14035
14036 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14037
14038 PR tree-optimization/67043
14039 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14040 preheader after hoisting invariant in it.
14041 (find_defs): Force recomputation of all luids.
14042
14043 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
14044
14045 * config/rs6000/htm.md (tabort.): Restrict the source operand to
14046 using a base register.
14047
14048 2015-08-03 David Malcolm <dmalcolm@redhat.com>
14049
14050 * main.c (main): Pass in NULL for toplev's external_timer.
14051 * timevar.c: Include coretypes.h.
14052 (class timer::named_items): New.
14053 (timer::named_items::named_items): New.
14054 (timer::named_items::~named_items): New.
14055 (timer::named_items::push): New.
14056 (timer::named_items::pop): New.
14057 (timer::named_items::print): New.
14058 (timer::timer): Initialize field "m_jit_client_items".
14059 (timer::~timer): New.
14060 (timer::push): Move bulk of implementation to...
14061 (timer::push_internal): ...here. New function.
14062 (timer::pop): Move bulk of implementation to...
14063 (timer::pop_internal): ...here. New function.
14064 (timer::push_client_item): New.
14065 (timer::pop_client_item): New.
14066 (timer::print_row): New function, taken from timer::print.
14067 (timer::print): Print "GCC items" header if we also have client
14068 items. Move row-printing to timer::print_row. Print any client
14069 items.
14070 (timer::get_topmost_item_name): New method.
14071 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14072 (TV_JIT_CLIENT_CODE): New.
14073 * timevar.h (timer::push_client_item): New declaration.
14074 (timer::pop_client_item): New declaration.
14075 (timer::get_topmost_item_name): New method.
14076 (timer::push_internal): New declaration.
14077 (timer::pop_internal): New declaration.
14078 (timer::print_row): New declaration.
14079 (timer::named_items): New declaration.
14080 (timer::m_jit_client_items): New field.
14081 (timer): Add friend class named_items.
14082 (auto_timevar::auto_timevar): Add timer param.
14083 (auto_timevar::~auto_timevar): Use field "m_timer".
14084 (auto_timevar::m_timer): New field.
14085 * toplev.c (initialize_rtl): Add g_timer as param when
14086 constructing auto_timevar instance.
14087 (toplev::toplev): Add "external_timer" param, and use it to
14088 initialize the "g_timer" global if non-NULL.
14089 (toplev::~toplev): If this created "g_timer", delete it.
14090 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14091 with "external_timer" timer *.
14092
14093 2015-08-03 Alexander Basov <coohpt@gmail.com>
14094
14095 PR middle-end/64744
14096 PR middle-end/48470
14097 PR middle-end/43404
14098 * cfgexpand.c (expand_one_var): Add check if stack is going to
14099 be used in naked function.
14100 * expr.c (expand_expr_addr_expr_1): Remove excess checking
14101 whether expression should not reside in MEM.
14102 * function.c (use_register_for_decl): Do not use registers for
14103 non-register things (volatile, float, BLKMode) in naked functions.
14104
14105 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
14106
14107 PR target/67060
14108 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14109 Adjust splits to match new pattern.
14110
14111 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14112
14113 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14114 (VEC_M): Likewise.
14115 (VEC_N): Likewise.
14116 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14117 point in VSX registers.
14118
14119 * config/rs6000/constraints.md (wb constraint): Document unused
14120 w<x> constraint.
14121 (we constraint): Likewise.
14122 (wo constraint): Likewise.
14123 (wp constraint): New constraint for IEEE 128-bit floating point in
14124 VSX registers.
14125 (wq constraint): Likewise.
14126
14127 * config/rs6000/predicates.md (easy_fp_constant): Add support for
14128 IEEE 128-bit floating point in VSX registers.
14129 (easy_scalar_constant): Likewise.
14130
14131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14132 constraints (wp, wq) for IEEE 128-bit floating point in VSX
14133 registers.
14134 (rs6000_init_hard_regno_mode_ok): Likewise.
14135
14136 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14137 floating point in VSX registers.
14138 (VSX_L): Likewise.
14139 (VSX_M): Likewise.
14140 (VSX_M2): Likewise.
14141 (VSm): Likewise.
14142 (VSs): Likewise.
14143 (VSr): Likewise.
14144 (VSa): Likewise.
14145 (VSv): Likewise.
14146 (vsx_le_permute_<mode>): Add support to properly swap bytes for
14147 IEEE 128-bit floating point in VSX registers on little endian.
14148 (vsx_le_undo_permute_<mode>): Likewise.
14149 (vsx_le_perm_load_<mode>): Likewise.
14150 (vsx_le_perm_store_<mode>): Likewise.
14151 (splitters for IEEE 128-bit fp moves): Likewise.
14152
14153 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14154 wq constraints.
14155
14156 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14157 floating point in VSX registers.
14158 (VM2): Likewise.
14159
14160 * doc/md.text (Machine Constraints): Document wp and wq
14161 constraints on PowerPC.
14162
14163 2015-08-03 Jeff Law <law@redhat.com>
14164
14165 PR middle-end/66314
14166 PR gcov-profile/66899
14167 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14168 iterate over the jump threading paths when an element in the
14169 jump threading paths array is eliminated.
14170
14171 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
14172
14173 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14174
14175 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
14176
14177 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14178 is_use_properly_guarded the variable def_preds. Free its
14179 contents before returning.
14180 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14181 (is_use_properly_guarded): Replace local variable def_preds with
14182 a parameter. Adjust accordingly. Only update *def_preds if it's
14183 the empty vector.
14184
14185 2015-08-03 Richard Biener <rguenther@suse.de>
14186
14187 * genmatch.c (simplify::for_subst_vec): New member.
14188 (binary_ok): New helper for for lowering.
14189 (lower_for): Delay substituting operators into result expressions
14190 if we can merge the results eventually again.
14191 (capture_info::walk_result): Adjust for user_id appearing as
14192 result expression operator.
14193 (expr::gen_transform): Likewise.
14194 (dt_simplify::gen_1): Likewise.
14195 (dt_simplify::gen): Pass not substituted operators to tail
14196 functions or initialize local variable with it.
14197 (decision_tree::gen): Adjust function signature.
14198 * match.pd: Fix tests against global code and add default
14199 cases to switch stmts.
14200
14201 2015-08-03 Richard Biener <rguenther@suse.de>
14202
14203 * genmatch.c (dt_simplify::gen): Create captures array
14204 with an initializer.
14205
14206 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14207
14208 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14209 the host compiler is affected by placement new aliasing bug.
14210 * configure: Regenerate.
14211 * Makefile.in (ALIASING_FLAGS): New variable.
14212 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14213
14214 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14215
14216 PR target/66731
14217 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14218 (negmulsf3_vfp): Likewise.
14219 (muldf3negdf_vfp): Disable for -frounding-math.
14220 (mulsf3negsf_vfp): Likewise.
14221 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14222 fix MULT cost with -frounding-math.
14223
14224 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14225
14226 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14227 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14228 explicit. Prefer to add the flag whenever possible.
14229 (noce_process_if_block): Try noce_try_store_flag_constants before
14230 noce_try_cmove.
14231
14232 2015-08-03 Richard Biener <rguenther@suse.de>
14233
14234 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14235 New hash-map to record equivalent transforms.
14236 (dt_node::analyze): Populate the equivalent transforms hash-map.
14237 (dt_simplify::info): Add reference to hash-map entry.
14238 (dt_simplify::gen): If we have split out a function for the
14239 transform, generate a call to it.
14240 (sinfo_hashmap_traits::hash): New function.
14241 (compare_op): New helper function for ...
14242 (sinfo_hashmap_traits::equal_keys): ... this new function.
14243 (decision_tree::gen): Split out common equivalent transforms
14244 into functions.
14245
14246 2015-08-03 Richard Biener <rguenther@suse.de>
14247
14248 * gimple-fold.c (fold_gimple_assign): Remove folding of
14249 the comparison in COND_EXPRs.
14250
14251 2015-08-03 Richard Biener <rguenther@suse.de>
14252
14253 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14254 on the rhs of assignments first simplify the embedded
14255 GENERIC condition.
14256
14257 2015-08-03 Richard Biener <rguenther@suse.de>
14258
14259 PR tree-optimization/66917
14260 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14261 field.
14262 (DR_VECT_AUX): New macro.
14263 (set_dr_misalignment): Adjust.
14264 (dr_misalignment): Likewise.
14265 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14266 Compute whether the base is at least element aligned.
14267 * tree-vect-stmts.c (ensure_base_align): Adjust.
14268 (vectorizable_store): If the base is not element aligned
14269 preserve alignment of the original access if misalignment is unknown.
14270 (vectorizable_load): Likewise.
14271
14272 2015-08-02 Martin Sebor <msebor@redhat.com>
14273
14274 * c-family/c.opt (-Wframe-address): New warning option.
14275 * doc/invoke.texi (Wframe-address): Document it.
14276 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14277 Clarify possible effects of calling the functions with non-zero
14278 arguments and mention -Wframe-address.
14279 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14280
14281 2015-08-01 Michael Collison <michael.collison@linaro.org
14282 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14283
14284 * config/arm/arm.md (*arm_smin_cmp): New pattern.
14285 (*arm_umin_cmp): Likewise.
14286
14287 2015-08-01 Caroline Tice <cmtice@google.com>
14288
14289 PR 66521
14290 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14291 global variables.
14292 (vtbl_find_mangled_name): New function.
14293 (vtbl_register_mangled_name): New function.
14294 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
14295 mangled name in mangled name vectors.
14296 (find_or_create_vtbl_map_node): Ditto.
14297 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
14298 update recursion_depth on function entry; pass it to every recursive
14299 call; automatically exit if depth > 25 (give up looking at that point).
14300 (verify_bb_vtables): Initialize recursion_depth and pass it to
14301 var_is_used_for_virtual_call_p.
14302 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14303 global variable decls.
14304 (vtbl_register_mangled_name): New extern function decl.
14305
14306 2015-08-01 Tom de Vries <tom@codesourcery.com>
14307
14308 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14309 function.
14310 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14311 Declare.
14312 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14313 operation_no_trapping_overflow. Allow non-overflow operations.
14314 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14315 operations.
14316
14317 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
14318
14319 PR target/67049
14320 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14321
14322 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14323
14324 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14325 Enable for TARGET_32BIT.
14326 (*if_move_neg): Likewise.
14327
14328 2015-07-31 Nick Clifton <nickc@redhat.com>
14329
14330 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14331 Returns true for __model__.
14332 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14333
14334 2015-07-31 Alan Modra <amodra@gmail.com>
14335
14336 PR target/66870
14337 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14338 (rs6000_emit_prologue): Set it.
14339 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14340
14341 2015-07-31 Richard Biener <rguenther@suse.de>
14342
14343 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14344 -> X == (C1 ^ C2) which is already implemented in match.pd.
14345 Remove redundant dispatching to fold_relational_const.
14346 Move unordered self and NaN compares ...
14347 * match.pd: ... as patterns here. Remove some stray captures
14348 and add a comment.
14349
14350 2015-07-31 Petr Murzin <petr.murzin@intel.com>
14351
14352 * config/i386/i386.c
14353 (bdesc_special_args): Convert mask type from signed to unsigned for
14354 masked builtins.
14355 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14356 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14357 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14358 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14359 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14360 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14361 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14362 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14363 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14364 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14365 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14366 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14367 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14368 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14369 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14370 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14371 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14372 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14373 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14374 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14375 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14376 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14377 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14378 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14379 * config/i386/i386-builtin-types.def
14380 (V16QI_FTYPE_V16SI): Remove.
14381 (V8DF_FTYPE_V8SI): Ditto.
14382 (V8HI_FTYPE_V8DI): Ditto.
14383 (V8SI_FTYPE_V8DI): Ditto.
14384 (V8SF_FTYPE_V8DF): Ditto.
14385 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14386 (V16HI_FTYPE_V16SI): Ditto.
14387 (V16SF_FTYPE_V16HI): Ditto.
14388 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14389 (V16SF_FTYPE_V16SI): Ditto.
14390 (V4DI_FTYPE_V4DI): Ditto.
14391 (V16SI_FTYPE_V16SF): Ditto.
14392 (V16SF_FTYPE_FLOAT): Ditto.
14393 (V8DF_FTYPE_DOUBLE): Ditto.
14394 (V8DI_FTYPE_INT64): Ditto.
14395 (V8DI_FTYPE_V4DI): Ditto.
14396 (V16QI_FTYPE_V8DI): Ditto.
14397 (UINT_FTYPE_V4SF): Ditto.
14398 (UINT64_FTYPE_V4SF): Ditto.
14399 (UINT_FTYPE_V2DF): Ditto.
14400 (UINT64_FTYPE_V2DF): Ditto.
14401 (V16SI_FTYPE_V16SI): Ditto.
14402 (V8DI_FTYPE_V8DI): Ditto.
14403 (V16SI_FTYPE_PV4SI): Ditto.
14404 (V16SF_FTYPE_PV4SF): Ditto.
14405 (V8DI_FTYPE_PV2DI): Ditto.
14406 (V8DF_FTYPE_PV2DF): Ditto.
14407 (V4DI_FTYPE_PV2DI): Ditto.
14408 (V4DF_FTYPE_PV2DF): Ditto.
14409 (V16SI_FTYPE_PV2SI): Ditto.
14410 (V16SF_FTYPE_PV2SF): Ditto.
14411 (V8DI_FTYPE_PV4DI): Ditto.
14412 (V8DF_FTYPE_PV4DF): Ditto.
14413 (V8SF_FTYPE_FLOAT): Ditto.
14414 (V4SF_FTYPE_FLOAT): Ditto.
14415 (V4DF_FTYPE_DOUBLE): Ditto.
14416 (V8SF_FTYPE_PV4SF): Ditto.
14417 (V8SI_FTYPE_PV4SI): Ditto.
14418 (V4SI_FTYPE_PV2SI): Ditto.
14419 (V8SF_FTYPE_PV2SF): Ditto.
14420 (V8SI_FTYPE_PV2SI): Ditto.
14421 (V16SF_FTYPE_PV8SF): Ditto.
14422 (V16SI_FTYPE_PV8SI): Ditto.
14423 (V8DI_FTYPE_V8SF): Ditto.
14424 (V4DI_FTYPE_V4SF): Ditto.
14425 (V2DI_FTYPE_V4SF): Ditto.
14426 (V64QI_FTYPE_QI): Ditto.
14427 (V32HI_FTYPE_HI): Ditto.
14428 (V8UHI_FTYPE_V8UHI): Ditto.
14429 (V16UHI_FTYPE_V16UHI): Ditto.
14430 (V32UHI_FTYPE_V32UHI): Ditto.
14431 (V2UDI_FTYPE_V2UDI): Ditto.
14432 (V4UDI_FTYPE_V4UDI): Ditto.
14433 (V8UDI_FTYPE_V8UDI): Ditto.
14434 (V4USI_FTYPE_V4USI): Ditto.
14435 (V8USI_FTYPE_V8USI): Ditto.
14436 (V16USI_FTYPE_V16USI): Ditto.
14437 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14438 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14439 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14440 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14441 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14442 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14443 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14444 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14445 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14446 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14447 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14448 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14449 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14450 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14451 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14452 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14453 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14454 (V16SI_FTYPE_V16SI_SI): Ditto.
14455 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14456 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14457 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14458 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14459 (QI_FTYPE_QI): Ditto.
14460 (SI_FTYPE_SI): Ditto.
14461 (DI_FTYPE_DI): Ditto.
14462 (QI_FTYPE_QI_QI): Ditto.
14463 (QI_FTYPE_QI_INT): Ditto.
14464 (HI_FTYPE_HI_INT): Ditto.
14465 (SI_FTYPE_SI_INT): Ditto.
14466 (DI_FTYPE_DI_INT): Ditto.
14467 (HI_FTYPE_V16QI_V16QI): Ditto.
14468 (SI_FTYPE_V32QI_V32QI): Ditto.
14469 (DI_FTYPE_V64QI_V64QI): Ditto.
14470 (QI_FTYPE_V8HI_V8HI): Ditto.
14471 (HI_FTYPE_V16HI_V16HI): Ditto.
14472 (SI_FTYPE_V32HI_V32HI): Ditto.
14473 (QI_FTYPE_V4SI_V4SI): Ditto.
14474 (QI_FTYPE_V8SI_V8SI): Ditto.
14475 (QI_FTYPE_V2DI_V2DI): Ditto.
14476 (QI_FTYPE_V4DI_V4DI): Ditto.
14477 (QI_FTYPE_V8DI_V8DI): Ditto.
14478 (HI_FTYPE_V16SI_V16SI): Ditto.
14479 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14480 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14481 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14482 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14483 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14484 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14485 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14486 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14487 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14488 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14489 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14490 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14491 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14492 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14493 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14494 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14495 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14496 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14497 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14498 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14499 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14500 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14501 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14502 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14503 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14504 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14505 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14506 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14507 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14508 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14509 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14510 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14511 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14512 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14513 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14514 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14515 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14516 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14517 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14518 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14519 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14520 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14521 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14522 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14523 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14524 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14525 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14526 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14527 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14528 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14529 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14530 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14531 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14532 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14533 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14534 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14535 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14536 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14537 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14538 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14539 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14540 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14541 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14542 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14543 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14544 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14545 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14546 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14547 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14548 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14549 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14550 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14551 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14552 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14553 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14554 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14555 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14556 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14557 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14558 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14559 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14560 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14561 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14562 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14563 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14564 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14565 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14566 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14567 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14568 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14569 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14570 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14571 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14572 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14573 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14574 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14575 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14576 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14577 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14578 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14579 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14580 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14581 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14582 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14583 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14584 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14585 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14586 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14587 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14588 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14589 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14590 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14591 (HI_FTYPE_HI): Ditto.
14592 (HI_FTYPE_V16QI): Ditto.
14593 (SI_FTYPE_V32QI): Ditto.
14594 (DI_FTYPE_V64QI): Ditto.
14595 (QI_FTYPE_V8HI): Ditto.
14596 (HI_FTYPE_V16HI): Ditto.
14597 (SI_FTYPE_V32HI): Ditto.
14598 (QI_FTYPE_V4SI): Ditto.
14599 (QI_FTYPE_V8SI): Ditto.
14600 (HI_FTYPE_V16SI): Ditto.
14601 (QI_FTYPE_V2DI): Ditto.
14602 (QI_FTYPE_V4DI): Ditto.
14603 (QI_FTYPE_V8DI): Ditto.
14604 (V16QI_FTYPE_HI): Ditto.
14605 (V32QI_FTYPE_SI): Ditto.
14606 (V64QI_FTYPE_DI): Ditto.
14607 (V8HI_FTYPE_QI): Ditto.
14608 (V16HI_FTYPE_HI): Ditto.
14609 (V32HI_FTYPE_SI): Ditto.
14610 (V4SI_FTYPE_QI): Ditto.
14611 (V4SI_FTYPE_HI): Ditto.
14612 (V8SI_FTYPE_QI): Ditto.
14613 (V8SI_FTYPE_HI): Ditto.
14614 (V2DI_FTYPE_QI): Ditto.
14615 (V4DI_FTYPE_QI): Ditto.
14616 (HI_FTYPE_HI_HI): Ditto.
14617 (SI_FTYPE_SI_SI): Ditto.
14618 (DI_FTYPE_DI_DI): Ditto.
14619 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14620 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14621 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14622 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14623 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14624 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14625 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14626 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14627 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14628 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14629 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14630 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14631 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14632 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14633 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14634 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14635 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14636 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14637 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14638 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14639 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14640 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14641 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14642 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14643 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14644 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14645 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14646 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14647 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14648 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14649 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14650 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14651 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14652 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14653 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14654 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14655 (V16SI_FTYPE_HI): Ditto.
14656 (V8DI_FTYPE_QI): Ditto.
14657 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14658 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14659 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14660 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14661 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14662 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14663 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14664 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14665 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14666 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14667 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14668 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14669 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14670 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14671 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14672 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14673 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14674 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14675 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14676 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14677 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14678 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14679 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14680 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14681 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14682 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14683 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14684 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14685 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14686 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14687 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14688 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14689 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14690 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14691 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14692 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14693 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14694 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14695 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14696 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14697 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14698 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14699 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14700 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14701 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14702 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14703 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14704 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14705 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14706 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14707 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14708 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14709 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14710 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14711 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14712 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14713 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14714 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14715 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14716 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14717 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14718 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14719 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14720 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14721 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14722 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14723 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14724 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14725 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14726 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14727 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14728 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14729 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14730 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14731 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14732 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14733 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14734 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14735 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14736 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14737 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14738 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14739 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14740 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14741 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14742 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14743 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14744 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14745 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14746 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14747 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14748 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14749 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14750 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14751 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14752 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14753 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14754 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14755 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14756 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14757 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14758 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14759 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14760 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14761 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14762 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14763 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14764 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14765 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14766 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14767 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14768 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14769 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14770 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14771 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14772 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14773 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14774 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14775 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14776 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14777 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14778 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14779 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14780 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14781 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14782 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14783 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14784 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14785 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14786 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14787 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14788 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14789 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14790 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14791 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14792 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14793 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14794 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14795 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14796 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14797 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14798 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14799 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14800 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14801 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14802 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14803 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14804 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14805 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14806 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14807 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14808 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14809 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14810 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14811 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14812 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14813 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14814 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14815 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14816 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14817 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14818 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14819 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14820 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14821 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14822 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14823 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14824 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14825 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14826 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14827 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14828 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14829 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14830 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14831 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14832 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14833 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14834 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14835 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14836 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14837 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14838 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14839 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14840 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14841 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14842 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14843 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14844 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14845 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14846 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14847 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14848 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14849 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14850 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14851 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14852 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14853 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14854 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14855 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14856 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14857 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14858 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14859 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14860 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14861 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14862 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14863 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14864 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14865 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14866 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14867 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14868 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14869 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14870 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14871 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14872 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14873 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14874 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14875 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14876 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14877 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14878 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14879 (QI_FTYPE_V8DF_INT_QI): Ditto.
14880 (QI_FTYPE_V4DF_INT_QI): Ditto.
14881 (QI_FTYPE_V2DF_INT_QI): Ditto.
14882 (HI_FTYPE_V16SF_INT_HI): Ditto.
14883 (QI_FTYPE_V8SF_INT_QI): Ditto.
14884 (QI_FTYPE_V4SF_INT_QI): Ditto.
14885 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14886
14887 2015-07-31 Richard Biener <rguenther@suse.de>
14888
14889 * gimple-fold.c (fold_gimple_assign): Remove folding of
14890 GIMPLE_BINARY_RHS.
14891
14892 2015-07-31 Tom de Vries <tom@codesourcery.com>
14893
14894 PR tree-optimization/66846
14895 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14896 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14897 (expand_omp_target) [ENABLE_CHECKING]: Same.
14898 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14899 cfun if !LOOPS_NEED_FIXUP.
14900 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
14901 that omp_for already has its own loop struct.
14902 * tree-parloops.c (create_phi_for_local_result)
14903 (create_call_for_reduction): Handle simple latch bb.
14904 (create_parallel_loop): Add simple latch bb to preserve
14905 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
14906 (gen_parallel_loop): Remove call to cancel_loop_tree.
14907 (parallelize_loops): Skip loops that are inner loops of parallelized
14908 loops.
14909 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14910 verify_loop_structure.
14911
14912 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14913
14914 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14915 * config/v850/v850.md (RV_REGNUM): New constants.
14916 * config/v850/v850.c (v850_libcall_value): New functions.
14917 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14918 (TARGET_LIBCALL_VALUE): Define.
14919
14920 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14921
14922 * rtl.h (lowpart_subreg): Move in file.
14923 * loop-iv.c (lowpart_subreg): Move to...
14924 * simplify-rtx.c (lowpart_subreg): ...here.
14925 (simplify_binary_operation_1): Use lowpart_subreg instead of
14926 simplify_gen_subreg.
14927 * expr.c (expand_expr_real_2): Ditto.
14928 * emit-rtl.c (gen_lowpart_common): Ditto.
14929 * combine.c (gen_lowpart_for_combine): Ditto.
14930 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14931 expand_debug_source_expr): Ditto.
14932
14933 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
14934
14935 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14936 (expand_builtin_atomic_clear): Remove support for atomic_clear
14937 pattern.
14938
14939 2015-07-30 Richard Biener <rguenther@suse.de>
14940
14941 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14942 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14943 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
14944 redundant operand canonicalization.
14945
14946 2015-07-30 David Sherwood <david.sherwood@arm.com>
14947
14948 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14949 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14950 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14951 * config/arm/arm.c (neon_valid_immediate): Likewise.
14952 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14953 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14954 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14955 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14956 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14957 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14958 * config/i386/sse.md
14959 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14960 (*ssse3_palignr<mode>_perm): Likewise.
14961 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14962 * config/spu/spu.c (arith_immediate_p): Likewise.
14963 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14964 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14965
14966 2015-07-30 Richard Biener <rguenther@suse.de>
14967
14968 * genmatch.c (decision_tree::gen_gimple): Merge with ...
14969 (decision_tree::gen_generic): ... this into ...
14970 (decision_tree::gen): ... this.
14971 (main): Adjust callers.
14972
14973 2015-07-30 Richard Biener <rguenther@suse.de>
14974
14975 * genmatch.c (verbose): New global.
14976 (warning_at): Add overload with source_location.
14977 (capture_info::capture_info): Add bool whether generating gimple
14978 or generic. Add gimple member.
14979 (capture_info::cinfo): Add capture member.
14980 (capture_info::walk_match): Record capture. Warn on
14981 non-captured leafs.
14982 (capture_info::walk_c_expr): Add more fragments captures cannot
14983 escape through. Warn on escaped captures.
14984 (dt_simplify::gen_1): Warn on operands we force to have no
14985 side-effects.
14986 (main): Initialize verbose.
14987 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14988
14989 2015-07-30 Richard Biener <rguenther@suse.de>
14990
14991 PR middle-end/67053
14992 * match.pd: Allow both operands to independently have conversion
14993 when simplifying compares of addresses.
14994
14995 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14996
14997 PR target/66217
14998 PR target/67045
14999 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15000 around those cases that need one.
15001
15002 2015-07-29 Aditya Kumar <hiraditya@msn.com>
15003
15004 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15005
15006 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
15007
15008 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15009 New. Copied from config/i386/gnu-user.h.
15010 (ASM_COMMENT_START): Likewise.
15011 (DBX_REGISTER_NUMBER): Likewise.
15012
15013 2015-07-29 Richard Biener <rguenther@suse.de>
15014
15015 * gimple-fold.c (fold_gimple_cond): Remove.
15016 (fold_stmt_1): Do not call it.
15017
15018 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
15019
15020 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15021 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15022
15023 * config/aarch64/aarch64-modes.def: Add HFmode.
15024
15025 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15026 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15027
15028 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15029 aarch64_promoted_type): New.
15030
15031 (aarch64_float_const_representable_p): Disable HFmode.
15032 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15033 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15034 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15035
15036 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15037 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15038
15039 * config/aarch64/iterators.md (GPF_F16): New.
15040
15041 2015-07-29 Richard Biener <rguenther@suse.de>
15042
15043 * match.pd: Merge address comparison patterns and make them
15044 handle some more cases.
15045
15046 2015-07-29 Richard Biener <rguenther@suse.de>
15047
15048 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15049 (parser::parse_capture): Add bool argument on whether to reject
15050 unknown captures.
15051 (parser::parse_expr): Adjust.
15052 (parser::parse_op): Likewise.
15053 (parser::parse_pattern): Likewise.
15054
15055 2015-07-29 Richard Biener <rguenther@suse.de>
15056
15057 * gimple-fold.c (has_use_on_stmt): New function.
15058 (replace_stmt_with_simplification): Use it to allow
15059 abnormals originally referenced in the stmt.
15060 (fold_stmt_1): Canonicalize operand order.
15061
15062 2015-07-28 David Sherwood <david.sherwood@arm.com>
15063
15064 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15065 GET_MODE_INNER unconditionally.
15066 * config/spu/spu.c (arith_immediate_p): Likewise.
15067 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15068 * expmed.c (synth_mult): Remove check for VOIDmode result from
15069 GET_MODE_INNER.
15070 (expand_mult_const): Likewise.
15071 * fold-const.c (fold_binary_loc): Replace call to element_precision
15072 with call to GET_MODE_PRECISION.
15073 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15074 m->name.
15075 (emit_mode_inner): Likewise.
15076 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15077 result check.
15078 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15079 (GET_MODE_UNIT_PRECISION): Likewise.
15080 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15081 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15082 * stor-layout.c (bitwise_type_for_mode): Update assert.
15083 (element_precision): Remove.
15084
15085 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15086
15087 * target-insns.def (reload_load_address): New targetm instruction
15088 pattern.
15089 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15090
15091 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15092
15093 * target-insns.def (atomic_test_and_set): New targetm instruction
15094 pattern.
15095 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15096 HAVE_*/gen_* interface.
15097
15098 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15099
15100 * target-insns.def (can_extend, ptr_extend): New targetm instruction
15101 patterns.
15102 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15103 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15104 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15105 * rtlanal.c (nonzero_bits1): Likewise.
15106 (num_sign_bit_copies1): Likewise.
15107
15108 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15109
15110 * target-insns.def (eh_return): New targetm instruction pattern.
15111 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15112 interface.
15113 * function.c (thread_prologue_and_epilogue_insns): Remove
15114 preprocessor condition.
15115
15116 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15117
15118 * target-insns.def (indirect_jump): New targetm instruction pattern.
15119 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15120 interface.
15121
15122 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15123
15124 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15125 instead of nonimmediate_operand. Remove C condiition.
15126
15127 2015-07-28 Richard Biener <rguenther@suse.de>
15128
15129 * match.pd: Add more simplification of address comparisons.
15130
15131 2015-07-28 Richard Biener <rguenther@suse.de>
15132
15133 * match.pd: Re-order two cases in comparison with max/min
15134 value simplification to make it apply for bools.
15135
15136 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15137
15138 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15139 Handle simple SIGN_EXTEND or ZERO_EXTEND.
15140 (aarch64_rtx_costs): Properly strip extend or extract before
15141 passing down to rtx costs again.
15142
15143 2015-07-28 Nick Clifton <nickc@redhat.com>
15144
15145 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15146 Optimizes the case where -mes0 is active and a constant symbolic
15147 address is used.
15148 * config/rl78/rl78-protos.h: Prototype the new function.
15149 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15150
15151 2015-07-28 Tom de Vries <tom@codesourcery.com>
15152
15153 * tree-parloops.c (reduc_stmt_res): New function.
15154 (initialize_reductions, add_field_for_reduction)
15155 (create_phi_for_local_result, create_loads_for_reductions)
15156 (create_stores_for_reduction, build_new_reduction): Handle case that
15157 reduc_stmt is a phi.
15158 (gather_scalar_reductions): Allow double_reduc reductions.
15159
15160 2015-07-28 Richard Biener <rguenther@suse.de>
15161
15162 * fold-const.c (fold_comparison): Remove equality folding
15163 of decl addresses ...
15164 * match.pd: ... here and merge with existing pattern.
15165
15166 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15167
15168 PR tree-optimization/66828
15169 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15170 from int64_t to uint64_t.
15171
15172 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
15173
15174 * opts-common.c (read_cmdline_option): List DriverOnly enum values
15175 as valid only in the error message of the driver, not in the
15176 messages of the language compilers.
15177
15178 2015-07-27 Tom de Vries <tom@codesourcery.com>
15179
15180 * tree-parloops.c (gather_scalar_reductions): Simplify function
15181 structure.
15182
15183 2015-07-27 Marek Polacek <polacek@redhat.com>
15184
15185 * ipa-devirt.c (types_same_for_odr): Fix typo.
15186
15187 2015-07-27 Jason Merrill <jason@redhat.com>
15188
15189 PR debug/66468
15190 * dwarf2out.c (gen_inlined_subroutine_die): Check
15191 cgraph_function_possibly_inlined_p.
15192
15193 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15194
15195 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15196 Place integer variant first.
15197 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15198
15199 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15200
15201 PR/63870
15202 * config/arm/arm-builtins.c (enum arm_builtins):
15203 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15204 (ARM_BUILTIN_NEON_BASE): Rename macro to....
15205 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15206 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15207 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15208
15209 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15210
15211 PR/63870
15212 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15213 Add qualifier_lane_index.
15214 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15215 (arm_getlane_qualifiers): Use qualifier_lane_index.
15216 (arm_lanemac_qualifiers): Rename to...
15217 (arm_mac_n_qualifiers): ...this.
15218 (LANEMAC_QUALIFIERS): Rename to...
15219 (MAC_N_QUALIFIERS): ...this.
15220 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15221 (arm_setlane_qualifiers): Use qualifier_lane_index.
15222 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15223 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15224 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15225 (arm_expand_neon_builtin): Handle qualifier_lane_index.
15226
15227 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15228 * config/arm/arm.c (bounds_check): Likewise, improve error message.
15229 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15230 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15231 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15232 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15233 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15234 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15235 qualifiers to TERNOP_IMM.
15236 (vdup_lane): Change qualifiers to GETLANE.
15237 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15238 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15239 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15240 vqdmlsl_n): Change qualifiers to MAC_N.
15241
15242 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15243 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15244 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15245 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15246 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15247 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15248 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15249 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15250 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15251 Remove call to neon_lane_bounds.
15252
15253 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15254
15255 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15256 Place integer variant first.
15257
15258 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
15259
15260 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15261 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15262 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15263 for armv6kz targets.
15264 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15265 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15266 (FL_FOR_ARCH6ZK): Remove.
15267 (FL_FOR_ARCH6KZ): New.
15268 (arm_arch6zk): New declaration.
15269 * config/arm/arm-tables.opt: Regenerate.
15270 * config/arm/arm.c (arm_arch6kz): New.
15271 (arm_option_override): Set arm_arch6kz.
15272 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15273 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15274 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15275
15276 2015-07-27 Marek Polacek <polacek@redhat.com>
15277
15278 PR c++/66555
15279 PR c/54979
15280 * doc/invoke.texi: Document -Wtautological-compare.
15281
15282 2015-07-27 Richard Biener <rguenther@suse.de>
15283
15284 * genmatch.c (decision_tree::gen_gimple): Split out large
15285 subtrees into separate functions.
15286 (decision_tree::gen_generic): Likewise.
15287
15288 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
15289
15290 * config/alpha/alpha.c: Use SUBREG_P predicate.
15291 * config/alpha/predicates.md: Ditto.
15292
15293 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
15294
15295 * config.host (s390*-*-*): Include driver-native.c only when
15296 building with s390* as host *and* target.
15297
15298 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
15299
15300 PR target/66930
15301 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15302 T bit register modified_between_p check.
15303
15304 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15305
15306 * config/i386/i386.c: Use SUBREG_P predicate.
15307 * config/i386/i386.md: Ditto.
15308 * config/i386/sse.md: Ditto.
15309 * config/i386/predicates.md: Ditto.
15310
15311 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15312
15313 PR target/67004
15314 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15315 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15316
15317 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15318
15319 * Makefile.in: Remove use of TREEBROWSER.
15320 * config.in: Regenerated.
15321 * configure: Regenerated.
15322 * configure.ac: Remove definition of TREEBROWSER.
15323 * tree-browser.c: Removed.
15324 * tree-browser.def: Removed.
15325
15326 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15327
15328 * graphite-scop-detection.c: Include gimple-pretty-print.h.
15329 (stmt_simple_for_scop_p): Print when a stmt is not handled in
15330 Graphite.
15331 (scopdet_basic_block_info): Print when a loop or bb cannot be
15332 represented in Graphite.
15333
15334 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15335
15336 PR target/66648
15337 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15338 execution guard when min_size is less than size_needed.
15339
15340 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15341
15342 * doc/install.texi: Document supported versions of ISL.
15343
15344 2015-07-25 Jeff Law <law@redhat.com>
15345
15346 Revert:
15347 PR lto/66752
15348 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15349 unable to find X NE 0 in the tables, return X as the simplified
15350 condition.
15351 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15352 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15353 to VISISTED_BBS. */
15354 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15355 after removing the control flow statement and unnecessary edges.
15356
15357 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
15358
15359 Revert:
15360 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15361
15362 PR rtl-optimization/64164
15363 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15364 * tree-ssa-copyrename.c: Removed.
15365 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15366 -ftree-coalesce-vars.
15367 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15368 * common.opt (ftree-copyrename): Ignore.
15369 (ftree-coalesce-inlined-vars): Likewise.
15370 * doc/invoke.texi: Remove the ignored options above.
15371 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15372 * tree-ssa-coalesce.h: ... here.
15373 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15374 headers required by it.
15375 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15376 across variables when flag_tree_coalesce_vars. Check register
15377 use and promoted modes to allow coalescing. Moved to
15378 tree-ssa-coalesce.c.
15379 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15380 with its member functions to tree-ssa-coalesce.c.
15381 (var_map_base_init): Likewise. Renamed to
15382 compute_samebase_partition_bases.
15383 (partition_view_normal): Drop want_bases parameter.
15384 (partition_view_bitmap): Likewise.
15385 * tree-ssa-live.h: Adjust declarations.
15386 * tree-ssa-coalesce.c: Include explow.h.
15387 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15388 default defs at the entry point.
15389 (dump_part_var_map): New.
15390 (compute_optimized_partition_bases): New, called by...
15391 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15392 of compute_samebase_partition_bases. Adjust.
15393 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15394 * cfgexpand.c (leader_merge): New.
15395 (get_rtl_for_parm_ssa_default_def): New.
15396 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15397 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15398 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15399 redundant MEM attr setting.
15400 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15401 from...
15402 (expand_one_stack_var): ... this. New wrapper to check and
15403 skip already expanded SSA partitions.
15404 (record_alignment_for_reg_var): New, factored out of...
15405 (expand_one_var): ... this.
15406 (expand_one_ssa_partition): New.
15407 (adjust_one_expanded_partition_var): New.
15408 (expand_one_register_var): Check and skip already expanded SSA
15409 partitions.
15410 (expand_used_vars): Don't create DECLs for anonymous SSA
15411 names. Expand all SSA partitions, then adjust all SSA names.
15412 (pass::execute): Replace the loops that set
15413 SA.partition_to_pseudo from partition leaders and cleared
15414 DECL_RTL for multi-location variables, and that which used to
15415 rename vars and set attrs, with one that clears DECL_RTL and
15416 checks that PARMs and RESULTs default_defs match DECL_RTL.
15417 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15418 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15419 * explow.c (promote_ssa_mode): New.
15420 * explow.h (promote_ssa_mode): Declare.
15421 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15422 * function.c: Include cfgexpand.h.
15423 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15424 (use_register_for_parm_decl): Wrapper for the above to
15425 special-case the result_ptr.
15426 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15427 (split_complex_args): Take assign_parm_data_all argument.
15428 Pass it to rtl_for_parm. Set up rtl and context for split
15429 args.
15430 (assign_parms_augmented_arg_list): Adjust.
15431 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15432 multiple locations. Recognize split complex args.
15433 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15434 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15435 (assign_parm_setup_block): Prefer SSA-assigned location.
15436 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15437 if stack_parm is NULL.
15438 (assign_parm_setup_stack): Prefer SSA-assigned location.
15439 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15440 rtl before testing for pointer bounds. Special-case result_ptr.
15441 (expand_function_start): Maybe reset DECL_RTL of result.
15442 Prefer SSA-assigned location for result and static chain.
15443 Factor out DECL_RESULT and SET_DECL_RTL.
15444 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15445 anonymous SSA names. Use promote_ssa_mode.
15446 (get_temp_reg): Likewise.
15447 (remove_ssa_form): Adjust.
15448 * stor-layout.c (layout_decl): Don't set mem attributes of
15449 non-MEMs.
15450 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15451 and get its reg_usage for reg invalidation.
15452 (compute_bb_dataflow): Pass it insn.
15453 (emit_notes_in_bb): Likewise.
15454
15455 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15456
15457 * config/i386/i386.c (ix86_va_start): Remove
15458 unneeded !TARGET_64BIT check.
15459 (ix86_gimplify_va_arg): Ditto.
15460
15461 2015-07-24 Tom de Vries <tom@codesourcery.com>
15462
15463 * graphite-sese-to-poly.c (build_poly_scop): Always call
15464 rewrite_commutative_reductions_out_of_ssa.
15465
15466 2015-07-24 Tom de Vries <tom@codesourcery.com>
15467
15468 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15469 flag_associative_math to FLOAT_TYPE_P. Honour
15470 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15471
15472 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15473
15474 PR c++/64079
15475 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15476 and "%qD" in warning_at instead of "%q+D" in warning.
15477
15478 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15479
15480 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15481 (ix86_function_abi): Cleanup.
15482
15483 2015-07-24 Michael Darling <darlingm@gmail.com>
15484
15485 PR other/66259
15486 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15487 * configure: Likewise
15488 * configure.ac: Likewise
15489 * doc/install.texi: Likewise
15490 * doc/tm.texi: Likewise
15491 * doc/tm.texi.in: Likewise
15492
15493 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15494
15495 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15496 manually swapping values.
15497 * cse.c (fold_rtx): Likewise.
15498 * lra-eliminations.c (form_sum): Likewise.
15499
15500 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15501
15502 PR target/64003
15503 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15504 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15505 (*jcc_1, *jcc_2, jump, simple_return_internal)
15506 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15507 Set length_nobnd attribute instead of length attribute.
15508 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15509 (length_nobnd): Remove attribute.
15510 (length): Remove length_nobnd processing.
15511
15512 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15513
15514 * gimplify.c (omp_default_clause): New function. Reorganize flow
15515 for clarity. Broken out of ...
15516 (omp_notice_variable): ... here.
15517
15518 2015-07-24 Gary Funck <gary@intrepid.com>
15519
15520 PR middle-end/66984
15521 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15522 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15523
15524 2015-07-24 Tom de Vries <tom@codesourcery.com>
15525
15526 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15527 exit-first loop transform.
15528
15529 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15530
15531 PR 66714
15532 * tree-cfg.c (struct replace_decls_d): New struct.
15533 (replace_block_vars_by_duplicates_1): New function.
15534 (replace_block_vars_by_duplicates): Use it to replace the decls
15535 in the value exprs by duplicates.
15536
15537 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15538
15539 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15540 -shared, -symbolic, -rdynamic.
15541
15542 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15543
15544 PR target/65711
15545 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15546 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15547 %{!static.
15548
15549 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15550
15551 PR ipa/66566
15552 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15553 edge summary is available.
15554
15555 2015-07-24 Richard Biener <rguenther@suse.de>
15556
15557 * genmatch.c (struct dt_node): Add statistic fields.
15558 (dt_node::analyze): New method.
15559 (decision_tree::gen_gimple): Call analyze on the root node
15560 and print statistics to stderr.
15561 (decision_tree::gen_generic): Likewise.
15562
15563 2015-07-24 Richard Biener <rguenther@suse.de>
15564
15565 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15566 against the highest or lowest possible integer ...
15567 * match.pd: ... as patterns here.
15568
15569 2015-07-24 Richard Biener <rguenther@suse.de>
15570
15571 * genmatch.c (struct capture_info): Add same_as field.
15572 (capture_info::capture_info): Initialize same_as.
15573 (capture_info::walk_match): Compute same_as.
15574 (capture_info::walk_result): Compute stuff for the leader.
15575 (capture_info::walk_c_expr): Likewise.
15576 (dt_simplify::gen_1): Only look at leaders when deciding
15577 to force no side-effects or emit side-effects of omitted operands.
15578
15579 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15580
15581 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15582 reg note to the GPR -> FPR save instructions.
15583
15584 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15585
15586 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15587 cheaper.
15588 (s390_expand_insv): Don't generate risbg pattern for constant zero
15589 sources.
15590 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15591 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15592 splitters.
15593
15594 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15595
15596 * config/s390/s390.c (s390_reorg): Clean up handling of processors
15597 with
15598 -mtune=
15599 (s390_issue_rate): Likewise.
15600 (s390_sched_reorder): Likewise.
15601 (s390_sched_variable_issue): Likewise.
15602 (s390_loop_unroll_adjust): Likewise.
15603 (s390_option_override): Likewise.
15604
15605 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15606
15607 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15608 processor capabilities with -march=native.
15609 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15610 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
15611 (S390_TARGET_BITS_STRING): Macro to simplify specs.
15612
15613 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15614
15615 * config/s390/s390.c (s390_issue_rate): Handle
15616 PROCESSOR_2094_Z9_EC.
15617 (s390_option_override): Likewise.
15618 (s390_adjust_priority): Likewise.
15619
15620 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15621
15622 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15623 when cross compiling.
15624
15625 2015-07-24 Richard Biener <rguenther@suse.de>
15626
15627 * fold-const.c (maybe_canonicalize_comparison_1): Move
15628 A code CST canonicalization ...
15629 * match.pd: ... to a pattern here.
15630
15631 2015-07-24 Jiong Wang <jiong.wang@arm.com>
15632
15633 Revert:
15634 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15635 PR target/63521
15636 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15637 (HONOR_REG_ALLOC_ORDER): Define.
15638
15639 2015-07-24 Richard Biener <rguenther@suse.de>
15640
15641 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15642 * fold-const.c (fold_comparison): Move parameter does not
15643 alias &local simplification ...
15644 * match.pd: ... as a pattern here.
15645
15646 2015-07-24 Richard Biener <rguenther@suse.de>
15647
15648 * gimple-fold.c (replace_stmt_with_simplification): Special-case
15649 valueizing call operands.
15650 * gimple-match-head.c (maybe_push_res_to_seq): Take
15651 number of call arguments from ops array.
15652 (do_valueize): New function.
15653 (gimple_simplify): Return true if valueization changed
15654 any operand even if the result didn't simplify further.
15655
15656 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15657
15658 PR middle-end/25530
15659 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15660
15661 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15662
15663 PR middle-end/25529
15664 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15665
15666 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15667
15668 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15669 instruction.
15670
15671 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15672
15673 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15674 clean up.
15675
15676 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
15677
15678 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15679 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
15680 targets here.
15681 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15682 ms_va_list_type_node initialization.
15683
15684 2015-07-23 Jeff Law <law@redhat.com>
15685
15686 PR lto/66752
15687 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15688 unable to find X NE 0 in the tables, return X as the simplified
15689 condition.
15690 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15691 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15692 to VISISTED_BBS. */
15693 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15694 after removing the control flow statement and unnecessary edges.
15695
15696 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15697
15698 * tree-pass.h (get_current_pass_name): Removed.
15699
15700 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15701
15702 PR rtl-optimization/64164
15703 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15704 * tree-ssa-copyrename.c: Removed.
15705 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15706 -ftree-coalesce-vars.
15707 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15708 * common.opt (ftree-copyrename): Ignore.
15709 (ftree-coalesce-inlined-vars): Likewise.
15710 * doc/invoke.texi: Remove the ignored options above.
15711 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15712 * tree-ssa-coalesce.h: ... here.
15713 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15714 headers required by it.
15715 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15716 across variables when flag_tree_coalesce_vars. Check register
15717 use and promoted modes to allow coalescing. Moved to
15718 tree-ssa-coalesce.c.
15719 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15720 with its member functions to tree-ssa-coalesce.c.
15721 (var_map_base_init): Likewise. Renamed to
15722 compute_samebase_partition_bases.
15723 (partition_view_normal): Drop want_bases parameter.
15724 (partition_view_bitmap): Likewise.
15725 * tree-ssa-live.h: Adjust declarations.
15726 * tree-ssa-coalesce.c: Include explow.h.
15727 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15728 default defs at the entry point.
15729 (dump_part_var_map): New.
15730 (compute_optimized_partition_bases): New, called by...
15731 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15732 of compute_samebase_partition_bases. Adjust.
15733 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15734 * cfgexpand.c (leader_merge): New.
15735 (get_rtl_for_parm_ssa_default_def): New.
15736 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15737 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15738 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15739 redundant MEM attr setting.
15740 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15741 from...
15742 (expand_one_stack_var): ... this. New wrapper to check and
15743 skip already expanded SSA partitions.
15744 (record_alignment_for_reg_var): New, factored out of...
15745 (expand_one_var): ... this.
15746 (expand_one_ssa_partition): New.
15747 (adjust_one_expanded_partition_var): New.
15748 (expand_one_register_var): Check and skip already expanded SSA
15749 partitions.
15750 (expand_used_vars): Don't create DECLs for anonymous SSA
15751 names. Expand all SSA partitions, then adjust all SSA names.
15752 (pass::execute): Replace the loops that set
15753 SA.partition_to_pseudo from partition leaders and cleared
15754 DECL_RTL for multi-location variables, and that which used to
15755 rename vars and set attrs, with one that clears DECL_RTL and
15756 checks that PARMs and RESULTs default_defs match DECL_RTL.
15757 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15758 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15759 * explow.c (promote_ssa_mode): New.
15760 * explow.h (promote_ssa_mode): Declare.
15761 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15762 * function.c: Include cfgexpand.h.
15763 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15764 (use_register_for_parm_decl): Wrapper for the above to
15765 special-case the result_ptr.
15766 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15767 (split_complex_args): Take assign_parm_data_all argument.
15768 Pass it to rtl_for_parm. Set up rtl and context for split
15769 args.
15770 (assign_parms_augmented_arg_list): Adjust.
15771 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15772 multiple locations. Recognize split complex args.
15773 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15774 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15775 (assign_parm_setup_block): Prefer SSA-assigned location.
15776 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15777 if stack_parm is NULL.
15778 (assign_parm_setup_stack): Prefer SSA-assigned location.
15779 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15780 rtl before testing for pointer bounds. Special-case result_ptr.
15781 (expand_function_start): Maybe reset DECL_RTL of result.
15782 Prefer SSA-assigned location for result and static chain.
15783 Factor out DECL_RESULT and SET_DECL_RTL.
15784 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15785 anonymous SSA names. Use promote_ssa_mode.
15786 (get_temp_reg): Likewise.
15787 (remove_ssa_form): Adjust.
15788 * stor-layout.c (layout_decl): Don't set mem attributes of
15789 non-MEMs.
15790 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15791 and get its reg_usage for reg invalidation.
15792 (compute_bb_dataflow): Pass it insn.
15793 (emit_notes_in_bb): Likewise.
15794
15795 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15796
15797 PR target/66217
15798 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15799 prototype.
15800 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15801 (rs6000_emit_2insn_and): Handle dot forms.
15802 * config/rs6000/rs6000.md (and<mode>3): Adjust.
15803 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
15804 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15805
15806 2015-07-23 Richard Biener <rguenther@suse.de>
15807
15808 * generic-match-head.c: Include cgraph.h.
15809 * gimple-match-head.c: Likewise.
15810 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15811 SSA names.
15812 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15813 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
15814 pattern.
15815
15816 2015-07-23 Richard Biener <rguenther@suse.de>
15817
15818 * gimple-fold.c (fold_gimple_cond): Do not require folding
15819 results to pass valid_gimple_rhs_p.
15820 * tree-cfg.h (fold_cond_expr_cond): Remove.
15821 * tree-cfg.c (fold_cond_expr_cond): Likewise.
15822 (make_edges): Do not call it.
15823 * tree-inline.c (tree_function_versioning): Likewise.
15824
15825 2015-07-23 Tom de Vries <tom@codesourcery.com>
15826
15827 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15828 vect_force_simple_reduction.
15829 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15830 (vect_is_simple_reduction_1): Add and handle
15831 need_wrapping_integral_overflow parameter.
15832 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15833 need_wrapping_integral_overflow parameter.
15834 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15835 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15836 decl.
15837
15838 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
15839
15840 PR tree-optimization/66926,66951
15841 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15842 INNER_LOOP and fix up condition for renaming virtual operands.
15843
15844 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15845
15846 * combine.c (try_combine): Use std::swap instead of manually
15847 swapping.
15848
15849 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
15850
15851 * config/mips/i6400.md: New file.
15852 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15853 (mips64r6): Likewise.
15854 (i6400): Define.
15855 * config/mips/mips-tables.opt: Regenerate.
15856 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15857 (mips_issue_rate): Add support for i6400.
15858 (mips_multipass_dfa_lookahead): Likewise.
15859 * config/mips/mips.h (TUNE_I6400): Define.
15860 * config/mips/mips.md: Include i6400.md.
15861 (processor): Add i6400.
15862 * doc/invoke.texi (-march=@var{arch}): Add i6400.
15863
15864 2015-07-23 Richard Biener <rguenther@suse.de>
15865
15866 PR middle-end/66916
15867 * match.pd: Guard widen and sign-change comparison simplification
15868 with single_use.
15869
15870 2015-07-23 Richard Biener <rguenther@suse.de>
15871
15872 PR tree-optimization/66945
15873 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15874 ::before_dom_children): Force the propagators idea of
15875 non-executable edges to materialize, not what the folder
15876 chooses.
15877
15878 2015-07-23 Richard Biener <rguenther@suse.de>
15879
15880 * gimple.h (gimple_cond_make_false): Use 0 != 0.
15881 (gimple_cond_make_true): Use 1 != 0.
15882
15883 2015-07-22 DJ Delorie <dj@redhat.com>
15884
15885 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15886 slashes.
15887
15888 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15889 (ashrhi3): Likewise.
15890 (lshrhi3): Likewise.
15891 (movhi): Take advantage of zero-extend to load small constants.
15892 (movpsi): Likewise.
15893 (and<mode>3): Likewise.
15894 (zero_extendqihi2): Likewise.
15895 (zero_extendqisi2): New.
15896 * config/msp430/constraints.md (N,O): New.
15897 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15898
15899 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
15900
15901 PR target/66954
15902 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15903 to enum feature_priority and feature_list.
15904 (fold_builtin_cpu): Add F_AES to enum processor_features
15905 and isa_names_table.
15906
15907 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15908
15909 PR driver/66737
15910 * config/i386/linux-common.h (MPX_SPEC): Use linker option
15911 for 64bit target only.
15912
15913 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
15914
15915 * config/nvptx/nvptx.c: Expand some comments.
15916
15917 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
15918
15919 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15920 (cortex_a53_advsimd): ...This.
15921
15922 2015-07-22 Richard Biener <rguenther@suse.de>
15923
15924 * genmatch.c (expr::gen_transform): Clarify error message
15925 and display location.
15926
15927 2015-07-22 Richard Biener <rguenther@suse.de>
15928
15929 * genmatch.c (struct operand): Add location member.
15930 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15931 constructors.
15932 (struct simplify): Remove match_location and result_location
15933 members.
15934 (elsehwere): Adjust.
15935
15936 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
15937
15938 * config/mips/m5100.md: New file.
15939 * config/mips/mips-cpus.def (m5100, m5101): Define.
15940 * config/mips/mips-tables.opt: Regenerate.
15941 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15942 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15943 -march=m5101 to -mips32r5.
15944 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15945 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15946 !-msoft-float.
15947 * config/mips/mips.md: Include m5100.md.
15948 (processor): Add m5100.
15949 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15950
15951 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
15952
15953 * config/mips/mips-cpus.def (interaptiv): Define.
15954 * config/mips/mips-tables.opt: Regenerate.
15955 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15956 -mips32r2.
15957 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15958 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15959
15960 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15961
15962 PR target/63521
15963 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15964 (HONOR_REG_ALLOC_ORDER): Define.
15965
15966 2015-07-22 Richard Biener <rguenther@suse.de>
15967
15968 PR tree-optimization/66952
15969 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15970 blocks we end up executing unconditionally reset all SSA
15971 info such as range and alignment.
15972 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15973 * tree-ssanames.c (reset_flow_sensitive_info): New function.
15974
15975 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15976
15977 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15978 typo in attribute.
15979
15980 2015-07-22 Richard Biener <rguenther@suse.de>
15981
15982 * genmatch.c (parser::parse_result): Properly handle
15983 match with result operands and conditions.
15984
15985 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15986
15987 PR target/63870
15988 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15989 Add qualifier_struct_load_store_lane_index.
15990 (aarch64_types_loadstruct_lane_qualifiers): Use
15991 qualifier_struct_load_store_lane_index for lane index argument for
15992 last argument.
15993 (aarch64_types_storestruct_lane_qualifiers): Ditto.
15994 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15995 (aarch64_simd_expand_args): Add new argument describing mode of
15996 builtin. Check lane bounds for arguments with
15997 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15998 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15999 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16000 (aarch64_simd_expand_builtin): Handle arguments with
16001 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16002 aarch64_simd_expand_args.
16003 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16004 vst[234]_lane with BUILTIN_VALLDIF.
16005 * config/aarch64/aarch64-simd.md:
16006 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16007 endianness reversal on lane index.
16008 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16009 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16010 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16011 (vec_store_lanesci_lane<mode>): Ditto.
16012 (vec_store_lanesxi_lane<mode>): Ditto.
16013 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16014 reversal of lane index.
16015 (aarch64_ld3_lane<mode>): Ditto.
16016 (aarch64_ld4_lane<mode>): Ditto.
16017 (aarch64_st2_lane<mode>): Ditto.
16018 (aarch64_st3_lane<mode>): Ditto.
16019 (aarch64_st4_lane<mode>): Ditto.
16020 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16021 to qmode. Add new mode parameter. Update uses.
16022 (__LD3_LANE_FUNC): Ditto.
16023 (__LD4_LANE_FUNC): Ditto.
16024 (__ST2_LANE_FUNC): Ditto.
16025 (__ST3_LANE_FUNC): Ditto.
16026 (__ST4_LANE_FUNC): Ditto.
16027
16028 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
16029
16030 * doc/invoke.texi (Language Independent Options): Rename node to
16031 Diagnostic Message Formatting Options.
16032
16033 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
16034
16035 PR ipa/66424.
16036 * lra-remat.c (operand_to_remat): Prevent using insns with input
16037 subregs processed separately by IRA.
16038
16039 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
16040
16041 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16042 straight loops.
16043 (single_imm_use): Check for iterator node.
16044 (num_imm_uses): Likewise.
16045 * tree-ssa-operands.c (has_zero_uses_1): Delete.
16046 (single_imm_use_1): Check for iterator node.
16047
16048 2015-07-21 Mike Frysinger <vapier@gentoo.org>
16049 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16050
16051 * configure.ac: Add check for new options in isl-0.15.
16052 * config.in, configure: Rebuilt.
16053 * graphite-blocking.c: Include <isl/constraint.h>
16054 * graphite-interchange.c, graphite-poly.c: Likewise.
16055 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16056 * graphite.c: Likewise.
16057 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16058 <isl/union_set.h>.
16059 * graphite-dependences.c: Include <isl/constraint.h>.
16060 (max_number_of_out_dimensions): Returns isl_stat.
16061 (extend_schedule_1): Likewise
16062 (extend_schedule): Corresponding changes.
16063 * graphite-optimize-isl.c: Include <isl/constraint.h> and
16064 <isl/union_set.h>.
16065 (getSingleMap): Change return type of isl_stat.
16066 (optimize_isl): Conditionally use
16067 isl_options_set_schedule_serialize_sccs.
16068 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16069 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16070
16071 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
16072
16073 PR target/66956
16074 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16075 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16076
16077 2015-07-21 Richard Biener <rguenther@suse.de>
16078
16079 PR tree-optimization/66948
16080 * genmatch.c (capture_info::walk_match): Also recurse to
16081 captures. Properly compute expr state from captures of
16082 captures.
16083 * match.pd: Add single-use guards to
16084 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16085
16086 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
16087
16088 * config/nvptx/mkoffload.c (process): Add static destructor call.
16089
16090 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16091
16092 PR middle-end/66915
16093 * match.pd (A - B -> A + (-B)): Don't allow folding
16094 when type if a fixed-point type.
16095
16096 2015-07-20 DJ Delorie <dj@redhat.com>
16097
16098 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16099 (iorqi3_real): Likewise for set1.
16100
16101 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
16102
16103 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16104 for !TARGET_64BIT.
16105
16106 2015-07-20 Aditya Kumar <hiraditya@msn.com>
16107
16108 * graphite-isl-ast-to-gimple.c:
16109 Refactor so that each function can access 'region'. This will help
16110 maintain a parameter rename_map within a region.
16111
16112 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16113
16114 * config/rs6000/rs6000.md (*lt0_disi): New.
16115
16116 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16117
16118 PR target/66217
16119 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
16120 "available letters" comment.
16121 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16122 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16123 and_2rld_operand): Delete.
16124 (and_operand): Adjust.
16125 (rotate_mask_operator): New.
16126 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16127 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16128 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16129 extract_ME): Delete.
16130 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16131 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16132 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16133 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16134 rs6000_emit_2insn_and): New.
16135 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16136 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16137 includes_rldic_lshift_p, includes_rldicr_lshift_p,
16138 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16139 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16140 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16141 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16142 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16143 rs6000_emit_2insn_and): New.
16144 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16145 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16146 handling.
16147 <NOT>: Don't fall through to next case.
16148 <AND>: Handle the various rotate-and-mask cases directly.
16149 <IOR>: Always cost as one insn.
16150 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16151 (and<mode>3): Adjust expander for the new patterns.
16152 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16153 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16154 (*and<mode>3_imm_dot_shifted): New.
16155 (*and<mode>3_mask): Delete, rewrite as ...
16156 (and<mode>3_mask): ... New.
16157 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16158 (andsi3_internal0_nomc): Delete.
16159 (*andsi3_internal6): Delete.
16160 (*and<mode>3_2insn): New.
16161 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16162 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16163 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16164 *insvdi_internal3): Delete.
16165 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16166 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16167 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16168 *ior<mode>_mask): New.
16169 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16170 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16171 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16172 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16173 Delete.
16174 (ashr<mode>3): Delete expander.
16175 (*ashr<mode>3): Rename to ...
16176 (ashr<mode>3): ... This.
16177 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16178 (*rotldi3_internal4, *rotldi3_internal5 and split,
16179 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16180 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16181 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16182 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16183 (splitter for loading a mask): Adjust.
16184 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16185
16186 2015-07-20 Marek Polacek <polacek@redhat.com>
16187
16188 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16189 output_add_clobbers, output_added_clobbers_hard_reg_p,
16190 gen_rtx_scratch): Remove declarations.
16191
16192 2015-07-20 Marek Polacek <polacek@redhat.com>
16193
16194 PR c++/55095
16195 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16196
16197 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16198
16199 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16200 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16201
16202 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16203
16204 * combine.c (combine_simplify_rtx): Move simplification step
16205 before various transformations/substitutions.
16206
16207 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
16208
16209 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16210 (struct int_traits): Likewise.
16211
16212 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16213
16214 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16215 function to vmsdbgout_function_decl.
16216
16217 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16218
16219 PR target/66922
16220 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16221 from misaligned positions.
16222 (ix86_expand_pinsr): Reject insertions to misaligned positions.
16223
16224 2015-07-18 Sebastian Pop <s.pop@samsung.com>
16225
16226 PR middle-end/46851
16227 PR middle-end/60340
16228 * Makefile.in: Removed omega.o.
16229 * common.opt: Document flag fcheck-data-deps as deprecated.
16230 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16231 its associated params: omega-max-vars, omega-max-geqs,
16232 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16233 omega-max-keys, omega-eliminate-redundant-constraints.
16234 * doc/loop.texi: Remove all the section on Omega.
16235 * graphite-blocking.c: Include missing params.h: it used to be
16236 included through tree-data-ref.h and omega.h.
16237 * graphite-isl-ast-to-gimple.c: Same.
16238 * graphite-optimize-isl.c: Same.
16239 * graphite-sese-to-poly.c: Same.
16240 * graphite.c: Same.
16241 * omega.c: Remove.
16242 * omega.h: Remove.
16243 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16244 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16245 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16246 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16247 * passes.def: Remove pass_check_data_deps.
16248 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16249 (dump_conflict_function): Same.
16250 (dump_subscript): Same.
16251 (print_direction_vector): Same.
16252 (print_dir_vectors): Same.
16253 (print_lambda_vector): Same.
16254 (print_dist_vectors): Same.
16255 (dump_data_dependence_relation): Same.
16256 (dump_data_dependence_relations): Same.
16257 (dump_dist_dir_vectors): Same.
16258 (dump_ddrs): Same.
16259 (init_omega_eq_with_af): Removed.
16260 (omega_extract_distance_vectors): Removed.
16261 (omega_setup_subscript): Removed.
16262 (init_omega_for_ddr_1): Removed.
16263 (init_omega_for_ddr): Removed.
16264 (ddr_consistent_p): Removed.
16265 (compute_affine_dependence): Do not use omega to check data
16266 dependences.
16267 (compute_data_dependences_for_bb): Removed.
16268 (analyze_all_data_dependences): Removed.
16269 (tree_check_data_deps): Removed.
16270 * tree-data-ref.h: Do not include omega.h.
16271 (compute_data_dependences_for_bb): Removed.
16272 (tree_check_data_deps): Removed.
16273 * tree-ssa-loop.c (pass_check_data_deps): Removed.
16274 (make_pass_check_data_deps): Removed.
16275 * tree-ssa-phiopt.c: Include params.h.
16276 * tree-vect-data-refs.c: Same.
16277 * tree-vect-slp.c: Same.
16278
16279 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16280
16281 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16282 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
16283 (mem->fpreg splitters): Ditto.
16284 (general_operand->nonimmediate_operand splitter): Use explicit modes.
16285 Disable DFmode for TARGET_64BIT.
16286
16287 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
16288
16289 PR target/66906
16290 * config/i386/i386.c (ix86_expand_prologue): Replicate static
16291 chain on the stack.
16292
16293 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16294
16295 * config/nvptx/mkoffload.c (process): Constify host data.
16296 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16297 Constify host data.
16298 (generate_host_descr_file): Likewise.
16299
16300 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
16301 Sebastian Pop <s.pop@samsung.com>
16302
16303 PR middle-end/61929
16304 * graphite-dependences.c (add_pdr_constraints): Renamed
16305 pdr->extent to pdr->subscript_sizes.
16306 * graphite-interchange.c (build_linearized_memory_access): Add
16307 back all gcc_assert's that the "isl_int to isl_val conversion"
16308 patch has removed. Refactored.
16309 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16310 * graphite-poly.c (new_poly_dr): Same.
16311 (free_poly_dr): Same.
16312 * graphite-poly.h (struct poly_dr): Same.
16313 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16314 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16315 * graphite-scop-detection.h: Fix space.
16316 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16317 back all gcc_assert's removed by a previous patch.
16318 (wrap): Remove the_isl_ctx global variable that the same patch has
16319 added.
16320 (build_loop_iteration_domains): Same.
16321 (add_param_constraints): Same.
16322 (pdr_add_data_dimensions): Same. Refactored.
16323 (build_poly_dr): Renamed extent to subscript_sizes.
16324
16325 2015-07-17 Marek Polacek <polacek@redhat.com>
16326
16327 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16328 * match.pd: ... here.
16329
16330 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16331
16332 * config/nvptx/mkoffload.c (process): Constify target data.
16333 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16334 Constify target data.
16335 (generate_target_offloadend_file): Likewise.
16336
16337 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16338
16339 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16340 to allow renaming of PHI arguments on edges incoming from outer
16341 loop header, add corresponding check before start PHI iterator.
16342 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16343 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16344 with true force_vectorize. Set-up dominator for outer loop too.
16345 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16346 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16347 was marked with force_vectorize and has restricted cfg.
16348 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16349 inner loop.
16350 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16351 do peeling for outer loops.
16352
16353 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
16354 Matthias Klose <doko@ubuntu.com>
16355
16356 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16357 build-sysroot, sysroot from the `Miscenalleous configure options' to
16358 the `Directories' section and strip trailing `/' from with_sysroot.
16359 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16360 * configure: Regenerated.
16361
16362 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16363
16364 PR target/66824
16365 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16366 (TARGET_HARD_DF_REGS): Ditto.
16367 (TARGET_HARD_XF_REGS): Ditto.
16368 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16369 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16370 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16371 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16372 (*movsf_internal): Add alternatives 16 and 17. Enable
16373 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16374
16375 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16376
16377 PR rtl-optimization/66891
16378 * calls.c (expand_call): Wrap precompute_register_parameters with
16379 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16380
16381 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
16382
16383 * config/nvptx/mkoffload.c (process): Constify mapping variables.
16384 Define target data struct and initialize it.
16385
16386 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
16387
16388 PR rtl-optimization/66626
16389 * ira.h (emit-rtl.h): Include.
16390 (non_spilled_static_chain_regno_p): New.
16391 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16392 unless it is non spilled static chain pseudo.
16393 (assign_hard_rego): Spill memory profitable allocno unless it is
16394 non spilled static chain pseudo.
16395 (allocno_spill_priority_compare): Put non spilled static chain
16396 pseudo at the end of sorted array.
16397 (improve_allocation): Do nothing if we have static chain and
16398 non-local goto.
16399 (allocno__priority_compare_func): Put non spilled static chain
16400 pseudo at the beginning of sorted array.
16401 (move_spill_restore): Ignore non spilled static chain pseudo.
16402 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16403 to non spilled static chain pseudo.
16404 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16405 pseudo at the beginning of sorted array.
16406 (spill_for): Spill non spilled static chain pseudo last.
16407 * lra-constraints.c (lra_constraints): Remove static chain pseudo
16408 check for equivalence.
16409
16410 2015-07-16 Martin Liska <mliska@suse.cz>
16411
16412 PR ipa/66896.
16413 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16414 dst_ctx if it does not exist.
16415
16416 2015-07-16 Martin Liska <mliska@suse.cz>
16417
16418 * hash-set.h (remove): New function.
16419 (iterator): New iteration class for hash_set.
16420
16421 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16422
16423 * genattrtab.c (make_canonical): Add a file_location parameter.
16424 Use fatal_at rather than fatal.
16425 (get_attr_value): Likewise. Update call to make_canonical.
16426 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16427 (make_internal_attr): Update calls accordingly.
16428
16429 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16430
16431 * read-md.h (message_with_line, error_with_line): Delete.
16432 * read-md.c (message_with_line, error_with_line): Delete.
16433 * gensupport.h: Include read-md.h.
16434 (md_rtx_info): New structure.
16435 (read_md_rtx): Use it. Return a bool success value.
16436 * gensupport.c (read_md_rtx): Likewise.
16437 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16438 (main): Update after interface changes.
16439 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16440 (main): Update after interface changes.
16441 * genattrtab.c (insn_code_number): Delete.
16442 (optimize_attrs): Add a max_insn_code parameter and use it instead
16443 of insn_code_number.
16444 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16445 Use *_at rather than *_with_line functions.
16446 (gen_insn): Likewise.
16447 (gen_delay): Likewise.
16448 (gen_insn_reserv): Likewise.
16449 (gen_bypass): Take an md_rtx_info rather than an rtx.
16450 (main): Update after interface changes. Use a local max_insn_code
16451 variable instead of insn_code_number.
16452 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16453 an rtx. Use fatal_at rather than fatal.
16454 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16455 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16456 (gen_absence_set, gen_final_absence_set, gen_automaton)
16457 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16458 (main): Update after interface changes.
16459 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16460 and code number.
16461 (main): Update after interface changes.
16462 * genconditions.c (main): Use new read_md_rtx interface.
16463 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16464 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16465 (main): Update after interface changes.
16466 * genemit.c (insn_code_number, insn_index_number): Delete.
16467 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16468 Use fatal_at rather than fatal.
16469 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16470 rather than fatal.
16471 (gen_split): Likewise.
16472 (main): Update after interface changes.
16473 * genextract.c (line_no): Delete.
16474 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16475 Update call to walk_rtx.
16476 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16477 rather than message_with_line.
16478 (walk_rtx): Add an md_rtx_info argument. Update call to
16479 VEC_safe_set_locstr.
16480 (main): Update after interface changes.
16481 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16482 and lineno. Use error_at rather than separate message_with_line
16483 calls and have_error assignments.
16484 (main): Update after interface changes.
16485 * genmddump.c (main): Use new read_md_rtx interface.
16486 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16487 (main): Update after interface changes.
16488 * genoutput.c (next_code_number): Delete.
16489 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16490 (gen_peephole, gen_expand, gen_split): Likewise.
16491 (note_constraint): Likewise. Use *_at rather than *_with_line
16492 functions.
16493 (main): Update after interface changes.
16494 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16495 rtx and lineno.
16496 (main): Update after interface changes.
16497 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16498 than an rtx and lineno.
16499 (process_define_constraint): Likewise.
16500 (process_define_register_constraint): Likewise.
16501 (main): Update after interface changes.
16502 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16503 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16504 Use *_at rather than *_with_line functions.
16505 (match_pattern_2): Likewise.
16506 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16507 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16508 Use *_at rather than *_with_line functions.
16509 * gentarget-def.c (add_insn): New function.
16510 (main): Use it. Use new read_md_rtx interface.
16511
16512 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16513
16514 * gensupport.h (compute_test_codes): Take a file_location rather
16515 than a line number.
16516 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16517 rather than *_with_line functions.
16518 (process_define_predicate): Update call to compute_test_codes.
16519 * genpreds.c (validate_exp): Take a file_location rather than a
16520 line number. Use *_at functions rather than *_with_line functions.
16521 (process_define_predicate): Update call to validate_exp.
16522 (constraint_data): Replace lineno field with a file_location.
16523 (add_constraint): Take a file_location rather than a line number.
16524 Use *_at functions rather than *_with_line functions. Fix error
16525 message for address constraints. Update after changes to
16526 validate_exp, constraint_data and compute_test_codes.
16527 (process_define_constraint): Update accordingly.
16528 (process_define_register_constraint): Likewise.
16529
16530 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16531
16532 * genoutput.c (data): Use a file_location to record the source
16533 position.
16534 (nothing): Delete.
16535 (idata, idata_end): Remove initialization.
16536 (constraint_data): Replace lineno with a file_location.
16537 (output_insn_data): Update after changes to data.
16538 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16539 (scan_operands): Likewise, using *_at rather than *_with_line
16540 functions.
16541 (process_template): Likewise.
16542 (validate_insn_alternatives): Likewise.
16543 (validate_insn_operands): Likewise.
16544 (validate_optab_operands): Likewise.
16545 (init_insn_for_nothing): Initialize idata and idata_end.
16546 (note_constraint): Update after changes to constraint_data,
16547 using at rather than with_line functions.
16548 (mdep_constraint_len): Take a file_location rather than a
16549 line number. Use at rather than with_line functions.
16550
16551 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16552
16553 * read-md.h (fatal_at): Declare.
16554 * read-md.c (fatal_at): New function.
16555 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16556 to record the source position.
16557 (check_attr_test): Take a file_location instead of a line number.
16558 Use fatal_at instead of fatal.
16559 (check_attr_value): Update after above changes, using "at"
16560 rather than "with_line" reporting functions.
16561 (convert_set_attr_alternative): Likewise.
16562 (gen_attr): Likewise.
16563 (check_defs): Likewise. Don't assign to read_md_filename.
16564 (gen_insn): Update initialization after above changes.
16565 (gen_delay): Likewise.
16566 (write_insn_cases): Print the filename for a define_peephole.
16567 (gen_insn_reserv): Take a line number as argument and update
16568 the call to check_attr_test.
16569 (main): Pass a line number to gen_insn_reserv.
16570
16571 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16572
16573 * read-md.h (file_location): New structure.
16574 (directive_handler_t): Take a file_location rather than a line number.
16575 (message_at, error_at): Declare.
16576 (read_skip_construct): Delete.
16577 * read-md.c (message_with_line_1): Replace with...
16578 (message_at_1): ...this new function.
16579 (message_at, error_at): New functions.
16580 (message_with_line, error_with_line): Update to use message_at_1.
16581 (handle_enum): Take a file_location rather than a line number
16582 and use error_at for error reporting.
16583 (handle_include): Likewise.
16584 (read_skip_construct): Likewise. Make static.
16585 (handle_file): Update after above changes. Pass a file_location
16586 rather than a line number to handle_directive.
16587 * gensupport.c (queue_elem): Replace separate filename and lineno
16588 with a file_location.
16589 (queue_pattern): Replace filename and lineno arguments with a
16590 file_location. Update after change to queue_elem.
16591 (process_define_predicate): Replace lineno argument with a
16592 file_location and use error_at for error reporting. Update
16593 after above changes.
16594 (process_rtx): Likewise.
16595 (subst_pattern_match): Likewise.
16596 (get_alternatives_number): Likewise.
16597 (alter_predicate_for_insn): Likewise.
16598 (rtx_handle_directive): Likewise.
16599 (is_predicable): Update after above changes, using error_at rather
16600 than error_with_line.
16601 (has_subst_attribute): Likewise.
16602 (identify_predicable_attribute): Likewise.
16603 (alter_attrs_for_subst_insn): Likewise.
16604 (process_one_cond_exec): Likewise.
16605 (process_substs_on_one_elem): Likewise.
16606 (process_define_subst): Likewise.
16607 (check_define_attr_duplicates): Likewise.
16608 (read_md_rtx): Update after change to queue_elem.
16609
16610 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16611
16612 * genoutput.c (next_index_number): Delete.
16613 (data): Remove index_number.
16614 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16615 (main): Remove manipulation of next_index_number.
16616
16617 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16618
16619 * genattrtab.c (check_attr_value): Remove handling of null attrs.
16620 (make_canonical): Likewise.
16621
16622 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
16623
16624 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16625 instead of adjust_address_nv.
16626 (restore_stack_nonlocal): Likewise.
16627 (nonlocal_goto): Likewise.
16628
16629 2015-07-16 Tom de Vries <tom@codesourcery.com>
16630
16631 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16632 not have a corresponding loop header phi.
16633
16634 2015-07-16 Tom de Vries <tom@codesourcery.com>
16635
16636 * tree-parloops.c (create_loads_for_reductions): Handle case that
16637 reduction is unused.
16638
16639 2015-07-16 Richard Biener <rguenther@suse.de>
16640
16641 PR tree-optimization/66894
16642 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16643 about deriving NE_EXPR from truncated values.
16644
16645 2015-07-16 Martin Liska <mliska@suse.cz>
16646
16647 * alloc-pool.h
16648 (object_allocator): Add new class.
16649 (pool_allocator::initialize): Use the underlying class.
16650 (pool_allocator::allocate): Likewise.
16651 (pool_allocator::remove): Likewise.
16652 (operator new): A new generic allocator.
16653 * asan.c (struct asan_mem_ref): Remove unused members.
16654 (asan_mem_ref_new): Replace new operator with
16655 object_allocator::allocate.
16656 (free_mem_ref_resources): Change deallocation.
16657 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16658 with object_allocator.
16659 * config/sh/sh.c (add_constant): Replace new operator with
16660 object_allocator::allocate.
16661 (sh_reorg): Change call to a release method.
16662 * cselib.c (struct elt_list): Remove unused members.
16663 (new_elt_list): Replace new operator with
16664 object_allocator::allocate.
16665 (new_elt_loc_list): Likewise.
16666 (new_cselib_val): Likewise.
16667 (unchain_one_elt_list): Change delete operator with remove method.
16668 (unchain_one_elt_loc_list): Likewise.
16669 (unchain_one_value): Likewise.
16670 (cselib_finish): Release newly added static allocators.
16671 * cselib.h (struct cselib_val): Remove unused members.
16672 (struct elt_loc_list): Likewise.
16673 * df-problems.c (df_chain_alloc): Replace pool_allocator with
16674 object_allocator.
16675 * df-scan.c (struct df_scan_problem_data): Likewise.
16676 (df_scan_alloc): Likewise.
16677 * df.h (struct dataflow): Likewise.
16678 * dse.c (struct read_info_type): Likewise.
16679 (struct insn_info_type): Likewise.
16680 (struct dse_bb_info_type): Likewise.
16681 (struct group_info): Likewise.
16682 (struct deferred_change): Likewise.
16683 (get_group_info): Likewise.
16684 (delete_dead_store_insn): Likewise.
16685 (free_read_records): Likewise.
16686 (replace_read): Likewise.
16687 (check_mem_read_rtx): Likewise.
16688 (scan_insn): Likewise.
16689 (dse_step1): Likewise.
16690 (dse_step7): Likewise.
16691 * et-forest.c (struct et_occ): Remove unused members.
16692 (et_new_occ): Use allocate instead of new operator.
16693 (et_new_tree): Likewise.
16694 (et_free_tree): Call release method explicitly.
16695 (et_free_tree_force): Likewise.
16696 (et_free_pools): Likewise.
16697 (et_split): Use remove instead of delete operator.
16698 * et-forest.h (struct et_node): Remove unused members.
16699 * ipa-cp.c: Change pool_allocator to object_allocator.
16700 * ipa-inline-analysis.c: Likewise.
16701 * ipa-profile.c: Likewise.
16702 * ipa-prop.c: Likewise.
16703 * ipa-prop.h: Likewise.
16704 * ira-build.c (initiate_cost_vectors): Cast return value.
16705 (ira_allocate_cost_vector): Likewise.
16706 * ira-color.c (struct update_cost_record): Remove unused members.
16707 * lra-int.h (struct lra_live_range): Likewise.
16708 (struct lra_copy): Likewise.
16709 (struct lra_insn_reg): Likewise.
16710 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16711 * lra.c (new_insn_reg): Replace new operator with allocate method.
16712 (free_insn_regs): Same for operator delete.
16713 (finish_insn_regs): Release new static allocator.
16714 (finish_insn_recog_data): Likewise.
16715 (lra_free_copies): Replace delete operator with remove method.
16716 (lra_create_copy): Replace operator new with allocate method.
16717 (invalidate_insn_data_regno_info): Same for remove method.
16718 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16719 (free_debug_insn_changes): Replace delete operator with remove method.
16720 (replace_oldest_value_reg): Replace operator new with allocate method.
16721 (pass_cprop_hardreg::execute): Release new static variable.
16722 * sched-deps.c (sched_deps_init): Change pool_allocator to
16723 object_allocator.
16724 * sel-sched-ir.c: Likewise.
16725 * sel-sched-ir.h: Likewise.
16726 * stmt.c (expand_case): Likewise.
16727 (expand_sjlj_dispatch_table): Likewise.
16728 * tree-sra.c (struct access): Remove unused members.
16729 (struct assign_link): Likewise.
16730 (sra_deinitialize): Release newly added static pools.
16731 (create_access_1):Replace operator new with allocate method.
16732 (build_accesses_from_assign): Likewise.
16733 (create_artificial_child_access): Likewise.
16734 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16735 pool_allocator to object_allocator.
16736 * tree-ssa-pre.c: Likewise.
16737 * tree-ssa-reassoc.c: Likewise.
16738 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16739 * tree-ssa-strlen.c: Likewise.
16740 * tree-ssa-structalias.c: Likewise.
16741 * var-tracking.c (onepart_pool_allocate): New function.
16742 (unshare_variable): Use the newly added function.
16743 (variable_merge_over_cur): Likewise.
16744 (variable_from_dropped): Likewise.
16745 (variable_was_changed): Likewise.
16746 (set_slot_part): Likewise.
16747 (emit_notes_for_differences_1): Likewise.
16748 (vt_finalize): Release newly added static pools.
16749
16750 2015-07-16 Martin Jambor <mjambor@suse.cz>
16751
16752 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
16753 all uses. Fix two typos in its general comment.
16754 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
16755
16756 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
16757
16758 * config/i386/linux-common.h (LINK_MPX): New.
16759 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16760 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16761 indicating '-z bndplt' support by linker.
16762 * configure: Regenerate.
16763 * config.in: Regenerate.
16764
16765 2015-07-16 Richard Biener <rguenther@suse.de>
16766
16767 * fold-const.c (fold_widened_comparison): Remove.
16768 (fold_sign_changed_comparison): Likewise.
16769 (fold_comparison): Move widened and sign-changed comparison
16770 simplification ...
16771 * match.pd: ... to patterns here.
16772 * generic-match-head.c: Include target.h.
16773 * gimple-match-head.c: Likewise.
16774
16775 2015-07-16 Richard Biener <rguenther@suse.de>
16776
16777 * tree-ssa-dom.c (dom_valueize): New function.
16778 (record_temporary_equivalences): Also record equivalences
16779 for dominating stmts that have uses of equivalences we are
16780 about to record.
16781
16782 2015-07-16 Bin Cheng <bin.cheng@arm.com>
16783
16784 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16785 add_autoinc_candidates.
16786 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16787 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16788 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16789 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16790 Call new function.
16791 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16792 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16793 Remove parameter struct iv*. Call add_autoinc_candidates here.
16794 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16795 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16796 Call new function.
16797 (find_iv_candidates): Call new functions.
16798
16799 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
16800
16801 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16802 uninitialized-variable warning.
16803
16804 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
16805
16806 PR target/65249
16807 * config/sh/sh.md (movdi): Split simple reg move to two movsi
16808 when the destination is R0.
16809
16810 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
16811
16812 PR target/66866
16813 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16814 * config/i386/i386.c (ix86_expand_pextr): New function.
16815 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
16816 for non-lowpart subregs.
16817 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16818 (insv<mode>): Use SWI248 mode iterator.
16819 (insv<mode>_1): Ditto.
16820
16821 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16822 Sebastian Pop <s.pop@samsung.com>
16823
16824 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16825 iterator to use_stmt.
16826
16827 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16828 Sebastian Pop <s.pop@samsung.com>
16829
16830 * graphite-scop-detection.c (build_scops_1): Discard scops for
16831 which entry==exit.
16832
16833 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16834 Sebastian Pop <s.pop@samsung.com>
16835
16836 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16837 case of a return statement in scop.
16838
16839 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16840 Sebastian Pop <s.pop@samsung.com>
16841
16842 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16843 INTEGER_TYPE parameters.
16844 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16845 VECTOR_CST in scan_tree_for_params.
16846 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16847
16848 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16849
16850 * gimple-pretty-print.h: Don't include pretty-print.h.
16851 * tree-streamer.h: Don't include lto-streamer.h.
16852 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16853 * gimple-streamer-in.c: Remove redundant includes.
16854 * gimple-streamer-out.c: Likewise.
16855 * ipa-devirt.c: Likewise.
16856 * ipa-icf.c: Likewise.
16857 * ipa-inline-analysis.c: Likewise.
16858 * ipa-polymorphic-call.c: Likewise.
16859 * ipa-profile.c: Likewise.
16860 * ipa-prop.c: Likewise.
16861 * ipa-pure-const.c: Likewise.
16862 * lto-cgraph.c: Likewise.
16863 * lto-streamer-in.c: Likewise.
16864 * lto-streamer-out.c: Likewise.
16865 * lto-streamer.c: Likewise.
16866 * tree-streamer-in.c: Likewise.
16867 * tree-streamer-out.c: Likewise.
16868 * tree-streamer.c: Likewise.
16869
16870 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16871
16872 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16873 include input.h.
16874 * opts.c: Remove multiline #include comment.
16875
16876 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
16877
16878 * config/nvptx/mkoffload.c (process): Add C++ protection to
16879 emitted code.
16880
16881 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16882
16883 PR target/66854
16884 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16885 null before IEEE 128-bit floating point support patch.
16886
16887 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16888
16889 * simplify-rtx.c (simplify_ternary_operation): Add simplification
16890 for (!c) != {0,...,0} ? a : b for vector modes.
16891
16892 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
16893 Martin Jambor <mjambor@suse.cz>
16894
16895 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16896 struct func_body_info* instead of struct ipa_node_params*, expecting
16897 fbi->info to be filled in. Replace throughout. Adjust call to
16898 ipa_load_from_parm_agg.
16899 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16900 instead of struct ipa_node_params*. Adjust calls to other functions
16901 so that they pass either fbi or fbi->info.
16902 (set_switch_stmt_execution_predicate): Likewise.
16903 (will_be_nonconstant_predicate): Likewise.
16904 (compute_bb_predicates): Likewise.
16905 (estimate_function_body_sizes): Move asserts earlier. Fill in
16906 struct func_body_info, replace parms_info with fbi.info. Adjust
16907 calls to functions that now accept struct func_body_info.
16908 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16909 (struct func_body_info): Likewise.
16910 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16911 remove static. Adjust callers.
16912 (ipa_load_from_parm_agg): Remove.
16913 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16914 (func_body_info): Likewise.
16915 (ipa_load_from_parm_agg): Adjust prototype.
16916
16917 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16918
16919 * gensupport.c (rtx_handle_directive): Adjust.
16920 * read-rtl.c (apply_iterators): Take vector to add rtxs to
16921 instead of expr list rtx.
16922 (add_define_attr_for_define_subst): Likewise.
16923 (add_define_subst_attr): Likewise.
16924 (read_subst_mapping): Likewise.
16925 (read_rtx): Likewise.
16926 * rtl.h (read_rtx): Adjust.
16927
16928 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16929
16930 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16931
16932 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16933
16934 PR target/58066
16935 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16936 (*tls_local_dynamic_base_64_<mode>): Ditto.
16937 (*tls_local_dynamic_base_64_largepic): Ditto.
16938 (tls_global_dynamic_64_<mode>): Update expander pattern.
16939 (tls_local_dynamic_base_64_<mode>): Ditto.
16940
16941 2015-07-15 Richard Biener <rguenther@suse.de>
16942
16943 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16944 and bool_var == 1 -> bool_var simplifications ...
16945 * match.pd: ... to patterns here. Factor out negate_expr_p
16946 cases from the A - B -> A + (-B) patterns as negate_expr_p
16947 predicate and add a -(A + B) -> (-B) - A pattern.
16948
16949 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16950
16951 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16952
16953 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
16954 Robert Suchanek <robert.suchanek@imgtec.com>
16955
16956 * config/mips/mips.c (mips_int_mask): New enum.
16957 (mips_shadow_set): Likewise.
16958 (int_mask): New variable.
16959 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16960 (machine_function): Add int_mask and use_shadow_register_set.
16961 (mips_attribute_table): Add attribute handlers for interrupt and
16962 use_shadow_register_set.
16963 (mips_interrupt_mask): New static function.
16964 (mips_handle_interrupt_attr): Likewise.
16965 (mips_handle_use_shadow_register_set_attr): Likewise.
16966 (mips_use_shadow_register_set): Change return type to enum
16967 mips_shadow_set. Add argument handling for use_shadow_register_set
16968 attribute.
16969 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16970 compare with mips_shadow_set enum.
16971 (mips_compute_frame_info): Add interrupt mask and
16972 use_shadow_register_set to per-function information structure.
16973 Add a stack slot for EPC unconditionally.
16974 (mips_expand_prologue): Compare use_shadow_register_set value
16975 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
16976 masked interrupt register but in EIC mode use K0 and save Cause in K0.
16977 EPC saved and restored unconditionally. Use PMODE_INSN macro when
16978 copying the stack pointer from the shadow register set.
16979 * config/mips/mips.h (SR_IM0): New define.
16980 * config/mips/mips.md (mips_rdpgpr): Rename to...
16981 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
16982 * doc/extend.texi (Declaring Attributes of Functions): Document
16983 optional arguments for interrupt and use_shadow_register_set
16984 attributes.
16985
16986 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16987
16988 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16989 interrupt attribute.
16990 (mips_expand_prologue): Disable the floating point unit in an ISR.
16991 * config/mips/mips.h (SR_COP1): New define.
16992
16993 2015-07-15 Richard Biener <rguenther@suse.de>
16994
16995 * genmatch.c (parser::peek, parser::peek_ident): Add argument
16996 to tell how many tokens to peek ahead (default 1).
16997 (parser::eat_token, parser::eat_ident): Return token consumed.
16998 (parser::parse_result): Parse new switch statement.
16999 * match.pd: Use case statements where appropriate.
17000
17001 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17002
17003 PR rtl-optimization/58066
17004 * calls.c (expand_call): Precompute register parameters before stack
17005 alignment is performed.
17006
17007 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17008
17009 PR rtl-optimization/66838
17010 * postreload.c (reload_cse_move2add): Also process
17011 CALL_INSN_FUNCTION_USAGE when resetting information of
17012 call-clobbered registers.
17013
17014 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17015 Cesar Philippidis <cesar@codesourcery.com>
17016 Chung-Lin Tang <cltang@codesourcery.com>
17017
17018 * config/nios2/constraints.md (U, v): New constraints.
17019 * config/nios2/predicates.md (rdprs_dcache_operand): New.
17020 (ldstex_memory_operand): New.
17021 * config/nios2/sync.md: New file.
17022 * config/nios2/nios2.md (unspecv): Add new builtin function
17023 UNSPECV codes.
17024 (rdprs, flushd, flushda, wrpie, eni): New patterns.
17025 (top-level): Include sync.md.
17026 * config/nios2/nios2.c (N2_FTYPES): Add function types for
17027 new builtins.
17028 (N2_BUILTINS): Add arch field setting, add new builtins.
17029 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17030 for arch field.
17031 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17032 Also handle ldex/stex/ldsex/stsex builtins.
17033 (nios2_expand_rdprs_builtin): New function.
17034 (nios2_expand_cache_builtin): New function.
17035 (nios2_expand_wrpie_builtin): New function.
17036 (nios2_expand_eni_builtin): New function.
17037 (nios2_expand_builtin): Add arch field handling and new builtin
17038 cases.
17039 * doc/extend.texi (Altera Nios II Built-in Functions): Document
17040 new builtins.
17041 * doc/md.texi (Machine Constraints): Document U and v constraints.
17042
17043 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17044 Cesar Philippidis <cesar@codesourcery.com>
17045 Chung-Lin Tang <cltang@codesourcery.com>
17046
17047 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17048 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17049 callee_save_reg_size and uses_anonymous_args fields.
17050 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17051 (nios2_create_cfa_notes): New function.
17052 (nios2_adjust_stack): New function for adjusting stack.
17053 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17054 Use nios2_adjust_stack.
17055 (nios2_expand_epilogue): Likewise.
17056 (nios2_expand_return): New function.
17057 (nios2_can_use_return_insn): Update for CDX pop.n usage.
17058 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17059 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17060 * config/nios2/nios2.md (return): Use nios2_expand_return.
17061
17062 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17063 Cesar Philippidis <cesar@codesourcery.com>
17064 Chung-Lin Tang <cltang@codesourcery.com>
17065
17066 * config/nios2/predicates.md (pop_operation): New.
17067 (ldwm_operation, stwm_operation): New.
17068 (nios2_hard_register_operand): New.
17069 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17070 (ldstwm_operation_p): Declare.
17071 (gen_ldstwm_peep): Declare.
17072 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17073 (base_reg_adjustment_p): New.
17074 (pop_operation_p): New.
17075 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17076 (nios2_ldstwm_regset_p): New.
17077 (ldstwm_operation_p): New.
17078 (gen_ldst): New.
17079 (nios2_ldst_parallel): New.
17080 (struct ldswm_operand): Declare.
17081 (compare_ldstwm_operands): New.
17082 (can_use_cdx_ldstw): New.
17083 (gen_ldstwm_peep): New.
17084 * config/nios2/nios2-ldstwm.sml: New.
17085 * config/nios2/nios2.md: Include ldstwm.md.
17086 * config/nios2/ldstwm.md: Generated.
17087
17088 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17089 Cesar Philippidis <cesar@codesourcery.com>
17090 Chung-Lin Tang <cltang@codesourcery.com>
17091
17092 * config/nios2/nios2.h (LABEL_ALIGN): Define.
17093 (REG_ALLOC_ORDER): Define.
17094 (ADJUST_REG_ALLOC_ORDER): Define.
17095 (HONOR_REG_ALLOC_ORDER): Define.
17096 (CDX_REG_P): Define.
17097 (ANDCLEAR_INT): Define.
17098 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17099 (nios2_label_align): Declare.
17100 (nios2_cdx_narrow_form_p): Declare.
17101 (nios2_adjust_reg_alloc_order): Declare.
17102 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17103 operation.
17104 (nios2_large_unspec_reloc_p): New function, split from...
17105 (nios2_legitimate_pic_operand_p): ...here.
17106 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17107 (nios2_print_operand_punct_valid_p): New.
17108 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
17109 (split_mem_address): New.
17110 (split_alu_insn): New.
17111 (cdxreg): New.
17112 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17113 (enum nios2_add_insn_kind): New.
17114 (nios2_add_insn_names, nios2_add_insn_narrow): New.
17115 (nios2_add_insn_classify): New.
17116 (nios2_add_insn_asm): New.
17117 (nios2_cdx_narrow_form_p): New.
17118 (label_align, min_labelno, max_labelno): New.
17119 (nios2_reorg): New.
17120 (nios2_label_align): New.
17121 (nios2_adjust_reg_alloc_order): New.
17122 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17123 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17124 * config/nios2/constraints.md (P): New constraint.
17125 * config/nios2/predicates.md (const_and_operand): New.
17126 (and_operand): New.
17127 (stack_memory_operand): New.
17128 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17129 (length): Update to use nios2_cdx_narrow_form_p().
17130 (type): Add new insn type values.
17131 (control, alu, st, ld, shift): Update insn reservations with
17132 new insn type values.
17133 (*high, *lo_sum): Define new insn patterns for constant generation.
17134 (movqi_internal, movhi_internal, movsi_internal): Reduce
17135 alternatives, update asm template to handle CDX variants, update
17136 type attributes.
17137 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17138 template, update type attributes.
17139 (extendhisi2, extendqi<mode>2): Likewise.
17140 (addsi3): Change to use function for asm string.
17141 (subsi3): Add CDX notation to asm template, update type attributes.
17142 (negsi3, one_cmplsi3): Likewise.
17143 (andsi3): New pattern, specialized from logical patterns.
17144 (<code>si3): Remove and case, combine alternatives, update asm
17145 template.
17146 (<shift_op>si3): Add CDX notation, update type attributes.
17147 (rotrsi3): Update type attribute.
17148 (*merge, extzv, insv): New insn patterns.
17149 (return): Change to define_expand.
17150 (simple_return): Add CDX notation, update type attributes.
17151 (indirect_jump): Add CDX notation.
17152 (jump): Update asm cases, update length attribute expression.
17153 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17154 (nios2_cbranch): Update asm cases and length attribute expression
17155 to handle CDX variants.
17156 (nios2_cmp<code>): Update asm template.
17157 (nop): Add CDX notation, update type attributes.
17158 (trap): Add CDX notation.
17159 (ctrapsi4): Update asm cases and length attribute expression to
17160 handle CDX variant.
17161 * doc/md.texi (Machine Constraints): Document P constraint.
17162
17163 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17164 Cesar Philippidis <cesar@codesourcery.com>
17165 Chung-Lin Tang <cltang@codesourcery.com>
17166
17167 * config/nios2/nios2.h (SMALL_INT12): New macro.
17168 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17169 (nios2_valid_addr_expr_p): Use it.
17170 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17171 with implicit "io" instructions on R2.
17172 * config/nios2/constraints.md (w): New constraint.
17173 * config/nios2/predicates.md (ldstio_memory_operand): New.
17174 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17175 operand predicate and constraint.
17176 (ld<bh>io_signed, st<bhw>io>): Likewise.
17177 * doc/md.texi (Machine Constraints): Document w constraint.
17178
17179 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17180 Cesar Philippidis <cesar@codesourcery.com>
17181 Chung-Lin Tang <cltang@codesourcery.com>
17182
17183 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17184 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17185 Nios II architecture level.
17186 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17187 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17188 (OPTION_DEFAULT_SPECS): Define.
17189 (ASM_SPEC): Add -march= spec strings.
17190 * config/nios2/nios2.c (nios2_option_override): Check for
17191 conflicts involving new options.
17192 * config.gcc (nios2*-*-*): Support --with-arch=.
17193 * doc/invoke.texi (Option Summary, Nios II Options): Document
17194 -march=, -mbmx, and -mcdx.
17195
17196 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
17197
17198 PR rtl-optimization/66626
17199 * lra-constraints.c (lra_constraints): Prevent equivalence
17200 substitution for static chain pseudo in functions with nonlocal
17201 goto.
17202
17203 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17204
17205 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17206 (nios2_emit_stack_limit_check): Add size parameter. Handle
17207 -fstack-limit-symbol as well as -fstack-limit-register.
17208 (nios2_expand_prologue): Emit only a single stack limit check,
17209 even if multiple stack adjustments are required.
17210 (nios2_option_override): Diagnose unsupported combination of -fpic
17211 and -stack-limit-symbol.
17212
17213 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
17214
17215 * Makefile.in (top_srcdir): New.
17216 * configure.ac: Use AM_ZLIB.
17217 * configure: Regeneated.
17218
17219 2015-07-14 Matthias Klose <doko@ubuntu.com>
17220
17221 PR target/66840
17222 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17223
17224 2015-07-14 Richard Biener <rguenther@suse.de>
17225
17226 PR tree-optimization/66863
17227 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17228 what we record for conversion use stmt lhs inequalities.
17229
17230 2015-07-14 Richard Biener <rguenther@suse.de>
17231
17232 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17233 (decision_tree::gen_gimple): Likewise.
17234
17235 2015-07-14 Tom de Vries <tom@codesourcery.com>
17236
17237 * gcc.c (greater_than_spec_func): Declare forward.
17238 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17239 -ftree-parallelize-loops={0,1}.
17240 (static_spec_functions): Add greater_than_spec_func function with name
17241 "gt".
17242 (greater_than_spec_func): New function.
17243
17244 2015-07-14 Richard Biener <rguenther@suse.de>
17245
17246 * tree-ssa-dom.c (record_temporary_equivalences): Merge
17247 wideing type conversion case from record_equivalences_from_incoming_edge
17248 and use record_equality to record equivalences.
17249 (record_equivalences_from_incoming_edge): Call
17250 record_temporary_equivalences.
17251
17252 2015-07-14 Richard Biener <rguenther@suse.de>
17253
17254 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17255 (struct if_expr): New.
17256 (struct with_expr): Likewise.
17257 (is_a_helper): Add helpers for if_expr and with_expr.
17258 (struct simplify): Add simplify_kind enum and member. Remove
17259 ifexpr_vec member.
17260 (simplify::simplify): Adjust.
17261 (lower_commutative): Adjust.
17262 (lower_opt_convert): Likewise.
17263 (lower_cond): Likewise.
17264 (replace_id): Handle with_expr and if_expr.
17265 (lower_for): Adjust.
17266 (dt_simplify::gen_1): New recursive worker, split out from ...
17267 (dt_simplify::gen): ... here. Deal with if and with expansion
17268 recursively.
17269 (capture_info::capture_info): Take context argument
17270 (capture_info::walk_result): Only analyze specific result.
17271 (parser::parse_result): New function.
17272 (parser::parse_simplify): Adjust to parse ifs with then end
17273 else case.
17274 (parser::parse_if): Simplify.
17275 (parser::parse_pattern): Pass down simplify kind.
17276 * match.pd: Convert if structure to new syntax.
17277
17278 2015-07-13 Marek Polacek <polacek@redhat.com>
17279
17280 * rtl.c (rtx_equal_p_cb): Fix typo.
17281
17282 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
17283
17284 * omega.h: Don't include config.h, don't include params.h again if
17285 omega.h has already been included.
17286 * graphite-poly.h: Include sese.h.
17287 * graphite.c: Don't include sese.h, remove needless includes and
17288 minimize includes outside #ifdef HAVE_isl block.
17289 * graphite-blocking.c: Don't include sese.h, remove needless includes,
17290 and wrap entire file in #ifdef HAVE_isl
17291 * graphite-dependences.c: Likewise.
17292 * graphite-interchange.c: Likewise.
17293 * graphite-isl-ast-to-gimple.c: Likewise.
17294 * graphite-optimize-isl.c: Likewise.
17295 * graphite-poly.c: Likewise.
17296 * graphite-scop-detection.c: Likewise.
17297 * graphite-sese-to-poly.c: Likewise.
17298
17299 2015-07-13 Tom de Vries <tom@codesourcery.com>
17300
17301 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17302
17303 2015-07-13 Renlin Li <renlin.li@arm.com>
17304
17305 PR rtl/66556
17306 * simplify-rtx.c (simplify_const_relational_operation): Add
17307 side_effects_p checks.
17308
17309 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
17310
17311 * bitmap.h: Fix double word typos.
17312 * builtins.c: Same.
17313 * calls.c: Same.
17314 * cfgloopmanip.c: Same.
17315 * cgraph.c: Same.
17316 * cgraph.h: Same.
17317 * cgraphclones.c: Same.
17318 * combine.c: Same.
17319 * config/aarch64/aarch64-protos.h: Same.
17320 * config/aarch64/aarch64.c: Same.
17321 * config/aarch64/aarch64.md: Same.
17322 * config/arm/arm.md: Same.
17323 * config/arm/arm1020e.md: Same.
17324 * config/arm/arm1026ejs.md: Same.
17325 * config/arm/arm926ejs.md: Same.
17326 * config/arm/fa526.md: Same.
17327 * config/arm/fa606te.md: Same.
17328 * config/arm/fa626te.md: Same.
17329 * config/arm/fa726te.md: Same.
17330 * config/arm/fmp626.md: Same.
17331 * config/darwin.c: Same.
17332 * config/epiphany/epiphany.c: Same.
17333 * config/frv/frv.c: Same.
17334 * config/ft32/ft32.c: Same.
17335 * config/gnu-user.h: Same.
17336 * config/h8300/constraints.md: Same.
17337 * config/i386/i386.c: Same.
17338 * config/i386/i386.md: Same.
17339 * config/iq2000/iq2000.md: Same.
17340 * config/mips/mips.c: Same.
17341 * config/mmix/mmix.md: Same.
17342 * config/moxie/moxie.c: Same.
17343 * config/nds32/nds32.md: Same.
17344 * config/pa/pa.h: Same.
17345 * config/rs6000/aix.h: Same.
17346 * config/rs6000/rs6000.h: Same.
17347 * config/sh/sh.c: Same.
17348 * config/tilegx/tilegx.md: Same.
17349 * config/tilepro/gen-mul-tables.cc: Same.
17350 * cse.c: Same.
17351 * dbxout.c: Same.
17352 * doc/invoke.texi: Same.
17353 * dse.c: Same.
17354 * dwarf2out.c: Same.
17355 * final.c: Same.
17356 * gcc.c: Same.
17357 * genmatch.c: Same.
17358 * gimplify.c: Same.
17359 * hash-table.h: Same.
17360 * internal-fn.c: Same.
17361 * ipa-cp.c: Same.
17362 * ipa-devirt.c: Same.
17363 * ipa-icf.c: Same.
17364 * ipa-icf.h: Same.
17365 * ipa-profile.c: Same.
17366 * ipa-prop.c: Same.
17367 * ipa-prop.h: Same.
17368 * ira.c: Same.
17369 * omp-low.c: Same.
17370 * reg-stack.c: Same.
17371 * regcprop.c: Same.
17372 * reorg.c: Same.
17373 * rtl.h: Same.
17374 * sbitmap.h: Same.
17375 * tree-eh.c: Same.
17376 * tree-inline.c: Same.
17377 * tree-sra.c: Same.
17378 * tree-ssa-dom.c: Same.
17379 * tree-ssa-loop-ivopts.c: Same.
17380 * tree-ssa-structalias.c: Same.
17381 * tree-ssa-tail-merge.c: Same.
17382 * tree-ssa-ter.c: Same.
17383 * tree-ssa-threadupdate.c: Same.
17384 * tree-ssa-uninit.c: Same.
17385 * tree-ssanames.c: Same.
17386 * tree-vect-loop-manip.c: Same.
17387 * tree-vrp.c: Same.
17388 * tree.c: Same.
17389 * valtrack.c: Same.
17390 * vec.h: Same.
17391
17392 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17393
17394 PR middle-end/66726
17395 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17396 tree_ssa_phiopt_worker): Call it.
17397
17398 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17399
17400 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17401 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17402 REG_EQUAL note.
17403
17404 2015-07-11 Marek Polacek <polacek@redhat.com>
17405
17406 PR middle-end/66353
17407 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17408 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17409 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17410 rather than bb_has_abnormal_call_pred.
17411 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17412 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17413 rather than bb_has_abnormal_call_pred.
17414
17415 2015-07-10 Anatoly Sokolov <aesok@post.ru>
17416
17417 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17418 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17419 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17420 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17421 v850_legitimate_address_p): New functions.
17422 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17423
17424 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
17425
17426 PR target/66819
17427 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17428 indirect sibcall with register arguments if register available
17429 for argument passing.
17430 (init_cumulative_args): Set cfun->machine->arg_reg_available
17431 to (cum->nregs > 0) or to true if function has a variable
17432 argument list.
17433 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17434 to false if cum->nregs <= 0.
17435 * config/i386/i386.h (machine_function): Add arg_reg_available.
17436
17437 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17438
17439 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17440 and gen_higpart instead of gen_rtx_SUBREG.
17441 * config/i386/i386.md
17442 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17443 (read-modify peephole2): Use gen_lowpart instead of
17444 gen_rtx_SUBREG for operand 5.
17445
17446 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17447
17448 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17449 generated files.
17450 * config/tilepro/mul-tables.c: Regenerate.
17451 * config/tilegx/mul-tables.c: Regenerate.
17452
17453 2015-07-10 Richard Biener <rguenther@suse.de>
17454
17455 * fold-const.c (distribute_bit_expr): Remove.
17456 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17457 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17458 to A & (B | C) and simplifying A << C1 << C2 to ...
17459 * match.pd: ... patterns here.
17460
17461 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17462
17463 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17464 Mark mem as READONLY and NOTRAP for PIC symbol.
17465
17466 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17467
17468 * gimple-predict.h: New file.
17469 (gimple_predict_predictor, gimple_predict_set_predictor,
17470 gimple_predict_outcome, gimple_predict_set_outcome,
17471 gimple_build_predict): Relocate here.
17472 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17473 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17474 gimple-predict.h.
17475 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17476 * basic-block.h: Don't include cfghooks.h.
17477 * backend.h: Don't include predict.h.
17478 * cfghooks.h: Include predict.h.
17479 * gimple-pretty-print.c: Include gimple-predict.h.
17480 * gimplify.c: Likwise.
17481 * predict.c: Adjust includes.
17482 * tree-inline.c: Likewise.
17483 * asan.c: Likewise.
17484 * auto-inc-dec.c: Likewise.
17485 * auto-profile.c: Likewise.
17486 * bb-reorder.c: Likewise.
17487 * builtins.c: Likewise.
17488 * caller-save.c: Likewise.
17489 * calls.c: Likewise.
17490 * cfganal.c: Likewise.
17491 * cfgbuild.c: Likewise.
17492 * cfg.c: Likewise.
17493 * cfgcleanup.c: Likewise.
17494 * cfgexpand.c: Likewise.
17495 * cfghooks.c: Likewise.
17496 * cfgloopanal.c: Likewise.
17497 * cfgloop.c: Likewise.
17498 * cfgloopmanip.c: Likewise.
17499 * cfgrtl.c: Likewise.
17500 * cgraph.c: Likewise.
17501 * cgraphunit.c: Likewise.
17502 * combine.c: Likewise.
17503 * cprop.c: Likewise.
17504 * cse.c: Likewise.
17505 * dce.c: Likewise.
17506 * dojump.c: Likewise.
17507 * dse.c: Likewise.
17508 * except.c: Likewise.
17509 * expmed.c: Likewise.
17510 * expr.c: Likewise.
17511 * final.c: Likewise.
17512 * fold-const.c: Likewise.
17513 * function.c: Likewise.
17514 * fwprop.c: Likewise.
17515 * gcc-plugin.h: Likewise.
17516 * gcse.c: Likewise.
17517 * genattrtab.c: Likewise.
17518 * genemit.c: Likewise.
17519 * gengtype.c: Likewise.
17520 * genopinit.c: Likewise.
17521 * genoutput.c: Likewise.
17522 * genpreds.c: Likewise.
17523 * genrecog.c: Likewise.
17524 * gimple-fold.c: Likewise.
17525 * gimple-iterator.c: Likewise.
17526 * gimple-ssa-isolate-paths.c: Likewise.
17527 * gimple-ssa-strength-reduction.c: Likewise.
17528 * graph.c: Likewise.
17529 * graphite-blocking.c: Likewise.
17530 * graphite.c: Likewise.
17531 * graphite-dependences.c: Likewise.
17532 * graphite-interchange.c: Likewise.
17533 * graphite-isl-ast-to-gimple.c: Likewise.
17534 * graphite-optimize-isl.c: Likewise.
17535 * graphite-poly.c: Likewise.
17536 * graphite-scop-detection.c: Likewise.
17537 * graphite-sese-to-poly.c: Likewise.
17538 * haifa-sched.c: Likewise.
17539 * ifcvt.c: Likewise.
17540 * internal-fn.c: Likewise.
17541 * ipa-cp.c: Likewise.
17542 * ipa-profile.c: Likewise.
17543 * ipa-split.c: Likewise.
17544 * ipa-utils.c: Likewise.
17545 * ira-build.c: Likewise.
17546 * ira-color.c: Likewise.
17547 * ira-conflicts.c: Likewise.
17548 * ira-costs.c: Likewise.
17549 * ira-emit.c: Likewise.
17550 * ira-lives.c: Likewise.
17551 * jump.c: Likewise.
17552 * loop-doloop.c: Likewise.
17553 * loop-init.c: Likewise.
17554 * loop-invariant.c: Likewise.
17555 * loop-unroll.c: Likewise.
17556 * lower-subreg.c: Likewise.
17557 * lra-assigns.c: Likewise.
17558 * lra.c: Likewise.
17559 * lra-coalesce.c: Likewise.
17560 * lra-constraints.c: Likewise.
17561 * lra-lives.c: Likewise.
17562 * lto-cgraph.c: Likewise.
17563 * lto-streamer-in.c: Likewise.
17564 * mode-switching.c: Likewise.
17565 * modulo-sched.c: Likewise.
17566 * omp-low.c: Likewise.
17567 * optabs.c: Likewise.
17568 * passes.c: Likewise.
17569 * postreload.c: Likewise.
17570 * postreload-gcse.c: Likewise.
17571 * profile.c: Likewise.
17572 * recog.c: Likewise.
17573 * regstat.c: Likewise.
17574 * reload1.c: Likewise.
17575 * reorg.c: Likewise.
17576 * rtlanal.c: Likewise.
17577 * sched-ebb.c: Likewise.
17578 * sel-sched-ir.c: Likewise.
17579 * sese.c: Likewise.
17580 * shrink-wrap.c: Likewise.
17581 * simplify-rtx.c: Likewise.
17582 * stmt.c: Likewise.
17583 * store-motion.c: Likewise.
17584 * tracer.c: Likewise.
17585 * trans-mem.c: Likewise.
17586 * tree-call-cdce.c: Likewise.
17587 * tree-cfg.c: Likewise.
17588 * tree-cfgcleanup.c: Likewise.
17589 * tree-chkp.c: Likewise.
17590 * tree-complex.c: Likewise.
17591 * tree-eh.c: Likewise.
17592 * tree-if-conv.c: Likewise.
17593 * tree-loop-distribution.c: Likewise.
17594 * tree-outof-ssa.c: Likewise.
17595 * tree-parloops.c: Likewise.
17596 * tree-predcom.c: Likewise.
17597 * tree-pretty-print.c: Likewise.
17598 * tree-profile.c: Likewise.
17599 * tree-sra.c: Likewise.
17600 * tree-ssa.c: Likewise.
17601 * tree-ssa-coalesce.c: Likewise.
17602 * tree-ssa-dce.c: Likewise.
17603 * tree-ssa-dom.c: Likewise.
17604 * tree-ssa-forwprop.c: Likewise.
17605 * tree-ssa-ifcombine.c: Likewise.
17606 * tree-ssa-loop-ch.c: Likewise.
17607 * tree-ssa-loop-im.c: Likewise.
17608 * tree-ssa-loop-ivcanon.c: Likewise.
17609 * tree-ssa-loop-ivopts.c: Likewise.
17610 * tree-ssa-loop-manip.c: Likewise.
17611 * tree-ssa-loop-prefetch.c: Likewise.
17612 * tree-ssa-loop-unswitch.c: Likewise.
17613 * tree-ssa-math-opts.c: Likewise.
17614 * tree-ssa-phiopt.c: Likewise.
17615 * tree-ssa-pre.c: Likewise.
17616 * tree-ssa-reassoc.c: Likewise.
17617 * tree-ssa-sink.c: Likewise.
17618 * tree-ssa-tail-merge.c: Likewise.
17619 * tree-ssa-threadedge.c: Likewise.
17620 * tree-ssa-threadupdate.c: Likewise.
17621 * tree-switch-conversion.c: Likewise.
17622 * tree-tailcall.c: Likewise.
17623 * tree-vect-data-refs.c: Likewise.
17624 * tree-vect-loop.c: Likewise.
17625 * tree-vect-loop-manip.c: Likewise.
17626 * tree-vectorizer.c: Likewise.
17627 * tree-vrp.c: Likewise.
17628 * ubsan.c: Likewise.
17629 * value-prof.c: Likewise.
17630 * varasm.c: Likewise.
17631 * var-tracking.c: Likewise.
17632 * config/aarch64/aarch64-builtins.c: Likewise.
17633 * config/aarch64/aarch64.c: Likewise.
17634 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17635 * config/alpha/alpha.c: Likewise.
17636 * config/arc/arc.c: Likewise.
17637 * config/arm/arm.c: Likewise.
17638 * config/avr/avr.c: Likewise.
17639 * config/bfin/bfin.c: Likewise.
17640 * config/c6x/c6x.c: Likewise.
17641 * config/cr16/cr16.c: Likewise.
17642 * config/cris/cris.c: Likewise.
17643 * config/darwin.c: Likewise.
17644 * config/darwin-c.c: Likewise.
17645 * config/epiphany/epiphany.c: Likewise.
17646 * config/epiphany/mode-switch-use.c: Likewise.
17647 * config/epiphany/resolve-sw-modes.c: Likewise.
17648 * config/fr30/fr30.c: Likewise.
17649 * config/frv/frv.c: Likewise.
17650 * config/ft32/ft32.c: Likewise.
17651 * config/h8300/h8300.c: Likewise.
17652 * config/i386/i386.c: Likewise.
17653 * config/i386/winnt.c: Likewise.
17654 * config/ia64/ia64.c: Likewise.
17655 * config/iq2000/iq2000.c: Likewise.
17656 * config/lm32/lm32.c: Likewise.
17657 * config/m32c/m32c.c: Likewise.
17658 * config/m32r/m32r.c: Likewise.
17659 * config/m68k/m68k.c: Likewise.
17660 * config/mcore/mcore.c: Likewise.
17661 * config/mep/mep.c: Likewise.
17662 * config/microblaze/microblaze.c: Likewise.
17663 * config/mips/mips.c: Likewise.
17664 * config/mmix/mmix.c: Likewise.
17665 * config/mn10300/mn10300.c: Likewise.
17666 * config/moxie/moxie.c: Likewise.
17667 * config/msp430/msp430.c: Likewise.
17668 * config/nds32/nds32.c: Likewise.
17669 * config/nds32/nds32-cost.c: Likewise.
17670 * config/nds32/nds32-fp-as-gp.c: Likewise.
17671 * config/nds32/nds32-intrinsic.c: Likewise.
17672 * config/nds32/nds32-isr.c: Likewise.
17673 * config/nds32/nds32-md-auxiliary.c: Likewise.
17674 * config/nds32/nds32-memory-manipulation.c: Likewise.
17675 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17676 * config/nds32/nds32-predicates.c: Likewise.
17677 * config/nios2/nios2.c: Likewise.
17678 * config/nvptx/nvptx.c: Likewise.
17679 * config/pa/pa.c: Likewise.
17680 * config/pdp11/pdp11.c: Likewise.
17681 * config/rl78/rl78.c: Likewise.
17682 * config/rs6000/rs6000.c: Likewise.
17683 * config/rx/rx.c: Likewise.
17684 * config/s390/s390.c: Likewise.
17685 * config/sh/sh.c: Likewise.
17686 * config/sh/sh-mem.cc: Likewise.
17687 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17688 * config/sh/sh_treg_combine.cc: Likewise.
17689 * config/sparc/sparc.c: Likewise.
17690 * config/spu/spu.c: Likewise.
17691 * config/stormy16/stormy16.c: Likewise.
17692 * config/tilegx/tilegx.c: Likewise.
17693 * config/tilepro/tilepro.c: Likewise.
17694 * config/v850/v850.c: Likewise.
17695 * config/vax/vax.c: Likewise.
17696 * config/visium/visium.c: Likewise.
17697 * config/xtensa/xtensa.c: Likewise.
17698
17699 2015-07-10 Richard Biener <rguenther@suse.de>
17700
17701 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17702 (decision_tree::gen_gimple): Likewise.
17703 (decision_tree::gen_generic): Likewise.
17704
17705 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17706
17707 PR target/66813
17708 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17709 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17710
17711 2015-07-10 Jakub Jelinek <jakub@redhat.com>
17712
17713 PR middle-end/66820
17714 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17715 or ORT_TASK contexts.
17716 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17717 is non-zero.
17718
17719 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17720
17721 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17722 above function.
17723
17724 2015-07-10 Tom de Vries <tom@codesourcery.com>
17725
17726 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17727 insert nit + 1 bound.
17728
17729 2015-07-10 Richard Biener <rguenther@suse.de>
17730
17731 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17732 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17733 (if_convertible_loop_p_1): For this always compute bb predicates.
17734 (if_convertible_loop_p): And free them.
17735
17736 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17737
17738 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17739 in dump message.
17740
17741 2015-07-10 Richard Biener <rguenther@suse.de>
17742
17743 PR tree-optimization/66823
17744 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17745 inverted predicate.
17746
17747 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
17748
17749 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17750 to handle mips[32|64]r3 and mips[32|64]r5.
17751
17752 2015-07-09 Jakub Jelinek <jakub@redhat.com>
17753
17754 PR middle-end/66633
17755 * tree-nested.c (get_static_chain): Or in a flag into
17756 info->static_chain_added.
17757 (get_frame_field, get_nonlocal_debug_decl): Likewise.
17758 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17759 2015-07-01 changes.
17760 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17761 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17762 add it to clauses.
17763
17764 PR tree-optimization/66718
17765 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17766 field.
17767 (vect_simd_lane_linear): New function.
17768 (vectorizable_simd_clone_call): Support using linear arguments for
17769 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17770
17771 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17772
17773 PR target/66821
17774 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17775
17776 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17777
17778 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17779 Use machine mode, not enum machine_mode in the prototype.
17780
17781 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17782 classify 128-bit floating point support.
17783 (FLOAT128_IBM_P): Likewise.
17784 (FLOAT128_VECTOR_P): Likewise.
17785 (FLOAT128_2REG_P): Likewise.
17786 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17787 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17788 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17789 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17790
17791 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17792 tests against TFmode/TDmode, since those modes do not use VSX
17793 addresses.
17794 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17795 support.
17796 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17797 tests against TFmode, etc.
17798 (invalid_e500_subreg): Add tests against IFmode/KFmode.
17799 (reg_offset_addressing_ok_p): Likewise.
17800 (rs6000_legitimate_offset_address_p): Likewise.
17801 (rs6000_legitimize_address): Likewise.
17802 (rs6000_legitimize_reload_address): Likewise.
17803 (rs6000_legitimate_address_p): Clean up tests against TFmode and
17804 TDmode to use the new helper macros, which will include IFmode and
17805 KFmode.
17806 (rs6000_emit_move): Likewise.
17807 (rs6000_darwin64_record_arg_recurse): Likewise.
17808 (print_operand): Likewise.
17809 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17810 that uses a single vector register as a vector and not as a
17811 floating point register in terms of the calling sequence.
17812 (rs6000_discover_homogeneous_aggregate): Likewise.
17813 (rs6000_return_in_memory): Likewise.
17814 (init_cumulative_args): Likewise.
17815 (rs6000_function_arg_boundary): Likewise.
17816 (rs6000_function_arg_advance_1): Likewise.
17817 (rs6000_function_arg): Likewise.
17818 (rs6000_pass_by_reference): Likewise.
17819 (rs6000_gimplify_va_arg): Likewise.
17820 (rs6000_secondary_reload_memory): Use machine_mode not enum
17821 machine mode.
17822 (rs6000_split_multireg_move): Use new helper macros.
17823 (spe_func_has_64bit_regs_p): Likewise.
17824 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17825 (output_toc): Use new helper macros.
17826 (rs6000_register_move_cost): Likewise.
17827 (rs6000_function_value): Add IEEE 128-bit floating point calling
17828 sequence support.
17829 (rs6000_libcall_value): Likewise.
17830 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17831 floating point support.
17832 (rs6000_vector_mode_supported_p): Likewise.
17833
17834 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
17835
17836 PR rtl-optimization/66782
17837 * lra-int.h (struct lra_insn_recog_data): Add comment about
17838 clobbered hard regs for arg_hard_regs.
17839 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17840 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17841 Add condition for processing used hard regs.
17842 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17843 Process clobbered hard regs.
17844
17845 2015-07-09 Michael Matz <matz@suse.de>
17846
17847 * genmatch.c (fprintf_indent): New function.
17848 (operand::gen_transform): Add indent parameter.
17849 (expr::gen_transform, c_expr::gen_transform,
17850 capture::gen_transform): Ditto and use fprintf_indent.
17851 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17852 (dt_operand::gen, dt_operand::gen_predicate,
17853 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17854 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17855 (decision_tree::gen_gimple): Adjust calls and indent generated
17856 code.
17857 (decision_tree::gen_generic): Ditto.
17858 (write_predicate): Ditto.
17859
17860 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17861
17862 PR target/66814
17863 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17864 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17865 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17866 {GENERAL,SSE,MMX}_REG_P where appropriate.
17867
17868 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17869
17870 * lto-streamer.h: Don't include target.h and alloc-pool.h.
17871 * builtins.c: Adjust includes.
17872 * gimple.c: Likewise.
17873 * ipa-icf.c: Likewise.
17874 * lto-opts.c: Likewise.
17875 * ipa-reference.c: Likewise.
17876 * lto-section-out.c: Likewise.
17877 * lto-streamer-in.c: Likewise.
17878 * lto-streamer-out.c: Likewise.
17879 * opts-global.c: Likewise.
17880 * symtab.c: Likewise.
17881 * tree-chkp.c: Likewise.
17882 * tree-ssa-live.c: Likewise.
17883 * tree-streamer-in.c: Likewise.
17884 * tree-streamer-out.c: Likewise.
17885 * config/darwin.c: Likewise.
17886 * config/i386/winnt.c: Likewise.
17887
17888 2015-07-09 Richard Biener <rguenther@suse.de>
17889
17890 * genmatch.c (struct expr): Add force_single_use flag.
17891 (expr::expr): Add copy constructor.
17892 (capture_info::walk_match): Gather force_single_use captures.
17893 (expr::gen_transform): Use possibly NULLified sequence.
17894 (dt_simplify::gen): Apply single-use restrictions by NULLifying
17895 seq if any constrained expr is not single-use.
17896 (parser::parse_expr): Refactor to allow multiple flags. Handle
17897 's' flag to force an expression have a single-use if the pattern
17898 simplifies to more than one statement.
17899 * match.pd: Convert most single_use conditionals to :s flags.
17900
17901 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17902
17903 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17904 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17905 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17906
17907 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17908
17909 * flags.h: Don't include flag-types.h or options.h.
17910 * opts-common.c: Adjust includes.
17911 * opts-global.c: Likewise.
17912 * common/config/epiphany/epiphany-common.c: Likewise.
17913
17914 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17915
17916 PR target/66818
17917 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17918 for IA MCU.
17919
17920 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17921
17922 PR target/66817
17923 * config/i386/i386.c (ix86_return_in_memory): Return true
17924 if int_size_in_bytes returns negative for IA MCU.
17925
17926 2015-07-09 Marek Polacek <polacek@redhat.com>
17927
17928 PR tree-optimization/66718
17929 * Makefile.in (OBJS): Add gimple-laddress.o.
17930 * passes.def: Schedule pass_laddress.
17931 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17932 * tree-pass.h (make_pass_laddress): Declare.
17933 * gimple-laddress.c: New file.
17934
17935 2015-07-09 Richard Biener <rguenther@suse.de>
17936
17937 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17938
17939 2015-07-09 Richard Biener <rguenther@suse.de>
17940
17941 PR tree-optimization/66807
17942 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17943
17944 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
17945
17946 * function.c (stack_protect_epilogue): Use if rather than switch for
17947 check targetm.have_stack_protect_test.
17948
17949 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17950
17951 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17952 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17953 * config/arc/arc.h: Likewise.
17954 * config/arm/arm.h: Likewise.
17955 * config/bfin/bfin.h: Likewise.
17956 * config/epiphany/epiphany.h: Likewise.
17957 * config/frv/frv.h: Likewise.
17958 * config/ia64/ia64.h: Likewise.
17959 * config/iq2000/iq2000.h: Likewise.
17960 * config/lm32/lm32.h: Likewise.
17961 * config/m32r/m32r.h: Likewise.
17962 * config/mcore/mcore.h: Likewise.
17963 * config/mep/mep.h: Likewise.
17964 * config/microblaze/microblaze.h: Likewise.
17965 * config/mips/mips.h: Likewise.
17966 * config/mmix/mmix.h: Likewise.
17967 * config/mn10300/mn10300.h: Likewise.
17968 * config/nds32/nds32.h: Likewise.
17969 * config/nios2/nios2.h: Likewise.
17970 * config/pa/pa.h: Likewise.
17971 * config/rl78/rl78.h: Likewise.
17972 * config/sh/sh.h: Likewise.
17973 * config/sparc/sparc.h: Likewise.
17974 * config/stormy16/stormy16.h: Likewise.
17975 * config/tilegx/tilegx.h: Likewise.
17976 * config/tilepro/tilepro.h: Likewise.
17977 * config/v850/v850.h: Likewise.
17978 * config/xtensa/xtensa.h: Likewise.
17979 * doc/tm.texi: Regenerate.
17980 * doc/tm.texi.in: Adjust.
17981 * combine.c (simplify_set): Likewise.
17982 (simplify_comparison): Likewise.
17983 * expr.c (store_constructor): Likewise.
17984 * internal-fn.c (expand_arith_overflow): Likewise.
17985 * reload.c (push_reload): Likewise.
17986 (find_reloads): Likewise.
17987 (find_reloads_subreg_address): Likewise.
17988 * reload1.c (eliminate_regs_1): Likewise.
17989 * rtlanal.c (nonzero_bits1): Likewise.
17990 (num_sign_bit_copies1): Likewise.
17991 * simplify-rtx.c (simplify_truncation): Likewise.
17992
17993 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17994
17995 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17996 of AUTO_INC_DEC with the preprocessor.
17997 * combine.c (combine_instructions): Likewise.
17998 (can_combine_p): Likewise.
17999 (try_combine): Likewise.
18000 * emit-rtl.c (try_split): Likewise.
18001 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18002 * lower-subreg.c (resolve_simple_move): Likewise.
18003 * lra.c (update_inc_notes): Likewise.
18004 * recog.c (asm_operand_ok): Likewise.
18005 (constrain_operands): Likewise.
18006 * regrename.c (scan_rtx_address): Likewise.
18007 * reload.c (update_auto_inc_notes): Likewise.
18008 (reg_inc_found_and_valid_p): Likewise.
18009 * reload1.c (reload): Likewise.
18010 (emit_input_reload_insns): Likewise.
18011 (delete_output_reload): Likewise.
18012 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18013 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18014
18015 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18016
18017 * rtl.h: Always define AUTO_INC_DEC.
18018 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18019 * combine.c (combine_instructions): Likewise.
18020 (can_combine_p): Likewise.
18021 (try_combine): Likewise.
18022 * emit-rtl.c (try_split): Likewise.
18023 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18024 * lower-subreg.c (resolve_simple_move): Likewise.
18025 * lra.c (update_inc_notes): Likewise.
18026 * recog.c (asm_operand_ok): Likewise.
18027 (constrain_operands): Likewise.
18028 * regrename.c (scan_rtx_address): Likewise.
18029 * reload.c (update_auto_inc_notes): Likewise.
18030 (find_equiv_reg): Likewise.
18031 * reload1.c (reload): Likewise.
18032 (reload_as_needed): Likewise.
18033 (choose_reload_regs): Likewise.
18034 (emit_input_reload_insns): Likewise.
18035 (delete_output_reload): Likewise.
18036 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18037 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18038
18039 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18040
18041 * combine.c (can_combine_def_p): Don't check the value of
18042 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18043 (combinable_i3pat): Likewise.
18044 (mark_used_regs_combine): Likewise.
18045 * regrename.c (rename_chains): Likewise.
18046 * reload.c (find_reloads_address): Likewise.
18047 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18048
18049 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18050
18051 * combine.c (update_rsp_from_reg_equal): Don't check if
18052 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18053 (reg_nonzero_bits_for_combine): Likewise.
18054 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18055 1.
18056 * config/frv/frv.h: Likewise.
18057 * config/lm32/lm32.h: Likewise.
18058 * config/mep/mep.h: Likewise.
18059 * config/mips/mips.h: Likewise.
18060 * config/rs6000/rs6000.h: Likewise.
18061 * config/sh/sh.h: Likewise.
18062 * config/tilegx/tilegx.h (enum reg_class): Likewise.
18063 * config/tilepro/tilepro.h: Likewise.
18064 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18065 * doc/tm.texi: Regenerate.
18066 * doc/tm.texi.in: Adjust.
18067 * rtlanal.c (nonzero_bits1): Likewise.
18068
18069 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18070
18071 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18072 with the preprocessor.
18073 (combine_instructions): Likewise.
18074 (try_combine): Likewise.
18075 (subst): Likewise.
18076 (distribute_notes): Likewise.
18077
18078 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18079
18080 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18081 defined.
18082 (simplify_set): Likewise.
18083 * cse.c (cse_insn): Likewise.
18084 * fold-const.c (fold_single_bit_test): Likewise.
18085 (fold_unary_loc): Likewise.
18086 * postreload.c (reload_cse_simplify_set): Likewise.
18087 (reload_cse_simplify_operands): Likewise.
18088
18089 2015-07-08 Jiong Wang <jiong.wang@arm.com>
18090
18091 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18092 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18093
18094 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18095
18096 PR target/66746
18097 * config/i386/x86intrin.h: Include <adxintrin.h> even if
18098 __iamcu__ is defined.
18099
18100 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18101
18102 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18103
18104 2015-07-08 Iain Sandoe <iain@codesourcery.com>
18105
18106 PR target/66523
18107 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18108 names from preservation.
18109
18110 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18111
18112 PR target/66806
18113 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18114 change for IAMCU.
18115 (function_arg_advance_32): Don't pass vectors in registers for
18116 IAMCU.
18117 (function_arg_32): Likewise.
18118 (ix86_return_in_memory): Don't return vectors in registers for
18119 IAMCU.
18120
18121 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
18122
18123 PR middle-end/66334
18124 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18125 hard regno live at the start of BB with incoming abnormal edges.
18126 * lra-lives.c (process_bb_lives): Ditto.
18127
18128 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
18129
18130 PR libgomp/65099
18131 * config/nvptx/mkoffload.c (main): Create an offload image only in
18132 64-bit configurations.
18133
18134 2015-07-08 Martin Liska <mliska@suse.cz>
18135
18136 PR bootstrap/66744
18137 * tree-sra.c (create_access_1): Call ctor without brackets.
18138 (create_artificial_child_access): Likewise.
18139
18140 2015-07-08 Richard Biener <rguenther@suse.de>
18141
18142 PR tree-optimization/66793
18143 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18144 Properly split the block after stmts ending it.
18145
18146 2015-07-08 Richard Biener <rguenther@suse.de>
18147
18148 PR tree-optimization/66794
18149 * passes.c (execute_function_todo): Assert that post-dominators
18150 are not computed.
18151 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18152 Free post-dominators.
18153
18154 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18155
18156 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18157 with early exit.
18158
18159 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18160
18161 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18162 more than or equal 8 and less than 32 when optimizing for size.
18163
18164 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18165
18166 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18167 COSTS_N_INSNS (1) and increment it appropriately throughout the
18168 function.
18169
18170 2015-07-08 Richard Biener <rguenther@suse.de>
18171
18172 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18173
18174 2015-07-08 Alan Modra <amodra@gmail.com>
18175
18176 * target.def (rtx_costs): Remove "code" param, add "mode".
18177 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18178 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
18179 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18180 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
18181 call. Track mode when given in rtx.
18182 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
18183 (default_address_cost): Pass Pmode to rtx_cost.
18184 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18185 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18186 with NULL set.
18187 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
18188 (notreg_cost): Add mode param. Use it.
18189 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
18190 mode param and pass to set_src_cost. Update all calls.
18191 (hash_scan_set): Formatting.
18192 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18193 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18194 * hooks.h: Ditto.
18195 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18196 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18197 emit_store_flag): Update set_src_cost and rtx_cost calls.
18198 * auto-inc-dec.c (attempt_change): Likewise.
18199 * calls.c (precompute_register_parameters): Likewise.
18200 * combine.c (expand_compound_operation, make_extraction,
18201 force_to_mode, distribute_and_simplify_rtx): Likewise.
18202 * dojump.c (prefer_and_bit_test): Likewise.
18203 * dse.c (find_shift_sequence): Likewise.
18204 * expr.c (compress_float_constant): Likewise.
18205 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18206 * ifcvt.c (noce_try_sign_mask): Likewise.
18207 * loop-doloop.c (doloop_optimize): Likewise.
18208 * loop-invariant.c (create_new_invariant): Likewise.
18209 * lower-subreg.c (shift_cost, compute_costs): Likewise.
18210 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18211 lshift_cheap_p): Likewise.
18212 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18213 try_replace_in_use, reload_cse_move2add): Likewise.
18214 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18215 Likewise.
18216 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18217 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18218 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18219 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18220 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18221 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
18222 to rtx_cost calls.
18223 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18224 * config/arc/arc.c (arc_rtx_costs): Likewise.
18225 * config/arm/arm.c (arm_rtx_costs): Likewise.
18226 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18227 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18228 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18229 * config/cris/cris.c (cris_rtx_costs): Likewise.
18230 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18231 * config/frv/frv.c (frv_rtx_costs): Likewise.
18232 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18233 * config/i386/i386.c (ix86_rtx_costs): Likewise.
18234 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18235 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18236 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18237 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18238 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18239 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18240 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18241 * config/mep/mep.c (mep_rtx_cost): Likewise.
18242 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18243 * config/mips/mips.c (mips_rtx_costs): Likewise.
18244 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18245 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18246 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18247 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18248 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18249 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18250 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18251 * config/pa/pa.c (hppa_rtx_costs): Likewise.
18252 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18253 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18254 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18255 * config/s390/s390.c (s390_rtx_costs): Likewise.
18256 * config/sh/sh.c (sh_rtx_costs): Likewise.
18257 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18258 * config/spu/spu.c (spu_rtx_costs): Likewise.
18259 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18260 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18261 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18262 * config/v850/v850.c (v850_rtx_costs): Likewise.
18263 * config/vax/vax.c (vax_rtx_costs): Likewise.
18264 * config/visium/visium.c (visium_rtx_costs): Likewise.
18265 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18266 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18267 "code" param, and pass as outer_code to first rtx_cost call. Pass
18268 mode to rtx_cost calls.
18269 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18270 calls.
18271 (aarch64_rtx_costs_wrapper): Update.
18272 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18273 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18274 rtx_cost calls.
18275 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18276 and rtx_cost calls.
18277 (avr_operand_rtx_cost): Similarly.
18278 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18279 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18280 * config/mips/mips.c (mips_stack_address_p): Comment typo.
18281 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18282 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18283 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18284 rtx_cost.
18285 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18286 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18287 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18288 * doc/tm.texi: Regenerate.
18289
18290 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
18291
18292 * tree-core.h: Include symtab.h.
18293 * rtl.h: Include hard-reg-set.h but not flags.h.
18294 (HARD_CONST): Remove condition compilation involving HARD_CONST since
18295 hard-reg-set.h is always included.
18296 * regs.h: Don't include hard-reg-set.h or rtl.h.
18297 * cfg.h: Include dominance.h.
18298 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18299 * backend.h: New. Aggregate commonly used backend header files.
18300 * gimple-ssa.h: Don't include tree-hasher.h.
18301 * ssa.h: New. Aggregate commonly used SSA header files.
18302 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18303 * sel-sched-ir.h: Flatten includes.
18304 * lra-int.h: Flatten completely.
18305 * sel-sched-dump.h: Flatten includes.
18306 * ira-int.h: Flatten includes.
18307 * gimple-streamer.h: Remove all includes.
18308 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18309 * resource.h: Flatten hard-reg-set.h and df.h.
18310 * sched-int.h: Flatten insn-arrt.h and df.h.
18311 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18312 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18313 * genattrtab.c (write_header): Adjust generated includes.
18314 * genautomata.c (main): Likewise.
18315 * genconditions.c (write-header): Likewise.
18316 * genemit.c (main): Likewise.
18317 * gengtype.c (open_base_files): Likewise.
18318 * genopinit.c (main): Likewise.
18319 * genoutput.c (output_prologue): Likewise.
18320 * genpeep.c (main): Likewise.
18321 * genpreds.c (write_insn_preds_c): Likewise.
18322 * genrecog.c (write_header): Likewise.
18323 * alias.c: Adjust includes.
18324 * asan.c: Likewise.
18325 * attribs.c: Likewise.
18326 * auto-inc-dec.c: Likewise.
18327 * auto-profile.c: Likewise.
18328 * bb-reorder.c: Likewise.
18329 * bt-load.c: Likewise.
18330 * builtins.c: Likewise.
18331 * caller-save.c: Likewise.
18332 * calls.c: Likewise.
18333 * ccmp.c: Likewise.
18334 * cfg.c: Likewise.
18335 * cfganal.c: Likewise.
18336 * cfgbuild.c: Likewise.
18337 * cfgcleanup.c: Likewise.
18338 * cfgexpand.c: Likewise.
18339 * cfghooks.c: Likewise.
18340 * cfgloop.c: Likewise.
18341 * cfgloopanal.c: Likewise.
18342 * cfgloopmanip.c: Likewise.
18343 * cfgrtl.c: Likewise.
18344 * cgraph.c: Likewise.
18345 * cgraphbuild.c: Likewise.
18346 * cgraphclones.c: Likewise.
18347 * cgraphunit.c: Likewise.
18348 * cilk-common.c: Likewise.
18349 * combine-stack-adj.c: Likewise.
18350 * combine.c: Likewise.
18351 * compare-elim.c: Likewise.
18352 * convert.c: Likewise.
18353 * coverage.c: Likewise.
18354 * cppbuiltin.c: Likewise.
18355 * cprop.c: Likewise.
18356 * cse.c: Likewise.
18357 * cselib.c: Likewise.
18358 * data-streamer-in.c: Likewise.
18359 * data-streamer-out.c: Likewise.
18360 * data-streamer.c: Likewise.
18361 * dbxout.c: Likewise.
18362 * dce.c: Likewise.
18363 * ddg.c: Likewise.
18364 * debug.c: Likewise.
18365 * df-core.c: Likewise.
18366 * df-problems.c: Likewise.
18367 * df-scan.c: Likewise.
18368 * dfp.c: Likewise.
18369 * dojump.c: Likewise.
18370 * dominance.c: Likewise.
18371 * domwalk.c: Likewise.
18372 * double-int.c: Likewise.
18373 * dse.c: Likewise.
18374 * dumpfile.c: Likewise.
18375 * dwarf2asm.c: Likewise.
18376 * dwarf2cfi.c: Likewise.
18377 * dwarf2out.c: Likewise.
18378 * emit-rtl.c: Likewise.
18379 * et-forest.c: Likewise.
18380 * except.c: Likewise.
18381 * explow.c: Likewise.
18382 * expmed.c: Likewise.
18383 * expr.c: Likewise.
18384 * final.c: Likewise.
18385 * fixed-value.c: Likewise.
18386 * fold-const.c: Likewise.
18387 * function.c: Likewise.
18388 * fwprop.c: Likewise.
18389 * gcc-plugin.h: Likewise.
18390 * gcse-common.c: Likewise.
18391 * gcse.c: Likewise.
18392 * generic-match-head.c: Likewise.
18393 * ggc-page.c: Likewise.
18394 * gimple-builder.c: Likewise.
18395 * gimple-expr.c: Likewise.
18396 * gimple-fold.c: Likewise.
18397 * gimple-iterator.c: Likewise.
18398 * gimple-low.c: Likewise.
18399 * gimple-match-head.c: Likewise.
18400 * gimple-pretty-print.c: Likewise.
18401 * gimple-ssa-isolate-paths.c: Likewise.
18402 * gimple-ssa-strength-reduction.c: Likewise.
18403 * gimple-streamer-in.c: Likewise.
18404 * gimple-streamer-out.c: Likewise.
18405 * gimple-walk.c: Likewise.
18406 * gimple.c: Likewise.
18407 * gimplify-me.c: Likewise.
18408 * gimplify.c: Likewise.
18409 * godump.c: Likewise.
18410 * graph.c: Likewise.
18411 * graphite-blocking.c: Likewise.
18412 * graphite-dependences.c: Likewise.
18413 * graphite-interchange.c: Likewise.
18414 * graphite-isl-ast-to-gimple.c: Likewise.
18415 * graphite-optimize-isl.c: Likewise.
18416 * graphite-poly.c: Likewise.
18417 * graphite-scop-detection.c: Likewise.
18418 * graphite-sese-to-poly.c: Likewise.
18419 * graphite.c: Likewise.
18420 * haifa-sched.c: Likewise.
18421 * hw-doloop.c: Likewise.
18422 * ifcvt.c: Likewise.
18423 * init-regs.c: Likewise.
18424 * internal-fn.c: Likewise.
18425 * ipa-chkp.c: Likewise.
18426 * ipa-comdats.c: Likewise.
18427 * ipa-cp.c: Likewise.
18428 * ipa-devirt.c: Likewise.
18429 * ipa-icf-gimple.c: Likewise.
18430 * ipa-icf.c: Likewise.
18431 * ipa-inline-analysis.c: Likewise.
18432 * ipa-inline-transform.c: Likewise.
18433 * ipa-inline.c: Likewise.
18434 * ipa-polymorphic-call.c: Likewise.
18435 * ipa-profile.c: Likewise.
18436 * ipa-prop.c: Likewise.
18437 * ipa-pure-const.c: Likewise.
18438 * ipa-ref.c: Likewise.
18439 * ipa-reference.c: Likewise.
18440 * ipa-split.c: Likewise.
18441 * ipa-utils.c: Likewise.
18442 * ipa-visibility.c: Likewise.
18443 * ipa.c: Likewise.
18444 * ira-build.c: Likewise.
18445 * ira-color.c: Likewise.
18446 * ira-conflicts.c: Likewise.
18447 * ira-costs.c: Likewise.
18448 * ira-emit.c: Likewise.
18449 * ira-lives.c: Likewise.
18450 * ira.c: Likewise.
18451 * jump.c: Likewise.
18452 * langhooks.c: Likewise.
18453 * lcm.c: Likewise.
18454 * loop-doloop.c: Likewise.
18455 * loop-init.c: Likewise.
18456 * loop-invariant.c: Likewise.
18457 * loop-iv.c: Likewise.
18458 * loop-unroll.c: Likewise.
18459 * lower-subreg.c: Likewise.
18460 * lra-assigns.c: Likewise.
18461 * lra-coalesce.c: Likewise.
18462 * lra-constraints.c: Likewise.
18463 * lra-eliminations.c: Likewise.
18464 * lra-lives.c: Likewise.
18465 * lra-remat.c: Likewise.
18466 * lra-spills.c: Likewise.
18467 * lra.c: Likewise.
18468 * lto-cgraph.c: Likewise.
18469 * lto-compress.c: Likewise.
18470 * lto-opts.c: Likewise.
18471 * lto-section-in.c: Likewise.
18472 * lto-section-out.c: Likewise.
18473 * lto-streamer-in.c: Likewise.
18474 * lto-streamer-out.c: Likewise.
18475 * lto-streamer.c: Likewise.
18476 * mcf.c: Likewise.
18477 * mode-switching.c: Likewise.
18478 * modulo-sched.c: Likewise.
18479 * omega.c: Likewise.
18480 * omp-low.c: Likewise.
18481 * optabs.c: Likewise.
18482 * opts-global.c: Likewise.
18483 * passes.c: Likewise.
18484 * plugin.c: Likewise.
18485 * postreload-gcse.c: Likewise.
18486 * postreload.c: Likewise.
18487 * predict.c: Likewise.
18488 * print-rtl.c: Likewise.
18489 * print-tree.c: Likewise.
18490 * profile.c: Likewise.
18491 * real.c: Likewise.
18492 * realmpfr.c: Likewise.
18493 * recog.c: Likewise.
18494 * ree.c: Likewise.
18495 * reg-stack.c: Likewise.
18496 * regcprop.c: Likewise.
18497 * reginfo.c: Likewise.
18498 * regrename.c: Likewise.
18499 * regstat.c: Likewise.
18500 * reload.c: Likewise.
18501 * reload1.c: Likewise.
18502 * reorg.c: Likewise.
18503 * resource.c: Likewise.
18504 * rtl-chkp.c: Likewise.
18505 * rtlanal.c: Likewise.
18506 * rtlhooks.c: Likewise.
18507 * sanopt.c: Likewise.
18508 * sched-deps.c: Likewise.
18509 * sched-ebb.c: Likewise.
18510 * sched-rgn.c: Likewise.
18511 * sched-vis.c: Likewise.
18512 * sdbout.c: Likewise.
18513 * sel-sched-dump.c: Likewise.
18514 * sel-sched-ir.c: Likewise.
18515 * sel-sched.c: Likewise.
18516 * sese.c: Likewise.
18517 * shrink-wrap.c: Likewise.
18518 * simplify-rtx.c: Likewise.
18519 * stack-ptr-mod.c: Likewise.
18520 * stmt.c: Likewise.
18521 * stor-layout.c: Likewise.
18522 * store-motion.c: Likewise.
18523 * stringpool.c: Likewise.
18524 * symtab.c: Likewise.
18525 * target-globals.c: Likewise.
18526 * targhooks.c: Likewise.
18527 * toplev.c: Likewise.
18528 * tracer.c: Likewise.
18529 * trans-mem.c: Likewise.
18530 * tree-affine.c: Likewise.
18531 * tree-browser.c: Likewise.
18532 * tree-call-cdce.c: Likewise.
18533 * tree-cfg.c: Likewise.
18534 * tree-cfgcleanup.c: Likewise.
18535 * tree-chkp-opt.c: Likewise.
18536 * tree-chkp.c: Likewise.
18537 * tree-chrec.c: Likewise.
18538 * tree-complex.c: Likewise.
18539 * tree-data-ref.c: Likewise.
18540 * tree-dfa.c: Likewise.
18541 * tree-diagnostic.c: Likewise.
18542 * tree-dump.c: Likewise.
18543 * tree-eh.c: Likewise.
18544 * tree-emutls.c: Likewise.
18545 * tree-if-conv.c: Likewise.
18546 * tree-inline.c: Likewise.
18547 * tree-into-ssa.c: Likewise.
18548 * tree-iterator.c: Likewise.
18549 * tree-loop-distribution.c: Likewise.
18550 * tree-nested.c: Likewise.
18551 * tree-nrv.c: Likewise.
18552 * tree-object-size.c: Likewise.
18553 * tree-outof-ssa.c: Likewise.
18554 * tree-parloops.c: Likewise.
18555 * tree-phinodes.c: Likewise.
18556 * tree-predcom.c: Likewise.
18557 * tree-pretty-print.c: Likewise.
18558 * tree-profile.c: Likewise.
18559 * tree-scalar-evolution.c: Likewise.
18560 * tree-sra.c: Likewise.
18561 * tree-ssa-address.c: Likewise.
18562 * tree-ssa-alias.c: Likewise.
18563 * tree-ssa-ccp.c: Likewise.
18564 * tree-ssa-coalesce.c: Likewise.
18565 * tree-ssa-copy.c: Likewise.
18566 * tree-ssa-copyrename.c: Likewise.
18567 * tree-ssa-dce.c: Likewise.
18568 * tree-ssa-dom.c: Likewise.
18569 * tree-ssa-dse.c: Likewise.
18570 * tree-ssa-forwprop.c: Likewise.
18571 * tree-ssa-ifcombine.c: Likewise.
18572 * tree-ssa-live.c: Likewise.
18573 * tree-ssa-loop-ch.c: Likewise.
18574 * tree-ssa-loop-im.c: Likewise.
18575 * tree-ssa-loop-ivcanon.c: Likewise.
18576 * tree-ssa-loop-ivopts.c: Likewise.
18577 * tree-ssa-loop-manip.c: Likewise.
18578 * tree-ssa-loop-niter.c: Likewise.
18579 * tree-ssa-loop-prefetch.c: Likewise.
18580 * tree-ssa-loop-unswitch.c: Likewise.
18581 * tree-ssa-loop.c: Likewise.
18582 * tree-ssa-math-opts.c: Likewise.
18583 * tree-ssa-operands.c: Likewise.
18584 * tree-ssa-phiopt.c: Likewise.
18585 * tree-ssa-phiprop.c: Likewise.
18586 * tree-ssa-pre.c: Likewise.
18587 * tree-ssa-propagate.c: Likewise.
18588 * tree-ssa-reassoc.c: Likewise.
18589 * tree-ssa-sccvn.c: Likewise.
18590 * tree-ssa-scopedtables.c: Likewise.
18591 * tree-ssa-sink.c: Likewise.
18592 * tree-ssa-strlen.c: Likewise.
18593 * tree-ssa-structalias.c: Likewise.
18594 * tree-ssa-tail-merge.c: Likewise.
18595 * tree-ssa-ter.c: Likewise.
18596 * tree-ssa-threadedge.c: Likewise.
18597 * tree-ssa-threadupdate.c: Likewise.
18598 * tree-ssa-uncprop.c: Likewise.
18599 * tree-ssa-uninit.c: Likewise.
18600 * tree-ssa.c: Likewise.
18601 * tree-ssanames.c: Likewise.
18602 * tree-stdarg.c: Likewise.
18603 * tree-streamer-in.c: Likewise.
18604 * tree-streamer-out.c: Likewise.
18605 * tree-streamer.c: Likewise.
18606 * tree-switch-conversion.c: Likewise.
18607 * tree-tailcall.c: Likewise.
18608 * tree-vect-data-refs.c: Likewise.
18609 * tree-vect-generic.c: Likewise.
18610 * tree-vect-loop-manip.c: Likewise.
18611 * tree-vect-loop.c: Likewise.
18612 * tree-vect-patterns.c: Likewise.
18613 * tree-vect-slp.c: Likewise.
18614 * tree-vect-stmts.c: Likewise.
18615 * tree-vectorizer.c: Likewise.
18616 * tree-vrp.c: Likewise.
18617 * tree.c: Likewise.
18618 * tsan.c: Likewise.
18619 * ubsan.c: Likewise.
18620 * valtrack.c: Likewise.
18621 * value-prof.c: Likewise.
18622 * var-tracking.c: Likewise.
18623 * varasm.c: Likewise.
18624 * varpool.c: Likewise.
18625 * vmsdbgout.c: Likewise.
18626 * vtable-verify.c: Likewise.
18627 * web.c: Likewise.
18628 * wide-int.cc: Likewise.
18629 * xcoffout.c: Likewise.
18630 * config/aarch64/aarch64-builtins.c: Likewise.
18631 * config/aarch64/aarch64.c: Likewise.
18632 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18633 * config/alpha/alpha.c: Likewise.
18634 * config/arc/arc.c: Likewise.
18635 * config/arm/aarch-common.c: Likewise.
18636 * config/arm/arm-builtins.c: Likewise.
18637 * config/arm/arm-c.c: Likewise.
18638 * config/arm/arm.c: Likewise.
18639 * config/avr/avr-c.c: Likewise.
18640 * config/avr/avr-log.c: Likewise.
18641 * config/avr/avr.c: Likewise.
18642 * config/bfin/bfin.c: Likewise.
18643 * config/c6x/c6x.c: Likewise.
18644 * config/cr16/cr16.c: Likewise.
18645 * config/cris/cris.c: Likewise.
18646 * config/darwin-c.c: Likewise.
18647 * config/darwin.c: Likewise.
18648 * config/epiphany/epiphany.c: Likewise.
18649 * config/epiphany/mode-switch-use.c: Likewise.
18650 * config/epiphany/resolve-sw-modes.c: Likewise.
18651 * config/fr30/fr30.c: Likewise.
18652 * config/frv/frv.c: Likewise.
18653 * config/ft32/ft32.c: Likewise.
18654 * config/h8300/h8300.c: Likewise.
18655 * config/i386/i386-c.c: Likewise.
18656 * config/i386/i386.c: Likewise.
18657 * config/i386/msformat-c.c: Likewise.
18658 * config/i386/winnt-cxx.c: Likewise.
18659 * config/i386/winnt-stubs.c: Likewise.
18660 * config/i386/winnt.c: Likewise.
18661 * config/ia64/ia64-c.c: Likewise.
18662 * config/ia64/ia64.c: Likewise.
18663 * config/iq2000/iq2000.c: Likewise.
18664 * config/lm32/lm32.c: Likewise.
18665 * config/m32c/m32c-pragma.c: Likewise.
18666 * config/m32c/m32c.c: Likewise.
18667 * config/m32r/m32r.c: Likewise.
18668 * config/m68k/m68k.c: Likewise.
18669 * config/mcore/mcore.c: Likewise.
18670 * config/mep/mep-pragma.c: Likewise.
18671 * config/mep/mep.c: Likewise.
18672 * config/microblaze/microblaze-c.c: Likewise.
18673 * config/microblaze/microblaze.c: Likewise.
18674 * config/mips/mips.c: Likewise.
18675 * config/mmix/mmix.c: Likewise.
18676 * config/mn10300/mn10300.c: Likewise.
18677 * config/moxie/moxie.c: Likewise.
18678 * config/msp430/msp430-c.c: Likewise.
18679 * config/msp430/msp430.c: Likewise.
18680 * config/nds32/nds32-cost.c: Likewise.
18681 * config/nds32/nds32-fp-as-gp.c: Likewise.
18682 * config/nds32/nds32-intrinsic.c: Likewise.
18683 * config/nds32/nds32-isr.c: Likewise.
18684 * config/nds32/nds32-md-auxiliary.c: Likewise.
18685 * config/nds32/nds32-memory-manipulation.c: Likewise.
18686 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18687 * config/nds32/nds32-predicates.c: Likewise.
18688 * config/nds32/nds32.c: Likewise.
18689 * config/nios2/nios2.c: Likewise.
18690 * config/nvptx/nvptx.c: Likewise.
18691 * config/pa/pa.c: Likewise.
18692 * config/pdp11/pdp11.c: Likewise.
18693 * config/rl78/rl78-c.c: Likewise.
18694 * config/rl78/rl78.c: Likewise.
18695 * config/rs6000/rs6000-c.c: Likewise.
18696 * config/rs6000/rs6000.c: Likewise.
18697 * config/rx/rx.c: Likewise.
18698 * config/s390/s390-c.c: Likewise.
18699 * config/s390/s390.c: Likewise.
18700 * config/sh/sh-c.c: Likewise.
18701 * config/sh/sh-mem.cc: Likewise.
18702 * config/sh/sh.c: Likewise.
18703 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18704 * config/sh/sh_treg_combine.cc: Likewise.
18705 * config/sol2-c.c: Likewise.
18706 * config/sol2-cxx.c: Likewise.
18707 * config/sol2-stubs.c: Likewise.
18708 * config/sol2.c: Likewise.
18709 * config/sparc/sparc-c.c: Likewise.
18710 * config/sparc/sparc.c: Likewise.
18711 * config/spu/spu-c.c: Likewise.
18712 * config/spu/spu.c: Likewise.
18713 * config/stormy16/stormy16.c: Likewise.
18714 * config/tilegx/mul-tables.c: Likewise.
18715 * config/tilegx/tilegx-c.c: Likewise.
18716 * config/tilegx/tilegx.c: Likewise.
18717 * config/tilepro/mul-tables.c: Likewise.
18718 * config/tilepro/tilepro-c.c: Likewise.
18719 * config/tilepro/tilepro.c: Likewise.
18720 * config/v850/v850-c.c: Likewise.
18721 * config/v850/v850.c: Likewise.
18722 * config/vax/vax.c: Likewise.
18723 * config/visium/visium.c: Likewise.
18724 * config/vms/vms-c.c: Likewise.
18725 * config/vms/vms.c: Likewise.
18726 * config/vxworks.c: Likewise.
18727 * config/xtensa/xtensa.c: Likewise.
18728
18729 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
18730
18731 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18732 Remove operand constraints. Change operand 2 predicate to
18733 nonmemory operand. Limit const_int values to mode bitsize. Only
18734 allow const_int values less than 32 when optimizing for size.
18735 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18736 Remove operand constraints.
18737 (*bt<mode>): Use SImode for const_int values less than 32.
18738 (regmode): Remove mode attribute.
18739
18740 2015-07-07 Anatoly Sokolov <aesok@post.ru>
18741
18742 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18743 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18744 moxie_legitimate_address_p): New functions.
18745 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18746
18747 2015-07-07 Tom de Vries <tom@codesourcery.com>
18748
18749 PR tree-optimization/66642
18750 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18751 header comment. Rename split_edge variable to edge_at_split. Split
18752 exit edge to create new loop exit bb. Insert loop exit phis in new
18753 loop exit bb.
18754
18755 2015-07-07 Tom de Vries <tom@codesourcery.com>
18756
18757 * tree-cfg.c (get_virtual_phi): New function.
18758 * tree-cfg.h (get_virtual_phi): Declare.
18759 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18760 (rewrite_virtuals_into_loop_closed_ssa): New function.
18761 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18762 Declare.
18763 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18764 (transform_to_exit_first_loop_alt): Use
18765 rewrite_virtuals_into_loop_closed_ssa.
18766
18767 2015-07-07 Richard Biener <rguenther@suse.de>
18768
18769 * fold-const.c (fold_binary_loc): Move
18770 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18771 * match.pd: ... here.
18772 Add (X * C1) % C2 -> 0 simplification pattern derived from
18773 extract_muldiv_1.
18774
18775 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
18776
18777 PR target/66780
18778 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18779 change for target/65249.
18780
18781 2015-07-07 Paulo Matos <pmatos@broadcom.com>
18782
18783 * symtab.c (address_matters_1): Fix typo in comment above.
18784 (can_increase_alignment_p): Likewise.
18785
18786 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18787
18788 * function.c (free_after_compilation): Clear PROP_cfg in
18789 f->curr_properties.
18790
18791 2015-07-07 Richard Biener <rguenther@suse.de>
18792
18793 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18794 add which use to.
18795 (add_control_edge): Remove excessive vertical space in dumping.
18796 (process_ssa_edge_worklist): Simulate at most one statement and
18797 return whether we did. Do not simulate PHIs if they are in a
18798 BB not yet simulated.
18799 (ssa_propagate): Adjust to always drain the BB worklist whenever
18800 a BB is available there, likewise the VARYING edges list before
18801 the interesting edge list.
18802
18803 2015-07-07 Christian Bruel <christian.bruel@st.com>
18804
18805 PR target/52144
18806 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18807
18808 2015-07-07 Richard Biener <rguenther@suse.de>
18809
18810 PR middle-end/66739
18811 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18812 A - B.
18813
18814 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18815
18816 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
18817 modes for operands 0 and 3. Use SImode for operands 2 and 3.
18818 Copy operand 0 to a temporary if !ext_register_operand. Remove
18819 ancient extract_bit_field workaround.
18820 (insv<mode>_1): Rename from mov<mode>_insv_1.
18821 (*insvqi): Rename from *movqi_insv_2.
18822 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18823 for renamed insvsi_1.
18824 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18825
18826 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
18827
18828 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
18829 call to nvptx_reorg_subreg.
18830
18831 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
18832
18833 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18834 * graphite-dependencies.c, graphite-interchange.c,
18835 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18836 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18837 Likewise.
18838
18839 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
18840
18841 * match.pd: Remove element_mode inside HONOR_*.
18842 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18843 (~X | X -> -1, ~X ^ X -> -1): Merge.
18844 * tree.c (build_each_one_cst): New function.
18845 * tree.h (build_each_one_cst): Likewise.
18846
18847 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18848
18849 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18850 PROCESSOR_IAMCU.
18851
18852 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
18853
18854 * config.gcc <mips*-*-*>: Add fused-madd.opt.
18855 * config/mips/mips.opt (mfused-madd): Remove.
18856 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18857 * config/mips/mips.h (TARGET_MIPS8000): New.
18858 (ISA_HAS_FP_MADD4_MSUB4): Remove.
18859 (ISA_HAS_FP_MADDF_MSUBF): Remove.
18860 (ISA_HAS_FP_MADD3_MSUB3): Remove.
18861 (ISA_HAS_NMADD4_NMSUB4): Remove.
18862 (ISA_HAS_NMADD3_NMSUB3): Remove.
18863 (ISA_HAS_FUSED_MADD4): New.
18864 (ISA_HAS_UNFUSED_MADD4): New.
18865 (ISA_HAS_FUSED_MADDF): New.
18866 (ISA_HAS_FUSED_MADD3): New.
18867 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18868 (*fma<mode>4_madd3) New.
18869 (*fma<mode>4_madd4) New.
18870 (*fma<mode>4_maddf) New.
18871 (fms<mode>4) New.
18872 (*fms<mode>4_msub3) New.
18873 (*fms<mode>4_msub4) New.
18874 (fnma<mode>4) New.
18875 (*fnma<mode>4_nmadd3) New.
18876 (*fnma<mode>4_nmadd4) New.
18877 (fnms<mode>4) New.
18878 (*fnms<mode>4_nmsub3) New.
18879 (*fnms<mode>4_nmsub4) New.
18880 (*madd4<mode>) Modify to be unfused only.
18881 (*msub4<mode>) Modify to be unfused only.
18882 (*nmadd4<mode>) Modify to be unfused only.
18883 (*nmsub4<mode>) Modify to be unfused only.
18884 (*madd3<mode>) Remove.
18885 (*msub3<mode>) Remove.
18886 (*nmadd3<mode>) Remove.
18887 (*nmsub3<mode>) Remove.
18888 (*nmadd3<mode>_fastmath) Remove.
18889 (*nmsub3<mode>_fastmath) Remove.
18890 (*nmadd4<mode>_fastmath) Update condition.
18891 (*nmsub4<mode>_fastmath) Update condition.
18892
18893 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18894
18895 PR target/65956
18896 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18897 alignment attribute, exploring one level down for records and arrays.
18898
18899 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18900
18901 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
18902 modes for operands 0 and 1. Use SImode for operands 2 and 3.
18903 Copy operand 1 to a temporary if !ext_register_operand. Remove
18904 ancient extract_bit_field workaround.
18905 (*extv<mode>): Rename from *mov<mode>_extv_1.
18906 (*extvqi): Rename from *movqi_extv_1.
18907 (extzv<mode>): Rename from extzv. Use SWI248 modes for
18908 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
18909 to a temporary if !ext_register_operand. Remove ancient
18910 extract_bit_field workaround.
18911 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18912 (*extzvqi): Rename from *movqi_extzv_2.
18913 (*testqi_ext_3): Remove modes from const_int_operand predicated
18914 operands. Add "n" constraint.
18915 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18916 operand. Add "J" constraint.
18917 (*btsq, *btrq, *btcq peephole2s): Remove mode from
18918 const_0_to_63 predicated operand.
18919 (regmode): New insn attribute.
18920 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
18921 to nonmemory_operand. Use regmode insn attribute.
18922 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18923 (*jcc_bt<mode>_mask): Remove mode from operand 3.
18924 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18925 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18926 operands. Use "N" constraint instead of "n".
18927
18928 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18929
18930 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18931
18932 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18933
18934 PR target/66749
18935 * config/i386/i386.c (iamcu_cost): New.
18936 (m_IAMCU): Likewise.
18937 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18938 (processor_target_table): Add an entry for "iamcu".
18939 (processor_alias_table): Likewise.
18940 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18941 (ix86_adjust_cost): Likewise.
18942 (ia32_multipass_dfa_lookahead): Likewise.
18943 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18944 * config/i386/x86-tune.def: Updated for m_IAMCU.
18945
18946 2015-07-06 Richard Biener <rguenther@suse.de>
18947
18948 PR tree-optimization/66772
18949 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18950 values are available in the PHI node BB when there are
18951 still unexecutable edges.
18952
18953 2015-07-06 Richard Biener <rguenther@suse.de>
18954
18955 PR tree-optimization/66767
18956 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18957 Make sure to build the alignment test on a SSA name without
18958 final alignment info valid only if the alignment test
18959 evaluates to true.
18960
18961 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
18962
18963 PR target/66620
18964 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18965 loop start when inserting LSETUP.
18966
18967 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 PR target/53383
18970 * config/i386/i386.c (ix86_option_override_internal): Allow
18971 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18972
18973 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18974
18975 * read-md.c (decimal_string): Rename to ...
18976 (md_decimal_string): ... this.
18977 (handle_enum): Reflect this.
18978
18979 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18980
18981 PR target/66731
18982 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18983
18984 2015-07-06 Richard Biener <rguenther@suse.de>
18985
18986 PR middle-end/66759
18987 * match.pd: Add missing constraint of y to REAL_CST in
18988 REAL_CST - x CMP y to y - CST CMP x simplification.
18989
18990 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
18991
18992 PR tree-optimization/66757
18993 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18994
18995 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
18996 Sandra Loosemore <sandra@codesourcery.com>
18997
18998 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18999 Delete extern declaration.
19000 (gprel_constant_p): Add extern declaration.
19001 * config/nios2/constraints.md ("S"): Use gprel_constant_p
19002 instead of nios2_symbol_ref_in_small_data_p.
19003 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19004 (nios2_symbol_ref_in_small_data_p): Make static.
19005 (gprel_constant_p): Make non-static.
19006
19007 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19008
19009 * doc/fragments.texi (Target Fragment): Convert debian.org
19010 link to use https.
19011 * doc/install.texi (Configuration): Ditto.
19012
19013 2015-07-05 Jakub Jelinek <jakub@redhat.com>
19014
19015 PR tree-optimization/66718
19016 * tree-vect-stmts.c (vectorizable_call): Replace uses of
19017 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19018
19019 PR tree-optimization/66718
19020 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19021 vectorizable_load, vectorizable_condition): Move vectype,
19022 nunits, ncopies computation after checking what kind of statement
19023 stmt is.
19024
19025 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19026
19027 * target-insns.def (extv, extzv, insv): New targetm instruction
19028 patterns.
19029 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19030 interface.
19031 * recog.c (simplify_while_replacing): Likewise.
19032
19033 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19034
19035 * target-insns.def (doloop_begin, doloop_end): New targetm
19036 instruction patterns.
19037 * loop-init.c: Include target.h.
19038 (pass_loop2::gate): Use the new targetm patterns instead of
19039 HAVE_*/gen_* interface.
19040 (pass_rtl_doloop::gate): Likewise.
19041 (pass_rtl_doloop::execute): Remove preprocessor condition.
19042 * hw-doloop.c: Build unconditionally.
19043 * loop-doloop.c: Likewise.
19044 (doloop_optimize): Use the new targetm patterns instead of
19045 HAVE_*/gen_* interface.
19046 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19047 * modulo-sched.c (doloop_register_get): Likewise.
19048
19049 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19050
19051 * target-insns.def (clear_cache): New targetm instruction pattern.
19052 * builtins.c (expand_builtin___clear_cache): Use it instead of
19053 HAVE_*/gen_* interface.
19054
19055 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19056
19057 * target-insns.def (allocate_stack, check_stack, probe_stack)
19058 (probe_stack_address, split_stack_prologue, split_stack_space_check):
19059 New targetm instruction patterns.
19060 * explow.c (allocate_dynamic_stack_space): Use them instead of
19061 HAVE_*/gen_* interface.
19062 (emit_stack_probe): Likewise.
19063 (probe_stack_range): Likewise.
19064 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19065
19066 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19067
19068 * target-insns.def (stack_protect_set, stack_protect_test): New
19069 targetm instruction patterns.
19070 * cfgexpand.c (stack_protect_prologue): Use them instead of
19071 HAVE_*/gen_* interface.
19072 * function.c (stack_protect_epilogue): Likewise.
19073
19074 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19075
19076 * expr.h (gen_move_insn_uncast): Delete.
19077 * expr.c (gen_move_insn_uncast): Delete.
19078
19079 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19080
19081 * target-insns.def (restore_stack_block, restore_stack_function)
19082 (restore_stack_nonlocal, save_stack_block, save_stack_function)
19083 (save_stack_nonlocal): New targetm instruction patterns.
19084 * builtins.c (expand_builtin_apply): Use them instead of
19085 HAVE_*/gen_* interface.
19086 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19087
19088 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19089
19090 * target-insns.def (trap): New targetm instruction pattern.
19091 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19092 interface.
19093 * explow.c (allocate_dynamic_stack_space): Likewise.
19094 * ifcvt.c (find_if_header): Likewise.
19095
19096 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19097
19098 * target-insns.def (prefetch): New targetm instruction pattern.
19099 * tree-ssa-loop-prefetch.c: Include targeth.
19100 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19101 of HAVE_*/gen_* interface.
19102 * builtins.c (expand_builtin_prefetch): Likewise.
19103 * toplev.c (process_options): Likewise.
19104
19105 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19106
19107 * target-insns.def (untyped_call, untyped_return): New targetm
19108 instruction patterns.
19109 * builtins.c (expand_builtin_apply): Use them instead of
19110 HAVE_*/gen_* interface.
19111 (result_vector): Define unconditionally.
19112
19113 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19114
19115 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19116 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19117 (nonlocal_goto_receiver): New targetm instruction patterns.
19118 * builtins.c (expand_builtin_setjmp_setup): Use them instead
19119 of HAVE_*/gen_* interface.
19120 (expand_builtin_setjmp_receiver): Likewise.
19121 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19122 * except.c (expand_dw2_landing_pad_for_region): Likewise.
19123
19124 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19125
19126 * target.def: Add code_for_* hooks.
19127 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19128 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19129 * target-insns.def (casesi, tablejump): New targetm instruction
19130 patterns.
19131 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19132 (do_tablejump): Likewise.
19133 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19134 (expand_sjlj_dispatch_table): Likewise.
19135 * targhooks.c (default_case_values_threshold): Likewise.
19136
19137 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
19138
19139 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19140 Use rtx_insn * instead of rtx.
19141 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19142 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19143 (nios2_call_tls_get_addr): Likewise.
19144 (nios2_emit_expensive_div): Likewise.
19145 (nios2_emit_move_sequence): Change return type to bool.
19146 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19147 Change return type to bool.
19148
19149 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19150
19151 PR target/66747
19152 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19153
19154 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
19155
19156 PR target/66114
19157 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19158 of register_operand. Remove constraint.
19159
19160 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
19161
19162 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19163 the first argument.
19164
19165 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
19166
19167 * attribs.c (decl_attributes): Guard inform with the return value
19168 of the preceding warning.
19169
19170 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19171
19172 * doc/invoke.texi (moverride): Move to correct section.
19173
19174 2015-07-03 Richard Biener <rguenther@suse.de>
19175
19176 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19177 Copy from tree.c
19178 (dt_operand::gen_gimple_expr): After valueizing operands
19179 re-canonicalize operand order for commutative tree codes.
19180
19181 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
19182
19183 PR target/66746.
19184 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19185 is defined.
19186 (__crc32w): Likewise.
19187 (__crc32d): Likewise.
19188 (__rdpmc): Likewise.
19189 (__rdtscp): Likewise.
19190 (_rdpmc): Likewise.
19191 (_rdtscp): Likewise.
19192 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19193 is defined.
19194
19195 2015-07-03 Richard Biener <rguenther@suse.de>
19196
19197 * fold-const.c (fold_mathfn_compare): Remove.
19198 (fold_inf_compare): Likewise.
19199 (fold_comparison): Move floating point comparison simplifications...
19200 * match.pd: ... to patterns here. Introduce simple_comparisons
19201 operator list and use it for patterns formerly in fold_comparison.
19202
19203 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19204
19205 PR tree-optimization/66119
19206 * toplev.c (process_options): Don't set up default values for
19207 the sra_max_scalarization_size_{speed,size} parameters.
19208 * tree-sra (analyze_all_variable_accesses): If no values
19209 have been set for the sra_max_scalarization_size_{speed,size}
19210 parameters, call get_move_ratio to get target defaults.
19211
19212 2015-07-03 Richard Biener <rguenther@suse.de>
19213
19214 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19215 * match.pd: ... here.
19216
19217 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
19218
19219 PR target/37072
19220 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19221 is not actually the default on FreeBSD.
19222
19223 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19224
19225 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19226 definition.
19227 (CMPGE_8HI): Likewise.
19228 (CMPGE_4SI): Likewise.
19229 (CMPGE_2DI): Likewise.
19230 (CMPGE_U16QI): Likewise.
19231 (CMPGE_U8HI): Likewise.
19232 (CMPGE_U4SI): Likewise.
19233 (CMPGE_U2DI): Likewise.
19234 (CMPLE_16QI): Likewise.
19235 (CMPLE_8HI): Likewise.
19236 (CMPLE_4SI): Likewise.
19237 (CMPLE_2DI): Likewise.
19238 (CMPLE_U16QI): Likewise.
19239 (CMPLE_U8HI): Likewise.
19240 (CMPLE_U4SI): Likewise.
19241 (CMPLE_U2DI): Likewise.
19242 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19243 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19244 ALTIVEC_BUILTIN_VEC_CMPLE.
19245 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19246 floating-point vector modes.
19247 (vector_nlt<mode>): New define_expand.
19248 (vector_nltu<mode>): Likewise.
19249 (vector_ngt<mode>): Likewise.
19250 (vector_ngtu<mode>): Likewise.
19251
19252 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19253
19254 PR rtl-optimization/66706
19255 * combine.c (make_compound_operation): If an AND of SUBREG of
19256 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19257
19258 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
19259
19260 * tree-pass.h (make_pass_ch_vect): New.
19261 * passes.def: Add pass_ch_vect just before pass_if_conversion.
19262
19263 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19264 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19265 make_pass_ch_vect): New.
19266 (pass_ch): Extend ch_base.
19267
19268 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19269 (ch_base::copy_headers): ...here.
19270
19271 2015-07-02 Richard Biener <rguenther@suse.de>
19272
19273 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19274 * fold-const.c (get_pointer_modulus_and_residue): Remove.
19275 (fold_binary_loc): Implement (T)ptr & CST in terms of
19276 get_pointer_alignment_1.
19277 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19278 Make sure to build the alignment test on a SSA name without
19279 final alignment info valid only after the prologue.
19280
19281 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
19282
19283 * config/cris/cris.md ("epilogue"): Remove condition.
19284 ("prologue"): Ditto.
19285
19286 2015-07-02 Richard Biener <rguenther@suse.de>
19287
19288 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19289 parameter to record a condition that is false.
19290 (record_conditions): When recording an extra NE_EXPR that is
19291 true also record a EQ_EXPR that is false.
19292
19293 2015-07-02 Bin Cheng <bin.cheng@arm.com>
19294
19295 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19296 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19297 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
19298 (set_iv, find_interesting_uses_address, add_candidate_1): New
19299 argument to alloc_iv.
19300 (find_interesting_uses_op, find_interesting_uses_cond): Don't
19301 duplicate struct iv.
19302 (free_loop_data): Don't free struct iv explicitly.
19303 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19304
19305 2015-07-01 DJ Delorie <dj@redhat.com>
19306
19307 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19308 (LIB_SPEC): Add.
19309 (SUPPORTS_DISCRIMINATOR): Define.
19310
19311 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19312
19313 PR bootstrap/66685
19314 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19315 there are no CALLs in the same pattern.
19316
19317 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19318
19319 PR rtl-optimization/61047
19320 * rtlanal.c (get_initial_register_offset): New function.
19321 (rtx_addr_can_trap_p_1): Check offsets of stack references.
19322
19323 2015-07-01 Richard Biener <rguenther@suse.de>
19324
19325 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19326 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19327 ~X CMP C -> X CMP' ~C to ...
19328 * match.pd: ... patterns here.
19329
19330 2015-07-01 Nick Clifton <nickc@redhat.com>
19331
19332 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19333 a 16-bit value into a 20-bit memory slot.
19334
19335 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19336
19337 * doc/sourcebuild.texi (AArch64-specific attributes): Document
19338 "aarch64_tiny", "aarch64_small", "aarch64_large",
19339 "aarch64_little_endian", "aarch64_big_endian".
19340
19341 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19342
19343 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19344 Document "aarch64_small_fpic".
19345
19346 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19347
19348 * configure.ac: Add check for aarch64 assembler -fpic relocation
19349 modifier support.
19350 * configure: Regenerate.
19351 * config.in: Regenerate.
19352 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19353 to -fPIC if not support of -fpic relocation modifier in assembler.
19354
19355 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19356
19357 PR bootstrap/66685
19358 * rtl.c (classify_insn): Handle returns in PARALLELs.
19359
19360 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
19361
19362 PR middle-end/66633
19363 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19364 to true if the function is nested and if not optimizing.
19365 (convert_local_omp_clauses): Initialize need_frame to true if the
19366 function contains nested functions and if not optimizing.
19367
19368 2015-07-01 Richard Biener <rguenther@suse.de>
19369
19370 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19371 (X & Y) ^ Y -> ~X & Y transforms to ...
19372 * match.pd: ... here.
19373
19374 2015-07-01 Richard Biener <rguenther@suse.de>
19375
19376 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19377 of converts to avoid uninteresting noise from the conversion
19378 simplifying patterns.
19379
19380 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
19381
19382 * config/c6x/c6x.c (try_rename_operands): Do not depend on
19383 gcc_assert evaluating its argument for side-effect.
19384
19385 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
19386
19387 PR target/64833
19388 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19389 flag_pic is set.
19390
19391 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19392
19393 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19394 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19395 (hash_scc): Add this_ref_p and ref_p parameters and pass them
19396 to the inner DFS walk.
19397
19398 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19399
19400 * target-insns.def (jump): New targetm instruction pattern.
19401 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19402 instead of gen_jump.
19403 (fix_up_crossing_landing_pad): Likewise.
19404 (add_labels_and_missing_jumps): Likewise.
19405 (fix_crossing_conditional_branches): Likewise.
19406 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19407 (force_nonfallthru_and_redirect): Likewise.
19408 * cse.c (cse_insn): Likewise.
19409 * expmed.c (expand_divmod): Likewise.
19410 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19411 * haifa-sched.c (init_before_recovery): Likewise.
19412 (sched_create_recovery_edges): Likewise.
19413 * ifcvt.c (find_cond_trap): Likewise.
19414 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19415 (expand_float, expand_fix): Likewise.
19416 * stmt.c (emit_jump): Likewise.
19417
19418 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19419
19420 * defaults.h (HAVE_load_multiple, gen_load_multiple)
19421 (HAVE_store_multiple, gen_store_multiple): Delete.
19422 * target-insns.def (load_multiple, store_multiple): New targetm
19423 instruction patterns.
19424 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19425 of HAVE_*/gen_* interface.
19426
19427 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19428
19429 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19430 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19431 (gen_mem_signal_fence): Delete.
19432 * target-insns.def (mem_signal_fence, mem_thread_fence)
19433 (memory_barrier): New targetm instruction patterns.
19434 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19435 interface.
19436 (expand_mem_signal_fence): Likewise.
19437
19438 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19439
19440 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19441 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19442 targetm instruction patterns.
19443 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19444 interface.
19445 * calls.c (expand_call): Likewise.
19446 * cfgrtl.c (cfg_layout_finalize): Likewise.
19447 * df-scan.c (df_get_entry_block_def_set): Likewise.
19448 (df_get_exit_block_use_set): Likewise.
19449 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19450 * final.c (final_start_function): Likewise.
19451 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19452 (reposition_prologue_and_epilogue_notes): Likewise.
19453 * reorg.c (find_end_label): Likewise.
19454 * toplev.c (process_options): Likewise.
19455
19456 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19457
19458 * typed-splay-tree.h: New file.
19459
19460 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19461
19462 PR debug/66691
19463 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19464 (lra_substitute_pseudo_within_insn): Ditto.
19465 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19466 of constant.
19467 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19468 to lra_substitute_pseudo.
19469 * lra-lives.c (process_bb_lives): Add an argument to
19470 lra_substitute_pseudo_within_insn call.
19471 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19472 argument to lra_substitute_pseudo and
19473 lra_substitute_pseudo_within_insn calls.
19474 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19475
19476 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19477
19478 * configure: Regenerated.
19479
19480 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19481
19482 * config.gcc: Support i[34567]86-*-elfiamcu target.
19483 * config/i386/iamcu.h: New.
19484 * config/i386/i386.opt: Add -miamcu.
19485 * doc/invoke.texi: Document -miamcu.
19486 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19487 off x87/MMX/SSE/AVX codegen for -miamcu.
19488 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19489 __iamcu/__iamcu__ for -miamcu.
19490 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19491 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19492 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19493 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19494 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19495 MCU by default. Default long double to 64-bit for Intel MCU.
19496 Turn on -freg-struct-return for Intel MCU. Issue an error when
19497 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19498 AVX is turned on.
19499 (function_arg_advance_32): Pass value whose size is no larger
19500 than 8 bytes in registers for Intel MCU.
19501 (function_arg_32): Likewise.
19502 (ix86_return_in_memory): Return value whose size is no larger
19503 than 8 bytes in registers for Intel MCU.
19504 (iamcu_alignment): New function.
19505 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19506 true.
19507 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19508 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19509 true.
19510
19511 2015-06-30 Marek Polacek <polacek@redhat.com>
19512
19513 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19514 both operands of the resulting expression.
19515
19516 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19517 the final expression with the operand's type and then convert
19518 it to the type of the expression.
19519
19520 2015-06-30 Richard Biener <rguenther@suse.de>
19521
19522 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19523 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19524 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19525 * match.pd: ... to patterns here.
19526
19527 2015-06-30 Richard Biener <rguenther@suse.de>
19528
19529 PR tree-optimization/66704
19530 * tree-vect-data-refs.c (vect_setup_realignment): Use
19531 make_ssa_name for non-SSA name source.
19532
19533 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19534
19535 PR middle-end/66702
19536 * omp-low.c (simd_clone_adjust): Handle addressable linear
19537 or uniform parameters or non-gimple type uniform parameters.
19538
19539 2015-06-30 Richard Biener <rguenther@suse.de>
19540
19541 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19542 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19543 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19544 * match.pd: ... here.
19545 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19546 Move (x & y) | x -> x and friends before
19547 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19548
19549 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19550
19551 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19552 -mfix-ut699 is not specified.
19553 (leon3_load): Rename into...
19554 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19555 is specified.
19556
19557 2015-06-30 Marek Polacek <polacek@redhat.com>
19558
19559 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19560 * match.pd: ... here.
19561
19562 2015-06-30 Richard Biener <rguenther@suse.de>
19563
19564 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19565 * fold-const.c (build_range_check): Replace uses of
19566 HAVE_canonicalize_funcptr_for_compare.
19567 (fold_widened_comparison): Likewise.
19568 (fold_sign_changed_comparison): Likewise.
19569 * dojump.c: Include "target.h".
19570 (do_compare_and_jump): Replace uses of
19571 HAVE_canonicalize_funcptr_for_compare and
19572 gen_canonicalize_funcptr_for_compare.
19573 * expr.c (do_store_flag): Likewise.
19574
19575 2015-06-30 Tom de Vries <tom@codesourcery.com>
19576
19577 PR tree-optimization/66652
19578 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19579 max_loop_iterations to determine if nit + 1 overflows.
19580
19581 2015-06-30 Richard Biener <rguenther@suse.de>
19582
19583 * tree-vrp.c (register_edge_assert_for_2): Also register
19584 asserts for dominating conversion results.
19585
19586 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19587
19588 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19589 field in struct iv.
19590
19591 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19592
19593 PR target/66509
19594 * configure.ac: Fix filds and fildq test for 64-bit.
19595 * configure: Regenerated.
19596
19597 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
19598
19599 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19600 (nvptx_reorg): Here. Keep the non-subreg pieces.
19601
19602 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
19603
19604 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19605 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19606
19607 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
19608
19609 * config/i386/i386.md (*jcc_1): Use %! in asm template.
19610 Set attribute "length_nobnd" instead of "length".
19611 (*jcc_2): Ditto.
19612 (jump): Ditto.
19613 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19614
19615 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
19616
19617 * config/nios2/nios2.c (nios2_delegitimize_address): Make
19618 assert less restrictive.
19619
19620 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
19621
19622 PR fortran/66605
19623 * cgraphunit.c (cgraph_node::finalize_function): Do not call
19624 do_warn_unused_parameter.
19625 * function.c (do_warn_unused_parameter): Move from here.
19626 * function.h (do_warn_unused_parameter): Do not declare.
19627
19628 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19629
19630 PR target/65697
19631 * gcc.target/arm/armv-sync-comp-swap.c: New.
19632 * gcc.target/arm/armv-sync-op-acquire.c: New.
19633 * gcc.target/arm/armv-sync-op-full.c: New.
19634 * gcc.target/arm/armv-sync-op-release.c: New.
19635
19636 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19637
19638 PR target/65697
19639 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19640 initial acquire barrier with final barrier.
19641
19642 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19643
19644 PR target/65697
19645 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19646 initial acquire barrier with final barrier.
19647
19648 2015-06-29 Richard Henderson <rth@redhat.com>
19649
19650 * config/i386/constraints.md (Bf): New constraint.
19651 * config/i386/i386-c.c (ix86_target_macros): Define
19652 __GCC_ASM_FLAG_OUTPUTS__.
19653 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19654 as flags outputs.
19655 * doc/extend.texi (FlagOutputOperands): Document them.
19656
19657 2015-06-29 Jiong Wang <jiong.wang@arm.com>
19658
19659 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19660 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19661 unspec name.
19662 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19663 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19664 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19665 (aarch64_symbol_context): Ditto.
19666 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19667 and use new pattern name.
19668 (aarch64_expand_mov_immediate): Ditto.
19669 (aarch64_print_operand): Ditto.
19670 (aarch64_classify_tls_symbol): Ditto.
19671
19672 2015-06-29 Marek Polacek <polacek@redhat.com>
19673 Marc Glisse <marc.glisse@inria.fr>
19674
19675 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19676 * match.pd: ... pattern here.
19677
19678 2015-06-29 Tom de Vries <tom@codesourcery.com>
19679
19680 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19681 function structure.
19682
19683 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19684
19685 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19686 feature description, split out the native option, add a link to
19687 the feature documentation, rearrange and slightly rewrite text.
19688 (Aarch64 options, -mcpu): Likewise.
19689 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
19690 +rdma implies Adv. SIMD.
19691
19692 2015-06-29 Marek Polacek <polacek@redhat.com>
19693
19694 PR c/66322
19695 * function.c (stack_protect_epilogue): Remove a cast to int.
19696 * doc/invoke.texi: Update -Wswitch-bool description.
19697
19698 2015-06-29 Richard Biener <rguenther@suse.de>
19699
19700 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19701 * fold-const.c (fold_binary_loc): Move &A - &B simplification
19702 via ptr_difference_const ...
19703 * match.pd: ... here.
19704 When matching (X ^ Y) == Y also match with swapped operands.
19705
19706 2015-06-29 Richard Biener <rguenther@suse.de>
19707
19708 * lto-streamer.h (LTO_major_version): Bump to 5.
19709
19710 2015-06-29 Richard Biener <rguenther@suse.de>
19711
19712 PR tree-optimization/66677
19713 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19714 STMT_VINFO_VEC_STMT clobbering less strict.
19715
19716 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19717
19718 PR middle-end/64130
19719 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19720 division, compute max and min when value ranges for dividend and
19721 divisor are available.
19722
19723 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
19724 Sandra Loosemore <sandra@codesourcery.com>
19725
19726 * regrename.h (regrename_do_replace): Change to return bool.
19727 * regrename.c (rename_chains): Check return value of
19728 regname_do_replace.
19729 (regrename_do_replace): Re-validate the modified insns and
19730 return bool status.
19731 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19732 Update to match rename_chains changes.
19733 * config/c6x/c6x.c (try_rename_operands): Assert that
19734 regrename_do_replace returns true.
19735
19736 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
19737
19738 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19739 operand 2 here. Use copy_addr_to_reg to copy non-index
19740 register operand 2 to a temporary.
19741 (<mode>_stx): Ditto for operand 1.
19742 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19743 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19744 (ix86_store_bounds): Ditto.
19745
19746 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
19747
19748 * print-tree.c (print_node) [TREE_VEC]: Print its length.
19749
19750 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
19751
19752 * gimple.c (gimple_call_set_fndecl): Remove.
19753 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19754 build1_loc directly instead of build_fold_addr_expr_loc.
19755
19756 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19757
19758 * hash-map.h (hash_map::traverse): Use the definition of the
19759 Key typedef rather than the typedef itself.
19760
19761 2015-06-26 Martin Jambor <mjambor@suse.cz>
19762
19763 PR debug/66301
19764 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19765 NULL instead of calling dump_enabled_p.
19766
19767 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19768
19769 * config/aarch64/aarch64.opt: (override): New.
19770 * doc/invoke.texi (override): Document.
19771 * config/aarch64/aarch64.c (aarch64_flag_desc): New
19772 (aarch64_fusible_pairs): Likewise.
19773 (aarch64_tuning_flags): Likewise.
19774 (aarch64_tuning_override_function): Likewise.
19775 (aarch64_tuning_override_functions): Likewise.
19776 (aarch64_parse_one_option_token): Likewise.
19777 (aarch64_parse_boolean_options): Likewise.
19778 (aarch64_parse_fuse_string): Likewise.
19779 (aarch64_parse_tune_string): Likewise.
19780 (aarch64_parse_one_override_token): Likewise.
19781 (aarch64_parse_override_string): Likewise.
19782 (aarch64_override_options): Parse the -override string if it
19783 is present.
19784
19785 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19786
19787 * config/aarch64/aarch64-protos.h (tune_params): Remove
19788 const from members.
19789 (aarch64_tune_params): Remove const, change to no longer be
19790 a pointer.
19791 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19792 change to no longer be a pointer, initialize to generic_tunings.
19793 (aarch64_min_divisions_for_recip_mul): Change dereference of
19794 aarch64_tune_params to member access.
19795 (aarch64_reassociation_width): Likewise.
19796 (aarch64_rtx_mult_cost): Likewise.
19797 (aarch64_address_cost): Likewise.
19798 (aarch64_branch_cost): Likewise.
19799 (aarch64_rtx_costs): Likewise.
19800 (aarch64_register_move_cost): Likewise.
19801 (aarch64_memory_move_cost): Likewise.
19802 (aarch64_sched_issue_rate): Likewise.
19803 (aarch64_builtin_vectorization_cost): Likewise.
19804 (aarch64_override_options): Take a copy of the selected tuning
19805 struct in to aarch64_tune_params, rather than just setting
19806 a pointer, change dereferences of aarch64_tune_params to member
19807 accesses.
19808 (aarch64_override_options_after_change): Change dereferences of
19809 aarch64_tune_params to member access.
19810 (aarch64_macro_fusion_p): Likewise.
19811 (aarch_macro_fusion_pair_p): Likewise.
19812 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19813
19814 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19815
19816 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19817 (aarch64_tune_flags): Likewise.
19818 (AARCH64_TUNE_FMA_STEERING): Likewise.
19819 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19820 to AARCH64_FL_USE_FMA_STEERING_PASS.
19821 (cortex-a57.cortex-a53): Likewise.
19822 (cortex-a72): Use cortexa72_tunings.
19823 (cortex-a72.cortex-a53): Likewise.
19824 (exynos-m1): Likewise.
19825 * config/aarch64/aarch64-protos.h (tune_params): Add
19826 a field: extra_tuning_flags.
19827 * config/aarch64/aarch64-tuning-flags.def: New.
19828 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19829 (aarch64_extra_tuning_flags): Likewise.
19830 (aarch64_tune_params): Declare here.
19831 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19832 (cortexa53_tunings): Likewise.
19833 (cortexa57_tunings): Likewise.
19834 (thunderx_tunings): Likewise.
19835 (xgene1_tunings): Likewise.
19836 (cortexa72_tunings): New.
19837 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19838 (gate): Check against aarch64_tune_params.
19839 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19840 aarch64-protos.h.
19841
19842 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19843
19844 * config/aarch64/aarch64-fusion-pairs.def: New.
19845 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19846 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19847 aarch64_fusion_pairs.
19848 (AARCH64_FUSE_MOV_MOVK): Likewise.
19849 (AARCH64_FUSE_ADRP_ADD): Likewise.
19850 (AARCH64_FUSE_MOVK_MOVK): Likewise.
19851 (AARCH64_FUSE_ADRP_LDR): Likewise.
19852 (AARCH64_FUSE_CMP_BRANCH): Likewise.
19853
19854 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19855
19856 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19857 SYMBOL_SMALL_GOT_28K.
19858 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19859 relocation modifiers.
19860 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19861 (ldr_got_small_28k_<mode>): New.
19862 (ldr_got_small_28k_sidi): New.
19863 * config/aarch64/iterators.md (got_modifier): New mode iterator.
19864 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19865 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19866 SYMBOL_SMALL_GOT_28K.
19867 (aarch64_rtx_costs): Add costs for new instruction sequences.
19868 (initialize_aarch64_code_model): Initialize new model.
19869 (aarch64_classify_symbol): Recognize new model and new symbol classification.
19870 (aarch64_asm_preferred_eh_data_format): Support new model.
19871 (aarch64_load_symref_appropriately): Generate new instruction
19872 sequences for -fpic.
19873 (TARGET_USE_PSEUDO_PIC_REG): New definition.
19874 (aarch64_use_pseudo_pic_reg): New function.
19875
19876 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19877
19878 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19879 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19880 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19881 (aarch64_expand_mov_immediate): Ditto.
19882 (aarch64_print_operand): Ditto.
19883 (aarch64_classify_symbol): Ditto.
19884
19885 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
19886
19887 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19888
19889 2015-06-26 Bin Cheng <bin.cheng@arm.com>
19890
19891 PR bootstrap/66638
19892 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19893 assertion failed. Remove assertion itself.
19894
19895 2015-06-26 Richard Biener <rguenther@suse.de>
19896
19897 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19898 and -A CMP CST -> A CMP -CST which is redundant with a pattern
19899 in match.pd.
19900 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19901 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19902 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19903 * match.pd: ... patterns here.
19904
19905 2015-06-26 Marek Polacek <polacek@redhat.com>
19906
19907 * match.pd ((x | y) & ~(x & y) -> x ^ y,
19908 (x | y) & (~x ^ y) -> x & y): New patterns.
19909
19910 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19911
19912 * rtl.h (emit): Add an optional boolean parameter to control
19913 whether barriers are emitted.
19914 * emit-rtl.c (emit): Likewise.
19915 * gensupport.c (get_emit_function): Return null rather than "emit".
19916 * genemit.c (gen_emit_seq): Handle the null return value.
19917 Don't emit barriers after the final instruction in the sequence.
19918 * gentarget-def.c (main): Don't emit barriers after the instruction.
19919
19920 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19921
19922 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19923 TARGET_UNIFIED_ASM.
19924
19925 2015-06-26 Richard Biener <rguenther@suse.de>
19926
19927 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19928
19929 2015-06-26 Richard Biener <rguenther@suse.de>
19930
19931 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19932 irrespective on whether the inner operation has a single use
19933 of both off are constant.
19934
19935 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
19936 Segher Boessenkool <segher@kernel.crashing.org>
19937
19938 PR target/66412
19939 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19940 before doing PUT_MODE or PUT_CODE on operands to avoid
19941 in-place RTX modification.
19942
19943 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19944
19945 * gentarget-def.c (def_target_insn): Cast return of strtol to
19946 unsigned int.
19947
19948 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19949
19950 * gimple.h (gimple_call_set_fn): Move inline function.
19951 * gimple.c (gimple_call_set_fn): Relocate here.
19952
19953 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
19954
19955 PR target/65979
19956 PR target/66611
19957 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19958 the replacement insn will work.
19959
19960 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19961
19962 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19963 by default.
19964
19965 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19966
19967 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19968 * cgraph.h: Include ipa-ref.h and plugin-api.h.
19969 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19970 (symtab_node::address_can_be_compared_p): Move function.
19971 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19972 definition here.
19973 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19974 * auto-profile.c: Likewise.
19975 * bb-reorder.c: Likewise.
19976 * builtins.c: Likewise.
19977 * calls.c: Likewise.
19978 * cfgexpand.c: Likewise.
19979 * cgraphbuild.c: Likewise.
19980 * cgraphclones.c: Likewise.
19981 * cgraphunit.c: Likewise.
19982 * combine.c: Likewise.
19983 * coverage.c: Likewise.
19984 * data-streamer-in.c: Likewise.
19985 * data-streamer-out.c: Likewise.
19986 * data-streamer.c: Likewise.
19987 * dbxout.c: Likewise.
19988 * dwarf2out.c: Likewise.
19989 * except.c: Likewise.
19990 * expr.c: Likewise.
19991 * final.c: Likewise.
19992 * fold-const.c: Likewise.
19993 * ggc-page.c: Likewise.
19994 * gimple-fold.c: Likewise.
19995 * gimple-iterator.c: Likewise.
19996 * gimple-pretty-print.c: Likewise.
19997 * gimple-streamer-in.c: Likewise.
19998 * gimple-streamer-out.c: Likewise.
19999 * gimple.c: Likewise.
20000 * gimplify.c: Likewise.
20001 * ipa-chkp.c: Likewise.
20002 * ipa-comdats.c: Likewise.
20003 * ipa-cp.c: Likewise.
20004 * ipa-devirt.c: Likewise.
20005 * ipa-icf-gimple.c: Likewise.
20006 * ipa-icf.c: Likewise.
20007 * ipa-inline-analysis.c: Likewise.
20008 * ipa-inline-transform.c: Likewise.
20009 * ipa-inline.c: Likewise.
20010 * ipa-polymorphic-call.c: Likewise.
20011 * ipa-profile.c: Likewise.
20012 * ipa-prop.c: Likewise.
20013 * ipa-pure-const.c: Likewise.
20014 * ipa-ref.c: Likewise.
20015 * ipa-reference.c: Likewise.
20016 * ipa-split.c: Likewise.
20017 * ipa-utils.c: Likewise.
20018 * ipa-visibility.c: Likewise.
20019 * ipa.c: Likewise.
20020 * langhooks.c: Likewise.
20021 * lto-cgraph.c: Likewise.
20022 * lto-compress.c: Likewise.
20023 * lto-opts.c: Likewise.
20024 * lto-section-in.c: Likewise.
20025 * lto-section-out.c: Likewise.
20026 * lto-streamer-in.c: Likewise.
20027 * lto-streamer-out.c: Likewise.
20028 * lto-streamer.c: Likewise.
20029 * omp-low.c: Likewise.
20030 * opts-global.c: Likewise.
20031 * passes.c: Likewise.
20032 * predict.c: Likewise.
20033 * print-tree.c: Likewise.
20034 * profile.c: Likewise.
20035 * ree.c: Likewise.
20036 * sanopt.c: Likewise.
20037 * stor-layout.c: Likewise.
20038 * symtab.c: Likewise.
20039 * toplev.c: Likewise.
20040 * trans-mem.c: Likewise.
20041 * tree-cfg.c: Likewise.
20042 * tree-chkp.c: Likewise.
20043 * tree-eh.c: Likewise.
20044 * tree-emutls.c: Likewise.
20045 * tree-inline.c: Likewise.
20046 * tree-nested.c: Likewise.
20047 * tree-parloops.c: Likewise.
20048 * tree-pretty-print.c: Likewise.
20049 * tree-profile.c: Likewise.
20050 * tree-sra.c: Likewise.
20051 * tree-ssa-alias.c: Likewise.
20052 * tree-ssa-live.c: Likewise.
20053 * tree-ssa-loop-ivcanon.c: Likewise.
20054 * tree-ssa-loop-ivopts.c: Likewise.
20055 * tree-ssa-pre.c: Likewise.
20056 * tree-ssa-sccvn.c: Likewise.
20057 * tree-ssa-strlen.c: Likewise.
20058 * tree-ssa-structalias.c: Likewise.
20059 * tree-streamer-in.c: Likewise.
20060 * tree-streamer-out.c: Likewise.
20061 * tree-streamer.c: Likewise.
20062 * tree-switch-conversion.c: Likewise.
20063 * tree-tailcall.c: Likewise.
20064 * tree-vect-data-refs.c: Likewise.
20065 * tree-vect-stmts.c: Likewise.
20066 * tree-vectorizer.c: Likewise.
20067 * tree.c: Likewise.
20068 * tsan.c: Likewise.
20069 * ubsan.c: Likewise.
20070 * value-prof.c: Likewise.
20071 * varasm.c: Likewise.
20072 * varpool.c: Likewise.
20073 * config/arm/arm.c: Likewise.
20074 * config/bfin/bfin.c: Likewise.
20075 * config/c6x/c6x.c: Likewise.
20076 * config/cris/cris.c: Likewise.
20077 * config/darwin-c.c: Likewise.
20078 * config/darwin.c: Likewise.
20079 * config/i386/i386.c: Likewise.
20080 * config/i386/winnt.c: Likewise.
20081 * config/microblaze/microblaze.c: Likewise.
20082 * config/mips/mips.c: Likewise.
20083 * config/rs6000/rs6000.c: Likewise.
20084 * config/rx/rx.c: Likewise.
20085 * config/s390/s390.c: Likewise.
20086 * config/tilegx/mul-tables.c: Likewise.
20087
20088 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20089
20090 * config/aarch64/aarch64.c, config/alpha/alpha.c,
20091 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20092 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20093 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20094 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20095 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20096 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20097 config/microblaze/microblaze.c, config/mips/mips.c,
20098 config/mmix/mmix.c, config/mn10300/mn10300.c,
20099 config/moxie/moxie.c, config/msp430/msp430.c,
20100 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20101 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20102 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20103 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20104 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20105 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20106 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20107 target-def.h include.
20108 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
20109
20110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20111
20112 * Makefile.in (TARGET_DEF): Add target-insns.def.
20113 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20114 (build/gentarget-def.o): New rule.
20115 (genprogrtl): Add target-def.
20116 * target-insns.def, gentarget-def.c: New files.
20117 * target.def: Add targetm.have_* and targetm.gen_* hooks,
20118 based on the contents of target-insns.def.
20119 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20120 (HAVE_return, gen_return): Delete.
20121 * target-def.h: Include insn-target-def.h.
20122 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20123 instead of direct calls. Rely on them to do the appropriate assertions.
20124 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
20125 (convert_jumps_to_returns): Use targetm interface instead of
20126 direct calls.
20127 (thread_prologue_and_epilogue_insns): Likewise.
20128 * reorg.c (find_end_label, dbr_schedule): Likewise.
20129 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20130 * shrink-wrap.c (convert_to_simple_return): Likewise.
20131 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20132
20133 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20134
20135 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20136 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20137 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20138 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20139 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20140 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20141 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20142 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20143 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20144 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20145 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20146 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20147 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20148 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20149 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20150 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20151 includes to end.
20152
20153 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20154
20155 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20156 (unbounded_int_hashmap_traits::key_type): Likewise.
20157 * hash-map.h (hash_map): Get the key type from the traits.
20158 * hash-traits.h (default_hash_traits): By default, inherit from the
20159 template parameter.
20160 * alias.c (alias_set_traits): Delete.
20161 (alias_set_entry_d::children): Use alias_set_hash as the first
20162 template parameter.
20163 (record_alias_subset): Update accordingly.
20164 * except.c (tree_hash_traits): Delete.
20165 (type_to_runtime_map): Use tree_hash as the first template parameter.
20166 (init_eh): Update accordingly.
20167 * genmatch.c (capture_id_map_hasher): Delete.
20168 (cid_map_t): Use nofree_string_hash as first template parameter.
20169 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20170 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20171 Use symbol_compare_hash as the first template parameter in
20172 subdivide_hash_map.
20173 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20174 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20175 template parameter.
20176 * passes.c (pass_registry_hasher): Delete.
20177 (name_to_pass_map): Use nofree_string_hash as the first template
20178 parameter.
20179 (register_pass_name): Update accordingly.
20180 * sanopt.c (sanopt_tree_map_traits): Delete.
20181 (sanopt_tree_triplet_map_traits): Delete.
20182 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20183 template parameter.
20184 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20185 the first template parameter.
20186 * sese.c (rename_map_hasher): Delete.
20187 (rename_map_type): Use tree_ssa_name_hash as the first template
20188 parameter.
20189 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20190 (function_summary::m_map): Use map_hash as the first template
20191 parameter.
20192 (function_summary::release): Update accordingly.
20193 * tree-if-conv.c (phi_args_hash_traits): Delete.
20194 (predicate_scalar_phi): Use tree_operand_hash as the first template
20195 parameter to phi_arg_map.
20196 * tree-inline.h (dependence_hasher): Delete.
20197 (copy_body_data::dependence_map): Use dependence_hash as the first
20198 template parameter.
20199 * tree-inline.c (remap_dependence_clique): Update accordingly.
20200 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20201 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20202 parameter.
20203 (addr_stridxptr): Update accordingly.
20204 * value-prof.c (profile_id_traits): Delete.
20205 (cgraph_node_map): Use profile_id_hash as the first template
20206 parameter.
20207 (init_node_map): Update accordingly.
20208 * config/alpha/alpha.c (string_traits): Delete.
20209 (machine_function::links): Use nofree_string_hash as the first
20210 template parameter.
20211 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20212 * config/m32c/m32c.c (pragma_traits): Delete.
20213 (pragma_htab): Use nofree_string_hash as the first template parameter.
20214 (m32c_note_pragma_address): Update accordingly.
20215 * config/mep/mep.c (pragma_traits): Delete.
20216 (pragma_htab): Use nofree_string_hash as the first template parameter.
20217 (mep_note_pragma_flag): Update accordingly.
20218 * config/mips/mips.c (mips16_flip_traits): Delete.
20219 (mflip_mips16_htab): Use nofree_string_hash as the first template
20220 parameter.
20221 (mflip_mips16_use_mips16_p): Update accordingly.
20222 (local_alias_traits): Delete.
20223 (mips16_local_aliases): Use nofree_string_hash as the first template
20224 parameter.
20225 (mips16_local_alias): Update accordingly.
20226
20227 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20228
20229 * hash-map-traits.h (default_hashmap_traits): Delete.
20230
20231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20232
20233 * hash-map-traits.h (unbounded_hashmap_traits): New class.
20234 (unbounded_int_hashmap_traits): Likewise.
20235 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20236
20237 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20238
20239 * ipa-icf.h (symbol_compare_hash): New class.
20240 (symbol_compare_hashmap_traits): Use it.
20241 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20242 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20243 (mem_alloc_description::reverse_mem_map_t): Remove redundant
20244 default_hashmap_traits.
20245 * sanopt.c (sanopt_tree_triplet_hash): New class.
20246 (sanopt_tree_triplet_map_traits): Use it.
20247
20248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20249
20250 * gengtype-parse.c (require_template_declaration): Allow '+' in
20251 template parameters. Consolidate cases.
20252 * hash-traits.h (int_hash): New class.
20253 * alias.c (alias_set_hash): New structure.
20254 (alias_set_traits): Use it.
20255 * symbol-summary.h (function_summary::map_hash): New class.
20256 (function_summary::summary_hashmap_traits): Use it.
20257 * tree-inline.h (dependence_hash): New class.
20258 (dependence_hasher): Use it.
20259 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20260 * value-prof.c (profile_id_hash): New class.
20261 (profile_id_traits): Use it.
20262
20263 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20264
20265 * config/mips/mips.c (mips16_flip_traits): Use it.
20266 (local_alias_traits, mips16_local_aliases): Convert from a map of
20267 rtxes to a map of symbol names.
20268 (mips16_local_alias): Update accordingly.
20269
20270 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20271
20272 * hash-traits.h (string_hash, nofree_string_hash): New classes.
20273 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20274 * passes.c (pass_registry_hasher): Likewise.
20275 * config/alpha/alpha.c (string_traits): Likewise.
20276 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20277 * config/m32c/m32c.c (pragma_traits): Likewise.
20278 * config/mep/mep.c (pragma_traits): Likewise.
20279
20280 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20281
20282 * tree-hash-traits.h (tree_hash): New class.
20283 * except.c: Include tree-hash-traits.h.
20284 (tree_hash_traits): Use tree_hash.
20285
20286 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20287
20288 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20289 * sese.c: Include tree-hash-traits.h.
20290 (rename_map_hasher): Use tree_ssa_name_hasher.
20291
20292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20293
20294 * tree-hash-traits.h (tree_decl_hash): New class.
20295 * tree-ssa-strlen.c: Include tree-hash-traits.h.
20296 (stridxlist_hash_traits): Use tree_decl_hash.
20297
20298 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20299
20300 * tree-hash-traits.h: New file.
20301 (tree_operand_hash): New class.
20302 * sanopt.c: Include tree-hash-traits.h.
20303 (sanopt_tree_map_traits): Use tree_operand_hash.
20304 * tree-if-conv.c: Include tree-hash-traits.h.
20305 (phi_args_hash_traits): Use tree_operand_hash.
20306 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20307 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20308
20309 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20310
20311 * hash-map-traits.h: Include hash-traits.h.
20312 (simple_hashmap_traits): New class.
20313 * mem-stats.h (hash_map): Change the default traits to
20314 simple_hashmap_traits<default_hash_traits<Key> >.
20315
20316 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20317
20318 * hash-table.h: Update comments.
20319
20320 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20321
20322 * hash-traits.h (default_hash_traits): New structure.
20323 * hash-set.h (default_hashset_traits): Delete.
20324 (hash_set): Use default_hash_traits<Key> instead of
20325 default_hashset_traits. Delete hash_entry type and use Key directly.
20326 * ipa-devirt.c (pair_traits): Delete.
20327 (default_hash_traits <type_pair>): Override.
20328 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20329 (odr_types_equivalent_p, add_type_duplicate): Likewise.
20330
20331 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20332
20333 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20334
20335 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20336
20337 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20338 (has_is_empty, is_empty_helper): Delete.
20339 (has_mark_deleted, mark_deleted_helper): Delete.
20340 (has_mark_empty, mark_empty_helper): Delete.
20341 (hash_table::is_deleted): Call the Descriptor unconditionally.
20342 (hash_table::is_empty): Likewise.
20343 (hash_table::mark_deleted): Likewise.
20344 (hash_table::mark_empty): Likewise.
20345
20346 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20347
20348 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
20349 redundant typedefs and members.
20350 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
20351 redundant typedefs.
20352 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20353 * ipa-devirt.c (odr_name_hasher): Likewise.
20354 (polymorphic_call_target_hasher): Likewise.
20355 * ira-costs.c (cost_classes_hasher): Likewise.
20356 * statistics.c (stats_counter_hasher): Likewise.
20357 * trans-mem.c (log_entry_hasher): Likewise.
20358 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20359 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20360 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20361 * var-tracking.c (variable_hasher): Likewise.
20362 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20363 Remove redundant typedefs and members.
20364
20365 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20366
20367 * hash-traits.h (ggc_cache_hasher): Rename to...
20368 (ggc_cache_remove): ...this and remove typedefs.
20369 (ggc_cache_ptr_hash): New class.
20370 * hash-table.h: Update commentary.
20371 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20372 rather than ggc_cache_hasher.
20373 (const_wide_int_hasher, reg_attr_hasher): Likewise.
20374 (const_double_hasher, const_fixed_hasher): Likewise.
20375 * function.c (insn_cache_hasher): Likewise.
20376 * trans-mem.c (tm_wrapper_hasher): Likewise.
20377 * tree.h (tree_decl_map_cache_hasher): Likewise.
20378 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20379 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20380 * ubsan.c (tree_type_map_cache_hasher): Likewise.
20381 * varasm.c (tm_clone_hasher): Likewise.
20382 * config/i386/i386.c (dllimport_hasher): Likewise.
20383 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20384 (tree_hasher): Likewise.
20385
20386 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20387
20388 * hash-traits.h (ggc_hasher): Rename to...
20389 (ggc_remover): ...this and remove typedefs.
20390 (ggc_cache_hasher): Update accordingly. Add typedefs.
20391 (ggc_ptr_hash): New class.
20392 * hash-table.h: Update comment.
20393 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20394 ggc_hasher.
20395 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20396 (tree_descriptor_hasher): Likewise.
20397 * cgraph.c (function_version_hasher): Likewise.
20398 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20399 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20400 (dw_loc_list_hasher, addr_hasher): Likewise.
20401 * function.h (used_type_hasher): Likewise.
20402 * function.c (temp_address_hasher): Likewise.
20403 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20404 * libfuncs.h (libfunc_hasher): Likewise.
20405 * lto-streamer.h (decl_state_hasher): Likewise.
20406 * optabs.c (libfunc_decl_hasher): Likewise.
20407 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20408 * varasm.c (section_hasher, object_block_hasher): Likewise.
20409 (const_rtx_desc_hasher): Likewise.
20410 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20411 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20412
20413 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20414
20415 * hash-traits.h (free_ptr_hash): New class.
20416 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20417 rather than typed_free_remove. Remove redudant typedefs.
20418 (external_ref_hasher): Likewise.
20419 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20420 (ehspec_hasher): Likewise.
20421 * ggc-common.c (saving_hasher): Likewise.
20422 * gimplify.c (gimplify_hasher): Likewise.
20423 * haifa-sched.c (delay_i2_hasher): Likewise.
20424 * loop-invariant.c (invariant_expr_hasher): Likewise.
20425 * loop-iv.c (biv_entry_hasher): Likewise.
20426 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20427 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20428 * tree-cfg.c (locus_discrim_hasher): Likewise.
20429 * tree-eh.c (finally_tree_hasher): Likewise.
20430 * tree-into-ssa.c (var_info_hasher): Likewise.
20431 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20432 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20433 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20434 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20435 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20436 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20437 (shared_bitmap_hasher): Likewise.
20438 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20439 * tree-vectorizer.h (peel_info_hasher): Likewise.
20440 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20441 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20442
20443 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20444
20445 * hash-table.h: Update comments.
20446 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20447 (nofree_ptr_hash): New class.
20448 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20449 than typed_noop_remove. Remove redudant typedefs.
20450 * attribs.c (attribute_hasher): Likewise.
20451 * cfg.c (bb_copy_hasher): Likewise.
20452 * cselib.c (cselib_hasher): Likewise.
20453 * dse.c (invariant_group_base_hasher): Likewise.
20454 * dwarf2cfi.c (trace_info_hasher): Likewise.
20455 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20456 (comdat_type_hasher, loc_list_hasher): Likewise.
20457 * gcse.c (pre_ldst_expr_hasher): Likewise.
20458 * genmatch.c (id_base): Likewise.
20459 * genrecog.c (test_pattern_hasher): Likewise.
20460 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20461 * haifa-sched.c (delay_i1_hasher): Likewise.
20462 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20463 * ipa-icf.h (congruence_class_group_hash): Likewise.
20464 * ipa-profile.c (histogram_hash): Likewise.
20465 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20466 * lto-streamer.h (string_slot_hasher): Likewise.
20467 * lto-streamer.c (tree_entry_hasher): Likewise.
20468 * plugin.c (event_hasher): Likewise.
20469 * postreload-gcse.c (expr_hasher): Likewise.
20470 * store-motion.c (st_expr_hasher): Likewise.
20471 * tree-sra.c (uid_decl_hasher): Likewise.
20472 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20473 (ssa_name_var_hash): Likewise.
20474 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20475 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20476 * tree-ssa-pre.c (pre_expr_d): Likewise.
20477 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20478 * vtable-verify.h (registration_hasher): Likewise.
20479 * vtable-verify.c (vtbl_map_hasher): Likewise.
20480 * config/arm/arm.c (libcall_hasher): Likewise.
20481 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20482 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20483 * config/sol2.c (comdat_entry_hasher): Likewise.
20484 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20485 (print_fold_checksum, fold_checksum_tree): Likewise.
20486 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20487 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20488 (fold_build_call_array_loc): Likewise.
20489 * tree-ssa-ccp.c (gimple_htab): Likewise.
20490 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20491 rather than pointer_type.
20492
20493 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20494
20495 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20496 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20497
20498 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20499
20500 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20501 (ggc_hasher::ggc_mx): Likewise.
20502 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20503 that duplicate ggc_hasher ones.
20504
20505 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20506
20507 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20508 (gt_cleare_cache): Check here for deleted and empty entries.
20509 Replace handle_cache_entry with a call to keep_cache_entry.
20510 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20511 (ggc_cache_hasher::keep_cache_entry): New function.
20512 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20513 (tm_wrapper_hasher::keep_cache_entry): New function.
20514 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20515 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20516 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20517 (type_cache_hasher::keep_cache_entry): New function.
20518 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20519 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20520 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20521 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20522 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20523 (tm_clone_hasher::keep_cache_entry): New function.
20524 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20525 (dllimport_hasher::keep_cache_entry): New function.
20526
20527 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20528
20529 * hash-table.h: Include hash-traits.h.
20530 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20531 (ggc_cache_hasher): Move to...
20532 * hash-traits.h: ...this new file.
20533
20534 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20535
20536 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20537 struct cl_optimization.
20538 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20539 * tree.c (make_node_stat): Allocate cl_optimization struct.
20540 (copy_node_stat): Allocate and copy cl_optimization struct.
20541
20542 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20543
20544 * function.h (struct incoming_args): Move struct.
20545 (pass_by_reference, reference_callee_copied): Remove prototypes.
20546 * emit-rtl.h (struct incoming_args): Relocate struct here.
20547 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20548 prototypes here.
20549 * function.c (pass_by_reference, reference_callee_copied): Move.
20550 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20551 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20552 * ipa-chkp.c: Include calls.h.
20553
20554 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20555
20556 * alias.h (alias_set_type): Move typedef.
20557 * coretypes.h (alias_set_type): Relocate typedef here.
20558 * rtl.h: Don't include alias.h.
20559
20560 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20561
20562 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20563 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20564 and instance.
20565 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20566 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20567 doesn't exist.
20568 * calls.c: Include hard-reg-set.h before rtl.h.
20569 * ira.c: Likewise.
20570
20571 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20572 Vladimir Makarov <vmakarov@redhat.com>
20573
20574 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20575 Add assert.
20576
20577 2015-06-25 Richard Biener <rguenther@suse.de>
20578
20579 * fold-const.c (fold_binary_loc): Move simplification of
20580 (X <<>> C1) & C2 ...
20581 * match.pd: ... here.
20582
20583 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20584
20585 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20586
20587 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20588
20589 * match.pd: Add patterns for vec_conds between 1 and 0.
20590
20591 2015-06-25 Richard Biener <rguenther@suse.de>
20592
20593 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20594 STMT_VINFO_VEC_STMT for SLP.
20595 (vectorizable_store): Likewise.
20596 (vectorizable_load): Likewise.
20597 (vect_transform_stmt): Catch SLP vectorization clobbering
20598 STMT_VINFO_VEC_STMT.
20599
20600 2015-06-25 Richard Biener <rguenther@suse.de>
20601
20602 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20603 dumping.
20604 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20605 cleanup resulting dead code and parameters.
20606 (vect_transform_slp_perm_load): Adjust.
20607
20608 2015-06-25 Nick Clifton <nickc@redhat.com>
20609
20610 * config/bfin/bfin.c (bfin_expand_prologue): Set
20611 current_function_static_stack_size if flag_stack_usage_info is set.
20612 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20613 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20614 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20615 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20616
20617 2015-06-25 Tom de Vries <tom@codesourcery.com>
20618
20619 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20620 comment that the generated IV is unsigned.
20621
20622 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20623
20624 PR target/29693
20625 * config/arm/arm.c (arm_dbx_register_number): Return
20626 DWARF_FRAME_REGISTERS by default.
20627
20628 2015-06-25 Tom de Vries <tom@codesourcery.com>
20629
20630 * dominance.c (calculate_dominance_info): Fix verify_dominators call
20631 argument. Call verify_dominator when reusing dominator info.
20632
20633 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
20634
20635 PR target/66563
20636 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20637 an additional element of the unspec vector. Modify indices
20638 of operands.
20639 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20640 * config/sh/sh.c (prepare_move_operands): Pass incremented
20641 const_int to gen_GOTaddr2picreg.
20642 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20643
20644 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20645
20646 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20647 Condition on TARGET_FLOAT.
20648
20649 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20650
20651 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20652 and (no)crypto.
20653
20654 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20655
20656 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20657
20658 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20659 aarch64_err_no_fpadvsimd.
20660
20661 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20662 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20663 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20664 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20665 Turn error into assert, test TARGET_FLOAT.
20666 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20667 TARGET_FLOAT.
20668
20669 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
20670
20671 PR debug/66482
20672 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20673
20674 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20675
20676 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20677
20678 2015-06-24 Renlin Li <renlin.li@arm.com>
20679
20680 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20681 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20682
20683 2015-06-24 Richard Biener <rguenther@suse.de>
20684
20685 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20686 (main): Likewise.
20687 (lower_opt_convert): Support lowering of conditional view_convert.
20688 (parser::parse_operation): Likewise.
20689 (parser::parse_for): Likewise.
20690
20691 2015-06-24 Renlin Li <renlin.li@arm.com>
20692
20693 * varasm.c (emit_local): Use unsigned int for align variable.
20694
20695 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20696
20697 PR target/63408
20698 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20699 for negative numbers.
20700
20701 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20702
20703 PR rtl-optimization/66306
20704 * reload.c (find_reloads): Swap the match_dup info for
20705 commutative operands.
20706
20707 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20708
20709 * config/s390/vx-builtins.md
20710 ("vec_scatter_element<mode>_<non_vec_int>")
20711 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20712 attribute with bhfgq.
20713
20714 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20715
20716 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20717
20718 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20719
20720 * config/s390/s390-builtin-types.def: Add flag to indicate the
20721 options under which the function type is needed.
20722 * config/s390/s390-builtins.def: Add flag to indicate the options
20723 under which the builtin is enabled.
20724 * config/s390/s390-builtins.h: Add flags parameter to macro
20725 definitions.
20726 (bflags_for_builtin): New function.
20727 (flags_for_builtin): Renamed to ...
20728 (opflags_for_builtin): ... this.
20729 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20730 flags_for_builtin to bflags_for_builtin and
20731 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20732 * config/s390/s390.c: Add initialization of bflags_builtin and
20733 opflags_builtin arrays.
20734 Remove code for flags_builtin.
20735 (s390_init_builtins): Only create builtin function types if one of
20736 their flags is active.
20737 Only create builtins if all of their flags are active.
20738 (s390_expand_builtin): Rename flags_for_builtin to
20739 opflags_for_builtin.
20740
20741 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20742
20743 * config/s390/vecintrin.h: Remove internal builtins.
20744
20745 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20746
20747 * config/s390/s390.c (s390_secondary_reload): Fix check for
20748 GENERAL_REGS register class.
20749
20750 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20751
20752 * config/s390/s390.c (s390_support_vector_misalignment): Call
20753 default implementation for !TARGET_VX.
20754
20755 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20756
20757 * config/s390/s390.c (s390_legitimate_constant_p): Add
20758 TARGET_VX check.
20759
20760 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20761
20762 * config/s390/s390.c (s390_vector_abi): New variable definition.
20763 (s390_check_type_for_vector_abi): New function.
20764 (TARGET_ASM_FILE_END): New macro definition.
20765 (s390_asm_file_end): New function.
20766 (s390_function_arg): Call s390_check_type_for_vector_abi.
20767 (s390_gimplify_va_arg): Likewise.
20768 * configure: Regenerate.
20769 * configure.ac: Check for .gnu_attribute Binutils feature.
20770
20771 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
20772
20773 PR target/65803
20774 * config/bfin/bfin.c (hwloop_optimize): Initialize
20775 JUMP_LABEL for newly created jump.
20776
20777 2015-06-23 Tristan Gingold <gingold@adacore.com>
20778
20779 * collect-utils.c (collect_wait): Unlink the response file here
20780 instead of...
20781 (do_wait): ...here.
20782 (utils_cleanup): ...and here.
20783
20784 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
20785
20786 * df-scan.c: Don't include target-def.h.
20787 * targhooks.c: Likewise.
20788 * config/arm/arm-c.c: Likewise.
20789 * config/i386/i386-c.c: Likewise.
20790 * config/nds32/nds32-cost.c: Likewise.
20791 * config/nds32/nds32-fp-as-gp.c: Likewise.
20792 * config/nds32/nds32-intrinsic.c: Likewise.
20793 * config/nds32/nds32-isr.c: Likewise.
20794 * config/nds32/nds32-md-auxiliary.c: Likewise.
20795 * config/nds32/nds32-memory-manipulation.c: Likewise.
20796 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20797 * config/nds32/nds32-predicates.c: Likewise.
20798
20799 2015-06-23 Richard Biener <rguenther@suse.de>
20800
20801 PR tree-optimization/66636
20802 * tree-vect-stmts.c (vectorizable_store): Properly compute the
20803 def type for further defs for strided stores.
20804
20805 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
20806
20807 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20808 conditional selects.
20809 (setcc_int<mode>, setcc_float<mode>): Reformat.
20810
20811 2015-06-23 Marek Polacek <polacek@redhat.com>
20812
20813 * match.pd ((x + y) - (x | y) -> x & y,
20814 (x + y) - (x & y) -> x | y): New patterns.
20815
20816 2015-06-23 Ludovic Courtès <ludo@gnu.org>
20817
20818 PR 65711
20819 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20820 '-dynamic-linker' within %{!shared: ...}.
20821
20822 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
20823
20824 PR target/66560
20825 * config/i386/predicates.md (addsub_vm_operator): New predicate.
20826 (addsub_vs_operator): Ditto.
20827 (addsub_vs_parallel): Ditto.
20828 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20829 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20830 Put minus RTX before plus and adjust vec_merge selector.
20831 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20832 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20833 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20834 (addsub vec_merge splitters): New combiner splitters.
20835 (addsub vec_select/vec_concat splitters): Ditto.
20836
20837 2015-06-23 Bin Cheng <bin.cheng@arm.com>
20838
20839 PR tree-optimization/66449
20840 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20841 POINTER_PLUS_EXPR for pointers.
20842
20843 2015-06-23 Alan Modra <amodra@gmail.com>
20844
20845 * rtlanal.c (commutative_operand_precedence): Correct comments.
20846 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20847 declaration. Return an int. Distinguish REG,REG return from
20848 others.
20849 (struct simplify_plus_minus_op_data): Make local to function.
20850 (simplify_plus_minus): Don't set canonicalized if merely sorting
20851 registers. Avoid packing ops if nothing changes. White space fixes.
20852
20853 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
20854
20855 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20856 -fdump-ada-spec is passed but not if -fsyntax-only is.
20857
20858 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
20859
20860 PR bootstrap/63740
20861 * lra-lives.c (process_bb_lives): Check insn copying the same
20862 reload pseudo and don't create a copy for it.
20863
20864 2015-06-22 Tom de Vries <tom@codesourcery.com>
20865
20866 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20867 for cond_stmt.
20868
20869 2015-06-22 Tom de Vries <tom@codesourcery.com>
20870
20871 * builtins.def (DEF_GOMP_BUILTIN): Test
20872 'flag_tree_parallelize_loops > 1' instead of
20873 'flag_tree_parallelize_loops'. Test flag_cilkplus.
20874
20875 2015-06-22 Tom de Vries <tom@codesourcery.com>
20876
20877 * dominance.c (calculate_dominance_info): Verify dominators if
20878 early-out.
20879
20880 2015-06-22 Marek Polacek <polacek@redhat.com>
20881
20882 * match.pd ((x ^ y) ^ (x | y) -> x & y,
20883 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20884 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20885 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20886
20887 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
20888
20889 PR target/65871
20890 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20891 cost of embedded comparison.
20892
20893 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20894
20895 PR target/65914
20896 * config/rs6000/predicates.md (altivec_register_operand): Permit
20897 virtual stack registers.
20898 (vsx_register_operand): Likewise.
20899 (vfloat_operand): Likewise.
20900 (vint_operand): Likewise.
20901 (vlogical_operand): Likewise.
20902
20903 2015-06-22 Richard Biener <rguenther@suse.de>
20904
20905 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20906 and single_scalar_iteration_cost members.
20907 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20908 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20909 (vect_get_single_scalar_iteration_cost): Remove.
20910 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20911 Use LOOP_VINFO_SCALAR_ITERATION_COST.
20912 * tree-vect-loop.c (destroy_loop_vec_info): Free
20913 scalar_cost_vec.
20914 (vect_get_single_scalar_iteration_cost): Compute result into
20915 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20916 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
20917 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20918 (vect_estimate_min_profitable_iters): Use them.
20919
20920 2015-06-22 Christian Bruel <christian.bruel@st.com>
20921
20922 PR target/52144
20923 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20924 (TARGET_INSERT_ATTRIBUTES): Define.
20925 (thumb_flipper): New var.
20926 * config/arm/arm.opt (-mflip-thumb): New switch.
20927
20928 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20929 Martin Liska <mliska@suse.cz>
20930
20931 PR ipa/65908
20932 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20933 construction of arg_types.
20934 (sem_function::sem_function): Likewise.
20935 (sem_function::~sem_function): Remove destruction of arg_types.
20936 (sem_function::compatible_parm_types_p): New function.
20937 (sem_function::equals_wpa): Reorg matching of return values
20938 and parameter types.
20939 (sem_function::equals_private): Reorg mathcing of argument types.
20940 (sem_function::parse_tree_args): Remove.
20941 * ipa-icf.h (init_wpa): Do not call it.
20942 (parse_tree_args): Remove.
20943 (compatible_parm_types_p): Declare.
20944 (result_type): Remove.
20945 (arg_types): Remove.
20946
20947 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20948
20949 PR ipa/66351
20950 * ipa-polymorphic-call.c
20951 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20952 initializing alias oracle; fix formating; set base_alias_set if it
20953 is known.
20954
20955 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
20956
20957 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20958 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20959 (find_inc): Likewise.
20960 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20961 swapping.
20962 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20963 * df-scan.c (df_swap_refs): Remove.
20964 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20965 * dominance.c (link_roots): Use std::swap instead of manually swapping.
20966 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20967 * fold-const.c (fold_relational_const): Likewise.
20968 * genattrtab.c (simplify_test_exp): Likewise.
20969 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20970 gimple_simplify): Likewise.
20971 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20972 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20973 * ipa-devirt.c (add_type_duplicate): Likewise.
20974 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20975 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20976 * lra.c (lra_create_copy): Likewise.
20977 * lto-streamer-out.c (DFS::DFS): Likewise.
20978 * modulo-sched.c (get_sched_window): Likewise.
20979 * omega.c (omega_pretty_print_problem): Likewise.
20980 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20981 * reload1.c (reloads_unique_chain_p): Likewise.
20982 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20983 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20984 use std::swap.
20985 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20986 manually swapping.
20987 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20988 predicate_mem_writes): Likewise.
20989 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20990 * tree-predcom.c (combine_chains): Likewise.
20991 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20992 refs_may_alias_p_1): Likewise.
20993 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20994 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20995 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20996 number_of_iterations_cond): Likewise.
20997 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20998 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20999 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21000 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21001 * tree-vrp.c (extract_range_from_binary_expr_1,
21002 extract_range_from_unary_expr_1): Likewise.
21003
21004 2015-06-20 Marek Polacek <polacek@redhat.com>
21005
21006 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21007
21008 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
21009
21010 PR target/66591
21011 * config/sh/sh.c (prepare_move_operands): Replace subreg
21012 index term with R0 for base and index addressing.
21013
21014 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
21015
21016 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21017 op1 is an fp zero.
21018 (movsf_aarch64): Change condition from register_operand to
21019 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
21020 load1. Change type for alternative 7 to store1.
21021 (movdf_aarch64): Likewise.
21022
21023 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
21024
21025 * config/vax/vax.md: Adjust sign/zero extend patterns to
21026 handle SUBREGs in operands[1].
21027
21028 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21029
21030 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21031 of manually swapping.
21032 (expand_vec_perm_interleave2): Likewise.
21033
21034 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
21035
21036 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21037 reuse bounds created for abnormal ssa names.
21038
21039 2015-06-19 Jakub Jelinek <jakub@redhat.com>
21040
21041 * config/nvptx/nvptx.md (allocate_stack): Rename to...
21042 (allocate_stack_<mode>): ... this, and add :P on both
21043 match_operand and unspec.
21044 (allocate_stack): New expander.
21045
21046 2015-06-19 Christian Bruel <christian.bruel@st.com>
21047
21048 PR target/66541
21049 PR target/52144
21050 * config/arm/arm.c (arm_set_current_function): Handle
21051 explicit default options.
21052
21053 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21054
21055 * config/i386/i386.md (*movsicc_noc_zext): New insn.
21056 (zero-extended cmove with mem peephole2): New pattern.
21057 (cmove with mem peephole2): Merge patterns.
21058
21059 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21060
21061 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21062
21063 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
21064
21065 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21066 * config/mips/mips.md (*madd4<mode>): Ditto.
21067 (*nmadd3<mode>) Ditto.
21068 (*nmadd4<mode>_fastmath): Ditto.
21069 (*nmadd3<mode>_fastmath): Ditto.
21070 (*nmsub4<mode>): Ditto.
21071 (*nmsub3<mode>): Ditto.
21072 (*nmsub4<mode>_fastmath): Ditto.
21073 (*nmsub3<mode>_fastmath): Ditto.
21074
21075 2015-06-18 Michael Matz <matz@suse.de>
21076
21077 PR middle-end/66253
21078 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21079 grouped strided stores.
21080 (vectorizable_load): Don't use the DR from first_stmt in
21081 the non-SLP grouped strided case.
21082
21083 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21084
21085 PR target/66569
21086 * function.c (assign_bounds): Add arguments assign_regs,
21087 assign_special, assign_bt.
21088 (assign_parms): For vararg functions handle bounds in BT
21089 and special slots after incoming vararg bounds.
21090
21091 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21092
21093 PR middle-end/66568
21094 * cfgexpand.c (expand_return): Handle missing bounds.
21095 (expand_gimple_stmt_1): Likewise.
21096 * tree-chkp.c (chkp_expand_zero_bounds): New.
21097 * tree-chkp.h (chkp_expand_zero_bounds): New.
21098
21099 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21100
21101 PR middle-end/66567
21102 * ipa-chkp.c (chkp_maybe_create_clone): Require
21103 functions to be instrumentable.
21104 * tree-chkp.c (chkp_replace_function_pointer): Use
21105 chkp_instrumentable_p instead of attribute check.
21106
21107 2015-06-18 Richard Biener <rguenther@suse.de>
21108
21109 PR tree-optimization/66510
21110 * tree-vect-stmts.c (vectorizable_load): Properly compute the
21111 number of vector loads for SLP permuted loads.
21112 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21113 check the stride for loop vectorization.
21114 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21115 vectorization factor.
21116 (vect_analyze_group_access): If the group size is not a power
21117 of two require a epilogue loop.
21118 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21119 compute and optimizing and alias test pruning after final
21120 vectorization factor computation.
21121 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21122 vector alignment.
21123 (vect_transform_slp_perm_load): Properly compute the original
21124 number of vector load stmts.
21125
21126 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21127
21128 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21129 "unlikely character , in @var" warning.
21130
21131 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
21132
21133 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21134 (ix86_function_arg_advance): Ditto.
21135 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
21136
21137 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21138
21139 * function.h (struct rtl_data): Remove struct and accessor macros.
21140 * emit-rtl.h (struct rtl_data): Relocate to here.
21141 * Makefile.in (GTFILES): Add emit-rtl.h.
21142 * df-core.c: Include emit-rtl.h.
21143 * genattrtab.c: Likewise.
21144 * genconditions.c: Likewise.
21145 * genpreds.c: Likewise.
21146 * genrecog.c: Likewise.
21147 * regcprop.c: Likewise.
21148 * resource.c: Likewise.
21149 * sched-rgn.c: Likewise.
21150 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21151 * config/i386/winnt.c: Likewise.
21152
21153 2015-06-17 Jakub Jelinek <jakub@redhat.com>
21154
21155 PR middle-end/66429
21156 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21157 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
21158 and has_force_vectorize_loops flags from cfun into
21159 child_cfun.
21160 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21161 if simduid is non-NULL.
21162 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21163 * passes.def (pass_simduid_cleanup): Add new pass after loop
21164 passes.
21165 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21166 indirection from htab argument's type.
21167 (shrink_simd_arrays): New function.
21168 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
21169 Don't call adjust_simduid_builtins if there are no loops.
21170 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21171 (pass_simduid_cleanup::execute): New method.
21172 (make_pass_simduid_cleanup): New function.
21173
21174 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
21175
21176 * tree-core.h (tree_target_option): Make opts field a pointer to a
21177 cl_target_option instead of an instance of the struct.
21178 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21179 the structure.
21180 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21181 TARGET_OPTION_NODE.
21182 (copy_node_stat): Allocate and copy struct cl_target_option.
21183
21184 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21185
21186 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21187 Remove conditional exposure of prototypes.
21188 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21189 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
21190 definitions in tree.h with functions.
21191 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21192 anon_aggrname_p.
21193 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21194
21195 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
21196
21197 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21198 (*cmp<mode>_signed): ... this.
21199 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21200 (*cmp<mode>_unsigned): ... this. Remove %b.
21201
21202 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21203
21204 * coretypes.h: Include input.h and as-a.h.
21205 * rtl.h: Include input.h and as-a.h for generator files.
21206 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21207 * vec.c: Don't include diagnostic-core.h.
21208 * alias.c: Do not include input.h, line-map.h or is-a.h.
21209 * asan.c: Likewise.
21210 * attribs.c: Likewise.
21211 * auto-inc-dec.c: Likewise.
21212 * auto-profile.c: Likewise.
21213 * bb-reorder.c: Likewise.
21214 * bt-load.c: Likewise.
21215 * builtins.c: Likewise.
21216 * caller-save.c: Likewise.
21217 * calls.c: Likewise.
21218 * ccmp.c: Likewise.
21219 * cfg.c: Likewise.
21220 * cfganal.c: Likewise.
21221 * cfgbuild.c: Likewise.
21222 * cfgcleanup.c: Likewise.
21223 * cfgexpand.c: Likewise.
21224 * cfghooks.c: Likewise.
21225 * cfgloop.c: Likewise.
21226 * cfgloop.h: Likewise.
21227 * cfgloopanal.c: Likewise.
21228 * cfgloopmanip.c: Likewise.
21229 * cfgrtl.c: Likewise.
21230 * cgraph.c: Likewise.
21231 * cgraphbuild.c: Likewise.
21232 * cgraphclones.c: Likewise.
21233 * cgraphunit.c: Likewise.
21234 * cilk-common.c: Likewise.
21235 * combine-stack-adj.c: Likewise.
21236 * combine.c: Likewise.
21237 * compare-elim.c: Likewise.
21238 * convert.c: Likewise.
21239 * coverage.c: Likewise.
21240 * cppbuiltin.c: Likewise.
21241 * cprop.c: Likewise.
21242 * cse.c: Likewise.
21243 * cselib.c: Likewise.
21244 * data-streamer-in.c: Likewise.
21245 * data-streamer-out.c: Likewise.
21246 * data-streamer.c: Likewise.
21247 * dbxout.c: Likewise.
21248 * dce.c: Likewise.
21249 * ddg.c: Likewise.
21250 * debug.c: Likewise.
21251 * df-core.c: Likewise.
21252 * df-problems.c: Likewise.
21253 * df-scan.c: Likewise.
21254 * df.h: Likewise.
21255 * dfp.c: Likewise.
21256 * diagnostic-core.h: Likewise.
21257 * diagnostic.c: Likewise.
21258 * dojump.c: Likewise.
21259 * dominance.c: Likewise.
21260 * domwalk.c: Likewise.
21261 * double-int.c: Likewise.
21262 * dse.c: Likewise.
21263 * dumpfile.c: Likewise.
21264 * dumpfile.h: Likewise.
21265 * dwarf2asm.c: Likewise.
21266 * dwarf2cfi.c: Likewise.
21267 * dwarf2out.c: Likewise.
21268 * emit-rtl.c: Likewise.
21269 * et-forest.c: Likewise.
21270 * except.c: Likewise.
21271 * explow.c: Likewise.
21272 * expmed.c: Likewise.
21273 * expr.c: Likewise.
21274 * final.c: Likewise.
21275 * fixed-value.c: Likewise.
21276 * fold-const.c: Likewise.
21277 * function.c: Likewise.
21278 * fwprop.c: Likewise.
21279 * gcc-plugin.h: Likewise.
21280 * gcse.c: Likewise.
21281 * generic-match-head.c: Likewise.
21282 * ggc-page.c: Likewise.
21283 * gimple-builder.c: Likewise.
21284 * gimple-expr.c: Likewise.
21285 * gimple-fold.c: Likewise.
21286 * gimple-iterator.c: Likewise.
21287 * gimple-low.c: Likewise.
21288 * gimple-match-head.c: Likewise.
21289 * gimple-pretty-print.c: Likewise.
21290 * gimple-ssa-isolate-paths.c: Likewise.
21291 * gimple-ssa-strength-reduction.c: Likewise.
21292 * gimple-streamer-in.c: Likewise.
21293 * gimple-streamer-out.c: Likewise.
21294 * gimple-streamer.h: Likewise.
21295 * gimple-walk.c: Likewise.
21296 * gimple.c: Likewise.
21297 * gimplify-me.c: Likewise.
21298 * gimplify.c: Likewise.
21299 * godump.c: Likewise.
21300 * graph.c: Likewise.
21301 * graphite-blocking.c: Likewise.
21302 * graphite-dependences.c: Likewise.
21303 * graphite-interchange.c: Likewise.
21304 * graphite-isl-ast-to-gimple.c: Likewise.
21305 * graphite-optimize-isl.c: Likewise.
21306 * graphite-poly.c: Likewise.
21307 * graphite-scop-detection.c: Likewise.
21308 * graphite-sese-to-poly.c: Likewise.
21309 * graphite.c: Likewise.
21310 * haifa-sched.c: Likewise.
21311 * hw-doloop.c: Likewise.
21312 * ifcvt.c: Likewise.
21313 * init-regs.c: Likewise.
21314 * input.c: Likewise.
21315 * internal-fn.c: Likewise.
21316 * ipa-chkp.c: Likewise.
21317 * ipa-comdats.c: Likewise.
21318 * ipa-cp.c: Likewise.
21319 * ipa-devirt.c: Likewise.
21320 * ipa-icf-gimple.c: Likewise.
21321 * ipa-icf.c: Likewise.
21322 * ipa-inline-analysis.c: Likewise.
21323 * ipa-inline-transform.c: Likewise.
21324 * ipa-inline.c: Likewise.
21325 * ipa-polymorphic-call.c: Likewise.
21326 * ipa-profile.c: Likewise.
21327 * ipa-prop.c: Likewise.
21328 * ipa-pure-const.c: Likewise.
21329 * ipa-ref.c: Likewise.
21330 * ipa-reference.c: Likewise.
21331 * ipa-split.c: Likewise.
21332 * ipa-utils.c: Likewise.
21333 * ipa-visibility.c: Likewise.
21334 * ipa.c: Likewise.
21335 * ira-build.c: Likewise.
21336 * ira-color.c: Likewise.
21337 * ira-conflicts.c: Likewise.
21338 * ira-costs.c: Likewise.
21339 * ira-emit.c: Likewise.
21340 * ira-lives.c: Likewise.
21341 * ira.c: Likewise.
21342 * jump.c: Likewise.
21343 * langhooks.c: Likewise.
21344 * lcm.c: Likewise.
21345 * loop-doloop.c: Likewise.
21346 * loop-init.c: Likewise.
21347 * loop-invariant.c: Likewise.
21348 * loop-iv.c: Likewise.
21349 * loop-unroll.c: Likewise.
21350 * lower-subreg.c: Likewise.
21351 * lra-assigns.c: Likewise.
21352 * lra-coalesce.c: Likewise.
21353 * lra-constraints.c: Likewise.
21354 * lra-eliminations.c: Likewise.
21355 * lra-lives.c: Likewise.
21356 * lra-remat.c: Likewise.
21357 * lra-spills.c: Likewise.
21358 * lra.c: Likewise.
21359 * lto-cgraph.c: Likewise.
21360 * lto-compress.c: Likewise.
21361 * lto-opts.c: Likewise.
21362 * lto-section-in.c: Likewise.
21363 * lto-section-out.c: Likewise.
21364 * lto-streamer-in.c: Likewise.
21365 * lto-streamer-out.c: Likewise.
21366 * lto-streamer.c: Likewise.
21367 * mcf.c: Likewise.
21368 * mode-switching.c: Likewise.
21369 * modulo-sched.c: Likewise.
21370 * omega.c: Likewise.
21371 * omp-low.c: Likewise.
21372 * optabs.c: Likewise.
21373 * opts-global.c: Likewise.
21374 * opts.h: Likewise.
21375 * passes.c: Likewise.
21376 * plugin.c: Likewise.
21377 * postreload-gcse.c: Likewise.
21378 * postreload.c: Likewise.
21379 * predict.c: Likewise.
21380 * pretty-print.h: Likewise.
21381 * print-rtl.c: Likewise.
21382 * print-tree.c: Likewise.
21383 * profile.c: Likewise.
21384 * real.c: Likewise.
21385 * realmpfr.c: Likewise.
21386 * recog.c: Likewise.
21387 * ree.c: Likewise.
21388 * reg-stack.c: Likewise.
21389 * regcprop.c: Likewise.
21390 * reginfo.c: Likewise.
21391 * regrename.c: Likewise.
21392 * regstat.c: Likewise.
21393 * reload.c: Likewise.
21394 * reload1.c: Likewise.
21395 * reorg.c: Likewise.
21396 * resource.c: Likewise.
21397 * rtl-chkp.c: Likewise.
21398 * rtl-error.c: Likewise.
21399 * rtlanal.c: Likewise.
21400 * rtlhooks.c: Likewise.
21401 * sanopt.c: Likewise.
21402 * sched-deps.c: Likewise.
21403 * sched-ebb.c: Likewise.
21404 * sched-rgn.c: Likewise.
21405 * sched-vis.c: Likewise.
21406 * sdbout.c: Likewise.
21407 * sel-sched-dump.c: Likewise.
21408 * sel-sched-ir.c: Likewise.
21409 * sel-sched.c: Likewise.
21410 * sese.c: Likewise.
21411 * shrink-wrap.c: Likewise.
21412 * simplify-rtx.c: Likewise.
21413 * stack-ptr-mod.c: Likewise.
21414 * statistics.c: Likewise.
21415 * stmt.c: Likewise.
21416 * stor-layout.c: Likewise.
21417 * store-motion.c: Likewise.
21418 * streamer-hooks.c: Likewise.
21419 * stringpool.c: Likewise.
21420 * symtab.c: Likewise.
21421 * target-globals.c: Likewise.
21422 * targhooks.c: Likewise.
21423 * toplev.c: Likewise.
21424 * tracer.c: Likewise.
21425 * trans-mem.c: Likewise.
21426 * tree-affine.c: Likewise.
21427 * tree-browser.c: Likewise.
21428 * tree-call-cdce.c: Likewise.
21429 * tree-cfg.c: Likewise.
21430 * tree-cfgcleanup.c: Likewise.
21431 * tree-chkp-opt.c: Likewise.
21432 * tree-chkp.c: Likewise.
21433 * tree-chrec.c: Likewise.
21434 * tree-complex.c: Likewise.
21435 * tree-data-ref.c: Likewise.
21436 * tree-dfa.c: Likewise.
21437 * tree-diagnostic.c: Likewise.
21438 * tree-dump.c: Likewise.
21439 * tree-eh.c: Likewise.
21440 * tree-emutls.c: Likewise.
21441 * tree-if-conv.c: Likewise.
21442 * tree-inline.c: Likewise.
21443 * tree-into-ssa.c: Likewise.
21444 * tree-iterator.c: Likewise.
21445 * tree-loop-distribution.c: Likewise.
21446 * tree-nested.c: Likewise.
21447 * tree-nrv.c: Likewise.
21448 * tree-object-size.c: Likewise.
21449 * tree-outof-ssa.c: Likewise.
21450 * tree-parloops.c: Likewise.
21451 * tree-phinodes.c: Likewise.
21452 * tree-predcom.c: Likewise.
21453 * tree-pretty-print.c: Likewise.
21454 * tree-profile.c: Likewise.
21455 * tree-scalar-evolution.c: Likewise.
21456 * tree-sra.c: Likewise.
21457 * tree-ssa-address.c: Likewise.
21458 * tree-ssa-alias.c: Likewise.
21459 * tree-ssa-ccp.c: Likewise.
21460 * tree-ssa-coalesce.c: Likewise.
21461 * tree-ssa-copy.c: Likewise.
21462 * tree-ssa-copyrename.c: Likewise.
21463 * tree-ssa-dce.c: Likewise.
21464 * tree-ssa-dom.c: Likewise.
21465 * tree-ssa-dse.c: Likewise.
21466 * tree-ssa-forwprop.c: Likewise.
21467 * tree-ssa-ifcombine.c: Likewise.
21468 * tree-ssa-live.c: Likewise.
21469 * tree-ssa-loop-ch.c: Likewise.
21470 * tree-ssa-loop-im.c: Likewise.
21471 * tree-ssa-loop-ivcanon.c: Likewise.
21472 * tree-ssa-loop-ivopts.c: Likewise.
21473 * tree-ssa-loop-manip.c: Likewise.
21474 * tree-ssa-loop-niter.c: Likewise.
21475 * tree-ssa-loop-prefetch.c: Likewise.
21476 * tree-ssa-loop-unswitch.c: Likewise.
21477 * tree-ssa-loop.c: Likewise.
21478 * tree-ssa-math-opts.c: Likewise.
21479 * tree-ssa-operands.c: Likewise.
21480 * tree-ssa-phiopt.c: Likewise.
21481 * tree-ssa-phiprop.c: Likewise.
21482 * tree-ssa-pre.c: Likewise.
21483 * tree-ssa-propagate.c: Likewise.
21484 * tree-ssa-reassoc.c: Likewise.
21485 * tree-ssa-sccvn.c: Likewise.
21486 * tree-ssa-scopedtables.c: Likewise.
21487 * tree-ssa-sink.c: Likewise.
21488 * tree-ssa-strlen.c: Likewise.
21489 * tree-ssa-structalias.c: Likewise.
21490 * tree-ssa-tail-merge.c: Likewise.
21491 * tree-ssa-ter.c: Likewise.
21492 * tree-ssa-threadedge.c: Likewise.
21493 * tree-ssa-threadupdate.c: Likewise.
21494 * tree-ssa-uncprop.c: Likewise.
21495 * tree-ssa-uninit.c: Likewise.
21496 * tree-ssa.c: Likewise.
21497 * tree-ssanames.c: Likewise.
21498 * tree-stdarg.c: Likewise.
21499 * tree-streamer-in.c: Likewise.
21500 * tree-streamer-out.c: Likewise.
21501 * tree-streamer.c: Likewise.
21502 * tree-switch-conversion.c: Likewise.
21503 * tree-tailcall.c: Likewise.
21504 * tree-vect-data-refs.c: Likewise.
21505 * tree-vect-generic.c: Likewise.
21506 * tree-vect-loop-manip.c: Likewise.
21507 * tree-vect-loop.c: Likewise.
21508 * tree-vect-patterns.c: Likewise.
21509 * tree-vect-slp.c: Likewise.
21510 * tree-vect-stmts.c: Likewise.
21511 * tree-vectorizer.c: Likewise.
21512 * tree-vrp.c: Likewise.
21513 * tree.c: Likewise.
21514 * tsan.c: Likewise.
21515 * ubsan.c: Likewise.
21516 * valtrack.c: Likewise.
21517 * value-prof.c: Likewise.
21518 * var-tracking.c: Likewise.
21519 * varasm.c: Likewise.
21520 * varpool.c: Likewise.
21521 * vmsdbgout.c: Likewise.
21522 * vtable-verify.c: Likewise.
21523 * web.c: Likewise.
21524 * wide-int.cc: Likewise.
21525 * xcoffout.c: Likewise.
21526 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21527 * common/common-targhooks.c: Likewise.
21528 * config/aarch64/aarch64-builtins.c: Likewise.
21529 * config/aarch64/aarch64.c: Likewise.
21530 * config/alpha/alpha.c: Likewise.
21531 * config/arc/arc.c: Likewise.
21532 * config/arm/aarch-common.c: Likewise.
21533 * config/arm/arm-builtins.c: Likewise.
21534 * config/arm/arm-c.c: Likewise.
21535 * config/arm/arm.c: Likewise.
21536 * config/avr/avr-c.c: Likewise.
21537 * config/avr/avr-log.c: Likewise.
21538 * config/avr/avr.c: Likewise.
21539 * config/bfin/bfin.c: Likewise.
21540 * config/c6x/c6x.c: Likewise.
21541 * config/cr16/cr16.c: Likewise.
21542 * config/cris/cris.c: Likewise.
21543 * config/darwin-c.c: Likewise.
21544 * config/darwin.c: Likewise.
21545 * config/default-c.c: Likewise.
21546 * config/epiphany/epiphany.c: Likewise.
21547 * config/epiphany/mode-switch-use.c: Likewise.
21548 * config/epiphany/resolve-sw-modes.c: Likewise.
21549 * config/fr30/fr30.c: Likewise.
21550 * config/frv/frv.c: Likewise.
21551 * config/ft32/ft32.c: Likewise.
21552 * config/glibc-c.c: Likewise.
21553 * config/h8300/h8300.c: Likewise.
21554 * config/i386/i386-c.c: Likewise.
21555 * config/i386/i386.c: Likewise.
21556 * config/i386/msformat-c.c: Likewise.
21557 * config/i386/winnt-cxx.c: Likewise.
21558 * config/i386/winnt-stubs.c: Likewise.
21559 * config/i386/winnt.c: Likewise.
21560 * config/ia64/ia64-c.c: Likewise.
21561 * config/ia64/ia64.c: Likewise.
21562 * config/iq2000/iq2000.c: Likewise.
21563 * config/lm32/lm32.c: Likewise.
21564 * config/m32c/m32c-pragma.c: Likewise.
21565 * config/m32c/m32c.c: Likewise.
21566 * config/m32r/m32r.c: Likewise.
21567 * config/m68k/m68k.c: Likewise.
21568 * config/mcore/mcore.c: Likewise.
21569 * config/mep/mep-pragma.c: Likewise.
21570 * config/mep/mep.c: Likewise.
21571 * config/microblaze/microblaze-c.c: Likewise.
21572 * config/microblaze/microblaze.c: Likewise.
21573 * config/mips/mips.c: Likewise.
21574 * config/mmix/mmix.c: Likewise.
21575 * config/mn10300/mn10300.c: Likewise.
21576 * config/moxie/moxie.c: Likewise.
21577 * config/msp430/msp430-c.c: Likewise.
21578 * config/msp430/msp430.c: Likewise.
21579 * config/nds32/nds32-cost.c: Likewise.
21580 * config/nds32/nds32-fp-as-gp.c: Likewise.
21581 * config/nds32/nds32-intrinsic.c: Likewise.
21582 * config/nds32/nds32-isr.c: Likewise.
21583 * config/nds32/nds32-md-auxiliary.c: Likewise.
21584 * config/nds32/nds32-memory-manipulation.c: Likewise.
21585 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21586 * config/nds32/nds32-predicates.c: Likewise.
21587 * config/nds32/nds32.c: Likewise.
21588 * config/nios2/nios2.c: Likewise.
21589 * config/nvptx/nvptx.c: Likewise.
21590 * config/pa/pa.c: Likewise.
21591 * config/pdp11/pdp11.c: Likewise.
21592 * config/rl78/rl78-c.c: Likewise.
21593 * config/rl78/rl78.c: Likewise.
21594 * config/rs6000/rs6000-c.c: Likewise.
21595 * config/rs6000/rs6000.c: Likewise.
21596 * config/rx/rx.c: Likewise.
21597 * config/s390/s390-c.c: Likewise.
21598 * config/s390/s390.c: Likewise.
21599 * config/sh/sh-c.c: Likewise.
21600 * config/sh/sh-mem.cc: Likewise.
21601 * config/sh/sh.c: Likewise.
21602 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21603 * config/sh/sh_treg_combine.cc: Likewise.
21604 * config/sol2-c.c: Likewise.
21605 * config/sol2-cxx.c: Likewise.
21606 * config/sol2-stubs.c: Likewise.
21607 * config/sol2.c: Likewise.
21608 * config/sparc/sparc-c.c: Likewise.
21609 * config/sparc/sparc.c: Likewise.
21610 * config/spu/spu-c.c: Likewise.
21611 * config/spu/spu.c: Likewise.
21612 * config/stormy16/stormy16.c: Likewise.
21613 * config/tilegx/mul-tables.c: Likewise.
21614 * config/tilegx/tilegx-c.c: Likewise.
21615 * config/tilegx/tilegx.c: Likewise.
21616 * config/tilepro/mul-tables.c: Likewise.
21617 * config/tilepro/tilepro-c.c: Likewise.
21618 * config/tilepro/tilepro.c: Likewise.
21619 * config/v850/v850-c.c: Likewise.
21620 * config/v850/v850.c: Likewise.
21621 * config/vax/vax.c: Likewise.
21622 * config/visium/visium.c: Likewise.
21623 * config/vms/vms-c.c: Likewise.
21624 * config/vms/vms.c: Likewise.
21625 * config/vxworks.c: Likewise.
21626 * config/winnt-c.c: Likewise.
21627 * config/xtensa/xtensa.c: Likewise.
21628
21629 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
21630
21631 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21632 function.
21633 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21634
21635 2015-06-17 Richard Biener <rguenther@suse.de>
21636
21637 PR tree-optimization/66251
21638 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21639 stmts for SLP strided stores.
21640
21641 Revert
21642 2015-05-22 Richard Biener <rguenther@suse.de>
21643
21644 PR tree-optimization/66251
21645 * tree-vect-stmts.c (vectorizable_conversion): Properly
21646 set STMT_VINFO_VEC_STMT even for the SLP case.
21647
21648 2015-05-26 Michael Matz <matz@suse.de>
21649
21650 PR middle-end/66251
21651 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21652 STMT_VINFO_VEC_STMT, also with SLP.
21653
21654 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
21655
21656 PR target/56766
21657 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21658 (*avx_addsubv4df3_1s): Ditto.
21659 (*sse3_addsubv2df3_1): Ditto.
21660 (*sse3_addsubv2df3_1s): Ditto.
21661 (*avx_addsubv8sf3_1): Ditto.
21662 (*avx_addsubv8sf3_1s): Ditto.
21663 (*sse3_addsubv4sf3_1): Ditto.
21664 (*sse3_addsubv4sf3_1s): Ditto.
21665
21666 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
21667
21668 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21669 (SYSROOT_SUFFIX_SPEC): Update.
21670 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21671 (STARTFILE_PREFIX_SPEC): Update.
21672 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21673 (MULTILIB_REQUIRED): New.
21674 (MULTILIB_OSDIRNAMES): New.
21675 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21676 (MULTILIB_REQUIRED): New.
21677 (MULTILIB_OSDIRNAMES): New.
21678
21679 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
21680
21681 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21682 * config/aarch64/aarch64-options-extensions.def: Update "fP",
21683 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
21684 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21685 (AARCH64_FL_PAN): New.
21686 (AARCH64_FL_LOR): New.
21687 (AARCH64_FL_RDMA): New.
21688 (AARCH64_FL_FOR_ARCH8_1): New.
21689 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21690 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21691
21692 2015-06-16 Martin Liska <mliska@suse.cz>
21693
21694 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21695 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21696 guard.
21697
21698 2015-06-16 Richard Biener <rguenther@suse.de>
21699
21700 * tree-vect-stmts.c (vectorizable_store): Adjust.
21701 (vectorizable_load): Likewise.
21702 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21703 Simplify.
21704 (vect_create_data_ref_ptr): Likewise.
21705 (bump_vector_ptr): Adjust.
21706
21707 2015-06-16 Richard Biener <rguenther@suse.de>
21708
21709 * tree-vect-stmts.c (vectorizable_load): Properly start loads
21710 with the first element if this is grouped loads.
21711
21712 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
21713
21714 * config/arm/arm-protos.h (struct tune_params): Rename
21715 log_op_non_sc to log_op_non_short_circuit, and rename enum
21716 values to expand SC to SHORT_CIRCUIT.
21717 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21718 to LOG_OP_NON_SHORT_CIRCUIT.
21719 (arm_fastmul_tune):Likewise
21720 (arm_strongarm_tune): Likewise.
21721 (arm_xscale_tune): Likewise.
21722 (arm_9e_tune): Likewise.
21723 (arm_marvell_pj4_tune): Likewise.
21724 (arm_v6t2_tune): Likewise.
21725 (arm_cortex_tune): Likewise.
21726 (arm_cortex_a8_tune): Likewise.
21727 (arm_cortex_a7_tune): Likewise.
21728 (arm_cortex_a15_tune): Likewise.
21729 (arm_cortex_a53_tune): Likewise.
21730 (arm_cortex_a57_tune): Likewise.
21731 (arm_xgene1_tune): Likewise.
21732 (arm_cortex_a5_tune): Likewise.
21733 (arm_cortex_a9_tune): Likewise.
21734 (arm_cortex_a12_tune): Likewise.
21735 (arm_v7m_tune): Likewise.
21736 (arm_cortex_m7_tune): Likewise.
21737 (arm_v6m_tune): Likewise.
21738 (arm_fa726te_tune): Likewise.
21739
21740 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
21741
21742 * altivec.md: Delete UNSPEC_VMLADDUHM.
21743 (mulv4si3_p8): New pattern.
21744 (mulv4si3): Use it for POWER8.
21745 (mulv8hi3): Use vmladduhm with zero addend.
21746 (altivec_vmladduhm): Descriptive RTL.
21747
21748 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
21749
21750 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21751 to use neon_move instead of mov_imm.
21752 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21753 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21754
21755 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21756 aarch64_float_const_zero_rtx_p check before TFmode check.
21757 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21758 an fp zero.
21759 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
21760 code and attributes to match. Change condition from register_operand
21761 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
21762 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
21763 to store2.
21764
21765 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
21766
21767 PR debug/66535
21768 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21769 there is no parent.
21770
21771 2015-06-14 Shiva Chen <shiva0217@gmail.com>
21772
21773 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21774 HOST_WIDE_INT parameter.
21775
21776 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
21777
21778 PR ipa/66181
21779 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21780 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21781 TYPE_NO_FORCE_BLK.
21782 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21783
21784 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
21785
21786 * rtl.h (classify_insn): Declare.
21787 * emit-rtl.c (classify_insn): Move to...
21788 * rtl.c: ...here and add generator support.
21789 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21790 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21791 * genemit.c (gen_emit_seq): New function.
21792 (gen_expand, gen_split): Use it.
21793
21794 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
21795
21796 * tree.c (make_vector_stat): Fix comment to state that the
21797 function returns a VECTOR_CST.
21798
21799 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
21800
21801 * gensupport.h (add_implicit_parallel): Declare.
21802 * genrecog.c (add_implicit_parallel): Move to...
21803 * gensupport.c (add_implicit_parallel): ...here.
21804 (process_one_cond_exec): Use it.
21805 * genemit.c (gen_insn): Likewise.
21806
21807 2015-06-13 Iain Sandoe <iain@codesourcery.com>
21808
21809 PR bootstrap/66448
21810 * passes.c (rest_of_decl_compilation): Do not register globals for
21811 early debug if they are declared in built-ins.
21812
21813 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
21814
21815 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21816
21817 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21818
21819 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21820 manually swapping.
21821 (noce_try_cmove_arith): Likewise.
21822 (noce_get_alt_condition): Likewise.
21823
21824 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21825
21826 * common/config/i386/i386-common.c
21827 (OPTION_MASK_ISA_MWAITX_SET): New.
21828 (ix86_handle_option): Handle mwaitx.
21829 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21830 (x86_64-*-*): Likewise.
21831 * config/i386/mwaitxintrin.h: New header.
21832 * config/i386/cpuid.h (bit_MWAITX): Define.
21833 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21834 MWAITX support.
21835 * config/i386/i386.opt (mwaitx): New.
21836 * config/i386/i386-builtin-types.def
21837 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21838 * config/i386/i386-c.c: Define __MWAITX__ if needed.
21839 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21840 (PTA_MWAITX): New.
21841 (ix86_option_override_internal): Handle new option.
21842 (processor_alias_table): Added PTA_MWAITX.
21843 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21844 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21845 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21846 IX86_BUILTIN_MONITORX built-ins.
21847 * config/i386/i386.h (TARGET_MWAITX): New.
21848 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21849 UNSPEC_MONITORX.
21850 (mwaitx): New pattern.
21851 (monitorx_<mode>): New pattern.
21852 * config/i386/x86intrin.h: Include mwaitxintrin.h.
21853 * doc/extend.texi: Document monitorx and mwaitx builtins.
21854 * doc/invoke.texi: Document -mmwaitx option.
21855
21856 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
21857
21858 * emit-rtl.c (need_atomic_barrier_p): Mask model with
21859 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
21860
21861 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21862
21863 * dbxout.c (xcoff_debug_hooks): Provide a function for
21864 register_main_translation_unit hook.
21865
21866 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21867
21868 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21869 variants cases from switch.
21870 (rs6000_post_atomic_barrier): Same.
21871 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21872 (rs6000_expand_atomic_exchange): Same.
21873 (rs6000_expand_atomic_op): Same.
21874 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21875 SYNC variants cases from switch.
21876 (atomic_load): Same.
21877 (atomic_store): Same.
21878
21879 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
21880
21881 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21882 CONST_INT for goto.
21883
21884 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
21885
21886 PR bootstrap/66448
21887 * dwarf2out.c (check_die): Check for common duplicate attributes.
21888 (add_location_or_const_value_attribute): Do not add duplicate
21889 attributes.
21890 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21891 time around.
21892 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21893 (gen_type_die_with_usage): Call check_die.
21894 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21895
21896 2015-06-11 Jason Merrill <jason@redhat.com>
21897
21898 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21899 dies.
21900
21901 2015-06-11 Marek Polacek <polacek@redhat.com>
21902
21903 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21904
21905 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
21906
21907 PR bootstrap/66252
21908 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21909 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21910 (*addx_extend_sp32): Fix pasto.
21911 (*subx_extend): Rename into...
21912 (*subx_extend_sp32): ...this.
21913 (*adddi3_extend_sp32): Add earlyclobber.
21914 (*subdi3_insn_sp32): Likewise.
21915 (*subdi3_extend_sp32): Likewise.
21916 (*and_not_di_sp32): Likewise.
21917 (*or_not_di_sp32): Likewise.
21918 (*xor_not_di_sp32): Likewise.
21919 (*negdi2_sp32): Likewise.
21920 (*one_cmpldi2_sp32): Likewise.
21921
21922 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
21923
21924 * debug.h (struct gcc_debug_hooks): Add a
21925 register_main_translation_unit hook.
21926 * debug.c (do_nothing_debug_hooks): Provide a function for this
21927 new hook.
21928 * dbxout.c (dbx_debug_hooks): Likewise.
21929 * sdbout.c (sdb_debug_hooks): Likewise.
21930 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21931 * dwarf2out.c (main_translation_unit): New global variable.
21932 (dwarf2out_register_main_translation_unit): New function
21933 implementing the new hook.
21934 (dwarf2_debug_hooks): Assign
21935 dwarf2out_register_main_translation_unit to this new hook.
21936 (dwarf2out_init): Associate any main translation unit to
21937 comp_unit_die ().
21938
21939 2015-06-11 Marek Polacek <polacek@redhat.com>
21940
21941 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21942
21943 2015-06-11 Marek Polacek <polacek@redhat.com>
21944
21945 * match.pd: Use single_use throughout.
21946
21947 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21948
21949 * config/arm/arm.c (arm_option_params_internal): When optimising
21950 for speed set max_insns_skipped when arm_restrict_it.
21951
21952 2015-06-11 Christian Bruel <christian.bruel@st.com>
21953
21954 PR target/52144
21955 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21956 macros in ...
21957 (arm_cpu_builtins): New function.
21958 (arm_pragma_target_parse): Call arm_cpu_builtins.
21959 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21960 (arm_register_target_pragmas): Likewise.
21961 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21962 Call arm_register_target_pragmas.
21963 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21964 (arm_pragma_target_parse): Likewise.
21965
21966 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
21967
21968 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21969 of the second operand.
21970
21971 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
21972
21973 PR target/66473
21974 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21975 to prepare mask operand for AVX512 modes.
21976
21977 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21978
21979 PR target/66474
21980 * doc/md.texi (Machine Constraints): Document that on the PowerPC
21981 if you use a constraint that targets a VSX register, you must use
21982 %x<n> in the template.
21983
21984 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
21985
21986 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21987 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21988 (define_insn "trap"): New definition.
21989
21990 2015-06-10 Richard Biener <rguenther@suse.de>
21991
21992 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21993 out from ...
21994 (vect_supported_load_permutation_p): ... here. Handle
21995 supportable permutations in reductions.
21996 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21997 for vectorizing strided group loads.
21998
21999 2015-06-10 Jakub Jelinek <jakub@redhat.com>
22000
22001 PR target/66470
22002 * config/i386/i386.c (ix86_split_long_move): For collisions
22003 involving direct tls segment refs, move the UNSPEC_TP possibly
22004 wrapped in ZERO_EXTEND out of the address for lea, to each of
22005 the memory loads.
22006
22007 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22008
22009 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22010 dmb sy. Adjust tabs.
22011
22012 2015-06-10 Tom de Vries <tom@codesourcery.com>
22013
22014 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22015
22016 2015-06-10 Martin Liska <mliska@suse.cz>
22017
22018 PR bootstrap/66471
22019 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22020 all enum values in mem_alloc_origin.
22021 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22022 name.
22023 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22024 * bitmap.c (bitmap_register): Likewise.
22025 (dump_bitmap_statistics): Likewise.
22026 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22027 (ggc_record_overhead): Likewise.
22028 * hash-map.h: Likewise.
22029 * hash-set.h: Likewise.
22030 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22031 * hash-table.h: Likewise.
22032 * vec.c (vec_prefix::register_overhead): Likewise.
22033 (vec_prefix::release_overhead): Likewise.
22034 (dump_vec_loc_statistics): Likewise.
22035
22036 2015-06-09 Christian Bruel <christian.bruel@st.com>
22037
22038 PR target/52144
22039 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22040 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22041 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22042 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22043 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22044 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22045 (arm_valid_target_attribute_p): Likewise.
22046 (arm_set_current_function, arm_can_inline_p): Likewise.
22047 (arm_valid_target_attribute_rec): Likewise.
22048 (arm_previous_fndecl): New variable.
22049 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22050 (TARGET_CAN_INLINE_P): Define.
22051 (arm_asm_trampoline_template): Emit mode.
22052 (arm_file_start): Don't set unified syntax.
22053 (arm_declare_function_name): Set unified syntax and mode.
22054 (arm_option_override): Init target_option_default_node.
22055 and target_option_current_node.
22056 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22057 (*call_symbol): Likewise.
22058 * doc/extend.texi: Document ARM/Thumb target attribute.
22059 * doc/invoke.texi: Likewise.
22060
22061 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22062
22063 Revert:
22064 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22065 PR rtl-optimization/64164
22066 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22067 * tree-ssa-copyrename.c: Removed.
22068 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22069 -ftree-coalesce-vars.
22070 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22071 * common.opt (ftree-copyrename): Ignore.
22072 (ftree-coalesce-inlined-vars): Likewise.
22073 * doc/invoke.texi: Remove the ignored options above.
22074 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22075 * tree-ssa-coalesce.h: ... here.
22076 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22077 headers required by it.
22078 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22079 across variables when flag_tree_coalesce_vars. Check register
22080 use and promoted modes to allow coalescing. Moved to
22081 tree-ssa-coalesce.c.
22082 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22083 with its member functions to tree-ssa-coalesce.c.
22084 (var_map_base_init): Likewise. Renamed to
22085 compute_samebase_partition_bases.
22086 (partition_view_normal): Drop want_bases parameter.
22087 (partition_view_bitmap): Likewise.
22088 * tree-ssa-live.h: Adjust declarations.
22089 * tree-ssa-coalesce.c: Include explow.h.
22090 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22091 default defs at the entry point.
22092 (dump_part_var_map): New.
22093 (compute_optimized_partition_bases): New, called by...
22094 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22095 of compute_samebase_partition_bases. Adjust.
22096 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22097 * cfgexpand.c (leader_merge): New.
22098 (get_rtl_for_parm_ssa_default_def): New.
22099 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22100 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22101 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22102 redundant MEM attr setting.
22103 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22104 from...
22105 (expand_one_stack_var): ... this. New wrapper to check and
22106 skip already expanded SSA partitions.
22107 (record_alignment_for_reg_var): New, factored out of...
22108 (expand_one_var): ... this.
22109 (expand_one_ssa_partition): New.
22110 (adjust_one_expanded_partition_var): New.
22111 (expand_one_register_var): Check and skip already expanded SSA
22112 partitions.
22113 (expand_used_vars): Don't create DECLs for anonymous SSA
22114 names. Expand all SSA partitions, then adjust all SSA names.
22115 (pass::execute): Replace the loops that set
22116 SA.partition_to_pseudo from partition leaders and cleared
22117 DECL_RTL for multi-location variables, and that which used to
22118 rename vars and set attrs, with one that clears DECL_RTL and
22119 checks that PARMs and RESULTs default_defs match DECL_RTL.
22120 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22121 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22122 * explow.c (promote_ssa_mode): New.
22123 * explow.h (promote_ssa_mode): Declare.
22124 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22125 * function.c: Include cfgexpand.h.
22126 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22127 (use_register_for_parm_decl): Wrapper for the above to
22128 special-case the result_ptr.
22129 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22130 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22131 multiple locations.
22132 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22133 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22134 (assign_parm_setup_block): Prefer SSA-assigned location.
22135 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22136 if stack_parm is NULL.
22137 (assign_parm_setup_stack): Prefer SSA-assigned location.
22138 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22139 rtl before testing for pointer bounds. Special-case result_ptr.
22140 (expand_function_start): Maybe reset DECL_RTL of result.
22141 Prefer SSA-assigned location for result and static chain.
22142 Factor out DECL_RESULT and SET_DECL_RTL.
22143 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22144 anonymous SSA names. Use promote_ssa_mode.
22145 (get_temp_reg): Likewise.
22146 (remove_ssa_form): Adjust.
22147 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22148 and get its reg_usage for reg invalidation.
22149 (compute_bb_dataflow): Pass it insn.
22150 (emit_notes_in_bb): Likewise.
22151 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22152 fail assert on conversion between unsigned types.
22153
22154 2015-06-09 Tom de Vries <tom@codesourcery.com>
22155
22156 PR tree-optimization/65460
22157 * omp-low.c (expand_omp_target): Set parallelized_function on
22158 cgraph_node for child_fn.
22159
22160 2015-06-09 Tom de Vries <tom@codesourcery.com>
22161
22162 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22163 parallelized_function before add_new_function.
22164
22165 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
22166
22167 * gcc-plugin.h: Move decls to plugin.h and include it.
22168 * plugin.h: Relocate decls from gcc-plugin.h
22169 * ggc-page.c: Include required header files.
22170 * passes.c: Likewise.
22171 * cgraphunit.c: Likewise.
22172
22173 2015-06-09 Tom de Vries <tom@codesourcery.com>
22174
22175 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22176
22177 2015-06-09 Jason Merrill <jason@redhat.com>
22178
22179 PR bootstrap/66448
22180 * toplev.c (check_global_declaration): Don't warn about a clone.
22181
22182 2015-06-09 Marek Polacek <polacek@redhat.com>
22183
22184 PR tree-optimization/66299
22185 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22186 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22187 patterns.
22188
22189 2015-06-09 Richard Biener <rguenther@suse.de>
22190
22191 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22192 (vect_analyze_slp_instance): Instead do not falsely drop
22193 load permutations.
22194
22195 2015-06-09 Richard Biener <rguenther@suse.de>
22196
22197 PR middle-end/66423
22198 * match.pd: Handle A % (unsigned)(1 << B).
22199
22200 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
22201
22202 * varasm.c (output_object_block_htab): Remove.
22203 (output_object_block_compare): New.
22204 (output_object_blocks): Sort named object_blocks before outputting
22205 them.
22206
22207 2015-06-09 Richard Biener <rguenther@suse.de>
22208
22209 PR tree-optimization/66419
22210 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22211 consider GROUP_GAP when detecting a perfect subchain.
22212
22213 2015-06-09 Nick Clifton <nickc@redhat.com>
22214
22215 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22216 place read only data in the .frodata section.
22217
22218 2015-06-09 Shiva Chen <shiva0217@gmail.com>
22219
22220 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22221 (atomic_store<mode>): Likewise.
22222
22223 2015-06-09 Richard Biener <rguenther@suse.de>
22224
22225 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22226
22227 2015-06-09 Richard Biener <rguenther@suse.de>
22228
22229 PR middle-end/66413
22230 * tree-inline.c (insert_init_debug_bind): Unshare value.
22231
22232 2015-06-09 Richard Biener <rguenther@suse.de>
22233
22234 PR tree-optimization/66396
22235 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22236 Rename virtual operands.
22237
22238 2015-06-09 Tom de Vries <tom@codesourcery.com>
22239
22240 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22241 always return false.
22242
22243 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22244
22245 PR rtl-optimization/64164
22246 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22247 * tree-ssa-copyrename.c: Removed.
22248 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22249 -ftree-coalesce-vars.
22250 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22251 * common.opt (ftree-copyrename): Ignore.
22252 (ftree-coalesce-inlined-vars): Likewise.
22253 * doc/invoke.texi: Remove the ignored options above.
22254 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22255 * tree-ssa-coalesce.h: ... here.
22256 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22257 headers required by it.
22258 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22259 across variables when flag_tree_coalesce_vars. Check register
22260 use and promoted modes to allow coalescing. Moved to
22261 tree-ssa-coalesce.c.
22262 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22263 with its member functions to tree-ssa-coalesce.c.
22264 (var_map_base_init): Likewise. Renamed to
22265 compute_samebase_partition_bases.
22266 (partition_view_normal): Drop want_bases parameter.
22267 (partition_view_bitmap): Likewise.
22268 * tree-ssa-live.h: Adjust declarations.
22269 * tree-ssa-coalesce.c: Include explow.h.
22270 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22271 default defs at the entry point.
22272 (dump_part_var_map): New.
22273 (compute_optimized_partition_bases): New, called by...
22274 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22275 of compute_samebase_partition_bases. Adjust.
22276 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22277 * cfgexpand.c (leader_merge): New.
22278 (get_rtl_for_parm_ssa_default_def): New.
22279 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22280 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22281 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22282 redundant MEM attr setting.
22283 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22284 from...
22285 (expand_one_stack_var): ... this. New wrapper to check and
22286 skip already expanded SSA partitions.
22287 (record_alignment_for_reg_var): New, factored out of...
22288 (expand_one_var): ... this.
22289 (expand_one_ssa_partition): New.
22290 (adjust_one_expanded_partition_var): New.
22291 (expand_one_register_var): Check and skip already expanded SSA
22292 partitions.
22293 (expand_used_vars): Don't create DECLs for anonymous SSA
22294 names. Expand all SSA partitions, then adjust all SSA names.
22295 (pass::execute): Replace the loops that set
22296 SA.partition_to_pseudo from partition leaders and cleared
22297 DECL_RTL for multi-location variables, and that which used to
22298 rename vars and set attrs, with one that clears DECL_RTL and
22299 checks that PARMs and RESULTs default_defs match DECL_RTL.
22300 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22301 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22302 * explow.c (promote_ssa_mode): New.
22303 * explow.h (promote_ssa_mode): Declare.
22304 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22305 * function.c: Include cfgexpand.h.
22306 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22307 (use_register_for_parm_decl): Wrapper for the above to
22308 special-case the result_ptr.
22309 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22310 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22311 multiple locations.
22312 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22313 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22314 (assign_parm_setup_block): Prefer SSA-assigned location.
22315 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22316 if stack_parm is NULL.
22317 (assign_parm_setup_stack): Prefer SSA-assigned location.
22318 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22319 rtl before testing for pointer bounds. Special-case result_ptr.
22320 (expand_function_start): Maybe reset DECL_RTL of result.
22321 Prefer SSA-assigned location for result and static chain.
22322 Factor out DECL_RESULT and SET_DECL_RTL.
22323 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22324 anonymous SSA names. Use promote_ssa_mode.
22325 (get_temp_reg): Likewise.
22326 (remove_ssa_form): Adjust.
22327 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22328 and get its reg_usage for reg invalidation.
22329 (compute_bb_dataflow): Pass it insn.
22330 (emit_notes_in_bb): Likewise.
22331 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22332 fail assert on conversion between unsigned types.
22333
22334 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22335
22336 PR debug/58315
22337 * tree-inline.c (reset_debug_binding): New.
22338 (reset_debug_bindings): Likewise.
22339 (expand_call_inline): Call it.
22340
22341 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22342
22343 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22344 TYPE_STRING_FLAG.
22345
22346 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22347
22348 * lto-streamer-out.c (lto_output_location): Stream
22349 reserved locations correctly.
22350 * lto-streamer-in.c (lto_output_location): Likewise.
22351
22352 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
22353
22354 * coretypes.h: Include hash-table.h and hash-set.h for host files.
22355 * ggc.h: Don't include statistics.h>
22356 * hash-map.h: Remove all includes.
22357 * hash-set.h: Likewise.
22358 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22359 the include list. Remove <new>.
22360 * inchash.h: Remove all includes.
22361 * mem-stats.h: Likewise.
22362 * vec.h: No special processing for generators or ggc.
22363 * alias.c : Adjust include files.
22364 * alloc-pool.c : Likewise.
22365 * alloc-pool.h : Likewise.
22366 * asan.c : Likewise.
22367 * attribs.c : Likewise.
22368 * auto-inc-dec.c : Likewise.
22369 * auto-profile.c : Likewise.
22370 * bb-reorder.c : Likewise.
22371 * bitmap.c : Likewise.
22372 * bitmap.h : Likewise.
22373 * bt-load.c : Likewise.
22374 * builtins.c : Likewise.
22375 * caller-save.c : Likewise.
22376 * calls.c : Likewise.
22377 * ccmp.c : Likewise.
22378 * cfg.c : Likewise.
22379 * cfganal.c : Likewise.
22380 * cfgbuild.c : Likewise.
22381 * cfgcleanup.c : Likewise.
22382 * cfgexpand.c : Likewise.
22383 * cfghooks.c : Likewise.
22384 * cfgloop.c : Likewise.
22385 * cfgloop.h : Likewise.
22386 * cfgloopanal.c : Likewise.
22387 * cfgloopmanip.c : Likewise.
22388 * cfgrtl.c : Likewise.
22389 * cgraph.c : Likewise.
22390 * cgraphbuild.c : Likewise.
22391 * cgraphclones.c : Likewise.
22392 * cgraphunit.c : Likewise.
22393 * cilk-common.c : Likewise.
22394 * combine-stack-adj.c : Likewise.
22395 * combine.c : Likewise.
22396 * compare-elim.c : Likewise.
22397 * context.c : Likewise.
22398 * convert.c : Likewise.
22399 * coverage.c : Likewise.
22400 * cppbuiltin.c : Likewise.
22401 * cprop.c : Likewise.
22402 * cse.c : Likewise.
22403 * cselib.c : Likewise.
22404 * data-streamer-in.c : Likewise.
22405 * data-streamer-out.c : Likewise.
22406 * data-streamer.c : Likewise.
22407 * data-streamer.h : Likewise.
22408 * dbxout.c : Likewise.
22409 * dce.c : Likewise.
22410 * ddg.c : Likewise.
22411 * debug.c : Likewise.
22412 * df-core.c : Likewise.
22413 * df-problems.c : Likewise.
22414 * df-scan.c : Likewise.
22415 * df.h : Likewise.
22416 * dfp.c : Likewise.
22417 * dojump.c : Likewise.
22418 * dominance.c : Likewise.
22419 * domwalk.c : Likewise.
22420 * double-int.c : Likewise.
22421 * dse.c : Likewise.
22422 * dumpfile.c : Likewise.
22423 * dwarf2asm.c : Likewise.
22424 * dwarf2cfi.c : Likewise.
22425 * dwarf2out.c : Likewise.
22426 * emit-rtl.c : Likewise.
22427 * et-forest.c : Likewise.
22428 * except.c : Likewise.
22429 * except.h : Likewise.
22430 * explow.c : Likewise.
22431 * expmed.c : Likewise.
22432 * expr.c : Likewise.
22433 * final.c : Likewise.
22434 * fixed-value.c : Likewise.
22435 * fold-const.c : Likewise.
22436 * function.c : Likewise.
22437 * fwprop.c : Likewise.
22438 * gcc-plugin.h : Likewise.
22439 * gcc.c : Likewise.
22440 * gcse-common.c : Likewise.
22441 * gcse.c : Likewise.
22442 * genattrtab.c : Likewise.
22443 * genautomata.c : Likewise.
22444 * genconditions.c : Likewise.
22445 * genemit.c : Likewise.
22446 * generic-match-head.c : Likewise.
22447 * genextract.c : Likewise.
22448 * gengtype-state.c : Likewise.
22449 * gengtype.c : Likewise.
22450 * genhooks.c : Likewise.
22451 * genmatch.c : Likewise.
22452 * genmodes.c : Likewise.
22453 * genrecog.c : Likewise.
22454 * gensupport.c : Likewise.
22455 * ggc-common.c : Likewise.
22456 * ggc-internal.h : Likewise.
22457 * ggc-none.c : Likewise.
22458 * ggc-page.c : Likewise.
22459 * gimple-builder.c : Likewise.
22460 * gimple-expr.c : Likewise.
22461 * gimple-fold.c : Likewise.
22462 * gimple-iterator.c : Likewise.
22463 * gimple-low.c : Likewise.
22464 * gimple-match-head.c : Likewise.
22465 * gimple-pretty-print.c : Likewise.
22466 * gimple-ssa-isolate-paths.c : Likewise.
22467 * gimple-ssa-strength-reduction.c : Likewise.
22468 * gimple-ssa.h : Likewise.
22469 * gimple-streamer-in.c : Likewise.
22470 * gimple-streamer-out.c : Likewise.
22471 * gimple-streamer.h : Likewise.
22472 * gimple-walk.c : Likewise.
22473 * gimple.c : Likewise.
22474 * gimplify-me.c : Likewise.
22475 * gimplify.c : Likewise.
22476 * godump.c : Likewise.
22477 * graph.c : Likewise.
22478 * graphds.c : Likewise.
22479 * graphite-blocking.c : Likewise.
22480 * graphite-dependences.c : Likewise.
22481 * graphite-interchange.c : Likewise.
22482 * graphite-isl-ast-to-gimple.c : Likewise.
22483 * graphite-optimize-isl.c : Likewise.
22484 * graphite-poly.c : Likewise.
22485 * graphite-scop-detection.c : Likewise.
22486 * graphite-sese-to-poly.c : Likewise.
22487 * graphite.c : Likewise.
22488 * haifa-sched.c : Likewise.
22489 * hard-reg-set.h : Likewise.
22490 * hw-doloop.c : Likewise.
22491 * ifcvt.c : Likewise.
22492 * inchash.c : Likewise.
22493 * incpath.c : Likewise.
22494 * init-regs.c : Likewise.
22495 * input.c : Likewise.
22496 * internal-fn.c : Likewise.
22497 * ipa-chkp.c : Likewise.
22498 * ipa-comdats.c : Likewise.
22499 * ipa-cp.c : Likewise.
22500 * ipa-devirt.c : Likewise.
22501 * ipa-icf-gimple.c : Likewise.
22502 * ipa-icf.c : Likewise.
22503 * ipa-inline-analysis.c : Likewise.
22504 * ipa-inline-transform.c : Likewise.
22505 * ipa-inline.c : Likewise.
22506 * ipa-polymorphic-call.c : Likewise.
22507 * ipa-profile.c : Likewise.
22508 * ipa-prop.c : Likewise.
22509 * ipa-pure-const.c : Likewise.
22510 * ipa-ref.c : Likewise.
22511 * ipa-reference.c : Likewise.
22512 * ipa-split.c : Likewise.
22513 * ipa-utils.c : Likewise.
22514 * ipa-visibility.c : Likewise.
22515 * ipa.c : Likewise.
22516 * ira-build.c : Likewise.
22517 * ira-color.c : Likewise.
22518 * ira-conflicts.c : Likewise.
22519 * ira-costs.c : Likewise.
22520 * ira-emit.c : Likewise.
22521 * ira-lives.c : Likewise.
22522 * ira.c : Likewise.
22523 * jump.c : Likewise.
22524 * langhooks.c : Likewise.
22525 * lcm.c : Likewise.
22526 * libfuncs.h : Likewise.
22527 * lists.c : Likewise.
22528 * loop-doloop.c : Likewise.
22529 * loop-init.c : Likewise.
22530 * loop-invariant.c : Likewise.
22531 * loop-iv.c : Likewise.
22532 * loop-unroll.c : Likewise.
22533 * lower-subreg.c : Likewise.
22534 * lra-assigns.c : Likewise.
22535 * lra-coalesce.c : Likewise.
22536 * lra-constraints.c : Likewise.
22537 * lra-eliminations.c : Likewise.
22538 * lra-lives.c : Likewise.
22539 * lra-remat.c : Likewise.
22540 * lra-spills.c : Likewise.
22541 * lra.c : Likewise.
22542 * lto-cgraph.c : Likewise.
22543 * lto-compress.c : Likewise.
22544 * lto-opts.c : Likewise.
22545 * lto-section-in.c : Likewise.
22546 * lto-section-out.c : Likewise.
22547 * lto-streamer-in.c : Likewise.
22548 * lto-streamer-out.c : Likewise.
22549 * lto-streamer.c : Likewise.
22550 * lto-streamer.h : Likewise.
22551 * mcf.c : Likewise.
22552 * mode-switching.c : Likewise.
22553 * modulo-sched.c : Likewise.
22554 * omega.c : Likewise.
22555 * omp-low.c : Likewise.
22556 * optabs.c : Likewise.
22557 * opts-global.c : Likewise.
22558 * opts.h : Likewise.
22559 * passes.c : Likewise.
22560 * plugin.c : Likewise.
22561 * postreload-gcse.c : Likewise.
22562 * postreload.c : Likewise.
22563 * predict.c : Likewise.
22564 * print-rtl.c : Likewise.
22565 * print-tree.c : Likewise.
22566 * profile.c : Likewise.
22567 * read-md.c : Likewise.
22568 * read-md.h : Likewise.
22569 * read-rtl.c : Likewise.
22570 * real.c : Likewise.
22571 * realmpfr.c : Likewise.
22572 * recog.c : Likewise.
22573 * ree.c : Likewise.
22574 * reg-stack.c : Likewise.
22575 * regcprop.c : Likewise.
22576 * reginfo.c : Likewise.
22577 * regrename.c : Likewise.
22578 * regstat.c : Likewise.
22579 * reload.c : Likewise.
22580 * reload1.c : Likewise.
22581 * reorg.c : Likewise.
22582 * resource.c : Likewise.
22583 * rtl-chkp.c : Likewise.
22584 * rtl.c : Likewise.
22585 * rtl.h : Likewise.
22586 * rtlanal.c : Likewise.
22587 * rtlhash.c : Likewise.
22588 * rtlhash.h : Likewise.
22589 * rtlhooks.c : Likewise.
22590 * sanopt.c : Likewise.
22591 * sched-deps.c : Likewise.
22592 * sched-ebb.c : Likewise.
22593 * sched-rgn.c : Likewise.
22594 * sched-vis.c : Likewise.
22595 * sdbout.c : Likewise.
22596 * sel-sched-dump.c : Likewise.
22597 * sel-sched-ir.c : Likewise.
22598 * sel-sched-ir.h : Likewise.
22599 * sel-sched.c : Likewise.
22600 * sese.c : Likewise.
22601 * shrink-wrap.c : Likewise.
22602 * shrink-wrap.h : Likewise.
22603 * simplify-rtx.c : Likewise.
22604 * stack-ptr-mod.c : Likewise.
22605 * statistics.c : Likewise.
22606 * stmt.c : Likewise.
22607 * stor-layout.c : Likewise.
22608 * store-motion.c : Likewise.
22609 * stringpool.c : Likewise.
22610 * symtab.c : Likewise.
22611 * target-globals.c : Likewise.
22612 * targhooks.c : Likewise.
22613 * tlink.c : Likewise.
22614 * toplev.c : Likewise.
22615 * tracer.c : Likewise.
22616 * trans-mem.c : Likewise.
22617 * tree-affine.c : Likewise.
22618 * tree-affine.h : Likewise.
22619 * tree-browser.c : Likewise.
22620 * tree-call-cdce.c : Likewise.
22621 * tree-cfg.c : Likewise.
22622 * tree-cfgcleanup.c : Likewise.
22623 * tree-chkp-opt.c : Likewise.
22624 * tree-chkp.c : Likewise.
22625 * tree-chrec.c : Likewise.
22626 * tree-complex.c : Likewise.
22627 * tree-data-ref.c : Likewise.
22628 * tree-dfa.c : Likewise.
22629 * tree-diagnostic.c : Likewise.
22630 * tree-dump.c : Likewise.
22631 * tree-eh.c : Likewise.
22632 * tree-eh.h : Likewise.
22633 * tree-emutls.c : Likewise.
22634 * tree-hasher.h : Likewise.
22635 * tree-if-conv.c : Likewise.
22636 * tree-inline.c : Likewise.
22637 * tree-inline.h : Likewise.
22638 * tree-into-ssa.c : Likewise.
22639 * tree-iterator.c : Likewise.
22640 * tree-loop-distribution.c : Likewise.
22641 * tree-nested.c : Likewise.
22642 * tree-nrv.c : Likewise.
22643 * tree-object-size.c : Likewise.
22644 * tree-outof-ssa.c : Likewise.
22645 * tree-parloops.c : Likewise.
22646 * tree-phinodes.c : Likewise.
22647 * tree-predcom.c : Likewise.
22648 * tree-pretty-print.c : Likewise.
22649 * tree-profile.c : Likewise.
22650 * tree-scalar-evolution.c : Likewise.
22651 * tree-sra.c : Likewise.
22652 * tree-ssa-address.c : Likewise.
22653 * tree-ssa-alias.c : Likewise.
22654 * tree-ssa-ccp.c : Likewise.
22655 * tree-ssa-coalesce.c : Likewise.
22656 * tree-ssa-copy.c : Likewise.
22657 * tree-ssa-copyrename.c : Likewise.
22658 * tree-ssa-dce.c : Likewise.
22659 * tree-ssa-dom.c : Likewise.
22660 * tree-ssa-dse.c : Likewise.
22661 * tree-ssa-forwprop.c : Likewise.
22662 * tree-ssa-ifcombine.c : Likewise.
22663 * tree-ssa-live.c : Likewise.
22664 * tree-ssa-loop-ch.c : Likewise.
22665 * tree-ssa-loop-im.c : Likewise.
22666 * tree-ssa-loop-ivcanon.c : Likewise.
22667 * tree-ssa-loop-ivopts.c : Likewise.
22668 * tree-ssa-loop-manip.c : Likewise.
22669 * tree-ssa-loop-niter.c : Likewise.
22670 * tree-ssa-loop-prefetch.c : Likewise.
22671 * tree-ssa-loop-unswitch.c : Likewise.
22672 * tree-ssa-loop.c : Likewise.
22673 * tree-ssa-math-opts.c : Likewise.
22674 * tree-ssa-operands.c : Likewise.
22675 * tree-ssa-phiopt.c : Likewise.
22676 * tree-ssa-phiprop.c : Likewise.
22677 * tree-ssa-pre.c : Likewise.
22678 * tree-ssa-propagate.c : Likewise.
22679 * tree-ssa-reassoc.c : Likewise.
22680 * tree-ssa-sccvn.c : Likewise.
22681 * tree-ssa-scopedtables.c : Likewise.
22682 * tree-ssa-sink.c : Likewise.
22683 * tree-ssa-strlen.c : Likewise.
22684 * tree-ssa-structalias.c : Likewise.
22685 * tree-ssa-tail-merge.c : Likewise.
22686 * tree-ssa-ter.c : Likewise.
22687 * tree-ssa-threadedge.c : Likewise.
22688 * tree-ssa-threadupdate.c : Likewise.
22689 * tree-ssa-uncprop.c : Likewise.
22690 * tree-ssa-uninit.c : Likewise.
22691 * tree-ssa.c : Likewise.
22692 * tree-ssanames.c : Likewise.
22693 * tree-stdarg.c : Likewise.
22694 * tree-streamer-in.c : Likewise.
22695 * tree-streamer-out.c : Likewise.
22696 * tree-streamer.c : Likewise.
22697 * tree-streamer.h : Likewise.
22698 * tree-switch-conversion.c : Likewise.
22699 * tree-tailcall.c : Likewise.
22700 * tree-vect-data-refs.c : Likewise.
22701 * tree-vect-generic.c : Likewise.
22702 * tree-vect-loop-manip.c : Likewise.
22703 * tree-vect-loop.c : Likewise.
22704 * tree-vect-patterns.c : Likewise.
22705 * tree-vect-slp.c : Likewise.
22706 * tree-vect-stmts.c : Likewise.
22707 * tree-vectorizer.c : Likewise.
22708 * tree-vectorizer.h : Likewise.
22709 * tree-vrp.c : Likewise.
22710 * tree.c : Likewise.
22711 * tsan.c : Likewise.
22712 * ubsan.c : Likewise.
22713 * valtrack.c : Likewise.
22714 * valtrack.h : Likewise.
22715 * value-prof.c : Likewise.
22716 * var-tracking.c : Likewise.
22717 * varasm.c : Likewise.
22718 * varpool.c : Likewise.
22719 * vec.c: Likewise.
22720 * vmsdbgout.c : Likewise.
22721 * vtable-verify.c : Likewise.
22722 * vtable-verify.h : Likewise.
22723 * web.c : Likewise.
22724 * wide-int.cc : Likewise.
22725 * xcoffout.c : Likewise.
22726 * config/aarch64/aarch64-builtins.c : Likewise.
22727 * config/aarch64/aarch64.c : Likewise.
22728 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22729 * config/alpha/alpha.c : Likewise.
22730 * config/arc/arc.c : Likewise.
22731 * config/arm/aarch-common.c : Likewise.
22732 * config/arm/arm-builtins.c : Likewise.
22733 * config/arm/arm-c.c : Likewise.
22734 * config/arm/arm.c : Likewise.
22735 * config/avr/avr-c.c : Likewise.
22736 * config/avr/avr-log.c : Likewise.
22737 * config/avr/avr.c : Likewise.
22738 * config/bfin/bfin.c : Likewise.
22739 * config/c6x/c6x.c : Likewise.
22740 * config/cr16/cr16.c : Likewise.
22741 * config/cris/cris.c : Likewise.
22742 * config/darwin-c.c : Likewise.
22743 * config/darwin.c : Likewise.
22744 * config/default-c.c : Likewise.
22745 * config/epiphany/epiphany.c : Likewise.
22746 * config/epiphany/mode-switch-use.c : Likewise.
22747 * config/epiphany/resolve-sw-modes.c : Likewise.
22748 * config/fr30/fr30.c : Likewise.
22749 * config/frv/frv.c : Likewise.
22750 * config/ft32/ft32.c : Likewise.
22751 * config/glibc-c.c : Likewise.
22752 * config/h8300/h8300.c : Likewise.
22753 * config/i386/i386-c.c : Likewise.
22754 * config/i386/i386.c : Likewise.
22755 * config/i386/msformat-c.c : Likewise.
22756 * config/i386/winnt-cxx.c : Likewise.
22757 * config/i386/winnt-stubs.c : Likewise.
22758 * config/i386/winnt.c : Likewise.
22759 * config/ia64/ia64-c.c : Likewise.
22760 * config/ia64/ia64.c : Likewise.
22761 * config/iq2000/iq2000.c : Likewise.
22762 * config/lm32/lm32.c : Likewise.
22763 * config/m32c/m32c-pragma.c : Likewise.
22764 * config/m32c/m32c.c : Likewise.
22765 * config/m32r/m32r.c : Likewise.
22766 * config/m68k/m68k.c : Likewise.
22767 * config/mcore/mcore.c : Likewise.
22768 * config/mep/mep-pragma.c : Likewise.
22769 * config/mep/mep.c : Likewise.
22770 * config/microblaze/microblaze-c.c : Likewise.
22771 * config/microblaze/microblaze.c : Likewise.
22772 * config/mips/mips.c : Likewise.
22773 * config/mmix/mmix.c : Likewise.
22774 * config/mn10300/mn10300.c : Likewise.
22775 * config/moxie/moxie.c : Likewise.
22776 * config/msp430/msp430-c.c : Likewise.
22777 * config/msp430/msp430.c : Likewise.
22778 * config/nds32/nds32-cost.c : Likewise.
22779 * config/nds32/nds32-fp-as-gp.c : Likewise.
22780 * config/nds32/nds32-intrinsic.c : Likewise.
22781 * config/nds32/nds32-isr.c : Likewise.
22782 * config/nds32/nds32-md-auxiliary.c : Likewise.
22783 * config/nds32/nds32-memory-manipulation.c : Likewise.
22784 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22785 * config/nds32/nds32-predicates.c : Likewise.
22786 * config/nds32/nds32.c : Likewise.
22787 * config/nios2/nios2.c : Likewise.
22788 * config/nvptx/nvptx.c : Likewise.
22789 * config/pa/pa.c : Likewise.
22790 * config/pdp11/pdp11.c : Likewise.
22791 * config/rl78/rl78-c.c : Likewise.
22792 * config/rl78/rl78.c : Likewise.
22793 * config/rs6000/rs6000-c.c : Likewise.
22794 * config/rs6000/rs6000.c : Likewise.
22795 * config/rx/rx.c : Likewise.
22796 * config/s390/s390-c.c : Likewise.
22797 * config/s390/s390.c : Likewise.
22798 * config/sh/sh-c.c : Likewise.
22799 * config/sh/sh-mem.cc : Likewise.
22800 * config/sh/sh.c : Likewise.
22801 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22802 * config/sh/sh_treg_combine.cc : Likewise.
22803 * config/sol2-c.c : Likewise.
22804 * config/sol2-cxx.c : Likewise.
22805 * config/sol2-stubs.c : Likewise.
22806 * config/sol2.c : Likewise.
22807 * config/sparc/sparc-c.c : Likewise.
22808 * config/sparc/sparc.c : Likewise.
22809 * config/spu/spu-c.c : Likewise.
22810 * config/spu/spu.c : Likewise.
22811 * config/stormy16/stormy16.c : Likewise.
22812 * config/tilegx/mul-tables.c : Likewise.
22813 * config/tilegx/tilegx-c.c : Likewise.
22814 * config/tilegx/tilegx.c : Likewise.
22815 * config/tilepro/mul-tables.c : Likewise.
22816 * config/tilepro/tilepro-c.c : Likewise.
22817 * config/tilepro/tilepro.c : Likewise.
22818 * config/v850/v850-c.c : Likewise.
22819 * config/v850/v850.c : Likewise.
22820 * config/vax/vax.c : Likewise.
22821 * config/visium/visium.c : Likewise.
22822 * config/vms/vms-c.c : Likewise.
22823 * config/vms/vms.c : Likewise.
22824 * config/vxworks.c : Likewise.
22825 * config/winnt-c.c : Likewise.
22826 * config/xtensa/xtensa.c : Likewise.
22827
22828 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22829
22830 PR lto/65378
22831 * ipa-utils.h (warn_types_mismatch): Update prototype.
22832 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22833 parameters.
22834 (type_mismatch_p): New function.
22835 (warn_types_mismatch): Reorg to work better on non-C++ types.
22836 (odr_types_equivalent_p): Add loc1/loc2 parameters.
22837 (add_type_duplicate): Update.
22838
22839 2015-06-08 Tom de Vries <tom@codesourcery.com>
22840
22841 PR rtl-optimization/66444
22842 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22843 call_used_regs.
22844
22845 2015-06-08 Richard Biener <rguenther@suse.de>
22846
22847 PR tree-optimization/66422
22848 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22849 block after inserted gcc_unreachable.
22850
22851 2015-06-08 Nick Clifton <nickc@redhat.com>
22852
22853 * config/rx/rx.c (rx_function_value): Do not promote vector types.
22854 (rx_promote_function_mode): Likewise.
22855 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22856
22857 2015-06-08 Jakub Jelinek <jakub@redhat.com>
22858
22859 * genattrtab.c (insn_alternatives): Change type from int *
22860 to uint64_t *.
22861 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22862 (get_attr_value): Change type of num_alt to uint64_t.
22863 (compute_alternative_mask): Change return type from
22864 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22865 (make_alternative_compare, mk_attr_alt): Change argument type
22866 from int to uint64_t.
22867 (simplify_test_exp): Change type of i from int to uint64_t.
22868 Shift ((uint64_t) 1) instead of 1 up.
22869 (main): Adjust oballocvec first argument from int to uint64_t.
22870 Shift ((uint64_t) 1) instead of 1 up.
22871
22872 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
22873
22874 PR other/65366
22875 * gdbhooks.py: Import sys.
22876 (intptr): New function. Replace int(...) by intptr(...).
22877
22878 2015-06-08 Richard Biener <rguenther@suse.de>
22879
22880 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22881 adjustment for gaps at the end of a SLP load group properly.
22882 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22883 all permutations we can generate.
22884 (vect_transform_slp_perm_load): Use the correct group-size.
22885
22886 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
22887
22888 * genmatch.c (expr::gen_transform): For conditions, guess the type
22889 from the second operand.
22890
22891 2015-06-08 Tom de Vries <tom@codesourcery.com>
22892
22893 PR tree-optimization/66442
22894 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22895 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22896 if the loop latch is not a singleton. Use
22897 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22898
22899 2015-06-08 Marek Polacek <polacek@redhat.com>
22900
22901 PR sanitizer/66452
22902 * toplev.c (check_global_declaration): Don't warn about artificial
22903 decls.
22904
22905 2015-06-08 Tom de Vries <tom@codesourcery.com>
22906
22907 PR tree-optimization/66436
22908 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22909 dump file.
22910 * gimplify.c: Add tree-dump.h include.
22911 (gimplify_function_tree): Dump function to gimple dump file.
22912 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22913 dump file.
22914
22915 2015-06-08 Tom de Vries <tom@codesourcery.com>
22916
22917 PR tree-optimization/66435
22918 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22919 function.
22920
22921 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
22922
22923 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22924 of ptr_type_node to not be ptr_to_node.
22925 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22926 TREE_TYPE of pointers.
22927 * gimple-expr.c (useless_type_conversion): Reorder the check for
22928 function pointers and TYPE_CANONICAL.
22929
22930 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
22931
22932 PR bootstrap/66319
22933 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22934 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22935 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22936 later.
22937 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22938 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22939 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22940 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22941 and non iso if unix2003.
22942
22943 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
22944
22945 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22946
22947 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
22948
22949 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22950 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22951 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22952 except.c, final.c, function.c, gcse-common.c, genemit.c,
22953 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22954 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22955 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22956 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22957 more derived ones.
22958
22959 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
22960
22961 * combine.c (combine_split_insns): Remove cast.
22962 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22963 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22964 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22965 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22966 * genemit.c (gen_split): Change return type of generated functions to
22967 rtx_insn.
22968 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22969 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22970 gen_peephole2_* functions.
22971 (print_subroutine, main): Likewise.
22972 * recog.c (peephole2_optimize): Remove cast.
22973 (peep2_next_insn): Promote return type to rtx_insn.
22974 * recog.h (peep2_next_insn): Fix prototype.
22975 * rtl.h (try_split, split_insns): Likewise.
22976
22977 2015-06-06 DJ Delorie <dj@redhat.com>
22978
22979 * config/msp430/msp430.c (msp430_asm_integer): Support addition
22980 and subtraction too.
22981
22982 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
22983
22984 PR target/66410
22985 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22986 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22987 instead of Snd. Disparage Sid/z alternative with '^'.
22988
22989 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
22990
22991 * dwarf2out.c: Remove deferred_locations*.
22992 (dwarf2_debug_hooks): Add early_finish hook.
22993 Remove global_decl hook.
22994 Add early_global_decl and late_global_decl hook.
22995 New global early_dwarf.
22996 New structure set_early_dwarf.
22997 (output_die): Indicate whether a DIE was generated early
22998 when generating assembly with -dA.
22999 (struct limbo_die_struct): Document created_for field.
23000 Remove file_table_last_lookup.
23001 (remove_AT): Return TRUE if successful.
23002 (remove_child_TAG): Clear die_parent.
23003 (reparent_child): New function abstracted from...
23004 (splice_child_die): ...here.
23005 (new_die): ICE if a DIE ends up in limbo too late.
23006 (check_die): New.
23007 (defer_location): Remove.
23008 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23009 (fill_variable_array_bounds): New.
23010 (decl_start_label): Call fill_variable_array_bounds.
23011 (gen_formal_parameter_die): Rewrite to reuse previously generated
23012 DIEs.
23013 (gen_subprogram_die): Same.
23014 (gen_variable_die): Same.
23015 (gen_const_die): Same.
23016 (gen_label_die): Same.
23017 (gen_lexical_block_die): Same.
23018 (decl_will_get_specification_p): New.
23019 (local_function_static): New.
23020 (gen_struct_or_union_type_die): Fill in variable-length fields.
23021 (gen_typedef_die): Fill in variable-length typedefs.
23022 (gen_tagged_type_die): Gracefully return on error_mark_node.
23023 Handle re-entrancy.
23024 (gen_type_die_with_usage): Handle variable-length types.
23025 Remove duplicate code for ARRAY_TYPE case.
23026 (process_scope_var): Only process imported modules during early
23027 dwarf.
23028 (dwarf2out_early_global_decl): New.
23029 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23030 (dwarf2out_type_decl): Set early_dwarf while calling
23031 dwarf2out_decl.
23032 (dwarf2out_decl): Verify that we did not recreate a previously
23033 generated DIE.
23034 Do not return on DECL_EXTERNALs in VAR_DECLs.
23035 Abstract some code to local_function_static.
23036 (lookup_filename): Remove use of file_table_last_lookup.
23037 Gracefully exit on missing file_name.
23038 (dwarf2out_finish): Verify limbo list.
23039 Remove deferred_locations_list use.
23040 Move deferred_asm_name and limbo flushing to...
23041 (dwarf2out_early_finish): ...here. New.
23042 (dwarf2out_c_finalize): Remove set of deferred_location_list,
23043 deferred_asm_name, and file_table_last_lookup.
23044 * cgraph.h (referred_to_p): Add default argument.
23045 * cgraphunit.c (referred_to_p): Add and handle include_self
23046 argument.
23047 (analyze_functions): Add first_time argument.
23048 Call check_global_declaration for all symbols.
23049 Call late_global_decl for nodes for moribund nodes.
23050 (finalize_compilation_unit): Add new argument to
23051 analyze_functions.
23052 Call early_global_decl for functions.
23053 Call early_finish debug hook.
23054 * dbxout.c (dbxout_early_global_decl): New.
23055 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
23056 (dbx_debug_hooks): Add new hooks.
23057 (xcoff_debug_hooks): Same.
23058 * debug.c (do_nothing_debug_hooks): Add early_finish field.
23059 Add early and late debug hooks.
23060 Remove global_decl hook.
23061 * debug.h (struct gcc_debug_hooks): Add early_finish,
23062 early_global_decl, and late_global_decl fields.
23063 Remove global_decl field.
23064 Document gcc_debug_hooks.
23065 * gengtype.c (output_typename): Remove.
23066 * godump.c (go_early_global_decl): New.
23067 (go_late_global_decl): New.
23068 (go_global_decl): Remove.
23069 (dump_go_spec_init): Remove global_decl. Add
23070 {early,late}_global_decl.
23071 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23072 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23073 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23074 (write_global_declarations): Remove.
23075 (global_decl_processing): New.
23076 * langhooks.h (struct lang_hooks_for_decls): Remove
23077 final_write_globals field.
23078 Add post_compilation_parsing_cleanups field.
23079 * passes.c (rest_of_decl_compilation): Call early_global_decl.
23080 * sdbout.c: Add early and late_global_decl hooks. Remove
23081 sdbout_global_decl hook.
23082 Add early_finish field for sdb_debug_hooks.
23083 (sdbout_global_decl): Remove.
23084 (sdbout_early_global_decl): New.
23085 (sdbout_late_global_decl): New.
23086 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23087 * toplev.c (check_global_declaration): Rename from
23088 check_global_declaration_1.
23089 Adapt to use symtab infrastructure.
23090 (check_global_declarations): Remove.
23091 (emit_debug_global_declarations): Remove.
23092 (compile_file): Remove call to final_write_globals langhook.
23093 Run the actual compilation process.
23094 Perform any post compilation parser cleanups.
23095 Generate late debug info.
23096 * toplev.h (check_global_declaration): New.
23097 (check_global_declaration_1): Remove.
23098 (check_global_declarations): Remove.
23099 (write_global_declarations): Remove.
23100 (emit_debug_global_declarations): Remove.
23101 (global_decl_processing): New.
23102 * tree-core.h (struct tree_block): Add DIE field.
23103 * tree.h (BLOCK_DIE): New.
23104 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23105 throughout.
23106 (vmsdbgout_early_global_decl): New.
23107 (vmsdbgout_late_global_decl): New.
23108 Add early_finish debug hook field to vmsdbg_debug_hooks.
23109 Remove vmsdbgout_decl to vmsdbgout_function_decl.
23110 Add early and late_global_decl debug hooks.
23111
23112 2015-06-05 Julian Brown <julian@codesourcery.com>
23113 Sandra Loosemore <sandra@codesourcery.com>
23114
23115 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23116 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23117 to print-sysroot-suffix.sh script.
23118
23119 2015-06-05 Tom de Vries <tom@codesourcery.com>
23120
23121 merge from gomp4 branch:
23122 2015-05-28 Tom de Vries <tom@codesourcery.com>
23123
23124 PR tree-optimization/65443
23125 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23126 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23127 (try_transform_to_exit_first_loop_alt): New function.
23128 (transform_to_exit_first_loop): Use
23129 try_transform_to_exit_first_loop_alt.
23130
23131 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
23132
23133 * builtins.c (expand_builtin_atomic_compare_exchange): Call
23134 emit_cmp_and_jump_insns with the mode of target.
23135
23136 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23137
23138 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23139
23140 2015-06-04 DJ Delorie <dj@redhat.com>
23141
23142 * config/msp430/msp430.md (movsi_s): New. Special case for
23143 storing a 20-bit symbol into a 32-bit register.
23144 * config/msp430/msp430.c (msp430_subreg): Add support for it.
23145 * config/msp430/predicates.md (msp430_symbol_operand): New.
23146
23147 2015-06-04 Sriraman Tallam <tmsriram@google.com>
23148
23149 * c-family/c-common.c (noplt): New attribute.
23150 (handle_noplt_attribute): New handler.
23151 * calls.c (prepare_call_address): Check for noplt
23152 attribute.
23153 * config/i386/i386.c (ix86_expand_call): Check
23154 for noplt attribute.
23155 (ix86_nopic_noplt_attribute_p): New function.
23156 (ix86_output_call_insn): Output indirect call for non-pic
23157 no plt calls.
23158 * doc/extend.texi (noplt): Document new attribute.
23159 * doc/invoke.texi: Document new attribute.
23160
23161 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
23162
23163 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23164 real.h, and fixed-value.h when included in host source files.
23165 * double-int.h: Remove redundant #includes listed above.
23166 * fixed-value.h: Likewise.
23167 * real.h: Likewise.
23168 * wide-int.h: Likewise.
23169 * inchash.h: Likewise.
23170 * rtl.h: Add some include files When included from a generator file.
23171 * target.h: Remove wide-int.h and insn-modes.h from the include list.
23172 * internal-fn.h: Don't include coretypes.h.
23173 * alias.c: Adjust includes for restructured coretypes.h.
23174 * asan.c: Likewise.
23175 * attribs.c: Likewise.
23176 * auto-inc-dec.c: Likewise.
23177 * auto-profile.c: Likewise.
23178 * bb-reorder.c: Likewise.
23179 * bt-load.c: Likewise.
23180 * builtins.c: Likewise.
23181 * caller-save.c: Likewise.
23182 * calls.c: Likewise.
23183 * ccmp.c: Likewise.
23184 * cfg.c: Likewise.
23185 * cfganal.c: Likewise.
23186 * cfgbuild.c: Likewise.
23187 * cfgcleanup.c: Likewise.
23188 * cfgexpand.c: Likewise.
23189 * cfghooks.c: Likewise.
23190 * cfgloop.c: Likewise.
23191 * cfgloop.h: Likewise.
23192 * cfgloopanal.c: Likewise.
23193 * cfgloopmanip.c: Likewise.
23194 * cfgrtl.c: Likewise.
23195 * cgraph.c: Likewise.
23196 * cgraphbuild.c: Likewise.
23197 * cgraphclones.c: Likewise.
23198 * cgraphunit.c: Likewise.
23199 * cilk-common.c: Likewise.
23200 * combine-stack-adj.c: Likewise.
23201 * combine.c: Likewise.
23202 * compare-elim.c: Likewise.
23203 * convert.c: Likewise.
23204 * coverage.c: Likewise.
23205 * cppbuiltin.c: Likewise.
23206 * cprop.c: Likewise.
23207 * cse.c: Likewise.
23208 * cselib.c: Likewise.
23209 * data-streamer-in.c: Likewise.
23210 * data-streamer-out.c: Likewise.
23211 * data-streamer.c: Likewise.
23212 * dbxout.c: Likewise.
23213 * dce.c: Likewise.
23214 * ddg.c: Likewise.
23215 * debug.c: Likewise.
23216 * df-core.c: Likewise.
23217 * df-problems.c: Likewise.
23218 * df-scan.c: Likewise.
23219 * df.h: Likewise.
23220 * dfp.c: Likewise.
23221 * dojump.c: Likewise.
23222 * dominance.c: Likewise.
23223 * domwalk.c: Likewise.
23224 * double-int.c: Likewise.
23225 * dse.c: Likewise.
23226 * dumpfile.c: Likewise.
23227 * dwarf2asm.c: Likewise.
23228 * dwarf2cfi.c: Likewise.
23229 * dwarf2out.c: Likewise.
23230 * dwarf2out.h: Likewise.
23231 * emit-rtl.c: Likewise.
23232 * et-forest.c: Likewise.
23233 * except.c: Likewise.
23234 * explow.c: Likewise.
23235 * expmed.c: Likewise.
23236 * expr.c: Likewise.
23237 * final.c: Likewise.
23238 * fixed-value.c: Likewise.
23239 * fold-const.c: Likewise.
23240 * function.c: Likewise.
23241 * fwprop.c: Likewise.
23242 * gcc-plugin.h: Likewise.
23243 * gcse.c: Likewise.
23244 * generic-match-head.c: Likewise.
23245 * ggc-page.c: Likewise.
23246 * gimple-builder.c: Likewise.
23247 * gimple-expr.c: Likewise.
23248 * gimple-fold.c: Likewise.
23249 * gimple-iterator.c: Likewise.
23250 * gimple-low.c: Likewise.
23251 * gimple-match-head.c: Likewise.
23252 * gimple-pretty-print.c: Likewise.
23253 * gimple-ssa-isolate-paths.c: Likewise.
23254 * gimple-ssa-strength-reduction.c: Likewise.
23255 * gimple-streamer-in.c: Likewise.
23256 * gimple-streamer-out.c: Likewise.
23257 * gimple-streamer.h: Likewise.
23258 * gimple-walk.c: Likewise.
23259 * gimple.c: Likewise.
23260 * gimplify-me.c: Likewise.
23261 * gimplify.c: Likewise.
23262 * godump.c: Likewise.
23263 * graph.c: Likewise.
23264 * graphite-blocking.c: Likewise.
23265 * graphite-dependences.c: Likewise.
23266 * graphite-interchange.c: Likewise.
23267 * graphite-isl-ast-to-gimple.c: Likewise.
23268 * graphite-optimize-isl.c: Likewise.
23269 * graphite-poly.c: Likewise.
23270 * graphite-scop-detection.c: Likewise.
23271 * graphite-sese-to-poly.c: Likewise.
23272 * graphite.c: Likewise.
23273 * haifa-sched.c: Likewise.
23274 * hooks.h: Likewise.
23275 * hw-doloop.c: Likewise.
23276 * ifcvt.c: Likewise.
23277 * incpath.c: Likewise.
23278 * init-regs.c: Likewise.
23279 * internal-fn.c: Likewise.
23280 * ipa-chkp.c: Likewise.
23281 * ipa-comdats.c: Likewise.
23282 * ipa-cp.c: Likewise.
23283 * ipa-devirt.c: Likewise.
23284 * ipa-icf-gimple.c: Likewise.
23285 * ipa-icf.c: Likewise.
23286 * ipa-inline-analysis.c: Likewise.
23287 * ipa-inline-transform.c: Likewise.
23288 * ipa-inline.c: Likewise.
23289 * ipa-polymorphic-call.c: Likewise.
23290 * ipa-profile.c: Likewise.
23291 * ipa-prop.c: Likewise.
23292 * ipa-pure-const.c: Likewise.
23293 * ipa-ref.c: Likewise.
23294 * ipa-reference.c: Likewise.
23295 * ipa-split.c: Likewise.
23296 * ipa-utils.c: Likewise.
23297 * ipa-visibility.c: Likewise.
23298 * ipa.c: Likewise.
23299 * ira-build.c: Likewise.
23300 * ira-color.c: Likewise.
23301 * ira-conflicts.c: Likewise.
23302 * ira-costs.c: Likewise.
23303 * ira-emit.c: Likewise.
23304 * ira-lives.c: Likewise.
23305 * ira.c: Likewise.
23306 * jump.c: Likewise.
23307 * langhooks.c: Likewise.
23308 * lcm.c: Likewise.
23309 * loop-doloop.c: Likewise.
23310 * loop-init.c: Likewise.
23311 * loop-invariant.c: Likewise.
23312 * loop-iv.c: Likewise.
23313 * loop-unroll.c: Likewise.
23314 * lower-subreg.c: Likewise.
23315 * lra-assigns.c: Likewise.
23316 * lra-coalesce.c: Likewise.
23317 * lra-constraints.c: Likewise.
23318 * lra-eliminations.c: Likewise.
23319 * lra-lives.c: Likewise.
23320 * lra-remat.c: Likewise.
23321 * lra-spills.c: Likewise.
23322 * lra.c: Likewise.
23323 * lto-cgraph.c: Likewise.
23324 * lto-compress.c: Likewise.
23325 * lto-opts.c: Likewise.
23326 * lto-section-in.c: Likewise.
23327 * lto-section-out.c: Likewise.
23328 * lto-streamer-in.c: Likewise.
23329 * lto-streamer-out.c: Likewise.
23330 * lto-streamer.c: Likewise.
23331 * mcf.c: Likewise.
23332 * mode-switching.c: Likewise.
23333 * modulo-sched.c: Likewise.
23334 * omega.c: Likewise.
23335 * omp-low.c: Likewise.
23336 * optabs.c: Likewise.
23337 * opts-global.c: Likewise.
23338 * passes.c: Likewise.
23339 * plugin.c: Likewise.
23340 * postreload-gcse.c: Likewise.
23341 * postreload.c: Likewise.
23342 * predict.c: Likewise.
23343 * print-rtl.c: Likewise.
23344 * print-tree.c: Likewise.
23345 * profile.c: Likewise.
23346 * real.c: Likewise.
23347 * realmpfr.c: Likewise.
23348 * realmpfr.h: Likewise.
23349 * recog.c: Likewise.
23350 * ree.c: Likewise.
23351 * reg-stack.c: Likewise.
23352 * regcprop.c: Likewise.
23353 * reginfo.c: Likewise.
23354 * regrename.c: Likewise.
23355 * regs.h: Likewise.
23356 * regstat.c: Likewise.
23357 * reload.c: Likewise.
23358 * reload1.c: Likewise.
23359 * reorg.c: Likewise.
23360 * resource.c: Likewise.
23361 * rtl-chkp.c: Likewise.
23362 * rtlanal.c: Likewise.
23363 * rtlhooks.c: Likewise.
23364 * sanopt.c: Likewise.
23365 * sched-deps.c: Likewise.
23366 * sched-ebb.c: Likewise.
23367 * sched-rgn.c: Likewise.
23368 * sched-vis.c: Likewise.
23369 * sdbout.c: Likewise.
23370 * sel-sched-dump.c: Likewise.
23371 * sel-sched-ir.c: Likewise.
23372 * sel-sched.c: Likewise.
23373 * sese.c: Likewise.
23374 * shrink-wrap.c: Likewise.
23375 * shrink-wrap.h: Likewise.
23376 * simplify-rtx.c: Likewise.
23377 * stack-ptr-mod.c: Likewise.
23378 * statistics.c: Likewise.
23379 * stmt.c: Likewise.
23380 * stor-layout.c: Likewise.
23381 * store-motion.c: Likewise.
23382 * stringpool.c: Likewise.
23383 * symtab.c: Likewise.
23384 * target-globals.c: Likewise.
23385 * targhooks.c: Likewise.
23386 * toplev.c: Likewise.
23387 * tracer.c: Likewise.
23388 * trans-mem.c: Likewise.
23389 * tree-affine.c: Likewise.
23390 * tree-affine.h: Likewise.
23391 * tree-browser.c: Likewise.
23392 * tree-call-cdce.c: Likewise.
23393 * tree-cfg.c: Likewise.
23394 * tree-cfgcleanup.c: Likewise.
23395 * tree-chkp-opt.c: Likewise.
23396 * tree-chkp.c: Likewise.
23397 * tree-chrec.c: Likewise.
23398 * tree-complex.c: Likewise.
23399 * tree-data-ref.c: Likewise.
23400 * tree-dfa.c: Likewise.
23401 * tree-diagnostic.c: Likewise.
23402 * tree-dump.c: Likewise.
23403 * tree-eh.c: Likewise.
23404 * tree-emutls.c: Likewise.
23405 * tree-if-conv.c: Likewise.
23406 * tree-inline.c: Likewise.
23407 * tree-into-ssa.c: Likewise.
23408 * tree-iterator.c: Likewise.
23409 * tree-loop-distribution.c: Likewise.
23410 * tree-nested.c: Likewise.
23411 * tree-nrv.c: Likewise.
23412 * tree-object-size.c: Likewise.
23413 * tree-outof-ssa.c: Likewise.
23414 * tree-parloops.c: Likewise.
23415 * tree-phinodes.c: Likewise.
23416 * tree-predcom.c: Likewise.
23417 * tree-pretty-print.c: Likewise.
23418 * tree-pretty-print.h: Likewise.
23419 * tree-profile.c: Likewise.
23420 * tree-scalar-evolution.c: Likewise.
23421 * tree-sra.c: Likewise.
23422 * tree-ssa-address.c: Likewise.
23423 * tree-ssa-alias.c: Likewise.
23424 * tree-ssa-ccp.c: Likewise.
23425 * tree-ssa-coalesce.c: Likewise.
23426 * tree-ssa-copy.c: Likewise.
23427 * tree-ssa-copyrename.c: Likewise.
23428 * tree-ssa-dce.c: Likewise.
23429 * tree-ssa-dom.c: Likewise.
23430 * tree-ssa-dse.c: Likewise.
23431 * tree-ssa-forwprop.c: Likewise.
23432 * tree-ssa-ifcombine.c: Likewise.
23433 * tree-ssa-live.c: Likewise.
23434 * tree-ssa-loop-ch.c: Likewise.
23435 * tree-ssa-loop-im.c: Likewise.
23436 * tree-ssa-loop-ivcanon.c: Likewise.
23437 * tree-ssa-loop-ivopts.c: Likewise.
23438 * tree-ssa-loop-manip.c: Likewise.
23439 * tree-ssa-loop-niter.c: Likewise.
23440 * tree-ssa-loop-prefetch.c: Likewise.
23441 * tree-ssa-loop-unswitch.c: Likewise.
23442 * tree-ssa-loop.c: Likewise.
23443 * tree-ssa-loop.h: Likewise.
23444 * tree-ssa-math-opts.c: Likewise.
23445 * tree-ssa-operands.c: Likewise.
23446 * tree-ssa-phiopt.c: Likewise.
23447 * tree-ssa-phiprop.c: Likewise.
23448 * tree-ssa-pre.c: Likewise.
23449 * tree-ssa-propagate.c: Likewise.
23450 * tree-ssa-reassoc.c: Likewise.
23451 * tree-ssa-sccvn.c: Likewise.
23452 * tree-ssa-scopedtables.c: Likewise.
23453 * tree-ssa-sink.c: Likewise.
23454 * tree-ssa-strlen.c: Likewise.
23455 * tree-ssa-structalias.c: Likewise.
23456 * tree-ssa-tail-merge.c: Likewise.
23457 * tree-ssa-ter.c: Likewise.
23458 * tree-ssa-threadedge.c: Likewise.
23459 * tree-ssa-threadupdate.c: Likewise.
23460 * tree-ssa-uncprop.c: Likewise.
23461 * tree-ssa-uninit.c: Likewise.
23462 * tree-ssa.c: Likewise.
23463 * tree-ssanames.c: Likewise.
23464 * tree-stdarg.c: Likewise.
23465 * tree-streamer-in.c: Likewise.
23466 * tree-streamer-out.c: Likewise.
23467 * tree-streamer.c: Likewise.
23468 * tree-switch-conversion.c: Likewise.
23469 * tree-tailcall.c: Likewise.
23470 * tree-vect-data-refs.c: Likewise.
23471 * tree-vect-generic.c: Likewise.
23472 * tree-vect-loop-manip.c: Likewise.
23473 * tree-vect-loop.c: Likewise.
23474 * tree-vect-patterns.c: Likewise.
23475 * tree-vect-slp.c: Likewise.
23476 * tree-vect-stmts.c: Likewise.
23477 * tree-vectorizer.c: Likewise.
23478 * tree-vrp.c: Likewise.
23479 * tree.c: Likewise.
23480 * tsan.c: Likewise.
23481 * ubsan.c: Likewise.
23482 * valtrack.c: Likewise.
23483 * value-prof.c: Likewise.
23484 * var-tracking.c: Likewise.
23485 * varasm.c: Likewise.
23486 * varpool.c: Likewise.
23487 * vmsdbgout.c: Likewise.
23488 * vtable-verify.c: Likewise.
23489 * web.c: Likewise.
23490 * wide-int-print.cc: Likewise.
23491 * wide-int-print.h: Likewise.
23492 * wide-int.cc: Likewise.
23493 * xcoffout.c: Likewise.
23494 * config/aarch64/aarch64-builtins.c: Likewise.
23495 * config/aarch64/aarch64.c: Likewise.
23496 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23497 * config/alpha/alpha.c: Likewise.
23498 * config/arc/arc.c: Likewise.
23499 * config/arm/aarch-common.c: Likewise.
23500 * config/arm/arm-builtins.c: Likewise.
23501 * config/arm/arm-c.c: Likewise.
23502 * config/arm/arm.c: Likewise.
23503 * config/avr/avr-c.c: Likewise.
23504 * config/avr/avr-log.c: Likewise.
23505 * config/avr/avr.c: Likewise.
23506 * config/bfin/bfin.c: Likewise.
23507 * config/c6x/c6x.c: Likewise.
23508 * config/cr16/cr16.c: Likewise.
23509 * config/cris/cris.c: Likewise.
23510 * config/darwin-c.c: Likewise.
23511 * config/darwin.c: Likewise.
23512 * config/default-c.c: Likewise.
23513 * config/epiphany/epiphany.c: Likewise.
23514 * config/epiphany/mode-switch-use.c: Likewise.
23515 * config/epiphany/resolve-sw-modes.c: Likewise.
23516 * config/fr30/fr30.c: Likewise.
23517 * config/frv/frv.c: Likewise.
23518 * config/ft32/ft32.c: Likewise.
23519 * config/glibc-c.c: Likewise.
23520 * config/h8300/h8300.c: Likewise.
23521 * config/i386/i386-c.c: Likewise.
23522 * config/i386/i386.c: Likewise.
23523 * config/i386/msformat-c.c: Likewise.
23524 * config/i386/winnt-cxx.c: Likewise.
23525 * config/i386/winnt-stubs.c: Likewise.
23526 * config/i386/winnt.c: Likewise.
23527 * config/ia64/ia64-c.c: Likewise.
23528 * config/ia64/ia64.c: Likewise.
23529 * config/iq2000/iq2000.c: Likewise.
23530 * config/lm32/lm32.c: Likewise.
23531 * config/m32c/m32c-pragma.c: Likewise.
23532 * config/m32c/m32c.c: Likewise.
23533 * config/m32r/m32r.c: Likewise.
23534 * config/m68k/m68k.c: Likewise.
23535 * config/mcore/mcore.c: Likewise.
23536 * config/mep/mep-pragma.c: Likewise.
23537 * config/mep/mep.c: Likewise.
23538 * config/microblaze/microblaze-c.c: Likewise.
23539 * config/microblaze/microblaze.c: Likewise.
23540 * config/mips/mips.c: Likewise.
23541 * config/mmix/mmix.c: Likewise.
23542 * config/mn10300/mn10300.c: Likewise.
23543 * config/moxie/moxie.c: Likewise.
23544 * config/msp430/msp430-c.c: Likewise.
23545 * config/msp430/msp430.c: Likewise.
23546 * config/nds32/nds32-cost.c: Likewise.
23547 * config/nds32/nds32-fp-as-gp.c: Likewise.
23548 * config/nds32/nds32-intrinsic.c: Likewise.
23549 * config/nds32/nds32-isr.c: Likewise.
23550 * config/nds32/nds32-md-auxiliary.c: Likewise.
23551 * config/nds32/nds32-memory-manipulation.c: Likewise.
23552 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23553 * config/nds32/nds32-predicates.c: Likewise.
23554 * config/nds32/nds32.c: Likewise.
23555 * config/nios2/nios2.c: Likewise.
23556 * config/nvptx/nvptx.c: Likewise.
23557 * config/pa/pa.c: Likewise.
23558 * config/pdp11/pdp11.c: Likewise.
23559 * config/rl78/rl78-c.c: Likewise.
23560 * config/rl78/rl78.c: Likewise.
23561 * config/rs6000/rs6000-c.c: Likewise.
23562 * config/rs6000/rs6000.c: Likewise.
23563 * config/rx/rx.c: Likewise.
23564 * config/s390/s390-c.c: Likewise.
23565 * config/s390/s390.c: Likewise.
23566 * config/sh/sh-c.c: Likewise.
23567 * config/sh/sh-mem.cc: Likewise.
23568 * config/sh/sh.c: Likewise.
23569 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23570 * config/sh/sh_treg_combine.cc: Likewise.
23571 * config/sol2-c.c: Likewise.
23572 * config/sol2-cxx.c: Likewise.
23573 * config/sol2-stubs.c: Likewise.
23574 * config/sol2.c: Likewise.
23575 * config/sparc/sparc-c.c: Likewise.
23576 * config/sparc/sparc.c: Likewise.
23577 * config/spu/spu-c.c: Likewise.
23578 * config/spu/spu.c: Likewise.
23579 * config/stormy16/stormy16.c: Likewise.
23580 * config/tilegx/mul-tables.c: Likewise.
23581 * config/tilegx/tilegx-c.c: Likewise.
23582 * config/tilegx/tilegx.c: Likewise.
23583 * config/tilepro/mul-tables.c: Likewise.
23584 * config/tilepro/tilepro-c.c: Likewise.
23585 * config/tilepro/tilepro.c: Likewise.
23586 * config/v850/v850-c.c: Likewise.
23587 * config/v850/v850.c: Likewise.
23588 * config/vax/vax.c: Likewise.
23589 * config/visium/visium.c: Likewise.
23590 * config/vms/vms-c.c: Likewise.
23591 * config/vms/vms.c: Likewise.
23592 * config/vxworks.c: Likewise.
23593 * config/winnt-c.c: Likewise.
23594 * config/xtensa/xtensa.c: Likewise.
23595 * common/config/bfin/bfin-common.c: Likewise.
23596
23597 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
23598
23599 * tree.h (tree_code_for_canonical_type_merging): New function.
23600 * tree.c (gimple_canonical_types_compatible_p): Use
23601 tree_code_for_canonical_type_merging..
23602
23603 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23604
23605 PR c++/66192
23606 PR target/66200
23607 * doc/tm.texi: Regenerate.
23608 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23609 * target.def (TARGET_RELAXED_ORDERING): Likewise.
23610 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23611 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23612 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23613 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23614 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23615 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23616 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23617
23618 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23619
23620 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23621 register fma steering pass.
23622 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23623 AARCH64_TUNE_FMA_STEERING.
23624
23625 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
23626
23627 * tree.c (verify_type_variant): Verify that type and variant is
23628 compatible.
23629 (gimple_canonical_types_compatible_p): Look for main variants.
23630
23631 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23632
23633 * config.gcc (powerpc*-*-*): Add support for a new configure
23634 option --with-advance-toolchain=<xxx> which overrides using the
23635 default header files, libraries and dynamic linker.
23636
23637 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23638 specs to support the configure --with-advance-toolchain=<xxx>
23639 option.
23640 (INCLUDE_EXTRA_SPEC): Likewise.
23641 (LINK_OS_EXTRA_SPEC32): Likewise.
23642 (LINK_OK_EXTRA_SPEC64): Likewise.
23643 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23644 (DYNAMIC_LINKER_PREFIX): Likewise.
23645 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23646 toolchain support.
23647 (GLIBC_DYNAMIC_LINKER32): Likewise.
23648 (GLIBC_DYNAMIC_LINKER64): Likewise.
23649 (LINK_OS_LINUX_SPEC32): Likewise.
23650 (LINK_OS_LINUX_SPEC64): Likewise.
23651
23652 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23653 configuration option.
23654
23655 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
23656
23657 PR target/66275
23658 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23659 to determine current function ABI.
23660 (ix86_function_value_regno_p): Ditto.
23661
23662 2015-06-03 Martin Liska <mliska@suse.cz>
23663
23664 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23665 * bitmap.h (struct bitmap_usage): Likewise.
23666 * ggc-common.c (struct ggc_usage): Likewise.
23667 * mem-stats.h (struct mem_location): Likewise.
23668 (struct mem_usage): Likewise.
23669 * vec.c (struct vec_usage): Likewise.
23670
23671 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
23672
23673 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23674 -Bsymbolic.
23675
23676 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
23677
23678 * doc/plugins.texi (enum plugin_event): New event.
23679 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23680 and PLUGIN_FINISH_FUNCTION.
23681 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23682 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23683
23684 2015-06-03 Richard Biener <rguenther@suse.de>
23685
23686 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23687 compute GROUP_GAP for the first element.
23688 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23689 on in-group gaps.
23690
23691 2015-06-03 Nick Clifton <nickc@redhat.com>
23692
23693 * config/rl78/rl78-real.md: Add peepholes to avoid a register
23694 copy when calling a function.
23695 * config/rl78/rl78.c (need_to_save): Do not push the frame
23696 pointer in an interrupt handler prologue if it is never used.
23697
23698 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23699
23700 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23701
23702 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23703
23704 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23705 reference when cloning alias node.
23706
23707 2015-06-03 Martin Liska <mliska@suse.cz>
23708
23709 * alloc-pool.h (struct pool_usage): Correct space padding.
23710 * ggc-page.c (ggc_print_statistics): Align columns in a report.
23711 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23712 * tree.c (dump_tree_statistics): Align columns in a report.
23713
23714 2015-06-03 Martin Liska <mliska@suse.cz>
23715
23716 * alloc-pool.c (allocate_pool_descriptor): Remove.
23717 (struct pool_output_info): Likewise.
23718 (print_alloc_pool_statistics): Likewise.
23719 (dump_alloc_pool_statistics): Likewise.
23720 * alloc-pool.h (struct pool_usage): New struct.
23721 (pool_allocator::initialize): Change usage of memory statistics
23722 to a new interface.
23723 (pool_allocator::release): Likewise.
23724 (pool_allocator::allocate): Likewise.
23725 (pool_allocator::remove): Likewise.
23726 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23727 for a pool allocator.
23728 * mem-stats.h (struct mem_location): Add new ctor.
23729 (struct mem_usage): Add counter for number of
23730 instances.
23731 (mem_alloc_description::register_descriptor): New overload of
23732 * mem-stats.h (mem_location::to_string): New function.
23733 * bitmap.h (struct bitmap_usage): Use this new function.
23734 * ggc-common.c (struct ggc_usage): Likewise.
23735 the function.
23736
23737 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23738
23739 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23740 of GCC_INSN_FLAGS_H block.
23741
23742 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23743
23744 * explow.c (plus_constant): Update check after force_const_mem call
23745 to see if the value returned is not a NULL_RTX.
23746
23747 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23748
23749 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23750 remove instumentation thunks calling reachable functions.
23751 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23752 * lto/lto-partition.c (privatize_symbol_name_1): New.
23753 (privatize_symbol_name): Privatize both decl and orig_decl
23754 names for instrumented functions.
23755 * cgraph.c (cgraph_node::verify_node): Add transparent
23756 alias chain check for instrumented node.
23757
23758 2015-06-03 Marek Polacek <polacek@redhat.com>
23759
23760 PR c/64223
23761 PR c/29358
23762 * tree.c (attribute_value_equal): Handle attribute format.
23763 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23764
23765 2015-06-03 Richard Biener <rguenther@suse.de>
23766
23767 PR tree-optimization/63916
23768 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23769 Forward-propagate non-invariant addresses by splicing their
23770 reference ops if the result isn't going to be used by PRE.
23771 (vn_reference_lookup_3): Remove pointless assert.
23772
23773 2015-06-03 Richard Biener <rguenther@suse.de>
23774
23775 PR tree-optimization/66375
23776 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23777 add to the evolution before following SSA edges.
23778
23779 2015-06-03 Bin Cheng <bin.cheng@arm.com>
23780
23781 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23782 (dump_use, dump_cand, find_induction_variables): Pass new argument
23783 to dump_iv.
23784 (record_use): Preserve the ssa name information in IV.
23785
23786 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23787
23788 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23789 NO_MODE_TEST.
23790 (add_mode_tests): Don't add mode tests if the predicate only
23791 accepts scalar constant integers. Otherwise, allow the mode
23792 of "op" to be VOIDmode if the predicate does accept such integers.
23793
23794 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
23795
23796 PR target/66258
23797 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23798 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23799 (aarch64_secondary_reload): Likewise
23800 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23801 to !TARGET_FLOAT.
23802 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23803 Likewise.
23804
23805 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
23806 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23807
23808 PR target/65768
23809 * cprop.c (try_replace_reg): Check cost of constants before propagating.
23810
23811 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23812
23813 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23814 provide access to the IBM extended double floating point mode if
23815 long double is IEEE 128-bit floating point.
23816 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23817 point if long double is the IBM extended double type.
23818
23819 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23820 enable adding IEEE 128-bit floating point support.
23821 (-mfloat128-software): Likewise.
23822 (-mfloat128-sw): Likewise.
23823
23824 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23825 128-bit floating point types to occupy any register if
23826 -mlong-double-64. Do not allow use of IFmode/KFmode unless
23827 -mfloat128-software is enabled.
23828 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23829 support.
23830 (rs6000_option_override_internal): Add -mfloat128-* support.
23831 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23832
23833 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23834 and float128 type nodes.
23835 (ieee128_float_type_node): Likewise.
23836 (ibm128_float_type_node): Likewise.
23837
23838 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23839
23840 PR target/66136
23841 * config/aarch64/geniterators.sh: Rewrite in awk.
23842
23843 2015-06-02 Martin Liska <mliska@suse.cz>
23844
23845 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23846 values to avoid -Wmaybe-uninitialized errors.
23847
23848 2015-06-02 Richard Biener <rguenther@suse.de>
23849
23850 PR debug/65549
23851 * dwarf2out.c (lookup_context_die): New function.
23852 (resolve_addr): Avoid forcing a full DIE for the
23853 target of a DW_TAG_GNU_call_site during late compilation.
23854 Instead create a stub DIE without a type if we have a
23855 context DIE present.
23856
23857 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
23858
23859 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23860
23861 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23862
23863 PR tree-optimization/48052
23864 * cfgloop.h (struct control_iv): New.
23865 (struct loop): New field control_ivs.
23866 * tree-ssa-loop-niter.c : Include "stor-layout.h".
23867 (number_of_iterations_lt): Set no_overflow information.
23868 (number_of_iterations_exit): Init control iv in niter struct.
23869 (record_control_iv): New.
23870 (estimate_numbers_of_iterations_loop): Call record_control_iv.
23871 (loop_exits_before_overflow): New. Interface factored out of
23872 scev_probably_wraps_p.
23873 (scev_probably_wraps_p): Factor loop niter related code into
23874 loop_exits_before_overflow.
23875 (free_numbers_of_iterations_estimates_loop): Free control ivs.
23876 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23877
23878 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
23879
23880 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23881 the target doesn't belong to the current function.
23882
23883 2015-06-02 Marek Polacek <polacek@redhat.com>
23884
23885 PR middle-end/66345
23886 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23887 get_maxval_strlen does not produce an INTEGER_CST.
23888
23889 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
23890
23891 * config/arc/constraints.md: Use lower-case names in match_code.
23892 * config/mmix/constraints.md: Likewise.
23893
23894 2015-06-02 Richard Biener <rguenther@suse.de>
23895
23896 PR tree-optimization/65961
23897 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23898 check and clarify dump message.
23899 (vect_build_slp_tree): If all children are built up from scalars
23900 build up the parent from scalars instead.
23901 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23902
23903 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
23904
23905 PR other/65366
23906 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
23907 instead of print ... .
23908
23909 2015-06-02 Alan Modra <amodra@gmail.com>
23910
23911 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23912 2014-08-11 change.
23913
23914 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23915
23916 PR tree-optimization/52563
23917 PR tree-optimization/62173
23918 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
23919 (alloc_iv, set_iv): New parameter.
23920 (determine_biv_step): Delete.
23921 (find_bivs): Inline original determine_biv_step. Pass new
23922 argument to set_iv.
23923 (idx_find_step): Use no_overflow information for conversion.
23924 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23925 resolve_mixers handle folded_casts.
23926 (instantiate_scev_name): Change bool parameter to bool pointer.
23927 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23928 (instantiate_array_ref, instantiate_scev_not): Ditto.
23929 (instantiate_scev_3, instantiate_scev_2): Ditto.
23930 (instantiate_scev_1, instantiate_scev_r): Ditto.
23931 (instantiate_scev_convert, ): Change parameter. Pass argument
23932 to chrec_convert_aggressive.
23933 (instantiate_scev): Change argument.
23934 (resolve_mixers): New parameter and set it.
23935 (scev_const_prop): New argument.
23936 * tree-scalar-evolution.h (resolve_mixers): New parameter.
23937 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23938 of chrec_conert_1.
23939 (chrec_convert): New parameter. Move definition below.
23940 (chrec_convert_aggressive): New parameter and set it. Call
23941 convert_affine_scev.
23942 * tree-chrec.h (chrec_convert): New parameter.
23943 (chrec_convert_aggressive): Ditto.
23944
23945 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23946
23947 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23948 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23949 the LHS of a no-return call if its type has variable size.
23950 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23951 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23952
23953 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
23954
23955 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23956 * config.in: Regenerate.
23957
23958 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23959
23960 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23961 consecutive accesses within outer-loop with force_vectorize
23962 for references with zero step in inner-loop.
23963
23964 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23965
23966 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23967 rather than from gcc/build directory.
23968
23969 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23970
23971 PR target/65697
23972 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23973 for __sync memory models, emit initial loads and final barriers as
23974 appropriate.
23975
23976 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23977
23978 PR target/65697
23979 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23980 (aarch64_split_atomic_op): Check for __sync memory models, emit
23981 appropriate initial loads and final barriers.
23982
23983 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23984
23985 * Makefile.in: Fix gcov dependencies that should
23986 not point to a build folder.
23987
23988 2015-06-01 Richard Biener <rguenther@suse.de>
23989
23990 Revert
23991 2015-05-29 Richard Biener <rguenther@suse.de>
23992
23993 PR tree-optimization/66314
23994 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23995 parameter that says which loop the new block belongs to.
23996 (ssa_create_duplicates): Blocks duplicated for the threaded
23997 path belong to the loop of the thread destination.
23998
23999 2015-06-01 Martin Liska <mliska@suse.cz>
24000
24001 * sched-deps.c: Include pool-alloc.h before
24002 cselib.h header file is included.
24003
24004 2015-06-01 Richard Biener <rguenther@suse.de>
24005
24006 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24007 functions.
24008
24009 2015-06-01 Martin Liska <mliska@suse.cz>
24010
24011 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24012 a function local variable.
24013
24014 2015-06-01 Martin Liska <mliska@suse.cz>
24015
24016 * alloc-pool.c (create_alloc_pool): Remove.
24017 (empty_alloc_pool): Likewise.
24018 (free_alloc_pool): Likewise.
24019 (free_alloc_pool_if_empty): Likewise.
24020 (pool_alloc): Likewise.
24021 (pool_free): Likewise.
24022 * alloc-pool.h: Remove old declarations.
24023
24024 2015-06-01 Martin Liska <mliska@suse.cz>
24025
24026 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24027 (ira_create_object): Likewise.
24028 (ira_create_allocno): Likewise.
24029 (ira_create_live_range): Likewise.
24030 (copy_live_range): Likewise.
24031 (ira_finish_live_range): Likewise.
24032 (ira_free_allocno_costs): Likewise.
24033 (finish_allocno): Likewise.
24034 (finish_allocnos): Likewise.
24035 (initiate_prefs): Likewise.
24036 (ira_create_pref): Likewise.
24037 (finish_pref): Likewise.
24038 (finish_prefs): Likewise.
24039 (initiate_copies): Likewise.
24040 (ira_create_copy): Likewise.
24041 (finish_copy): Likewise.
24042 (finish_copies): Likewise.
24043 (finish_prefs): Likewise.
24044
24045 2015-06-01 Martin Liska <mliska@suse.cz>
24046
24047 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24048 (allocate_and_init_ipcp_value): Likewise.
24049 (ipcp_lattice::add_value): Likewise.
24050 (merge_agg_lats_step): Likewise.
24051 (ipcp_driver): Likewise.
24052 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24053 (ipa_free_all_structures_after_iinln): Likewise.
24054 * ipa-prop.h: Likewise.
24055
24056 2015-06-01 Martin Liska <mliska@suse.cz>
24057
24058 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24059 pool allocator.
24060 (set_hint_predicate): Likewise.
24061 (inline_summary_alloc): Likewise.
24062 (reset_inline_edge_summary): Likewise.
24063 (reset_inline_summary): Likewise.
24064 (set_cond_stmt_execution_predicate): Likewise.
24065 (set_switch_stmt_execution_predicate): Likewise.
24066 (compute_bb_predicates): Likewise.
24067 (estimate_function_body_sizes): Likewise.
24068 (inline_free_summary): Likewise.
24069
24070 2015-06-01 Martin Liska <mliska@suse.cz>
24071
24072 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24073 (ipa_edge_duplication_hook): Likewise.
24074 (ipa_free_all_structures_after_ipa_cp): Likewise.
24075 (ipa_free_all_structures_after_iinln): Likewise.
24076
24077 2015-06-01 Martin Liska <mliska@suse.cz>
24078
24079 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24080 (ipa_profile_generate_summary): Likewise.
24081 (ipa_profile_read_summary): Likewise.
24082 (ipa_profile): Likewise.
24083
24084 2015-06-01 Martin Liska <mliska@suse.cz>
24085
24086 * tree-ssa-structalias.c (new_var_info): Use new type-based
24087 pool allocator.
24088 (new_constraint): Likewise.
24089 (init_alias_vars): Likewise.
24090 (delete_points_to_sets): Likewise.
24091
24092 2015-06-01 Martin Liska <mliska@suse.cz>
24093
24094 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24095 (free_strinfo): Likewise.
24096 (pass_strlen::execute): Likewise.
24097
24098 2015-06-01 Martin Liska <mliska@suse.cz>
24099
24100 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24101 pool allocator.
24102 (vn_reference_insert_pieces): Likewise.
24103 (vn_phi_insert): Likewise.
24104 (visit_reference_op_call): Likewise.
24105 (copy_phi): Likewise.
24106 (copy_reference): Likewise.
24107 (process_scc): Likewise.
24108 (allocate_vn_table): Likewise.
24109 (free_vn_table): Likewise.
24110
24111 2015-06-01 Martin Liska <mliska@suse.cz>
24112
24113 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24114 pool allocator.
24115 (add_repeat_to_ops_vec): Likewise.
24116 (get_ops): Likewise.
24117 (maybe_optimize_range_tests): Likewise.
24118 (init_reassoc): Likewise.
24119 (fini_reassoc): Likewise.
24120
24121 2015-06-01 Martin Liska <mliska@suse.cz>
24122
24123 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24124 pool allocator.
24125 (bitmap_set_new): Likewise.
24126 (get_or_alloc_expr_for_constant): Likewise.
24127 (get_or_alloc_expr_for): Likewise.
24128 (phi_translate_1): Likewise.
24129 (compute_avail): Likewise.
24130 (init_pre): Likewise.
24131 (fini_pre): Likewise.
24132
24133 2015-06-01 Martin Liska <mliska@suse.cz>
24134
24135 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24136 (delete_dep_node): Likewise.
24137 (create_deps_list): Likewise.
24138 (free_deps_list): Likewise.
24139 (sched_deps_init): Likewise.
24140 (sched_deps_finish): Likewise.
24141
24142 2015-06-01 Martin Liska <mliska@suse.cz>
24143
24144 * regcprop.c (free_debug_insn_changes): Use new type-based
24145 pool allocator.
24146 (replace_oldest_value_reg): Likewise.
24147 (pass_cprop_hardreg::execute): Likewise.
24148
24149 2015-06-01 Martin Liska <mliska@suse.cz>
24150
24151 * ira-build.c (initiate_cost_vectors): Use new type-based
24152 pool allocator.
24153 (ira_allocate_cost_vector): Likewise.
24154 (ira_free_cost_vector): Likewise.
24155 (finish_cost_vectors): Likewise.
24156
24157 2015-06-01 Martin Liska <mliska@suse.cz>
24158
24159 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24160 pool allocator.
24161 (free_sched_pools): Likewise.
24162 * sel-sched-ir.h (_list_alloc): Likewise.
24163 (_list_remove): Likewise.
24164
24165 2015-06-01 Martin Liska <mliska@suse.cz>
24166
24167 * stmt.c (add_case_node): Use new type-based pool allocator.
24168 (expand_case): Likewise.
24169 (expand_sjlj_dispatch_table): Likewise.
24170
24171 2015-06-01 Martin Liska <mliska@suse.cz>
24172
24173 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24174 (free_bb): Likewise.
24175 (pass_cse_reciprocals::execute): Likewise.
24176
24177 2015-06-01 Martin Liska <mliska@suse.cz>
24178
24179 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24180 (sra_deinitialize) Likewise.
24181 (create_access_1) Likewise.
24182 (build_accesses_from_assign) Likewise.
24183 (create_artificial_child_access) Likewise.
24184
24185 2015-06-01 Martin Liska <mliska@suse.cz>
24186
24187 * dse.c (get_group_info):Use new type-based pool allocator.
24188 (dse_step0) Likewise.
24189 (free_store_info) Likewise.
24190 (delete_dead_store_insn) Likewise.
24191 (free_read_records) Likewise.
24192 (record_store) Likewise.
24193 (replace_read) Likewise.
24194 (check_mem_read_rtx) Likewise.
24195 (scan_insn) Likewise.
24196 (dse_step1) Likewise.
24197 (dse_step7) Likewise.
24198
24199 2015-06-01 Martin Liska <mliska@suse.cz>
24200
24201 * df-scan.c (struct df_scan_problem_data):Use new type-based
24202 pool allocator.
24203 (df_scan_free_internal) Likewise.
24204 (df_scan_alloc) Likewise.
24205 (df_grow_reg_info) Likewise.
24206 (df_free_ref) Likewise.
24207 (df_insn_create_insn_record) Likewise.
24208 (df_mw_hardreg_chain_delete) Likewise.
24209 (df_insn_info_delete) Likewise.
24210 (df_free_collection_rec) Likewise.
24211 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24212 (df_sort_and_compress_mws) Likewise.
24213 (df_ref_create_structure) Likewise.
24214 (df_ref_record) Likewise.
24215
24216 2015-06-01 Martin Liska <mliska@suse.cz>
24217
24218 * df-problems.c (df_chain_create):Use new type-based pool allocator.
24219 (df_chain_unlink_1) Likewise.
24220 (df_chain_unlink) Likewise.
24221 (df_chain_remove_problem) Likewise.
24222 (df_chain_alloc) Likewise.
24223 (df_chain_free) Likewise.
24224 * df.h (struct dataflow) Likewise.
24225
24226 2015-06-01 Martin Liska <mliska@suse.cz>
24227
24228 * cselib.c (new_elt_list):Use new type-based pool allocator.
24229 (new_elt_loc_list) Likewise.
24230 (unchain_one_elt_list) Likewise.
24231 (unchain_one_elt_loc_list) Likewise.
24232 (unchain_one_value) Likewise.
24233 (new_cselib_val) Likewise.
24234 (cselib_init) Likewise.
24235 (cselib_finish) Likewise.
24236
24237 2015-06-01 Martin Liska <mliska@suse.cz>
24238
24239 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24240 (sh_reorg) Likewise.
24241
24242 2015-06-01 Martin Liska <mliska@suse.cz>
24243
24244 * cfg.c (initialize_original_copy_tables):Use new type-based
24245 pool allocator.
24246 (free_original_copy_tables) Likewise.
24247 (copy_original_table_clear) Likewise.
24248 (copy_original_table_set) Likewise.
24249
24250 2015-06-01 Martin Liska <mliska@suse.cz>
24251
24252 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24253 pool allocator.
24254 (asan_mem_ref_new) Likewise.
24255 (free_mem_ref_resources) Likewise.
24256
24257 2015-06-01 Martin Liska <mliska@suse.cz>
24258
24259 * var-tracking.c (variable_htab_free):Use new type-based
24260 pool allocator.
24261 (attrs_list_clear) Likewise.
24262 (attrs_list_insert) Likewise.
24263 (attrs_list_copy) Likewise.
24264 (shared_hash_unshare) Likewise.
24265 (shared_hash_destroy) Likewise.
24266 (unshare_variable) Likewise.
24267 (var_reg_delete_and_set) Likewise.
24268 (var_reg_delete) Likewise.
24269 (var_regno_delete) Likewise.
24270 (drop_overlapping_mem_locs) Likewise.
24271 (variable_union) Likewise.
24272 (insert_into_intersection) Likewise.
24273 (canonicalize_values_star) Likewise.
24274 (variable_merge_over_cur) Likewise.
24275 (dataflow_set_merge) Likewise.
24276 (remove_duplicate_values) Likewise.
24277 (variable_post_merge_new_vals) Likewise.
24278 (dataflow_set_preserve_mem_locs) Likewise.
24279 (dataflow_set_remove_mem_locs) Likewise.
24280 (variable_from_dropped) Likewise.
24281 (variable_was_changed) Likewise.
24282 (set_slot_part) Likewise.
24283 (clobber_slot_part) Likewise.
24284 (delete_slot_part) Likewise.
24285 (loc_exp_insert_dep) Likewise.
24286 (notify_dependents_of_changed_value) Likewise.
24287 (emit_notes_for_differences_1) Likewise.
24288 (vt_emit_notes) Likewise.
24289 (vt_initialize) Likewise.
24290 (vt_finalize) Likewise.
24291
24292 2015-06-01 Martin Liska <mliska@suse.cz>
24293
24294 * ira-color.c (init_update_cost_records):Use new type-based
24295 pool allocator.
24296 (get_update_cost_record) Likewise.
24297 (free_update_cost_record_list) Likewise.
24298 (finish_update_cost_records) Likewise.
24299 (initiate_cost_update) Likewise.
24300
24301 2015-06-01 Martin Liska <mliska@suse.cz>
24302
24303 * lra.c (init_insn_regs): Use new type-based pool allocator.
24304 (new_insn_reg) Likewise.
24305 (free_insn_reg) Likewise.
24306 (free_insn_regs) Likewise.
24307 (finish_insn_regs) Likewise.
24308 (init_insn_recog_data) Likewise.
24309 (init_reg_info) Likewise.
24310 (finish_reg_info) Likewise.
24311 (lra_free_copies) Likewise.
24312 (lra_create_copy) Likewise.
24313 (invalidate_insn_data_regno_info) Likewise.
24314
24315 2015-06-01 Martin Liska <mliska@suse.cz>
24316
24317 * lra-lives.c (free_live_range): Use new type-based pool allocator.
24318 (free_live_range_list) Likewise.
24319 (create_live_range) Likewise.
24320 (copy_live_range) Likewise.
24321 (lra_merge_live_ranges) Likewise.
24322 (remove_some_program_points_and_update_live_ranges) Likewise.
24323 (lra_live_ranges_init) Likewise.
24324 (lra_live_ranges_finish) Likewise.
24325
24326 2015-06-01 Martin Liska <mliska@suse.cz>
24327
24328 * et-forest.c (et_new_occ): Use new type-based pool allocator.
24329 (et_new_tree): Likewise.
24330 (et_free_tree): Likewise.
24331 (et_free_tree_force): Likewise.
24332 (et_free_pools): Likewise.
24333 (et_split): Likewise.
24334
24335 2015-06-01 Martin Liska <mliska@suse.cz>
24336
24337 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24338 to header file.
24339 * alloc-pool.h (pool_allocator::pool_allocator): New function.
24340 (pool_allocator::release): Likewise.
24341 (inline pool_allocator::release_if_empty): Likewise.
24342 (inline pool_allocator::~pool_allocator): Likewise.
24343 (pool_allocator::allocate): Likewise.
24344 (pool_allocator::remove): Likewise.
24345
24346 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24347
24348 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24349 in comment.
24350
24351 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24352
24353 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24354 to fusible_ops.
24355 * config/arm/arm.c (arm_print_tune_info): Likewise.
24356 (arm_macro_fusion_p): Likewise.
24357 (arm_macro_fusion_pair_p): Likewise.
24358
24359 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24360
24361 * config/aarch64/aarch64-protos.h (tune_params): Rename
24362 fuseable_ops to fusible_ops.
24363 * config/aarch64/aarch64.c (generic_tunings): Rename
24364 fuseable_ops to fusible_ops.
24365 (cortexa53_tunings): Likewise.
24366 (cortexa57_tunings): Likewise.
24367 (thunderx_tunings): Likewise.
24368 (xgene1_tunings): Likewise.
24369 (aarch64_macro_fusion_p): Likewise.
24370 (aarch64_macro_fusion_pair_p): Likewise.
24371
24372 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
24373
24374 * config/s390/driver-native.c: New file.
24375 * config/s390/x-native: New file.
24376 * config.host: Add new files for s390.
24377 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24378 and -march=native
24379 * config.gcc: Likewise.
24380 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24381 * config/s390/s390-opts.h (enum processor_type): Ditto.
24382 * config/s390/s390.c (s390_option_override): Catch unhandled
24383 PROCESSOR_NATIVE
24384
24385 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
24386
24387 PR target/65527
24388 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24389 redirection for instrumented calls.
24390 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24391 (append_compiler_options): Append -fcheck-pointer-bounds.
24392 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24393 (chkp_redirect_edge): New.
24394 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24395 (chkp_redirect_edge): New.
24396
24397 2015-06-01 Richard Biener <rguenther@suse.de>
24398
24399 PR tree-optimization/66280
24400 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24401 def-use walking.
24402
24403 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24404
24405 * config/aarch64/aarch64.md
24406 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24407 logic_shift_imm.
24408
24409 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24410
24411 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24412 Remove obsolete kludge.
24413
24414 2015-06-01 Richard Biener <rguenther@suse.de>
24415
24416 * tree-ssa-reassoc.c (get_rank): Simplify.
24417
24418 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
24419
24420 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24421 * configure: Regenerated.
24422
24423 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
24424
24425 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24426 issue (add space between string literal and macro).
24427 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24428
24429 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24430
24431 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24432 implict or explicit -fPIE or -fpie.
24433
24434 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24435
24436 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24437
24438 2015-05-28 DJ Delorie <dj@redhat.com>
24439
24440 * expmed.c (extract_bit_field_1): Avoid clobbering a
24441 yet-to-be-used base/index register.
24442
24443 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24444
24445 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24446 (alias_stats): Add num_universal.
24447 (alias_set_subset_of): Special case pointers; be ready for NULL
24448 children.
24449 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24450 children.
24451 (init_alias_set_entry): Break out from ...
24452 (record_alias_subset): ... here; propagate new fields;
24453 allocate children only when really needed.
24454 (get_alias_set): Do less generous pointer globbing.
24455 (dump_alias_stats_in_alias_c): Update statistics.
24456
24457 2015-05-30 Alan Modra <amodra@gmail.com>
24458
24459 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24460 correct block for use of r12.
24461 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24462
24463 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24464
24465 PR target/66215
24466 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24467 with -mhotpatch=.
24468
24469 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24470
24471 PR tree-optimization/66142
24472 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24473 virtual phis that feed themselves.
24474
24475 2015-05-29 Richard Biener <rguenther@suse.de>
24476
24477 PR tree-optimization/66314
24478 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24479 parameter that says which loop the new block belongs to.
24480 (ssa_create_duplicates): Blocks duplicated for the threaded
24481 path belong to the loop of the thread destination.
24482
24483 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24484
24485 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24486 to cleanup-saved-temps.
24487 * doc/sourcebuild.texi (Clean up generated test files): Expand
24488 introduction.
24489 (dg-keep-saved-temps): Document new proc.
24490 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24491 cleanup-saved-temps): Remove.
24492
24493 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24494
24495 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24496 gcc_AC_CHECK_DECLS.
24497 * configure: Regenerate.
24498
24499 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24500
24501 * config/nios2/linux.h (CPP_SPEC): Define.
24502
24503 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24504
24505 * config/microblaze/linux.h (CPP_SPEC): Define.
24506
24507 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24508
24509 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24510 -pthread is specified.
24511
24512 2015-05-28 Richard Biener <rguenther@suse.de>
24513
24514 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24515 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24516 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24517 after pattern recog.
24518 (vect_create_epilog_for_reduction): Properly handle reductions
24519 with patterns.
24520 (vectorizable_reduction): Likewise.
24521 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24522 reduction chains.
24523 (vect_get_constant_vectors): Create the correct number of
24524 initial values for reductions.
24525 (vect_schedule_slp_instance): Handle reduction chains that are
24526 type changing properly.
24527 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24528
24529 2015-05-28 Richard Biener <rguenther@suse.de>
24530
24531 PR tree-optimization/66142
24532 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24533 values better in memcpy destination handling. Handle non-aliasing
24534 we discover here.
24535
24536 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24537
24538 PR target/63810
24539 * config/darwin-c.c (version_components): New global enum.
24540 (parse_version, version_as_legacy_macro)
24541 (version_as_modern_macro, macosx_version_as_macro): New functions.
24542 (version_as_macro): Remove.
24543 (darwin_cpp_builtins): Use new function.
24544
24545 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24546
24547 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24548 with ATTRIBUTE_UNUSED.
24549
24550 2015-05-28 Julian Brown <julian@codesourcery.com>
24551
24552 PR libgomp/65742
24553
24554 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24555 sequence for !ACCEL_COMPILER.
24556
24557 2015-05-28 Nick Clifton <nickc@redhat.com>
24558
24559 * config/rx/rx.c (push_regs): New function. Extracts code from...
24560 (rx_expand_prologue): ... here. Use push_regs to push even small
24561 spans of registers.
24562 (pop_regs): New function.
24563 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24564 registers.
24565
24566 2015-05-28 Richard Biener <rguenther@suse.de>
24567
24568 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24569 member.
24570 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24571 (vect_update_slp_costs_according_to_vf): Likewise.
24572 (vect_slp_analyze_operations): Update prototype.
24573 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24574 vect_update_slp_costs_according_to_vf, adjust.
24575 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24576 (vect_analyze_slp_cost_1): Likewise.
24577 (vect_analyze_slp_cost): Likewise. Properly deal with
24578 widening reduction ops. Commit body costs.
24579 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24580 cost for loops from here.
24581 (vect_slp_analyze_operations): But do it from here when
24582 the vectorization factor is known and stmts are analyzed.
24583 (vect_bb_vectorization_profitable_p): Simplify.
24584 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24585 (vect_update_slp_costs_according_to_vf): Remove.
24586
24587 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24588 H.J. Lu <hongjiu.lu@intel.com>
24589
24590 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24591 (BUILD_CFLAGS): Likewise.
24592 (BUILD_CXXFLAGS): Likewise.
24593 (LINKER): Add @NO_PIE_FLAG@.
24594 (BUILD_LDFLAGS): Likewise.
24595 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24596 --enable-default-pie.
24597 * common.opt (fPIE): Initialize to -1.
24598 (fpie): Likewise.
24599 (no-pie): New option.
24600 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24601 * configure.ac: Add --enable-default-pie.
24602 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
24603 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
24604 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
24605 * gcc.c (NO_PIE_SPEC): New.
24606 (PIE_SPEC): Likewise.
24607 (NO_FPIE1_SPEC): Likewise.
24608 (FPIE1_SPEC): Likewise.
24609 (NO_FPIE2_SPEC): Likewise.
24610 (FPIE2_SPEC): Likewise.
24611 (NO_FPIE2_SPEC): Likewise.
24612 (FPIE_SPEC): Likewise.
24613 (NO_FPIE_SPEC): Likewise.
24614 (NO_FPIC1_SPEC): Likewise.
24615 (FPIC1_SPEC): Likewise.
24616 (NO_FPIC2_SPEC): Likewise.
24617 (FPIC2_SPEC): Likewise.
24618 (NO_FPIC2_SPEC): Likewise.
24619 (FPIC_SPEC): Likewise.
24620 (NO_FPIC_SPEC): Likewise.
24621 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24622 (FPIE1_OR_FPIC1_SPEC): Likewise.
24623 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24624 (FPIE2_OR_FPIC2_SPEC): Likewise.
24625 (NO_FPIE_AND_FPIC_SPEC): Likewise.
24626 (FPIE_OR_FPIC_SPEC): Likewise.
24627 (LD_PIE_SPEC): Likewise.
24628 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
24629 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24630 * config/darwin.h (PIE_SPEC): Renamed to ...
24631 (DARWIN_PIE_SPEC): This.
24632 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24633 * config/darwin9.h (PIE_SPEC): Renamed to ...
24634 (DARWIN_PIE_SPEC): This.
24635 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24636 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24637 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24638 FPIE2_OR_FPIC2_SPEC.
24639 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24640 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24641 * config/sol2.h (ASM_PIC_SPEC): Likewise.
24642 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24643 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24644 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24645 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24646 * config/m32r/m32r.h (ASM_SPEC): Likewise.
24647 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24648 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24649 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24650 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24651 * config/sparc/linux.h (ASM_SPEC): Likewise.
24652 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24653 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24654 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24655 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24656 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24657 * config/sparc/sparc.h (ASM_SPEC): Likewise.
24658 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24659 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24660 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24661 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24662 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24663 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24664 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24665 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24666 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24667 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24668 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24669 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24670 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24671 * config/vax/linux.h (ASM_SPEC): Likewise.
24672 * doc/install.texi: Document --enable-default-pie.
24673 * doc/invoke.texi: Document -no-pie.
24674 * config.in: Regenerated.
24675 * configure: Likewise.
24676
24677 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24678
24679 PR rtl-optimization/66168
24680 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24681 can_move_invariant_reg.
24682
24683 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
24684
24685 PR target/66148
24686 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24687 REG_EQUAL note when doing insert.
24688
24689 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24690 instead of "%d" for 'o' operand.
24691
24692 2015-05-27 Nathan Sidwell <nathan@acm.org>
24693
24694 PR c++/66270
24695 * tree.c (build_pointer_type_for_mode): Canonical type does not
24696 inherit can_alias_all.
24697 (build_reference_type_for_mode): Likewise.
24698
24699 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
24700
24701 * expr.h (array_at_struct_end_p): Move to...
24702 (array_ref_element_size): Likewise.
24703 (component_ref_field_offset): Likewise.
24704 * tree.h (array_ref_element_size): ...here.
24705 (array_at_struct_end_p): Likewise.
24706 (component_ref_field_offset): Likewise.
24707 * expr.c (array_ref_element_size): Move to...
24708 (array_ref_low_bound): Likewise.
24709 (array_at_struct_end_p): Likewise.
24710 (array_ref_up_bound): Likewise.
24711 (component_ref_field_offset): Likewise.
24712 * tree.c (array_ref_element_size): ...here.
24713 (array_ref_low_bound): Likewise.
24714 (array_ref_up_bound): Likewise.
24715 (array_at_struct_end_p): Likewise.
24716 (component_ref_field_offset): Likewise.
24717
24718 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24719 Szabolcs Nagy <szabolcs.nagy@arm.com>
24720
24721 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24722
24723 2015-05-27 Jason Merrill <jason@redhat.com>
24724
24725 PR bootstrap/66304
24726 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24727 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24728 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24729
24730 2015-05-22 Aditya Kumar <hiraditya@msn.com>
24731
24732 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24733 is true.
24734
24735 * statistics.c (statistics_fini_pass): Print pass name.
24736
24737 2015-05-27 Richard Biener <rguenther@suse.de>
24738
24739 PR tree-optimization/66272
24740 Revert parts of
24741 2014-08-15 Richard Biener <rguenther@suse.de>
24742
24743 PR tree-optimization/62031
24744 * tree-data-ref.c (dr_analyze_indices): Do not set
24745 DR_UNCONSTRAINED_BASE.
24746 (dr_may_alias_p): All indirect accesses have to go the
24747 formerly DR_UNCONSTRAINED_BASE path.
24748 * tree-data-ref.h (struct indices): Remove
24749 unconstrained_base member.
24750 (DR_UNCONSTRAINED_BASE): Remove.
24751
24752 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
24753
24754 * dwarf2out.c: Remove block_map.
24755 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24756 (gen_lexical_block_die): Same.
24757 (dwarf2out_function_decl): Remove block_map use.
24758 (dwarf2out_c_finalize): Same.
24759 * tree-core.h (struct tree_block): Add die field.
24760 * tree.h (BLOCK_DIE): New.
24761
24762 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24763
24764 PR target/65358
24765 * expr.c (memory_load_overlap): New function.
24766 (emit_push_insn): When pushing partial args to the stack would
24767 clobber the register part load the overlapping part into a pseudo
24768 and put it into the hard reg after pushing. Change return type
24769 to bool. Add bool argument.
24770 * expr.h (emit_push_insn): Change return type to bool.
24771 Add bool argument.
24772 * calls.c (expand_call): Cancel sibcall optimization when encountering
24773 partial argument on targets with ARGS_GROW_DOWNWARD and
24774 !STACK_GROWS_DOWNWARD.
24775 (emit_library_call_value_1): Update callsite of emit_push_insn.
24776 (store_one_arg): Likewise.
24777
24778 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24779
24780 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24781
24782 2015-05-27 Martin Liska <mliska@suse.cz>
24783
24784 * Makefile.in: Add additional dependencies related to memory report
24785 enhancement.
24786 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24787 * bitmap.c (struct bitmap_descriptor_d): Remove.
24788 (struct loc): Likewise.
24789 (struct bitmap_desc_hasher): Likewise.
24790 (bitmap_desc_hasher::hash): Likewise.
24791 (bitmap_desc_hasher::equal): Likewise.
24792 (get_bitmap_descriptor): Likewise.
24793 (bitmap_register): User new memory descriptor API.
24794 (register_overhead): Likewise.
24795 (bitmap_find_bit): Register nsearches and search_iter statistics.
24796 (struct bitmap_output_info): Remove.
24797 (print_statistics): Likewise.
24798 (dump_bitmap_statistics): Use new memory descriptor.
24799 * bitmap.h (struct bitmap_usage): New class.
24800 * genmatch.c: Extend header file inclusion.
24801 * genpreds.c: Likewise.
24802 * ggc-common.c (struct ggc_usage): New class.
24803 (struct ggc_loc_desc_hasher): Remove.
24804 (ggc_loc_desc_hasher::hash): Likewise.
24805 (ggc_loc_desc_hasher::equal): Likewise.
24806 (struct ggc_ptr_hash_entry): Likewise.
24807 (struct ptr_hash_hasher): Likewise.
24808 (ptr_hash_hasher::hash): Likewise.
24809 (ptr_hash_hasher::equal): Likewise.
24810 (make_loc_descriptor): Likewise.
24811 (ggc_prune_ptr): Likewise.
24812 (dump_ggc_loc_statistics): Use new memory descriptor.
24813 (ggc_record_overhead): Likewise.
24814 (ggc_free_overhead): Likewise.
24815 (final_cmp_statistic): Remove.
24816 (cmp_statistic): Likewise.
24817 (ggc_add_statistics): Liekwise.
24818 (ggc_prune_overhead_list): Likewise.
24819 * hash-map-traits.h: New file.
24820 * hash-map.h (struct default_hashmap_traits): Move the traits to a
24821 separate header file.
24822 * hash-set.h: Pass memory statistics info to ctor.
24823 * hash-table.c (void dump_hash_table_loc_statistics): New function.
24824 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24825 (hash_table::~hash_table): Register memory release operation.
24826 (hash_table::alloc_entries): Handle memory allocation operation.
24827 (hash_table::expand): Likewise.
24828 * inchash.c (iterative_hash_hashval_t): Move implementation to header
24829 file.
24830 (iterative_hash_host_wide_int): Likewise.
24831 * inchash.h (class hash): Likewise.
24832 * mem-stats-traits.h: New file.
24833 * mem-stats.h: New file.
24834 (mem_location): Add new class.
24835 (mem_usage): Likewise.
24836 (mem_alloc_description): Likewise.
24837 * sese.c: Add new header file inclusision.
24838 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24839 and hash_set.
24840 * tree-sra.c: Add new header file inclusision.
24841 * vec.c (struct vec_descriptor): Remove.
24842 (hash_descriptor): Likewise.
24843 (struct vec_usage): Likewise.
24844 (struct ptr_hash_entry): Likewise.
24845 (hash_ptr): Likewise.
24846 (eq_ptr): Likewise.
24847 (vec_prefix::register_overhead): Use new memory descriptor API.
24848 (vec_prefix::release_overhead): Likewise.
24849 (add_statistics): Remove.
24850 (dump_vec_loc_statistics): Use new memory descriptor API.
24851 * vec.h (struct vec_prefix): Likewise.
24852 (va_heap::reserve): Likewise.
24853 (va_heap::release): Likewise.
24854 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24855
24856 2015-05-27 Richard Biener <rguenther@suse.de>
24857
24858 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24859 earlier and remove ??? comment.
24860 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24861 and got called from loop analysis bail out. Always pass the SLP
24862 node to the vectorizable_* functions.
24863 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24864 the premature SLP check here.
24865 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24866 detected SLP stmts.
24867 (vect_detect_hybrid_slp_1): Likewise.
24868
24869 2015-05-26 Jeff Law <law@redhat.com>
24870
24871 * combine.c (find_split_point): Verify that the shift count is a
24872 constant when choosing (plus (ashift ...)) as a split point.
24873
24874 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24875 No functional changes.
24876
24877 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
24878
24879 * ipa-polymorphic-call.c
24880 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24881 case when call target is already known.
24882
24883 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
24884
24885 PR target/65979
24886 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24887 take into account the case that operands[1] and operands[2]
24888 are the same register.
24889
24890 2015-05-26 Michael Matz <matz@suse.de>
24891
24892 PR middle-end/66251
24893
24894 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24895 stores.
24896 (vect_create_vectorized_demotion_stmts): Always set
24897 STMT_VINFO_VEC_STMT, also with SLP.
24898 (vectorizable_store): Handle strided group stores.
24899
24900 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24901
24902 PR target/66049
24903 * config/aarch64/aarch64.md
24904 (*adds_shift_imm_<mode>): New pattern.
24905 (*subs_shift_imm_<mode>): Likewise.
24906 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24907 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24908 (*add_uxt<mode>_shift2): Likewise.
24909 (*add_uxtsi_shift2_uxtw): Likewise.
24910 (*sub_uxt<mode>_shift2): Likewise.
24911 (*sub_uxtsi_shift2_uxtw): Likewise.
24912
24913 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
24914
24915 * config/rs6000/constraints.md (Y, U): Use match_test.
24916
24917 2015-05-26 Christian Bruel <christian.bruel@st.com>
24918
24919 PR target/52144
24920 * config/arm/arm.c (arm_option_check_internal)
24921 (arm_option_params_internal): Check opts->target_flags to set macros.
24922 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24923 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24924 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24925 (builtin_define): Replaced with def_or_undef_macro.
24926 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24927 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24928 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24929 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24930 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24931 (TARGET_ARM_FEATURE_LDREX_P)
24932 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24933 * config/arm/arm-c.c (def_or_undef_macro): New function.
24934 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24935
24936 2015-05-26 Christian Bruel <christian.bruel@st.com>
24937
24938 * c-common.h (builtin_define_with_int_value)
24939 (builtin_define_type_sizeof): Declare.
24940 * c-cppbuiltin.c (builtin_define_with_int_value)
24941 (builtin_define_type_sizeof): Externalize.
24942 (builtin_define_std): Cleanup declaration.
24943 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24944 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24945 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24946 (builtin_define, builtin_assert): New macros.
24947
24948 2015-05-26 Richard Biener <rguenther@suse.de>
24949
24950 PR tree-optimization/66142
24951 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24952 MEM_REFs for the same base address.
24953
24954 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24955
24956 PR ipa/66181
24957 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24958
24959 2015-05-26 Jason Merrill <jason@redhat.com>
24960
24961 * configure.ac: Set CXXFLAGS for ISL test.
24962 * configure: Regenerate.
24963
24964 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
24965 strstr and basename.
24966 * configure: Regenerate.
24967
24968 2015-05-26 Richard Biener <rguenther@suse.de>
24969
24970 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24971 X % C -> X & (C - 1) for C being a power-of two to ...
24972 * match.pd: ... patterns.
24973
24974 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
24975
24976 * match.pd (swapped_tcc_comparison): New operator list.
24977 (-A CMP -B): New simplification.
24978 * fold-const.c (fold_comparison): Remove corresponding code.
24979
24980 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24981
24982 * caller-save.c (init_caller_save): Base temporary register numbers
24983 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24984 * cfgloopanal.c (init_set_costs): Likewise.
24985 * dojump.c (prefer_and_bit_test): Likewise.
24986 * expr.c (init_expr_target): Likewise.
24987 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24988 * lower-subreg.c (init_lower_subreg): Likewise.
24989 * postreload.c (reload_cse_regs_1): Likewise.
24990
24991 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24992
24993 * gensupport.h (compute_test_codes): Declare.
24994 * gensupport.c (compute_predicate_codes): Rename to...
24995 (compute_test_codes): ...this. Generalize error message.
24996 (process_define_predicate): Update accordingly.
24997 * genpreds.c (compute_maybe_allows): Delete.
24998 (add_constraint): Use compute_test_codes to determine whether
24999 something can accept a SUBREG, REG or MEM.
25000
25001 2015-05-26 Torvald Riegel <triegel@redhat.com>
25002
25003 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25004 'memory model' to align with C++11; fix description of memory orders;
25005 fix a few typos.
25006
25007 2015-05-26 Richard Biener <rguenther@suse.de>
25008
25009 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25010 (vect_analyze_loop_operations): ... here. Remove slp parameter,
25011 detect whether we apply SLP. Remove call to
25012 vect_update_slp_costs_according_to_vf.
25013 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25014 vect_update_slp_costs_according_to_vf from here. Dispatch
25015 to vect_slp_analyze_operations to analyze SLP stmts.
25016 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25017 unused bb_vec_info parameter, adjust assert.
25018 (vect_slp_analyze_operations): Pass in the slp instance tree
25019 instead of bb_vec_info.
25020 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25021 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25022
25023 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25024
25025 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25026 Q_REGS. Expand comment.
25027 (REG_CLASS_NAMES): Ditto.
25028 (REG_CLASS_CONTENTS): Ditto.
25029
25030 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
25031
25032 PR target/66274
25033 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25034 when LEGACY_INT_REGNO_P is processed.
25035
25036 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25037
25038 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25039
25040 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25041
25042 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25043 register if not marked dead/unused, before return.
25044
25045 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25046
25047 PR lto/66180
25048 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25049 is set; check for assembler name at LTO time.
25050 (type_in_anonymous_namespace): Remove hacks, check that all
25051 anonymous types are called "<anon>"
25052 (odr_type_p): Simplify; add check for "<anon>"
25053 (odr_subtypes_equivalent): Add odr_type_p check.
25054 * tree.c (need_assembler_name_p): Even anonymous namespace needs
25055 assembler name.
25056
25057 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25058
25059 * ipa-utils.h (method_class_type): Remove.
25060 * cgraphunit.c (walk_polymorphic_call_targets): Use
25061 TYPE_METHOD_BASETYPE.
25062 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25063 on main variants only.
25064 (method_class_type): Remove.
25065 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25066 (build_type_inheritance_graph): Likewise.
25067 * ipa-icf.c (sem_function::equals_wpa): Likewise.
25068 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25069 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25070
25071 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25072
25073 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25074 is_typedef_decl, typedef_variant_p): Constify.
25075 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25076 is_typedef_decl, typedef_variant_p): Constify.
25077
25078 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25079
25080 * defaults.h (gen_tablejump): New function.
25081 (HAVE_tablejump): Add default value.
25082 * expr.c: Adjust.
25083 * stmt.c: Likewise.
25084
25085 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25086
25087 * defaults.h (gen_store_multiple): New function.
25088 (HAVE_store_multiple): Add default value.
25089 * expr.c (move_block_from_reg): Adjust.
25090
25091 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25092
25093 * defaults.h (gen_load_multiple): New function.
25094 (HAVE_load_multiple): Add default value.
25095 * expr.c (move_block_to_reg): Adjust.
25096
25097 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25098
25099 * defaults.h (gen_mem_signal_fence): New function.
25100 (HAVE_mem_signal_fence): Add default value.
25101 * optabs.c: Adjust.
25102
25103 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25104
25105 * defaults.h (gen_memory_barrier): New function.
25106 (HAVE_memory_barrier): Add default value.
25107 * optabs.c: Adjust.
25108
25109 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25110
25111 * defaults.h (gen_mem_thread_fence): New function.
25112 (HAVE_mem_thread_fence): Add default definition.
25113 * optabs.c: Adjust.
25114
25115 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25116
25117 * combine.c (find_split_point): Check the value of HAVE_lo_sum
25118 instead of if it is defined.
25119 (combine_simplify_rtx): Likewise.
25120 * lra-constraints.c (process_address_1): Likewise.
25121 * config/darwin.c: Adjust.
25122 * genconfig.c (main): Always define HAVE_lo_sum.
25123
25124 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25125
25126 * genmatch.c (parser::parse_operation): Reject expanding
25127 operator-list inside 'for'.
25128
25129 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25130
25131 * genmatch.c (parser::parse_for): Reject iterator if used as
25132 operator-list.
25133
25134 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25135
25136 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25137 after end of id-list.
25138
25139 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25140
25141 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25142 we do not try to compute canonical type for type that does not need
25143 alias set.
25144 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25145 FUNCITON_TYPE.
25146 * tree.h (type_with_alias_set_p): New.
25147
25148 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25149
25150 * tree.c (gimple_canonical_types_compatible_p): Do not compare
25151 function attributes.
25152 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25153
25154 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
25155
25156 * Makefile.in (check_gcc_parallelize): Delete.
25157 (lang_checks_parallelized): Update comment.
25158
25159 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
25160
25161 PR rtl-optimization/66237
25162 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25163 location of an "as_a" cast.
25164
25165 2015-05-22 Jeff Law <law@redhat.com>
25166
25167 * config/pa/pa.md (non-canonical shift-add insns): Remove.
25168 (peepholes with non-canonical RTL sources): Remove.
25169 (peepholes for indexed stores of FP regs in integer modes): Match and
25170 generate canonical RTL.
25171
25172 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25173
25174 PR tree-optimization/63387
25175 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25176 ((x ord x) & (y ord y) -> (x ord y),
25177 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25178 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25179 vectors like scalars.
25180
25181 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25182
25183 * convert.c (convert_to_integer, convert_to_vector): Include the
25184 types in the error message.
25185
25186 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25187
25188 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25189 simplifications.
25190
25191 2015-05-22 Jeff Law <law@redhat.com>
25192
25193 * config/pa/pa.md (integer_indexed_store splitters): Use
25194 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
25195 insns -- adjusting the constant 2nd operand accordingly.
25196
25197 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25198 (plus (ashift X log2) Y) if it is a split point.
25199
25200 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25201 out of hppa_legitimize_address to handle both forms of a multiply
25202 by 2, 4 or 8.
25203 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25204 Always generate the ASHIFT variant as the result is not directly
25205 used in a MEM. Update comments and refactor slightly to improve
25206 readability.
25207
25208 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25209
25210 PR target/65491
25211 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25212 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
25213 (aarch64_composite_type_p): Return false if given type and mode are
25214 for a short vector.
25215
25216 2015-05-22 Richard Biener <rguenther@suse.de>
25217
25218 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25219 member.
25220 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25221 patterns when determining whether SLP is pure.
25222 (vect_is_slp_reduction): Remove check for pattern stmts.
25223 (vect_is_simple_reduction_1): Remove dead code.
25224 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25225 (vect_get_and_check_slp_defs): Pass in the stmt number.
25226 Allow the first def in a reduction to be not a pattern stmt when
25227 the rest of the stmts def are patterns.
25228 (vect_build_slp_tree_1): Allow tcc_expression codes like
25229 SAD_EXPR and DOT_PROD_EXPR.
25230 (vect_build_slp_tree): Adjust.
25231 (vect_analyze_slp): Refactor and move BB vect error message ...
25232 (vect_slp_analyze_bb_1): ... here.
25233
25234 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
25235
25236 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25237 for CSWTCH temporary.
25238
25239 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25240
25241 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25242 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
25243 unknown unspecs.
25244
25245 2015-05-22 Richard Biener <rguenther@suse.de>
25246
25247 PR tree-optimization/66251
25248 * tree-vect-stmts.c (vectorizable_conversion): Properly
25249 set STMT_VINFO_VEC_STMT even for the SLP case.
25250
25251 2015-05-22 Marek Polacek <polacek@redhat.com>
25252
25253 * doc/extend.texi: Use @pxref instead of @xref.
25254
25255 2015-05-22 hiraditya <hiraditya@msn.com>
25256
25257 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25258 redundant if.
25259
25260 2015-05-22 Richard Biener <rguenther@suse.de>
25261
25262 PR tree-optimization/65701
25263 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25264 Move peeling cost models into one place. Peel for alignment
25265 for single loads only if an aligned load is cheaper than
25266 an unaligned load.
25267
25268 2015-05-22 Marek Polacek <polacek@redhat.com>
25269
25270 PR c/47043
25271 * doc/extend.texi (Enumerator Attributes): New section.
25272 Document syntax of enumerator attributes.
25273
25274 2015-05-22 Richard Biener <rguenther@suse.de>
25275
25276 * tree-vect-loop.c (get_reduction_op): New function.
25277 (vect_model_reduction_cost): Use it, add reduc_index parameter.
25278 Make ready for BB reductions.
25279 (vect_create_epilog_for_reduction): Use get_reduction_op.
25280 (vectorizable_reduction): Init reduc_index to a valid value.
25281 Adjust vect_model_reduction_cost call.
25282 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25283 operand for reduction defaults. Add SAD_EXPR support.
25284 Assert we have a neutral op for SLP reductions.
25285 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25286 walking pattern stmt ops only recurse to SSA names.
25287
25288 2015-05-22 Richard Biener <rguenther@suse.de>
25289
25290 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25291 assert with guard, remove check on detected reduction.
25292 (vect_recog_sad_pattern): Likewise.
25293 (vect_recog_widen_sum_pattern): Likewise.
25294
25295 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25296
25297 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25298 __always_inline__ attribute.
25299 (vaesdq_u8): Likewise.
25300 (vaesmcq_u8): Likewise.
25301 (vaesimcq_u8): Likewise.
25302 (vsha1cq_u32): Likewise.
25303 (vsha1mq_u32): Likewise.
25304 (vsha1pq_u32): Likewise.
25305 (vsha1h_u32): Likewise.
25306 (vsha1su0q_u32): Likewise.
25307 (vsha1su1q_u32): Likewise.
25308 (vsha256hq_u32): Likewise.
25309 (vsha256h2q_u32): Likewise.
25310 (vsha256su0q_u32): Likewise.
25311 (vsha256su1q_u32): Likewise.
25312 (vmull_p64): Likewise.
25313 (vmull_high_p64): Likewise.
25314
25315 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25316
25317 * final.c (final_scan_insn): Don't check HAVE_peephole with the
25318 preprocessor.
25319 * output.h: Likewise.
25320 * genconfig.c (main): Alwways define HAVE_peephole.
25321 * genpeep.c: Don't emit checks of HAVE_peephole.
25322
25323 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25324
25325 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25326 check HAVE_conditional_move with the preprocessor.
25327
25328 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25329
25330 * genconfig.c (main): Always define HAVE_conditional_move.
25331 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25332 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25333 is defined.
25334
25335 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25336
25337 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25338 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25339 and FRAME_POINTER_REGNUM with the preprocessor.
25340
25341 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25342
25343 * defaults.h: Add default for STACK_PUSH_CODE.
25344 * expr.c: Don't redefine STACK_PUSH_CODE.
25345 * recog.c: Likewise.
25346
25347 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25348
25349 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25350 sched-deps.c: Use if instead of preprocessor checks with
25351 STACK_GROWS_DOWNWARD.
25352
25353 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25354
25355 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25356 is defined.
25357 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25358 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25359 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25360 * doc/tm.texi: Regenerate.
25361
25362 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
25363
25364 PR target/66232
25365 * config/i386/constraints.md (Bg): New constraint for GOT memory
25366 operand.
25367 * config/i386/i386.md (*call_got_x32): New pattern.
25368 (*call_value_got_x32): Likewise.
25369 * config/i386/predicates.md (GOT_memory_operand): New predicate.
25370
25371 2015-05-21 Jakub Jelinek <jakub@redhat.com>
25372
25373 PR tree-optimization/66233
25374 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25375 Simplify.
25376
25377 2015-05-21 Jeff Law <law@redhat.com>
25378
25379 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25380 than MULT for shadd sequences.
25381
25382 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
25383
25384 * alias.c (alias_stats): New static var.
25385 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25386 (dump_alias_stats_in_alias_c): New function.
25387 * alias.h (dump_alias_stats_in_alias_c): Declare.
25388 * tree-ssa-alias.c (dump_alias_stats): Call it.
25389
25390 2015-05-08 Michael Matz <matz@suse.de>
25391
25392 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25393 to strided_p.
25394 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25395 (STMT_VINFO_STRIDED_P): ... this.
25396 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25397 (vect_verify_datarefs_alignment): Likewise.
25398 (vect_enhance_data_refs_alignment): Likewise.
25399 (vect_analyze_data_ref_access): Likewise.
25400 (vect_analyze_data_refs): Accept strided stores.
25401 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25402 (vect_model_load_cost): Adjust for macro rename.
25403 (vectorizable_mask_load_store): Likewise.
25404 (vectorizable_load): Likewise.
25405 (vectorizable_store): Open code strided stores.
25406
25407 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25408
25409 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25410 Document sqrt_insn.
25411
25412 2015-05-21 Richard Biener <rguenther@suse.de>
25413
25414 PR c++/66211
25415 * match.pd: Guard pattern optimzing (int)(float)int
25416 conversions to apply only on GIMPLE.
25417
25418 2015-05-21 Jeff Law <law@redhat.com>
25419
25420 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25421 multiply-accumulate/shift-add insn generation.
25422
25423 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
25424
25425 PR target/54236
25426 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25427 operands[1] are the same.
25428
25429 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25430
25431 PR middle-end/66221
25432 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25433 build_distinct_type_copy to copy bounds.
25434
25435 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25436
25437 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25438 Change to unsigned int.
25439
25440 2015-05-20 Jeff Law <law@redhat.com>
25441
25442 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25443 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25444 (pa_shadd_constant_p): Allow constants for shadd insns rather
25445 than valid scaling constants for memory addresses.
25446 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25447 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25448 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25449 (shift-add insns using ASHIFT): New patterns.
25450
25451 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25452
25453 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25454 feasible.
25455 (fix_up_fall_thru_edges): Likewise.
25456 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25457 from to rtx_insn to rtx_code_label where feasible.
25458 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25459 gen_move_insn (returned type changed to rtx_insn).
25460 * builtins.c (expand_errno_check): Fix arguments of
25461 do_compare_rtx_and_jump (now expects rtx_code_label).
25462 (expand_builtin_acc_on_device): Likewise.
25463 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25464 invert_jump (now exprects rtx_jump_insn).
25465 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25466 (construct_init_block): Use rtx_code_label.
25467 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25468 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25469 calling redirect_jump.
25470 (patch_jump_insn): Likewise.
25471 (redirect_branch_edge): Likewise.
25472 (force_nonfallthru_and_redirect): Likewise.
25473 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25474 when suitable.
25475 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25476 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25477 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25478 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25479 to store the value retured by gen_label_rtx.
25480 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25481 rtx_jump_insn.
25482 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25483 (split_branches): Fix calls of redirect_jump.
25484 * dojump.c (jumpifnot): Promote argument type from rtx to
25485 rtx_code_label.
25486 (jumpifnot_1): Likewise.
25487 (jumpif): Likewise.
25488 (jumpif_1): Likewise.
25489 (do_jump_1): Likewise.
25490 (do_jump): Likewise. Use rtx_code_label when feasible.
25491 (do_jump_by_parts_greater_rtx): Likewise.
25492 (do_jump_by_parts_zero_rtx): Likewise.
25493 (do_jump_by_parts_equality_rtx): Likewise.
25494 (do_compare_rtx_and_jump): Likewise.
25495 * dojump.h: Update function prototypes.
25496 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25497 returns rtx_insn).
25498 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25499 rtx_jump_insn.
25500 (emit_label_before): Likewise.
25501 (emit_jump_insn_after_noloc): Likewise.
25502 (emit_jump_insn_after_setloc): Likewise.
25503 (emit_jump_insn_after): Likewise
25504 (emit_jump_insn_before_setloc): Likewise.
25505 (emit_jump_insn_before): Likewise.
25506 (emit_label_before): Promote return type to rtx_code_label.
25507 (emit_label): Likewise.
25508 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25509 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25510 gen_move_insn.
25511 (emit_stack_restore): Likewise.
25512 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25513 (do_cmp_and_jump): Likewise.
25514 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25515 from rtx to rtx_code_label.
25516 (gen_move_insn_uncast): New function.
25517 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25518 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25519 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25520 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25521 invert_jump_1 and redirect_jump_1.
25522 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25523 do_compare_rtx_and_jump.
25524 (expand_addsub_overflow): Likewise.
25525 (expand_neg_overflow): Likewise.
25526 (expand_mul_overflow): Likewise.
25527 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25528 return value of gen_move_insn.
25529 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25530 * loop-doloop.c (add_test): Use rtx_code_label.
25531 (doloop_modify): Likewise.
25532 (doloop_optimize): Likewise.
25533 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25534 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25535 by gen_move_insn.
25536 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25537 (split_reg): Likewise.
25538 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25539 gen_move_insn.
25540 * optabs.c (expand_binop_directly): Remove casts of values returned by
25541 maybe_gen_insn.
25542 (expand_unop_direct): Likewise.
25543 (expand_abs): Likewise.
25544 (maybe_emit_unop_insn): Likewise.
25545 (maybe_gen_insn): Promote return type to rtx_insn.
25546 * optabs.h: Update prototype of maybe_gen_insn.
25547 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25548 redundant cast.
25549 * recog.c (struct peep2_insn_data): Promote type of insn field to
25550 rtx_insn.
25551 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25552 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25553 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25554 * recog.h (struct insn_gen_fn): Promote return types of function
25555 pointers and operator ().from rtx to rtx_insn.
25556 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25557 (fill_eager_delay_slots): Likewise.
25558 (relax_delay_slots): Likewise.
25559 (make_return_insns): Likewise.
25560 (dbr_schedule): Likewise.
25561 (optimize_skips): Likewise.
25562 (reorg_redirect_jump): Likewise.
25563 (fill_slots_from_thread): Likewise.
25564 * reorg.h: Update prototypes.
25565 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25566 rtx_jump_insn instead of check. Use it's jump_target method.
25567 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25568 (rtx_jump_insn::jump_target): Define new method.
25569 (rtx_jump_insn::set_jump_target): Define new method.
25570 * rtlanal.c (tablejump_p): Promote type of one local variable.
25571 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25572 (sched_analyze_insn): Likewise.
25573 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25574 (print_insn): Likewise.
25575 * stmt.c (label_rtx): Promote return type to rtx_insn.
25576 (force_label_rtx): Likewise.
25577 (jump_target_rtx): Define new function.
25578 (expand_label): Use it, get rid of one cast.
25579 (expand_naked_return): Promote rtx to rtx_code_label.
25580 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25581 (expand_case): Use rtx_code_label instread of rtx where feasible.
25582 (expand_sjlj_dispatch_table): Likewise.
25583 (emit_case_nodes): Likewise.
25584 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25585 * store-motion.c (insert_store): Make use of new return type of
25586 gen_move_insn and remove a cast.
25587 (replace_store_insn): Likewise.
25588
25589 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25590
25591 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25592 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25593
25594 2015-05-20 Jeff Law <law@redhat.com>
25595
25596 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25597 dispose of the jump thread path when the jump threading
25598 opportunity is cancelled.
25599
25600 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
25601
25602 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25603 when printing the caret character.
25604
25605 2015-05-20 Marek Polacek <polacek@redhat.com>
25606
25607 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25608
25609 2015-05-20 Marek Polacek <polacek@redhat.com>
25610
25611 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25612 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25613 * gimple-fold.c (canonicalize_bool): Likewise.
25614 (same_bool_result_p): Likewise.
25615 * tree-if-conv.c (parse_predicate): Likewise.
25616
25617 2015-05-20 Marek Polacek <polacek@redhat.com>
25618
25619 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25620 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25621
25622 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25623
25624 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25625 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25626 values.
25627
25628 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
25629
25630 * config/mips/mips.h (micromips_globals): Declare.
25631
25632 2015-05-20 David Malcolm <dmalcolm@redhat.com>
25633
25634 * timevar.def (TV_INITIALIZE_RTL): New.
25635 * toplev.c (initialize_rtl): Use an auto_timevar to account this
25636 function's time to TV_INITIALIZE_RTL.
25637
25638 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25639
25640 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25641 gimple_build_nop calls.
25642 (chkp_find_bounds_for_elem): Likewise.
25643 (chkp_get_zero_bounds): Likewise.
25644 (chkp_get_none_bounds): Likewise.
25645 (chkp_get_bounds_by_definition): Likewise.
25646 (chkp_generate_extern_var_bounds): Likewise.
25647 (chkp_get_bounds_for_decl_addr): Likewise.
25648 (chkp_get_bounds_for_string_cst): Likewise.
25649
25650 2015-05-20 Bin Cheng <bin.cheng@arm.com>
25651
25652 PR tree-optimization/65447
25653 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25654 (dump_use, dump_uses): Support to dump sub use.
25655 (record_use): New parameters to support sub use. Remove call to
25656 dump_use.
25657 (record_sub_use, record_group_use): New functions.
25658 (compute_max_addr_offset, split_all_small_groups): New functions.
25659 (group_address_uses, rewrite_use_address): New functions.
25660 (strip_offset): New declaration.
25661 (find_interesting_uses_address): Call record_group_use.
25662 (add_candidate): New assertion.
25663 (infinite_cost_p): Move definition forward.
25664 (add_costs): Check INFTY cost and return immediately.
25665 (get_computation_cost_at): Clear setup cost and dependent bitmap
25666 for sub uses.
25667 (determine_use_iv_cost_address): Compute cost for sub uses.
25668 (rewrite_use_address_1): Rename from old rewrite_use_address.
25669 (free_loop_data): Free sub uses.
25670 (tree_ssa_iv_optimize_loop): Call group_address_uses.
25671
25672 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25673 Jim Wilson <jim.wilson@linaro.org>
25674
25675 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25676 new fields loadv and storev.
25677 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25678 Initialize loadv and storev.
25679 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25680 (cortexa53_extra_costs): Likewise.
25681 (cortexa57_extra_costs): Likewise.
25682 (xgene1_extra_costs): Likewise.
25683 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25684 rtx_costs.
25685
25686 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25687
25688 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25689 storev.
25690 (cortexa8_extra_costs): Likewise.
25691 (cortexa5_extra_costs): Likewise.
25692 (cortexa7_extra_costs): Likewise.
25693 (cortexa12_extra_costs): Likewise.
25694 (cortexa15_extra_costs): Likewise.
25695 (v7m_extra_costs): Likewise.
25696
25697 2015-05-20 Jeff Law <law@redhat.com>
25698
25699 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25700 instead of open-coded version. Also delete the jump thread created
25701 within this function.
25702
25703 2015-05-20 Alan Modra <amodra@gmail.com>
25704
25705 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25706 stack adjusting insn. Formatting.
25707 (rs6000_emit_prologue): Track stack adjusting insn, and use of
25708 r12. If possible, emit first -fsplit-stack arg pointer insn
25709 before stack adjust. Don't use r12 to save cr if split-stack.
25710
25711 2015-05-20 Alan Modra <amodra@gmail.com>
25712
25713 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25714 Define.
25715 (rs6000_supports_split_stack): New function.
25716 * config/rs6000/rs6000.c (machine_function): Add
25717 split_stack_arg_pointer.
25718 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25719 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25720 rather than virtual_incoming_args_rtx.
25721 (rs6000_va_start): Likewise.
25722 (split_stack_arg_pointer_used_p): New function.
25723 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25724 (morestack_ref): New var.
25725 (gen_add3_const, rs6000_expand_split_stack_prologue,
25726 rs6000_internal_arg_pointer, rs6000_live_on_entry,
25727 rs6000_split_stack_space_check): New functions.
25728 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25729 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25730 (UNSPECV_SPLIT_STACK_RETURN): Define.
25731 (split_stack_prologue, load_split_stack_limit,
25732 load_split_stack_limit_di, load_split_stack_limit_si,
25733 split_stack_return, split_stack_space_check): New expands and insns.
25734 * config/rs6000/rs6000-protos.h
25735 (rs6000_expand_split_stack_prologue): Declare.
25736 (rs6000_split_stack_space_check): Declare.
25737
25738 2015-05-20 Alan Modra <amodra@gmail.com>
25739
25740 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25741 (direct_return): Test vrsave_size rather than vrsave_mask.
25742 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
25743 (rs6000_emit_epilogue): Likewise.
25744
25745 2015-05-20 Alan Modra <amodra@gmail.com>
25746
25747 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25748 when not saving registers.
25749 (debug_stack_info): Adjust to omit printing unused offsets,
25750 as before.
25751 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25752 expression.
25753
25754 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25755
25756 PR c++/65835
25757 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25758 value_type to const char *.
25759
25760 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
25761
25762 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25763 to build a biarch toolchain again.
25764
25765 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25766
25767 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25768 or implicit declarations.
25769 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25770 into it.
25771 (get_odr_type): Check type has linkage before adding bases.
25772 (register_odr_type): Check that type has linkage before adding it.
25773 (type_known_to_have_no_deriavations_p): Rename to ..
25774 (type_known_to_have_no_derivations_p): This one.
25775 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25776 (type_known_to_have_no_derivations_p): This one.
25777 * ipa-polymorphic-call.c
25778 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25779 type has linkage.
25780
25781 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25782
25783 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25784 (layout_type): Use RECORD_OR_UNION_TYPE_P.
25785
25786 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25787
25788 * config/s390/s390.c (s390_vector_bool_type_p): New function.
25789 (s390_invalid_binary_op): New function.
25790 (TARGET_INVALID_BINARY_OP): Define macro.
25791
25792 2015-05-19 David Sherwood <david.sherwood@arm.com>
25793
25794 * loop-invariant.c (create_new_invariant): Don't calculate address cost
25795 if mode is not a scalar integer.
25796 (get_inv_cost): Increase computational cost for unused invariants.
25797
25798 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25799
25800 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
25801 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
25802 * config/s390/s390-builtin-types.def: New file.
25803 * config/s390/s390-builtins.def: New file.
25804 * config/s390/s390-builtins.h: New file.
25805 * config/s390/s390-c.c: New file.
25806 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25807 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25808 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25809 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25810 prototypes.
25811 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25812 Include.
25813 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25814 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25815 variable definitions.
25816 (s390_const_operand_ok): New function.
25817 (s390_expand_builtin): Rewrite.
25818 (s390_init_builtins): New function.
25819 (s390_handle_vectorbool_attribute): New function.
25820 (s390_attribute_table): Add s390_vector_bool attribute.
25821 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25822 (s390_branch_condition_mask): Generate masks for new modes.
25823 (s390_expand_vec_compare_cc): New function.
25824 (s390_mangle_type): Add mangling for vector bool types.
25825 (enum s390_builtin): Remove.
25826 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25827 efpc builtins.
25828 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25829 s390_cpu_cpp_builtins.
25830 (REGISTER_TARGET_PRAGMAS): New macro.
25831 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25832 (insn_cmp mode attribute): Add new CC modes.
25833 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25834 (lcbb): New pattern definition.
25835 * config/s390/s390intrin.h: Include vecintrin.h.
25836 * config/s390/t-s390: New file.
25837 * config/s390/vecintrin.h: New file.
25838 * config/s390/vector.md: Include vx-builtins.md.
25839 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25840 support.
25841
25842 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25843
25844 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25845 CCVFHE.
25846 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25847 (s390_select_ccmode): Likewise.
25848 (s390_canonicalize_comparison): Swap operands if necessary.
25849 (s390_expand_vec_compare_scalar): Expand DFmode compare using
25850 single element vector instructions.
25851 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25852 (s390_branch_condition_mask): Generate CC masks for the new modes.
25853 * config/s390/s390.md (v0, vf, vd): New mode attributes.
25854 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25855 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25856 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25857 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25858 (*extend<DSF:mode><BFP:mode>2): New insn definition.
25859 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25860 (extend<DSF:mode><BFP:mode>2): Turn into expander.
25861 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25862 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25863 (sqrt<mode>2): Add vector instruction.
25864
25865 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25866
25867 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25868 constraints.
25869 * config/s390/predicates.md (const0_operand, constm1_operand)
25870 (constable_operand): Accept vector operands.
25871 * config/s390/s390-modes.def: Add supported vector modes.
25872 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25873 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25874 (s390_bytemask_vector_p, s390_expand_vec_strlen)
25875 (s390_expand_vec_compare, s390_expand_vcond)
25876 (s390_expand_vec_init): Add prototypes.
25877 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25878 (s390_vector_mode_supported_p): New function.
25879 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25880 (s390_contiguous_bitmask_vector_p): New function.
25881 (s390_bytemask_vector_p): New function.
25882 (s390_split_ok_p): Vector regs don't work either.
25883 (regclass_map): Add VEC_REGS.
25884 (s390_legitimate_constant_p): Handle vector constants.
25885 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25886 (legitimate_reload_vector_constant_p): New function.
25887 (s390_preferred_reload_class): Handle CONST_VECTOR.
25888 (s390_reload_symref_address): Likewise.
25889 (s390_secondary_reload): Vector memory instructions only support
25890 short displacements. Rename reload*_nonoffmem* to reload*_la*.
25891 (s390_emit_ccraw_jump): New function.
25892 (s390_expand_vec_strlen): New function.
25893 (s390_expand_vec_compare): New function.
25894 (s390_expand_vcond): New function.
25895 (s390_expand_vec_init): New function.
25896 (s390_dwarf_frame_reg_mode): New function.
25897 (print_operand): Handle addresses with 'O' and 'R' constraints.
25898 (NR_C_MODES, constant_modes): Add vector modes.
25899 (s390_output_pool_entry): Handle vector constants.
25900 (s390_hard_regno_mode_ok): Handle vector registers.
25901 (s390_class_max_nregs): Likewise.
25902 (s390_cannot_change_mode_class): New function.
25903 (s390_invalid_arg_for_unprototyped_fn): New function.
25904 (s390_function_arg_vector): New function.
25905 (s390_function_arg_float): Remove size variable.
25906 (s390_pass_by_reference): Handle vector arguments.
25907 (s390_function_arg_advance): Likewise.
25908 (s390_function_arg): Likewise.
25909 (s390_return_in_memory): Vector values are returned in a VR if
25910 possible.
25911 (s390_function_and_libcall_value): Handle vector arguments.
25912 (s390_gimplify_va_arg): Likewise.
25913 (s390_call_saved_register_used): Consider the arguments named.
25914 (s390_conditional_register_usage): Disable v16-v31 for non-vec
25915 targets.
25916 (s390_preferred_simd_mode): New function.
25917 (s390_support_vector_misalignment): New function.
25918 (s390_vector_alignment): New function.
25919 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25920 (TARGET_VECTOR_MODE_SUPPORTED_P)
25921 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25922 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25923 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25924 (TARGET_VECTOR_ALIGNMENT): Define target macro.
25925 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25926 (FIRST_PSEUDO_REGISTER): Increase value.
25927 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25928 (VECTOR_REG_P): Define macros.
25929 (FIXED_REGISTERS, CALL_USED_REGISTERS)
25930 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25931 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25932 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25933 Add vector registers.
25934 (CANNOT_CHANGE_MODE_CLASS): Call C function.
25935 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25936 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25937 memory.
25938 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25939 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25940 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25941 (VR*_REGNUM): New constants.
25942 (ALL): New mode iterator.
25943 (INTALL): Remove mode iterator.
25944 Include vector.md.
25945 (movti): Implement TImode moves for VRs.
25946 Disable TImode splitter for VR targets.
25947 Implement splitting TImode GPR<->VR moves.
25948 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25949 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25950 reload<mode>_la_in, reload<mode>_la_out.
25951 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25952 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25953 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25954 (mov<mode> SF SD): Prefer lder, lde for loading.
25955 Add lrl and strl instructions.
25956 Add vector instructions.
25957 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25958 Call s390_expand_vec_strlen on z13.
25959 (*cc_to_int): Change predicate to nonimmediate_operand.
25960 (addti3): Rename to *addti3. New expander.
25961 (subti3): Rename to *subti3. New expander.
25962 * config/s390/vector.md: New file.
25963
25964 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25965
25966 * common/config/s390/s390-common.c (processor_flags_table): Add
25967 z13.
25968 * config.gcc: Add z13.
25969 * config/s390/s390-opts.h (enum processor_type): Add
25970 PROCESSOR_2964_Z13.
25971 * config/s390/s390.c (s390_adjust_priority): Check for
25972 PROCESSOR_2964_Z13.
25973 (s390_reorg): Likewise.
25974 (s390_sched_reorder): Likewise.
25975 (s390_sched_variable_issue): Likewise.
25976 (s390_loop_unroll_adjust): Likewise.
25977 (s390_option_override): Likewise. Default to -mvx when available.
25978 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25979 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25980 (TARGET_VX_ABI): Define macros.
25981 macros.
25982 (TARGET_DEFAULT): Add MASK_OPT_VX.
25983 * config/s390/s390.md ("cpu" attribute): Add z13.
25984 ("cpu_facility" attribute): Add vec.
25985 * config/s390/s390.opt (processor_type): Add z13.
25986 (mvx): New options.
25987 * doc/invoke.texi: Add z13 option for -march.
25988
25989 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25990
25991 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25992 mode check to make sure that only scalar integer values are
25993 accepted.
25994
25995 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25996
25997 * tree.c (verify_type_variant): Fix #undef.
25998 (gimple_canonical_types_compatible_p): Move here from lto.c
25999 (verify_type): Verify TYPE_CANONICAL compatibility.
26000 * tree.h (gimple_canonical_types_compatible_p): Declare.
26001
26002 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26003
26004 PR middle-end/66199
26005 * tree.h (OMP_TEAMS_COMBINED): Define.
26006 * gimplify.c (enum gimplify_omp_var_data): Add
26007 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26008 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26009 (omp_notice_variable): Accept both ORT_TEAMS
26010 and ORT_COMBINED_TEAMS. Don't recurse if
26011 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26012 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26013 GOVD_FIRSTPRIVATE.
26014 (omp_no_lastprivate): New function.
26015 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26016 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26017 notice_outer and set appropriate bits, otherwise make
26018 sure default(none) combined constructs won't complain.
26019 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26020 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26021 omp_no_lastprivate either remove the clause or turn it
26022 into OMP_CLAUSE_PRIVATE.
26023 (gimplify_omp_for): Fix up handling of implicit
26024 lastprivate or linear iterators.
26025 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26026 ORT_COMBINED_TEAMS.
26027 * omp-low.c (lower_omp_for_lastprivate): For combined
26028 for simd use fd.loop.n2 from the for rather than simd.
26029
26030 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26031
26032 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26033 instead of gen_rtx_raw_REG.
26034 (cris_expand_epilogue): Likewise.
26035 * config/microblaze/microblaze.c (microblaze_classify_address):
26036 Likewise.
26037 * config/sparc/sparc.md: Likewise.
26038
26039 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
26040
26041 * config/alpha/alpha.c (alpha_legitimize_reload_address)
26042 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26043 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26044 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26045 Use CASE_CONST_SCALAR_INT.
26046 (print_operand) <case 'M'>: Use mode_width_operand to check the
26047 value of the constant.
26048 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26049 * config/alpha/predicates.md (input_operand): Use general_operand
26050 instead of match_code as operand check.
26051 (symbolic_operand): Use match_code with subexpression digits.
26052 * config/alpha/constraints.md (Q): Ditto.
26053
26054 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26055
26056 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26057
26058 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26059
26060 * config/s390/s390.c (s390_secondary_reload): Fix check for
26061 load/store relative.
26062
26063 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26064
26065 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
26066 alternative_mask to uint64_t.
26067
26068 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26069
26070 PR tree-optimization/66187
26071 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26072 Pass TYPE_SIGN to tree_int_cst_min_precision. If
26073 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26074
26075 2015-05-19 David Malcolm <dmalcolm@redhat.com>
26076
26077 * diagnostic.c (diagnostic_report_current_module): Strengthen
26078 local "new_map" from const line_map * to
26079 const line_map_ordinary *.
26080 * genmatch.c (error_cb): Likewise for local "map".
26081 (output_line_directive): Likewise for local "map".
26082 * input.c (expand_location_1): Likewise for local "map".
26083 Pass NULL rather than &map to
26084 linemap_unwind_to_first_non_reserved_loc, since the value is never
26085 read from there, and the value written back not read from here.
26086 (is_location_from_builtin_token): Strengthen local "map" from
26087 const line_map * to const line_map_ordinary *.
26088 (dump_location_info): Strengthen locals "map" from
26089 line_map *, one to const line_map_ordinary *, the other
26090 to const line_map_macro *.
26091 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26092 const line_map * to const line_map_macro *.
26093 (maybe_unwind_expanded_macro_loc): Add a call to
26094 linemap_check_macro when writing to the "map" field of the
26095 loc_map_pair.
26096 Introduce local const line_map_ordinary * "ord_map", using it in
26097 place of "map" in the part of the function where we know we have
26098 an ordinary map. Strengthen local "m" from const line_map * to
26099 const line_map_ordinary *.
26100
26101 2015-05-19 Nick Clifton <nickc@redhat.com>
26102
26103 PR target/66156
26104 * config/msp430/msp430.md (zero_extendhisi2): Add support for
26105 separate source and destination registers.
26106
26107 2015-05-19 Richard Biener <rguenther@suse.de>
26108
26109 PR tree-optimization/66165
26110 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26111 for no load permutation.
26112
26113 PR tree-optimization/66185
26114 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26115 when building the SLP node from scalars.
26116
26117 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26118 Tristan Gingold <gingold@adacore.com>
26119
26120 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26121 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26122 (expand_stack_restore): Call record_new_stack_level.
26123 (expand_stack_save): Do not call do_pending_stack_adjust.
26124 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26125 * calls.c (expand_call): Call record_new_stack_level for alloca.
26126 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26127 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26128 (update_sjlj_context): New global function.
26129 * except.h (update_sjlj_context): Declare.
26130 * explow.c (record_new_stack_level): New global function.
26131 (allocate_dynamic_stack_space): Call record_new_stack_level.
26132 * explow.h (record_new_stack_level): Declare.
26133 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26134 * cfgrtl.c (duplicate_insn_chain): Likewise.
26135
26136 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26137
26138 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26139 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26140 STACK_GROWS_DOWNWARD as normal if.
26141 (expand_call): Likewise.
26142
26143 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
26144
26145 PR target/54236
26146 * config/sh/sh.md (*round_int_even): New insn_and_split and
26147 accompanying new unnamed split.
26148
26149 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26150
26151 * bitmap.c (bitmap_set_range): Handle count==1 specially.
26152 (bitmap_clear_range): Likewise.
26153 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26154 bitmap_set_range unconditionally.
26155 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26156 * df-scan.c (df_mark_reg): Likewise.
26157 * haifa-sched.c (setup_ref_regs): Likewise.
26158 * sched-rgn.c (update_live_1): Likewise.
26159
26160 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26161
26162 * regs.h (END_HARD_REGNO): Delete.
26163 (END_REGNO): Move to...
26164 * rtl.h: ...here.
26165 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26166 * caller-save.c (mark_set_regs): Likewise.
26167 * combine.c (move_deaths, distribute_notes): Likewise.
26168 * cse.c (invalidate, invalidate_for_call): Likewise.
26169 * df-scan.c (df_ref_record): Likewise.
26170 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26171 (record_last_reg_set_info): Likewise.
26172 * reg-stack.c (convert_regs_exit): Likewise.
26173 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26174 * resource.c (update_live_status): Likewise.
26175 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26176
26177 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26178
26179 * rtl.h (reg_info): Add an nregs field.
26180 (REG_NREGS): Use it.
26181 (SET_REGNO_RAW): Delete.
26182 (set_regno_raw): New function.
26183 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26184 (END_REGNO): Redefine in terms of REG_NREGS.
26185 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26186 SET_REGNO_RAW.
26187 * emit-rtl.c (set_mode_and_regno): Likewise.
26188 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26189 instead of SET_REGNO_RAW.
26190
26191 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26192
26193 * rtl.h (PUT_MODE_RAW): New macro.
26194 (PUT_REG_NOTE_KIND): Use it.
26195 (set_mode_and_regno): Declare.
26196 (gen_raw_REG): Change regno to "unsigned int".
26197 (gen_rtx_REG): Change "unsigned" to "unsigned int".
26198 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26199 use set_mode_and_regno to change the mode of registers.
26200 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26201 * emit-rtl.c (set_mode_and_regno): New function.
26202 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
26203 * caller-save.c (reg_save_code): Use set_mode_and_regno.
26204 * expr.c (init_expr_target): Likewise.
26205 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26206 * postreload.c (reload_cse_simplify_operands): Likewise.
26207
26208 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26209
26210 * caller-save.c (init_caller_save): Use word_mode and
26211 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26212 * expr.c (init_expr_target): Likewise.
26213 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26214 * postreload.c (reload_cse_regs_1): Likewise.
26215
26216 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26217
26218 * rtl.def (REG): Change format to "r".
26219 * rtl.h (rtunion): Remove rt_reg.
26220 (reg_info): New structure.
26221 (rtx_def): Add reg field to main union.
26222 (X0REGATTR): Delete.
26223 (REG_CHECK): New macro.
26224 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26225 * rtl.c (rtx_format): Document "r".
26226 (rtx_code_size): Handle REG specially.
26227 * gengenrtl.c (special_format): Return true for formats
26228 that include 'r'.
26229 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26230 Deal with REG_ATTRS after the field loop.
26231 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26232 * expmed.c (init_expmed): Call gen_raw_REG instead of
26233 gen_rtx_raw_REG.
26234 * expr.c (init_expr_target): Likewise.
26235 * regcprop.c (maybe_mode_change): Likewise.
26236 * varasm.c (make_decl_rtl): Likewise.
26237 * final.c (leaf_renumber_regs_insn): Return early after
26238 handling REGs.
26239 * genemit.c (gen_exp): Handle 'r' fields.
26240 * genpeep.c (match_rtx): Likewise.
26241 * gensupport.c (subst_pattern_match): Likewise.
26242 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26243 (alter_constraints, subst_dup): Likewise.
26244 * read-rtl.c (read_rtx_code): Likewise.
26245 * print-rtl.c (print_rtx): Likewise.
26246 * genrecog.c (find_operand, find_matching_operand): Likewise.
26247 (validate_pattern, match_pattern_2): Likewise.
26248 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26249 (rtx_test::regno_field): New function.
26250 (operator ==, safe_to_hoist_p, transition_parameter_type)
26251 (parameter_type_string, print_parameter_value)
26252 (print_nonbool_test, print_test): Handle new enum values.
26253 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26254 * lra-constraints.c (operands_match_p): Likewise.
26255
26256 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26257
26258 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26259 Change type of new_regno to unsigned int.
26260 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26261 new_regno to unsigned int.
26262 (df_ref_change_reg_with_loc): Remove old_regno parameter.
26263 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
26264 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26265 (SET_REGNO_RAW): Add space after ",".
26266
26267 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26268
26269 * rtl.h (REG_NREGS): New macro
26270 * alias.c (record_set): Use it.
26271 * cfgcleanup.c (mark_effect): Likewise.
26272 * combine.c (likely_spilled_retval_1): Likewise.
26273 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26274 (move_deaths, distribute_notes): Likewise.
26275 * cselib.c (cselib_record_set): Likewise.
26276 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26277 * df-scan.c (df_mark_reg): Likewise.
26278 * dse.c (look_for_hardregs): Likewise.
26279 * dwarf2out.c (reg_loc_descriptor): Likewise.
26280 (multiple_reg_loc_descriptor): Likewise.
26281 * expr.c (write_complex_part, read_complex_part): Likewise.
26282 (emit_move_complex): Likewise.
26283 * haifa-sched.c (setup_ref_regs): Likewise.
26284 * ira-lives.c (mark_hard_reg_live): Likewise.
26285 * lra.c (lra_set_insn_recog_data): Likewise.
26286 * mode-switching.c (create_pre_exit): Likewise.
26287 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26288 (reload_combine_recognize_pattern): Likewise.
26289 (reload_combine_note_use, move2add_record_mode): Likewise.
26290 (reload_cse_move2add): Likewise.
26291 * reg-stack.c (subst_stack_regs_pat): Likewise.
26292 * regcprop.c (kill_value, copy_value): Likewise.
26293 (copyprop_hardreg_forward_1): Likewise.
26294 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26295 (build_def_use): Likewise.
26296 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26297 (deps_analyze_insn): Likewise.
26298 * sched-rgn.c (check_live_1, update_live_1): Likewise.
26299 * sel-sched.c (count_occurrences_equiv): Likewise.
26300 * valtrack.c (dead_debug_insert_temp): Likewise.
26301
26302 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26303
26304 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26305 * dse.c (note_add_store): Likewise.
26306 * ira-lives.c (mark_hard_reg_dead): Likewise.
26307 * loop-invariant.c (mark_reg_store): Likewise.
26308 (mark_reg_death): Likewise.
26309 * postreload.c (reload_combine): Likewise.
26310 (reload_combine_note_store): Likewise.
26311 (reload_combine_note_use): Likewise.
26312 * recog.c (peep2_reg_dead_p): Likewise.
26313
26314 2015-05-19 Alan Modra <amodra@gmail.com>
26315
26316 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26317 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26318 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26319 unused predicates.
26320 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26321 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
26322 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26323 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26324
26325 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
26326
26327 * config/mips/mips.md (JOIN_MODE): New mode iterator.
26328 (join2_load_Store<JOIN_MODE:mode>): New pattern.
26329 (join2_loadhi): Likewise.
26330 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26331 load-load and store-stores.
26332 * config/mips/mips.opt (mload-store-pairs): New option.
26333 (TARGET_LOAD_STORE_PAIRS): New macro.
26334 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26335 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26336 * config/mips/mips.c (mips_load_store_bonding_p): New function.
26337
26338 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
26339
26340 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26341 explicit swaps.
26342 * dojump.c (do_compare_rtx_and_jump): Likewise.
26343 * expmed.c (emit_store_flag_1): Likewise.
26344 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26345 * final.c (sprint_ul): Use std::reverse for reversing a string.
26346 * fold-const.c (extract_muldiv_1): Use std::swap.
26347 * genmodes.c (emit_mode_int_n): Likewise.
26348 * ifcvt.c (dead_or_predicable): Likewise.
26349 * ira-build.c (ira_merge_live_ranges): Likewise.
26350 (swap_allocno_copy_ends_if_necessary): Likewise.
26351 * ira.c (ira_setup_alts): Likewise.
26352 * loop-iv.c (iv_analyze_expr): Likewise.
26353 (implies_p): Likewise.
26354 (canon_condition): Likewise.
26355 * lra-constraints.c (swap_operands): Likewise.
26356 * lra-lives.c (lra_merge_live_ranges): Likewise.
26357 * omega.c (swap): Remove.
26358 (bswap): Remove.
26359 (omega_unprotect_1): Use std::swap.
26360 (omega_solve_geq): Likewise.
26361 * optabs.c (expand_binop_directly): Likewise.
26362 (expand_binop): Likewise.
26363 (emit_conditional_move): Likewise.
26364 (emit_conditional_add): Likewise.
26365 * postreload.c (reload_cse_simplify_operands): Likewise.
26366 * reg-stack.c (emit_swap_insn): Likewise.
26367 (swap_to_top): Likewise.
26368 (compare_for_stack_reg): Likewise.
26369 (subst_asm_stack_regs): Likewise.
26370 * reload.c (find_reloads): Likewise.
26371 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26372 * sel-sched.c (invoke_reorder_hooks): Likewise.
26373 (create_block_for_bookkeeping): Likewise.
26374 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26375 (lambda_matrix_right_hermite): Use std::swap.
26376 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26377 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26378 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26379 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26380 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26381 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26382 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26383 * tree-vrp.c (compare_ranges): Likewise.
26384 * var-tracking.c (add_with_sets): Likewise.
26385 (vt_find_locations): Likewise.
26386
26387 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
26388
26389 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26390 pie executables.
26391 (FBSD_ENDFILE_SPEC): Likewise.
26392 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26393 config/freebsd-spec.h.
26394 (ENDFILE_SPEC): Likewise.
26395
26396 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
26397 Richard Henderson <rth@redhat.com>
26398
26399 PR target/57032
26400 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26401 Check for a memory location that is not a reference (using an AND)
26402 to an unaligned location here.
26403 * config/alpha/predicates.md (normal_memory_operand): Remove.
26404
26405 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
26406
26407 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26408 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26409
26410 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
26411
26412 * config/mips/mips.c (micromips_globals): New variable.
26413 (mips_set_compression_mode): Save and reinitialize target-dependent
26414 state for microMIPS.
26415
26416 2015-05-18 Martin Liska <mliska@suse.cz>
26417
26418 * dbgcnt.def: Add new counter.
26419 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26420
26421 2015-05-18 Martin Liska <mliska@suse.cz>
26422
26423 * dbgcnt.def: Sort counters.
26424 * opts.c (common_handle_option): Do not compile if
26425 -fdbg-cnt-list is enabled.
26426
26427 2015-05-18 Tom de Vries <tom@codesourcery.com>
26428
26429 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26430 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26431 address operator to va_list operand.
26432 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26433 unconditionally.
26434 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26435 operand.
26436 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26437 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26438 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26439
26440 2015-05-18 Tom de Vries <tom@codesourcery.com>
26441
26442 * tree-ssa-tail-merge.c: Fix whitespace.
26443
26444 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26445
26446 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26447 cortex-a17, and cortex-a17.cortex-a7.
26448
26449 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26450
26451 PR target/54236
26452 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26453
26454 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26455
26456 PR target/66174
26457 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26458 QImode inner modes for TARGET_AVX512BW. Force mask operand
26459 to a register for AVX512F modes.
26460
26461 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26462
26463 * toplev.c (emit_debug_global_declarations): Do not output debug info
26464 when doing slim LTO objects.
26465
26466 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26467
26468 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26469 odr_types_equivalent_p): Declare.
26470 (odr_type_p): Use gcc_checking_assert.
26471 (type_in_anonymous_namespace_p) Declare.
26472 (type_with_linkage_p): Declare.
26473 * common.opt (Wlto-type-mismatch): New warning.
26474 * ipa-devirt.c (compound_type_base): New function.
26475 (odr_or_derived_type_p): New function.
26476 (odr_types_equivalent_p): New function.
26477 (add_type_duplicate): Simplify.
26478 (type_with_linkage_p): Add hack to prevent false positives on C types
26479 (type_in_anonymous_namespace_p): Likewise.
26480 * tree.c (need_assembler_name_p): Use type_with_linkage.
26481 * tree.h (type_in_anonymous_namespace_p): Remove.
26482 * doc/invoke.texi (-Wlto-type-mismatch): Document
26483
26484 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26485
26486 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26487 (verify_type): Verify STRING_FLAG.
26488
26489 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26490
26491 PR fortran/44054
26492 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26493 with accessor function.
26494 * tree-diagnostic.c (diagnostic_report_current_function): Use
26495 diagnostic_location function.
26496 (maybe_unwind_expanded_macro_loc): Likewise.
26497 (virt_loc_aware_diagnostic_finalizer): Likewise.
26498 (default_tree_printer): Replace locus pointer with accessor function.
26499 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26500 (diagnostic_set_info_translated): Initialize second location.
26501 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26502 (diagnostic_show_locus): Handle two locations. Call
26503 diagnostic_print_caret_line.
26504 (diagnostic_print_caret_line): New.
26505 (default_diagnostic_starter): Use diagnostic_location function.
26506 (diagnostic_report_diagnostic): Use diagnostic_location function.
26507 (verbatim): Do not set text.locus.
26508 * diagnostic.h (struct diagnostic_info): Remove location field.
26509 (struct diagnostic_context): Make caret_chars an array of two.
26510 (diagnostic_location): New inline.
26511 (diagnostic_expand_location): Handle two locations.
26512 (diagnostic_same_line): New inline.
26513 (diagnostic_print_caret_line): Declare.
26514 (CARET_LINE_MARGIN): New constant.
26515 * pretty-print.c (pp_printf): Do not set text.locus.
26516 (pp_verbatim): Do not set text.locus.
26517 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26518 (struct text_info): Replace locus pointer with locations
26519 array. Add accessor functions.
26520
26521 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26522 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26523
26524 PR target/65768
26525 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26526 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26527 large constants in register instead of splitting them.
26528
26529 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26530
26531 PR target/66140
26532 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26533 replacements in memory addresses.
26534 (get_unaligned_address): Ditto.
26535
26536 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26537
26538 * config/ft32/*: New files for FT32 port.
26539 * doc/install.texi: Add FT32 information.
26540 * doc/invoke.texi: Add FT32 information.
26541 * doc/md.texi: Add FT32 information.
26542 * doc/contrib.texi: Self added.
26543
26544 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26545
26546 PR tree-optimization/64454
26547 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26548 (-1 - A -> ~A): Remove unnecessary condition.
26549
26550 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26551
26552 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26553 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26554 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26555
26556 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26557
26558 * ipa-chkp.h (chkp_wrap_function): New.
26559 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26560 (chkp_wrap_function_name): New.
26561 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26562 to get wrapper name.
26563 * lto-cgraph.c: Include ipa-chkp.h.
26564 (input_cgraph_1): Avoid alias chain for wrappers.
26565
26566 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26567
26568 PR middle-end/66134
26569 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26570 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26571
26572 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26573
26574 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26575 (AARCH64_FL_SLOWMUL): Delete.
26576 (AARCH64_FL_CRC): Redefine to 1<<3.
26577 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26578
26579 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26580
26581 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26582 casting.
26583
26584 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26585
26586 * config/alpha/alpha.md (extendqidi2): Use general_operand
26587 instead of some_operand for operand[1] predicate.
26588 (extendhidi2): Ditto.
26589 (cbranchdi4): Use general_operand instead of some_operand
26590 for operand[1] and operands[2] predicates.
26591 (cstoredi4): Ditto.
26592 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26593 (some_ni_operand): Ditto.
26594
26595 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26596
26597 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26598 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
26599 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26600 low part of the constant using alpha_emit_set_const_1.
26601 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26602
26603 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
26604
26605 * varasm.c (output_constant_pool_1): Pass down alignment from
26606 constant pool entry's descriptor to output_constant_pool_2.
26607 (output_object_block): Add comment prior to call to
26608 output_constant_pool_1.
26609
26610 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
26611
26612 PR rtl-optimization/65862
26613 * target.def (ira_change_pseudo_allocno_class): New hook.
26614 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26615 value of the hook.
26616 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26617 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26618 hook.
26619 * ira-costs.c (find_costs_and_classes): Call the hook and change
26620 classes when it is necessary.
26621 * doc/tm.texi: Update.
26622
26623 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
26624
26625 * config/i386/i386.md (sibcall_memory): Check that register with
26626 callee address is not also used as one of the arguments, instead
26627 of checking that it is not live after the sibcall.
26628 (sibcall_pop_memory): Ditto.
26629 (sibcall_value_memory): Ditto.
26630 (sibcall_value_pop_memory): Ditto.
26631
26632 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
26633
26634 * generic-match-head.c (types_match): Handle non-types.
26635 * gimple-match-head.c (types_match): Likewise.
26636 * match.pd: Remove unnecessary TREE_TYPE for types_match.
26637
26638 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
26639
26640 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26641 (csneg3<mode>_insn): Enable expansion of pattern.
26642
26643 2015-05-14 Nick Clifton <nickc@redhat.com>
26644
26645 * config/rl78/rl78.c (rl78_select_section): Select the correct
26646 default section based upon the category of the decl.
26647
26648 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26649
26650 PR rtl-optimization/30967
26651 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26652 destination mode for the cost of scc patterns.
26653
26654 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26655
26656 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26657 using SWIM248 mode iterator.
26658 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26659 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
26660 for operand[2] constraint.
26661 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26662
26663 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26664
26665 PR middle-end/66133
26666 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26667 make sure it is never noreturn, even when the task body does not
26668 return.
26669 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26670 right before GIMPLE_OMP_RETURN.
26671 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26672 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
26673 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26674
26675 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26676
26677 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26678 * tree-ssa-math-opts.c: Include params.h
26679 (pow_synth_sqrt_info): New struct.
26680 (representable_as_half_series_p): New function.
26681 (get_fn_chain): Likewise.
26682 (print_nested_fn): Likewise.
26683 (dump_fractional_sqrt_sequence): Likewise.
26684 (dump_integer_part): Likewise.
26685 (expand_pow_as_sqrts): Likewise.
26686 (gimple_expand_builtin_pow): Use above to attempt to expand
26687 pow as series of square roots. Removed now unused variables.
26688
26689 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26690
26691 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26692 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26693 Remove *p0 and *p1 arguments. Rewrite function.
26694 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26695 (alpha_split_const_mov): Update calls to alpha_extract_integer and
26696 alpha_emit_set_long_const.
26697 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26698 (alpha_output_mi_thunk_osf): Ditto.
26699 * config/alpha/alpha.md (movti): Do not check operands[1]
26700 for CONST_DOUBLE.
26701
26702 2015-05-13 Richard Biener <rguenther@suse.de>
26703
26704 PR tree-optimization/66129
26705 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26706 commutative.
26707 (vect_schedule_slp_instance): Fix typo.
26708
26709 2015-05-13 David Malcolm <dmalcolm@redhat.com>
26710
26711 * common.opt (fdump-internal-locations): New option.
26712 * input.c: Include diagnostic-core.h.
26713 (get_end_location): New function.
26714 (write_digit): New function.
26715 (write_digit_row): New function.
26716 (dump_location_range): New function.
26717 (dump_labelled_location_range): New function.
26718 (dump_location_info): New function.
26719 * input.h (dump_location_info): New prototype.
26720 * toplev.c (compile_file): Handle flag_dump_locations.
26721
26722 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
26723
26724 * gimple-expr.h (is_gimple_constant): Reorder.
26725 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26726
26727 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26728
26729 * combine.c (simplify_set): When generating a CC set, if the
26730 source already is in the correct mode, do not wrap it in a
26731 compare. Simplify the rest of that code.
26732
26733 2015-05-13 Richard Biener <rguenther@suse.de>
26734
26735 PR tree-optimization/66123
26736 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26737 a taken edge.
26738
26739 2015-05-13 Richard Biener <rguenther@suse.de>
26740
26741 PR middle-end/66110
26742 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26743 specially.
26744 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26745
26746 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26747
26748 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26749 * aclocal.m4: Regenerated with automake-1.11.6.
26750
26751 2015-05-13 Tom de Vries <tom@codesourcery.com>
26752
26753 PR tree-optimization/66010
26754 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26755 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26756 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
26757 and rval based on do_deref.
26758
26759 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26760
26761 PR target/65103
26762 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26763 link time constants into adress expressions and therefore set
26764 their cost to 0.
26765
26766 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26767
26768 PR target/66112
26769 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26770 Use SWI248 iterator instead of SWI.
26771 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
26772 Use eq_attr "alternative" "0" instead of match_test in
26773 length_immediate attribute computation.
26774 (*mulvhi4, *mulvhi4_1): New define_insns.
26775
26776 PR target/66112
26777 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26778 SIGNED to get precision of non-negative value.
26779
26780 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26781
26782 PR target/66048
26783 * function.c (diddle_return_value_1): Process bounds first.
26784 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26785 register.
26786
26787 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26788
26789 PR rtl-optimization/64616
26790 * loop-invariant.c (can_move_invariant_reg): New.
26791 (move_invariant_reg): Call above new function to decide whether
26792 instruction can just be moved, skipping creation of temporary
26793 register.
26794
26795 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26796
26797 PR target/pr66047.c
26798 * i386.c (ix86_function_sseregparm): Only return -1 if local function
26799 with implied regparm is called from -mno-sse function.
26800 (init_cumulative_args): Output error if ix86_function_sseregparm
26801 return -1 and SSE register would be needed.
26802 (function_arg_advance_32): Likewise.
26803 (function_arg_32): Likewise.
26804 * i386.h (ix86_args): Add decl field.
26805
26806 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26807
26808 PR ipa/65873
26809 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26810 inlines across optimization boundary.
26811
26812 2015-05-12 Jason Merrill <jason@redhat.com>
26813
26814 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26815 string literal and macro name.
26816
26817 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
26818
26819 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26820 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26821 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26822
26823 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26824
26825 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26826 (-Wmisleading-indentation): New option.
26827 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26828
26829 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
26830
26831 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26832 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26833 (alpha_extract_integer): Ditto.
26834 (alpha_legitimate_constant_p): Ditto.
26835 (alpha_split_tmode_pair): Ditto.
26836 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26837 (alpha_expand_mov): Ditto.
26838 (print_operand): Remove handling of 'H' modifier.
26839 <case 'm'>: Remove CONST_DOUBLE handling.
26840 (summarize_insn): Handle CONST_WIDE_INT.
26841 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26842 (anddi3): Ditto.
26843 (movti): Handle CONST_WIDE_INT.
26844 * config/alpha/constraints.md ('H'): Remove constraint definition.
26845 ('G'): Do not match MODE_FLOAT class.
26846 * config/alpha/predicates.md (const0_operand): Also match
26847 const_wide_int.
26848 (non_add_const_operand): Ditto.
26849 (non_zero_const_operand): Ditto.
26850 (some_operand): Ditto.
26851 (input_operand): Ditto. Handle CONST_WIDE_INT.
26852 (and_operand): Do not match const_double.
26853 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26854
26855 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
26856
26857 PR target/65697
26858 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26859 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26860 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26861 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26862 is_mm_seq_cst, is_mm_sync): New accessor functions.
26863 * builtins.c (expand_builtin_sync_operation,
26864 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26865 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26866 (get_memmodel, expand_builtin_atomic_compare_exchange,
26867 expand_builtin_atomic_load, expand_builtin_atomic_store,
26868 expand_builtin_atomic_clear): Use new accessor routines.
26869 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26870 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26871 (maybe_emit_sync_lock_test_and_set): Use new accessors and
26872 MEMMODEL_SYNC_ACQUIRE.
26873 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26874 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26875 expand_atomic_store): Use new accessors.
26876 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26877 * tsan.c (instrument_builtin_call): Update check for memory model beyond
26878 final enum to use MEMMODEL_LAST.
26879 * c-family/c-common.c: Use new accessor for memmodel_base.
26880 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26881 accessors.
26882 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26883 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26884 mem_thread_fence, *dmb): Likewise.
26885 * config/alpha/alpha.c (alpha_split_compare_and_swap,
26886 alpha_split_compare_and_swap_12): Likewise.
26887 * config/arm/arm.c (arm_expand_compare_and_swap,
26888 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26889 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26890 atomic_loaddi): Likewise.
26891 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26892 Likewise.
26893 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26894 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26895 use new accessors.
26896 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26897 atomic_store<mode>, atomic_compare_and_swap<mode>,
26898 atomic_exchange<mode>): Use new accessors.
26899 * config/mips/mips.c (mips_process_sync_loop): Likewise.
26900 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26901 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26902 rs6000_post_atomic_barrier): Add new cases.
26903 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26904 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26905 (atomic_load<mode>): Add new cases and use new accessors.
26906 (store_quadpti): Add new cases.
26907 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26908 accessors.
26909 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26910 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26911 model, not 8.
26912
26913 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26914
26915 * ipa-devirt.c (type_with_linkage_p): New function.
26916 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26917 type has linkage.
26918 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26919 (can_be_name_hashed_p): Simplify.
26920 (hash_odr_name): Check that type has linkage before checking if it is
26921 anonymous.
26922 (types_same_for_odr): Likewise.
26923 (odr_name_hasher::equal): Likewise.
26924 (odr_subtypes_equivalent_p): Likewise.
26925 (warn_types_mismatch): Likewise.
26926 (get_odr_type): Likewise.
26927 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26928 * ipa-utils.h (odr_type_p): Move offline.
26929 * tree.c (need_assembler_name_p): Fix handling of types
26930 without linkages.
26931 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26932
26933 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26934
26935 * timevar.c (timevar_enable): Delete in favor of...
26936 (g_timer): New global.
26937 (struct timevar_def): Move to timevar.h inside class timer.
26938 (struct timevar_stack_def): Likewise.
26939 (timevars): Delete global in favor of field "m_timevars" within
26940 class timer in timevar.h
26941 (stack): Likewise, in favor of field "m_stack".
26942 (unused_stack_instances): Likewise, in favor of field
26943 "m_unused_stack_instances".
26944 (start_time): Likewise, in favor of field "m_start_time".
26945 (get_time): Eliminate check for timevar_enable.
26946 (timer::timer): New function, built from part of timevar_init.
26947 (timevar_init): Rewrite idempotency test from using
26948 "timevar_enable" bool to using dynamic allocation of "g_timer".
26949 Move rest of implementation into timer's constructor.
26950 (timevar_push_1): Rename to...
26951 (timer::push): ...this, adding "m_" prefixes to variables that
26952 are now fields of timer.
26953 (timevar_pop_1): Likewise, rename to...
26954 (timer::pop): ...this, and add "m_" prefixes.
26955 (timevar_start): Replace test for "timevar_enable" with one for
26956 "g_timer", and move bulk of implementation to...
26957 (timer::start): ...here, adding "m_" prefixes.
26958 (timevar_stop): Likewise, from here...
26959 (timer::stop): ...to here.
26960 (timevar_cond_start): Likewise, from here...
26961 (timer::cond_start): ...to here.
26962 (timevar_cond_stop): Likewise, from here...
26963 (timer::cond_stop): ...to here.
26964 (validate_phases): Rename to...
26965 (timer::validate_phases): ...this, and add "m_" prefixes. Make
26966 locals "total" and "tv" const.
26967 (timevar_print): Rename to...
26968 (timer::print): ...this, and add "m_" prefixes. Make locals
26969 "total" and "tv" const. Eliminate test for timevar_enable.
26970 * timevar.h (timevar_enable): Eliminate.
26971 (g_timer): New declaration.
26972 (timevar_push_1): Eliminate.
26973 (timevar_pop_1): Eliminate.
26974 (timevar_print): Eliminate.
26975 (class timer): New class.
26976 (timevar_push): Rewrite to use g_timer.
26977 (timevar_pop): Likewise.
26978 * toplev.c (toplev::~toplev): Likewise.
26979
26980 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
26981
26982 * arm-protos.h (arm_sched_autopref): Delete.
26983 (tune_params): Re-organize, use enums for flag values.
26984 (FUSE_OPS): New macro.
26985 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26986 (ARM_PREFETCH_BENEFICIAL): Likewise.
26987 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26988 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26989 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26990 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26991 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26992 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
26993 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26994 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26995 format.
26996 (arm_option_override, thumb2_reorg, arm_print_tune_info)
26997 (aarch_macro_fusion_pair_p): Update uses of current_tune.
26998 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26999
27000 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
27001
27002 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27003 "break".
27004
27005 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
27006 Sandra Loosemore <sandra@codesourcery.com>
27007
27008 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27009 value.
27010 (REG_CLASS_NAMES): Add "IJMP_REGS".
27011 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27012 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27013 use new "c" register constraint.
27014 * config/nios2/constraint.md (c): New register constraint
27015 corresponding to IJMP_REGS.
27016
27017 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27018
27019 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27020 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27021 define_splits): Delete, revamp, transmogrify into ...
27022 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27023 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27024 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27025 New.
27026
27027 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27028
27029 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27030 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27031
27032 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27033
27034 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27035 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27036 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27037 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27038 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27039 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27040 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27041 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27042 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27043 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27044 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27045 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27046 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27047 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27048 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27049 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27050 and 30 corresponding splitters): Delete.
27051
27052 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27053
27054 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27055 zero_extract.
27056
27057 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27058
27059 * combine.c (recog_for_combine_1): New function, factored out
27060 from recog_for_combine.
27061 (change_zero_ext): New function.
27062 (recog_for_combine): If recog fails, try again with the pattern
27063 modified by change_zero_ext; if that still fails, restore the
27064 pattern.
27065
27066 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27067
27068 * combine.c (get_undo_marker): New function.
27069 (undo_to_marker): New function, largely factored out from ...
27070 (undo_all): ... this. Adjust.
27071
27072 2015-05-12 Richard Biener <rguenther@suse.de>
27073
27074 PR tree-optimization/66101
27075 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27076 fixup if we turn a loop exit edge to a fallthru edge.
27077
27078 2015-05-12 Richard Biener <rguenther@suse.de>
27079
27080 PR tree-optimization/37021
27081 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27082 (SLP_TREE_TWO_OPERATORS): New define.
27083 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27084 SLP_TREE_TWO_OPERATORS.
27085 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27086 SLP node.
27087 (vect_build_slp_tree): Adjust.
27088 (vect_analyze_slp_cost_1): Likewise.
27089 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27090 emitting two vector stmts and mixing the results.
27091
27092 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27093
27094 * call.c (print_z_candidates): Remove dead code.
27095
27096 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27097
27098 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27099 and zEC12_simple_fp.
27100 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27101 to 1.
27102
27103 2015-05-12 Tom de Vries <tom@codesourcery.com>
27104
27105 PR tree-optimization/66010
27106 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27107 ifn_va_arg.
27108 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27109 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
27110 va_lists are passed, and remove corresponding handling.
27111 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
27112 do_deref argument to ifn_va_arg.
27113 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27114 ifn_va_arg.
27115
27116 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27117
27118 PR target/65955
27119 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27120 REG before taking its REGNO.
27121
27122 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27123
27124 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27125 rsp->sign_bit_copies and rsp->nonzero_bits into ...
27126 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
27127 present to get more accurate information about the number of sign bit
27128 copies and non zero bits.
27129
27130 2015-05-12 Richard Biener <rguenther@suse.de>
27131
27132 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27133 do not allow unrolling.
27134
27135 2015-05-11 Richard Henderson <rth@redhat.com>
27136
27137 * config/i386/i386-modes.def (CCP): New.
27138 * config/i386/i386.c (put_condition_code): Handle it.
27139 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27140
27141 2015-05-11 Richard Henderson <rth@redhat.com>
27142
27143 * target.def (md_asm_clobbers): Replace with...
27144 (md_asm_adjust): this.
27145 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27146 (TARGET_MD_ASM_ADJUST): New.
27147 * tm.texi: Rebuild.
27148 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27149 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27150 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27151
27152 * cfgexpand.c (check_operand_nalternatives): Accept vector of
27153 constraints instead of lists of outputs and inputs.
27154 (expand_asm_stmt): Save and restore input_location around the
27155 body of the function. Move asm data into vectors instead of
27156 building tree lists. Generate cleanup sequences as needed,
27157 rather than waiting til the end. Use new md_asm_adjust hook.
27158
27159 * config/vxworks.c: Include vec.h before target.h.
27160 * gimple.c: Likewise.
27161 * incpath.c: Likewise.
27162 * mode-switching.c: Likewise.
27163
27164 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27165 (cris_md_asm_adjust): this.
27166 (TARGET_MD_ASM_CLOBBERS): Remove.
27167 (TARGET_MD_ASM_ADJUST): New.
27168 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27169 (ix86_md_asm_adjust): this.
27170 (TARGET_MD_ASM_CLOBBERS): Remove.
27171 (TARGET_MD_ASM_ADJUST): New.
27172 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27173 (mn10300_md_asm_adjust): this.
27174 (TARGET_MD_ASM_CLOBBERS): Remove.
27175 (TARGET_MD_ASM_ADJUST): New.
27176 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27177 (rs6000_md_asm_adjust): this.
27178 (TARGET_MD_ASM_CLOBBERS): Remove.
27179 (TARGET_MD_ASM_ADJUST): New.
27180 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27181 (visium_md_asm_adjust): this.
27182 (TARGET_MD_ASM_CLOBBERS): Remove.
27183 (TARGET_MD_ASM_ADJUST): New.
27184
27185 2015-05-11 Richard Henderson <rth@redhat.com>
27186
27187 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27188 if noutputs is zero.
27189 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27190
27191 * cfgexpand.c (expand_asm_operands): Merge into...
27192 (expand_asm_stmt): ... here.
27193
27194 * cfgexpand.c (expand_asm_operands): Don't call
27195 resolve_asm_operand_names.
27196 * stmt.c (resolve_asm_operand_names): Clarify block comment.
27197
27198 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
27199
27200 * dwarf2out.c (gen_member_die): Sanity check that we access
27201 TYPE_MAIN_VARIANT for TYPE_METHODS.
27202 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27203 checking TYPE_METHODS.
27204 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27205 if non-null.
27206 (build_distinct_type_copy): Clear TYPE_METHODS.
27207 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27208 (verify_type): Allow TYPE_METHODS to be error_mark_node.
27209 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27210
27211 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
27212
27213 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27214 (emit_pattern_before_setloc): Likewise.
27215
27216 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27217
27218 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27219 for define_peephole2s.
27220 (get_peephole2_pattern): New function.
27221 (main): Use it. Call validate_pattern.
27222
27223 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27224
27225 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27226 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27227 (Last callee saved reg is different for AVR_TINY architecture)
27228
27229 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27230
27231 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27232 when looking for memory references.
27233
27234 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27235
27236 PR target/65753
27237 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27238 via function pointers.
27239
27240 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27241
27242 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27243 indirect call by forcing address into a pseudo with -fno-plt.
27244 * common.opt (flag_plt): New option.
27245 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27246 ([-fno-plt]): Document.
27247
27248 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
27249
27250 PR bootstrap/66105
27251 * config/rs6000/option-defaults.h: Add space between string literal
27252 and macro name.
27253
27254 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27255
27256 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27257 accross ARM targets.
27258
27259 2015-05-11 Christian Bruel <christian.bruel@st.com>
27260
27261 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27262 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27263
27264 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27265
27266 PR rtl-optimization/66076
27267 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27268 Don't grow the heap array if it is already big enough from a
27269 previous iteration.
27270
27271 2015-05-11 Christian Bruel <christian.bruel@st.com>
27272
27273 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27274 (is_called_in_ARM_mode): Remove.
27275 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27276 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27277 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27278 arm_declare_function_name.
27279
27280 2015-05-11 Christian Bruel <christian.bruel@st.com>
27281
27282 * config/arm/arm.c (arm_option_override): Reoganized and split into :
27283 (arm_option_params_internal); New function.
27284 (arm_option_check_internal): New function.
27285 (arm_option_override_internal): New function.
27286 (thumb_code, thumb1_code): Remove.
27287 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27288 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27289 (thumb_code, thumb1_code): Remove.
27290 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27291
27292 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27293
27294 * config/alpha/alpha.c (alpha_emit_set_const_1)
27295 (alpha_emit_set_long_const, alpha_extract_integer)
27296 (alpha_legitimate_constant_p, alpha_split_const_mov)
27297 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27298 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27299 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27300 HOST_WIDE_INT_1U.
27301 * config/alpha/predicates.md (mode_mask_operand): Do not match
27302 const_double RTX.
27303 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27304 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27305 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27306 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27307 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27308
27309 2015-05-11 Jakub Jelinek <jakub@redhat.com>
27310
27311 PR target/65780
27312 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27313 default_binds_local_p_2.
27314 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27315 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27316
27317 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27318
27319 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27320
27321 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27322
27323 Patch by Richard Biener
27324 * coverage.c (coverage_obj_init): Delay building of type variant
27325 until the type is finished.
27326
27327 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27328
27329 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27330 mismatch between C and C++ type; compoare correctly ARG_TYPES
27331 for non-prototypes and output correctly parameter index for METHOD_TYPE.
27332 (odr_types_equivalent_p): Fix wording of warning about attributes;
27333 it is OK to match prototype and non-prototype.
27334
27335 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27336
27337 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27338 TYPE_ARG_TYPES list.
27339 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27340 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27341
27342 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27343
27344 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27345 * tree.h (is_lang_specific): Constify.
27346
27347 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
27348
27349 PR tree-optimization/64454
27350 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27351 Rewrite.
27352
27353 2015-05-08 Jason Merrill <jason@redhat.com>
27354
27355 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27356 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27357 config/darwin.h, config/darwin9.h, config/elfos.h,
27358 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27359 config/microblaze/microblaze.h, config/mips/mips.h,
27360 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27361 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27362 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27363 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27364 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27365 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27366 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27367 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27368 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27369 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27370 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27371 between string literal and macro name.
27372
27373 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27374
27375 * jump.c: Change argument types to rtx_insn *.
27376 * rtl.h: Adjust.
27377
27378 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27379
27380 * lra-constraints.c: Change argument type to rtx_insn *.
27381
27382 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27383
27384 * df-problems.c: Change argument type to rtx_insn *.
27385
27386 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27387
27388 * combine.c: Change argument type to rtx_insn *.
27389
27390 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27391
27392 * rtl.h: Adjust.
27393 * rtlanal.c: Change argument type to rtx_insn *.
27394
27395 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27396
27397 * sched-deps.c: Change argument types to rtx_insn *.
27398 * sched-int.h: Adjust.
27399
27400 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27401
27402 * dwarf2cfi.c: Change argument type to rtx_insn *.
27403
27404 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27405
27406 * ira.c (decrease_live_ranges_number): Changetype of local
27407 variable to rtx_insn *.
27408 * recog.c: Change argument types to rtx_insn *.
27409 * recog.h: Adjust.
27410
27411 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27412
27413 * reorg.c: Change argument types to rtx_insn *.
27414
27415 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27416
27417 * ira-color.c: Change argument types to rtx_insn *.
27418 * lra-eliminations.c: Likewise.
27419 * ira.h: Adjust.
27420
27421 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27422
27423 * gcse.c: Change argument types to rtx_insn *.
27424
27425 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27426
27427 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27428
27429 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27430
27431 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27432 rtx_insn *.
27433 * rtl.h: Adjust.
27434
27435 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27436
27437 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27438 * rtl.h: Adjust.
27439
27440 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27441
27442 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27443 * rtl.h: Adjust.
27444
27445 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27446
27447 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27448 * rtl.h: Adjust.
27449
27450 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27451
27452 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27453 * rtl.h: Adjust.
27454
27455 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27456
27457 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27458 to rtx_insn *.
27459 * rtl.h: Adjust.
27460
27461 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27462
27463 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27464 to rtx_insn *.
27465 * rtl.h: Likewise.
27466
27467 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27468
27469 * except.c (can_nonlocal_goto): Change type of argument to
27470 rtx_insn *.
27471 * rtl.h: Adjust.
27472
27473 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27474
27475 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27476 * rtl.h: Adjust.
27477
27478 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27479
27480 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27481 * cfgrtl.c (can_delete_label_p): Adjust.
27482 * rtl.h: likewise.
27483
27484 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27485
27486 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27487
27488 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27489
27490 * except.c (make_reg_eh_region_note): Change argument to
27491 rtx_insn *.
27492 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27493 * except.h: Adjust.
27494
27495 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27496
27497 * mode-switching.c (commit_mode_sets): Change type of local
27498 variable from rtx to rtx_insn *.
27499
27500 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27501
27502 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27503 Add ^ to grep command.
27504 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27505 arg to last gimple_simplify declaration. Add missing gimple_build
27506 declaration for built-in function case with four tree args.
27507
27508 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27509 Szabolcs Nagy <szabolcs.nagy@arm.com>
27510
27511 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27512 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27513 (GNU_USER_DYNAMIC_LINKERN32): Update.
27514
27515 2015-05-08 Richard Biener <rguenther@suse.de>
27516
27517 PR tree-optimization/66036
27518 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27519 Handle strided group loads.
27520 (vect_verify_datarefs_alignment): Likewise.
27521 (vect_enhance_data_refs_alignment): Likewise.
27522 (vect_analyze_group_access): Likewise.
27523 (vect_analyze_data_ref_access): Likewise.
27524 (vect_analyze_data_ref_accesses): Likewise.
27525 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27526 (vectorizable_load): Likewise.
27527
27528 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27529
27530 * config/rs6000/rs6000.md: Require operand inequality in one
27531 of the peepholes.
27532
27533 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27534 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27535
27536 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27537 from (set ...).
27538 * config/rx/rx.md (movdi, movdf): Likewise.
27539 Likewise for define_peephole2s.
27540
27541 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27542
27543 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27544 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27545 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27546 vtst_u64): Rewrite using gcc vector extensions.
27547
27548 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27549
27550 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27551 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27552
27553 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27554
27555 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27556
27557 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27558
27559 * config/glibc-stdint.h (OPTION_MUSL): Define.
27560 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27561 Change the definition based on OPTION_MUSL for 64 bit targets.
27562 * config/linux.h (OPTION_MUSL): Redefine.
27563 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27564 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27565 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27566
27567 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27568 Szabolcs Nagy <szabolcs.nagy@arm.com>
27569
27570 * config.gcc (LIBC_MUSL): New tm_defines macro.
27571 * config/linux.h (OPTION_MUSL): Define.
27572 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27573 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27574 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27575 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27576 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27577 * config/linux.opt (mmusl): New option.
27578 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27579 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27580 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27581 * configure: Regenerate.
27582
27583 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27584 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27585
27586 PR target/48904
27587 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27588 * config/i386/knetbsd-gnu64.h: New file.
27589
27590 2015-05-08 Marek Polacek <polacek@redhat.com>
27591
27592 PR c/64918
27593 * doc/invoke.texi: Document -Woverride-init-side-effects.
27594
27595 2015-05-07 Marek Polacek <polacek@redhat.com>
27596
27597 PR c/65179
27598 * doc/invoke.texi: Document -Wshift-negative-value.
27599
27600 2015-05-06 Aditya Kumar <hiraditya@msn.com>
27601
27602 * gcov-tool.c (do_merge): Refactore to remove int ret.
27603 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27604 !type == FUNC to type != FUNC.
27605 * reload.h (struct target_reload): Changee to type of
27606 x_spill_indirect_levels from bool to unsigned char.
27607
27608 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
27609
27610 * rtl.h (always_void_p): New function.
27611 * gengenrtl.c (always_void_p): Likewise.
27612 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27613 with code foo are always VOIDmode.
27614 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27615 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27616 compare-elim.c, config/aarch64/aarch64.c,
27617 config/aarch64/aarch64.md, config/alpha/alpha.c,
27618 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27619 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27620 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27621 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27622 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27623 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27624 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27625 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27626 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27627 config/ia64/vect.md, config/iq2000/iq2000.c,
27628 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27629 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27630 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27631 config/mep/mep.c, config/microblaze/microblaze.c,
27632 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27633 config/mn10300/mn10300.c, config/msp430/msp430.c,
27634 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27635 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27636 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27637 config/rs6000/altivec.md, config/rs6000/rs6000.c,
27638 config/rs6000/rs6000.md, config/rs6000/vector.md,
27639 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27640 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27641 config/sh/sh.md, config/sh/sh_treg_combine.cc,
27642 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27643 config/spu/spu.md, config/stormy16/stormy16.c,
27644 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27645 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27646 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27647 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27648 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27649 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27650 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27651 var-tracking.c: Update calls accordingly.
27652
27653 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27654
27655 PR middle-end/192
27656 PR middle-end/54303
27657 * varasm.c (function_mergeable_rodata_prefix): New function.
27658 (mergeable_string_section): Use it.
27659 (mergeable_constant_section): Use it.
27660
27661 2015-05-07 Jeff Law <law@redhat.com>
27662
27663 PR target/39726
27664 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27665 simplifier to narrow arithmetic.
27666 * generic-match-head.c: (types_match, single_use): New functions.
27667 * gimple-match-head.c: (types_match, single_use): New functions.
27668
27669 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27670
27671 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27672 rtx type.
27673
27674 2015-05-07 Richard Biener <rguenther@suse.de>
27675
27676 PR tree-optimization/66002
27677 * passes.def: Schedule another pass_merge_phi after ifcombine, right
27678 before phiopt.
27679
27680 2015-05-07 Marek Polacek <polacek@redhat.com>
27681 Martin Uecker <uecker@eecs.berkeley.edu>
27682
27683 * doc/invoke.texi: Document -fsanitize=bounds-strict.
27684 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27685 into SANITIZE_NONDEFAULT.
27686 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27687
27688 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
27689
27690 PR target/66015
27691 * config/alpha/alpha.c (alpha_override_options_after_change): New.
27692 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27693 (alpha_override_options): Move align_loops, align_jumps and
27694 align_functions handling into alpha_override_options_after_change.
27695
27696 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
27697 Chris Jones <chrisj@nvidia.com>
27698 Joshua Conner <jconner@nvidia.com>
27699
27700 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27701 linking of crtfastmath.o.
27702 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27703
27704 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27705
27706 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27707 (cstore<mode>4_unsigned_imm): New expander.
27708 (cstore<mode>4): Remove empty constraint strings. Use the new
27709 expanders.
27710
27711 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
27712
27713 PR target/64208
27714 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27715 alternatives.
27716
27717 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
27718
27719 * config/aarch64/geniterators.sh: Use standard BRE in sed.
27720
27721 2015-05-06 Alan Modra <amodra@gmail.com>
27722
27723 PR target/66033
27724 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27725 (UNSPEC_NOP): Define.
27726 (reload_vsx_from_gpr<mode>): Add missing DONE.
27727 (reload_gpr_from_vsx<mode>): Likewise.
27728 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27729 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27730
27731 2015-05-06 Christian Bruel <christian.bruel@st.com>
27732
27733 PR target/66015
27734 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27735 align_jumps, align_functions into aarch64_override_options_after_change.
27736
27737 2015-05-06 Richard Biener <rguenther@suse.de>
27738
27739 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27740 vect_transform_slp_perm_load to check if we support a permutation
27741 for basic-block vectorization.
27742
27743 2015-05-06 Nick Clifton <nickc@redhat.com>
27744
27745 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27746 used, even if it is not being used as a frame pointer.
27747
27748 2015-05-05 Jason Merrill <jason@redhat.com>
27749
27750 * dwarf2out.c (gen_member_die): Don't emit anything for an
27751 anonymous class constructor.
27752
27753 2015-05-05 David Malcolm <dmalcolm@redhat.com>
27754
27755 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27756 that it reflects the block structure.
27757 (afdo_propagate_edge): Likewise.
27758 (afdo_calculate_branch_prob): Likewise.
27759 (afdo_annotate_cfg): Likewise.
27760 * cfgcleanup.c (equal_different_set_p): Likewise.
27761 (try_crossjump_to_edge): Likewise.
27762 * cgraph.c (cgraph_node::verify_node): Likewise.
27763 * cgraphunit.c (expand_all_functions): Likewise.
27764 * config/i386/i386.c (ix86_expand_copysign): Likewise.
27765 (exact_dependency_1): Likewise.
27766 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27767 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27768 * gensupport.c (process_define_subst): Likewise.
27769 * lto-wrapper.c (merge_and_complain): Likewise.
27770 * tree-if-conv.c (if_convertible_bb_p): Likewise.
27771 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27772 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27773 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27774 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27775 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27776 * tree-vect-stmts.c (vectorizable_shift): Likewise.
27777 * tree-vrp.c (vrp_finalize): Likewise.
27778 * tree.c (variably_modified_type_p): Likewise.
27779
27780 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
27781
27782 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27783 on darwin12 and later.
27784 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27785 file to pass -rdynamic on darwin12 and later.
27786 * config/darwin.opt (rdynamic): Add.
27787
27788 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27789
27790 * doc/extend.texi (C Extensions): Update menu for moved Variable
27791 Attributes and Type Attributes sections.
27792
27793 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27794
27795 PR target/65990
27796 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27797 if rep_8byte stringop strategy was specified for 32-bit target.
27798
27799 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
27800
27801 PR target/65915
27802 * config/i386/i386.md (vector convert to float spltiter): Check for
27803 xmm16+, when splitting scalar float conversion.
27804 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27805
27806 2015-05-05 Nick Clifton <nickc@redhat.com>
27807
27808 * config/msp430/msp430-opts.h (enum msp430_regions): New.
27809 * config/msp430/msp430.c (msp430_override_options): Complain if
27810 -mcode-region or -mdata-region is used on a non MSP430X.
27811 (msp430_section_attr): New function. Checks lower, upper and
27812 either attributes.
27813 (msp430_attribute_table): Add lower, upper and either.
27814 (gen_prefix): New function. Generates a prefix for a section
27815 name.
27816 (msp430_select_section): New function - handles the choice of
27817 section for an object. Takes into account memory region
27818 attributes and options.
27819 (msp430_function_section): Use gen_prefix.
27820 (TARGET_SECTION_TYPE_FLAGS): Define.
27821 (msp430_section_type_flags): New function.
27822 (TARGET_ASM_UNIQUE_SECTION): Define.
27823 (msp430_unique_section): New function.
27824 (msp430_output_aligned_decl_common): New function.
27825 (msp430_do_not_relax_short_jumps): New function.
27826 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27827 Define.
27828 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27829 * config/msp430/msp430-protos.h
27830 (msp430_do_not_relax_short_jumps): New prototype.
27831 (msp430_output_aligned_decl_common): New prototype.
27832 * config/msp430/msp430.md (length): New attribute.
27833 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27834 then use a long code sequence for short jumps.
27835 * config/msp430/msp430.opt (mcode-region): New.
27836 (mdata-region): New.
27837 * doc/invoke.texi: Document new options.
27838 * doc/extend.texi: Document new attributes.
27839
27840 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27841
27842 * config/aarch64-protos.h (struct cpu_branch_cost): New.
27843 (tune_params): Add field branch_costs.
27844 (aarch64_branch_cost): Declare.
27845 * config/aarch64.c (generic_branch_cost): New.
27846 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27847 (cortexa53_tunings): Likewise.
27848 (cortexa57_tunings): Likewise.
27849 (thunderx_tunings): Likewise.
27850 (xgene1_tunings): Likewise.
27851 (aarch64_branch_cost): Define.
27852 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27853
27854 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27855
27856 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27857 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27858 * config/i386/i386.md: Ditto.
27859 * config/i386/winnt.c: Ditto.
27860
27861 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27862
27863 * doc/extend.texi (__atomic Builtins): Move implementation details
27864 to the end of the description, rewrite opening paragraphs, state
27865 difference with __sync builtins, state C11/C++11 assumptions,
27866 weaken itemized descriptions, add explanation of memory model
27867 behaviour, expand description of compare-exchange, simplify text.
27868
27869 2015-05-05 Renlin Li <renlin.li@arm.com>
27870
27871 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27872
27873 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
27874
27875 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27876 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27877 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27878 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27879 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27880 * configure: Regenerate.
27881 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27882 * doc/install.texi (aarch64*-*-*): Document new
27883 --enable-fix-cortex-a53-843419 option.
27884 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27885 and -mno-fix-cortex-a53-843419 options.
27886
27887 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27888
27889 PR target/65871
27890 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27891
27892 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
27893
27894 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27895 fix overactive TYPE_MIN_VALUE check and add FIXME for type
27896 compatibility problems.
27897
27898 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27899
27900 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27901 constraints.
27902 (cbranchsi4_reg): New.
27903 * config/microblaze/microblaze.c
27904 (microblaze_expand_conditional_branch_reg): New.
27905 * config/microblaze/microblaze-protos.h
27906 (microblaze_expand_conditional_branch_reg): New prototype.
27907
27908 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27909
27910 * config/microblaze/microblaze.md (peephole2): New.
27911
27912 2015-05-04 Jeff Law <law@redhat.com>
27913
27914 Revert:
27915 2015-05-04 Jeff Law <law@redhat.com>
27916
27917 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27918 simplifier to narrow arithmetic.
27919 * generic-match-head.c: (types_match, single_use): New functions.
27920 * gimple-match-head.c: (types_match, single_use): New functions.
27921
27922 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27923
27924 PR target/65987
27925 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27926 (split_branches): Likewise.
27927
27928 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
27929
27930 * common.opt (fdelete-null-pointer-checks): Init to -1.
27931 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27932 override flag_delete_null_pointer_checks default.
27933 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27934 behavior re address zero. Better document target-specific behavior.
27935 (-fisolate-errneous-paths-dereference): Mention relationship to
27936 -fdelete-null-pointer-checks.
27937
27938 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27939
27940 PR tree-optimization/65984
27941 * ubsan.c: Include tree-cfg.h.
27942 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27943 stmt_could_throw_p test, rename can_throw variable to ends_bb.
27944
27945 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27946
27947 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27948 to CONST_DOUBLE_P predicate.
27949 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27950 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27951 allow only operands that satisfy standard_sse_constant_p predicate.
27952 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27953 to CONST_DOUBLE_P predicate.
27954
27955 2015-05-04 Jeff Law <law@redhat.com>
27956
27957 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27958 simplifier to narrow arithmetic.
27959 * generic-match-head.c: (types_match, single_use): New functions.
27960 * gimple-match-head.c: (types_match, single_use): New functions.
27961
27962 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
27963
27964 * config/arm/arm.c: Restore bootstrap.
27965
27966 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27967
27968 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27969 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27970 as CONST_WIDE_INT, not CONST_DOUBLE.
27971 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27972 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27973 (ix86_find_base_term): Do not check for CONST_DOUBLE.
27974 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27975 (ix86_build_signbit_mask): Rewrite using wide ints.
27976 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27977 (ix86_rtx_costs): Handle CONST_WIDE_INT.
27978 (find_constant): Ditto.
27979 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27980 using gen_int_mode.
27981 * config/i386/predicates.md (x86_64_immediate_operand)
27982 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27983 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27984 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27985 (const0_operand): Also match const_wide_int.
27986 (constm1_operand): Ditto.
27987 (const1_operand): Ditto.
27988
27989 2015-05-04 Richard Biener <rguenther@suse.de>
27990
27991 PR tree-optimization/65965
27992 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27993 store groups at gaps.
27994
27995 2015-05-04 Richard Biener <rguenther@suse.de>
27996
27997 PR tree-optimization/65935
27998 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27999 then make sure to apply that swapping to the IL.
28000
28001 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28002
28003 * Makefile.in (PATCHLEVEL_c): New variable.
28004 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28005 expand the same way as if DEVPHASE_c was non-empty.
28006
28007 2015-05-04 Kai Tietz <ktietz@redhat.com>
28008
28009 PR target/65559
28010 * lto-wrapper.c (run_gcc): Open filename
28011 in binary-mode.
28012
28013 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
28014
28015 * doc/extend.texi (Variable Attributes, Type Attributes): Move
28016 sections up in file, to immediately after the Function Attributes
28017 section.
28018
28019 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
28020
28021 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28022
28023 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28024
28025 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28026 (insert_partition_copy_on_edge): Adjust.
28027 (insert_rtx_to_part_on_edge): Likewise.
28028 (insert_part_to_rtx_on_edge): Likewise.
28029
28030 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28031
28032 * function.c (set_return_jump_label): Change type of argument to
28033 rtx_insn *.
28034 * function.h (set_return_jump_label): Adjust.
28035
28036 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28037
28038 * reload.h (struct reg_equivs_t): Change type of init to
28039 rtx_insn *.
28040 * ira.c (fix_reg_equiv_init): Adjust.
28041 * reload1.c (eliminate_regs_1): Likewise.
28042 (init_eliminable_invariants): Likewise.
28043
28044 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28045
28046 * cselib.c (fp_setter_insn): Take a rtx_insn *.
28047 * cselib.h (fp_setter_insn): Adjust.
28048
28049 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28050
28051 * recog.c (struct validate_replace_src_data): Change type of
28052 insn field to rtx_insn *.
28053 (validate_replace_src_group): Change type of argument to rtx_insn *.
28054 * recog.h (validate_replace_src_group): Adjust.
28055
28056 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28057
28058 * haifa-sched.c: Change the type of some variables to rtx_insn *.
28059 * sched-deps.c: Likewise.
28060 * sched-int.h: Likewise.
28061 * sched-rgn.c: Likewise.
28062 * sel-sched.c: Likewise.
28063
28064 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28065
28066 to rtx_insn *.
28067 * config/i386/i386.c: Change the type of some arguments to
28068 rtx_insn *.
28069 * config/arm/arm.c: Likewise.
28070
28071 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28072
28073 * lra-constraints.c: Change type of some arguments to rtx_insn *.
28074
28075 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28076
28077 * regcprop.c (kill_autoinc_value): Change type of argument to
28078 rtx_insn *.
28079
28080 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28081
28082 * genrecog.c (print_subroutine): Adjust.
28083 * recog.c (get_bool_attr_mask_uncached): Likewise.
28084 * recog.h (struct recog_data_d): Change the type of insn to
28085 rtx_insn *.
28086
28087 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28088
28089 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28090
28091 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28092
28093 * df-problems.c (df_set_note): Change type of argument to
28094 rtx_insn *.
28095
28096 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28097
28098 * builtins.c (expand_builtin_trap): Change type of local
28099 variable to rtx_insn *.
28100 (add_sched_insns_for_speculation): Likewise.
28101 (ix86_emit_save_regs): Likewise.
28102 (get_scratch_register_on_entry): Likewise.
28103 (ix86_emit_restore_reg_using_pop): Likewise.
28104 (ix86_emit_leave): Likewise.
28105 (ix86_emit_restore_regs_using_mov): Likewise.
28106 (ix86_expand_epilogue): Likewise.
28107 Likewise.
28108 (rl78_alloc_physical_registers_umul): Likewise.
28109 * cselib.c (discard_useless_locs): Likewise.
28110 (cselib_invalidate_regno): Likewise.
28111 (cselib_invalidate_mem): Likewise.
28112 * function.c (expand_function_start): Likewise.
28113 (emit_use_return_register_into_block): Likewise.
28114 * gcse.c: Likewise.
28115 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28116 * ifcvt.c (noce_get_alt_condition): Likewise.
28117 * loop-doloop.c (doloop_condition_get): Likewise.
28118 * lra-constraints.c (inherit_in_ebb): Likewise.
28119 * modulo-sched.c (sms_schedule_by_order): Likewise.
28120 * recog.c (next_insn_tests_no_inequality): Likewise.
28121 * reorg.c (emit_delay_sequence): Likewise.
28122 (update_reg_dead_notes): Likewise.
28123 (fix_reg_dead_note): Likewise.
28124 (fill_slots_from_thread): Likewise.
28125 (delete_computation): Likewise.
28126
28127 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
28128
28129 * doc/extend.texi (Variable Attributes): Add menu and proper
28130 @nodes to subsections. Move Microsoft Windows attributes to
28131 their own subsection.
28132 (Type Attributes): Reorganize introduction to remove duplicate
28133 list of attributes. Add menu and proper @nodes to subsections.
28134 Alphabetize the main table of common attributes.
28135
28136 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
28137
28138 * match.pd: New simplification patterns.
28139 (x + (x & 1)) -> ((x + 1) & ~1)
28140 (x & ~(x & y)) -> ((x & ~y))
28141 (x | ~(x | y)) -> ((x | ~y))
28142
28143 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28144
28145 * target.def (attribute_table): Mention that struct attribute_spec
28146 is defined in tree-core.h rather than tree.h
28147 * doc/tm.texi: Regenerate.
28148
28149 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
28150
28151 * genrecog.c (test): Rename to rtx_test. Update rest of file
28152 accordingly.
28153
28154 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
28155
28156 PR translation/65959
28157 * params.h (DEFPARAM): Rename msgid to nocmsgid.
28158
28159 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28160
28161 * config/aarch64/aarch64-protos.h (tune_params):
28162 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28163 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28164 Return value depending on target.
28165 (generic_tunings): Initialize new target settings.
28166 (cortexa53_tunings): Likewise.
28167 (cortexa57_tunings): Likewise.
28168 (thunderx_tunings): Likewise.
28169 (xgene1_tunings): Likewise.
28170
28171 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28172
28173 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28174 Make Cortex-A53 shift costs more accurate.
28175
28176 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28177
28178 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28179 UNSIGNED_FLOAT.
28180
28181 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28182
28183 * config/aarch64/aarch64.c (aarch64_rtx_costs):
28184 Calculate cost of op0 and op1 in PLUS and MINUS cases.
28185
28186 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28187
28188 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28189 Add cost of op0 in the compare-with-fpzero case.
28190
28191 2015-04-30 David Malcolm <dmalcolm@redhat.com>
28192
28193 * builtins.c (fold_builtin_1): Remove spurious second
28194 semicolon.
28195 * cgraph.h (symtab_node::get_availability): Likewise.
28196 * opts.c (common_handle_option): Remove spurious second semicolon.
28197 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28198 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28199
28200 2015-04-30 Caroline Tice <cmtice@google.com>
28201
28202 PR gcov-profile/65929
28203 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28204 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28205 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28206 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28207 * doc/tm.texi: Regenerate.
28208 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
28209 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28210 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
28211 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28212
28213 2015-04-30 Marek Polacek <polacek@redhat.com>
28214
28215 * varasm.c (handle_cache_entry): Fix logic.
28216
28217 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28218
28219 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28220 (*extrsi5_insn_uxtw_alt): Likewise.
28221 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28222 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28223 operations.
28224
28225 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28226
28227 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28228 fabd in ABS case.
28229
28230 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28231
28232 * config/aarch64/aarch64.md
28233 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28234 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28235 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28236 appropriately. Handle alternative EON form.
28237
28238 2015-04-30 Renlin Li <renlin.li@arm.com>
28239
28240 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28241 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28242
28243 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28244
28245 PR ipa/65873
28246 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28247 -fstrict-aliasing boundaries.
28248
28249 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28250
28251 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28252 and [SU]MNEGL patterns.
28253
28254 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28255
28256 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28257 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28258 combined arithmetic-shift ops. Properly handle all shift and extend
28259 operations that can occur in combination with PLUS/MINUS.
28260 Rename maybe_fma to compound_p.
28261 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28262 arithmetic and shift operations.
28263
28264 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28265
28266 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28267 rather than arith_shift cost when costing ADD/MINUS of an
28268 extended value.
28269
28270 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28271
28272 PR lto/65948
28273 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28274 to itself.
28275
28276 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
28277
28278 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28279 are for the same position.
28280
28281 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
28282
28283 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
28284 vectorize_loops.
28285 (vectorize_loops): Use it.
28286
28287 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28288
28289 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28290 for aggregate types.
28291 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28292 type to be non_ODR.
28293 * tree.c (need_assembler_name_p): Compute mangled name for
28294 non-fundamental types and integer types.
28295
28296 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
28297
28298 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28299 manual swaps.
28300 * expr.c (expand_expr_real_2): Likewise.
28301
28302 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28303
28304 * tree.c (build_common_builtin_nodes): Do not build
28305 __builtin_alloca_with_align as equivalent of library alloca.
28306
28307 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28308
28309 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28310 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28311 bugus variants.
28312 * tree.c: Include print-tree.h and ipa-utils.h
28313 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28314 (free_lang_data_in_cgraph): Call verify_type.
28315 (verify_type_variant): New function.
28316 (verify_type): New function.
28317 * tree.h (verify_type): Declare.
28318
28319 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
28320
28321 * config/mips/mips-cpus.def: (mips4): Change default processor
28322 from PROCESSOR_R8000 to PROCESSOR_R10000.
28323
28324 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
28325
28326 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28327 la/jalr instead of jal.
28328
28329 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
28330
28331 PR target/65871
28332 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28333 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28334 (setcc+movzbl peephole2): Check also clobbered reg.
28335 (setcc+andl peephole2): Ditto.
28336
28337 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28338
28339 PR libgomp/65099
28340 * config/nvptx/mkoffload.c (target_ilp32): New variable.
28341 (main): Set it depending on "-foffload-abi=[...]".
28342 (compile_native, main): Use it to pass "-m32" or "-m64" to the
28343 compiler.
28344
28345 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28346
28347 PR target/65770
28348 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28349 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28350 Flip lane index back at assembly time for bigendian.
28351
28352 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28353
28354 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28355 * gimplify.c (gimplify_omp_workshare): Use it.
28356
28357 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28358
28359 * Makefile.in (build/genrecog.o): Depend on inchash.h.
28360 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28361 build/inchash.o
28362 * genrecog.c: Rewrite most of the code except for the third page.
28363
28364 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28365
28366 * inchash.h, inchash.c: Include bconfig.h for build objects.
28367 * Makefile.in (build/inchash.o): New rule.
28368
28369 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
28370
28371 PR target/65924
28372 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28373 number in type attribute expression.
28374
28375 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28376
28377 * loop-iv.c (canon_condition): Generalize to all types of integer
28378 constant.
28379
28380 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
28381
28382 * gimple-walk.c: Prune duplicate or unneeded includes.
28383 (walk_gimple_asm): Only call parse_input_constraint or
28384 parse_output_constraint if their findings are used.
28385 Honour parse_input_constraint and parse_output_constraint
28386 result.
28387
28388 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28389
28390 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28391
28392 2015-04-29 Tom de Vries <tom@codesourcery.com>
28393
28394 PR tree-optimization/65893
28395 * passes.def (pass_all_optimizations): Move pass_stdarg to after
28396 pass_dce.
28397
28398 2015-04-29 Richard Biener <rguenther@suse.de>
28399
28400 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28401 compute GROUP_SIZE for basic-block SLP.
28402 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28403 take into account gaps.
28404 (vect_get_mask_element): Properly reject references to previous
28405 vectors.
28406 (vect_transform_slp_perm_load): Likewise.
28407
28408 2015-04-29 Christian Bruel <christian.bruel@st.com>
28409
28410 PR target/64835
28411 * config/i386/i386.c (ix86_default_align): New function.
28412 (ix86_override_options_after_change): Call ix86_default_align.
28413 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28414 (ix86_override_options_after_change): New function.
28415
28416 2015-04-28 Jeff Law <law@redhat.com>
28417
28418 * tree-ssa-dom.c (record_equality); Fix comment typos.
28419
28420 2015-04-28 Tom de Vries <tom@codesourcery.com>
28421
28422 PR tree-optimization/65887
28423 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28424
28425 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
28426
28427 * doc/extend.texi (Declaring Attributes of Functions): Split into
28428 subsections by target. Alphabetize the table of common attributes.
28429 Rewrite some of the introductory text to reflect the new structure.
28430 Update some cross-references to point to the new subsections.
28431 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28432 duplicate copies in the discussion of function, label, and type
28433 attributes.
28434
28435 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28436
28437 PR bootstrap/65910
28438 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28439
28440 2015-04-28 Jason Merrill <jason@redhat.com>
28441
28442 PR c++/65734
28443 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28444 (finalize_type_size): Respect TYPE_USER_ALIGN.
28445 (layout_type) [ARRAY_TYPE]: Likewise.
28446
28447 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28448
28449 * config/arm/arm.md (*arm_movt): Fix type attribute.
28450 (*cmpsi_shiftsi): Likewise.
28451 (*cmpsi_shiftsi_swp): Likewise.
28452 (*movsicc_insn): Likewise.
28453 (*cond_move): Likewise.
28454 (*if_plus_move): Likewise.
28455 (*if_move_plus): Likewise.
28456 (*if_arith_move): Likewise.
28457 (*if_move_arith): Likewise.
28458 (*if_shift_move): Likewise.
28459 (*if_move_shift): Likewise.
28460 (*arm_movtas_ze): Likewise.
28461 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28462 redundancy and type attribute.
28463 (*thumb2_movsi_insn): Fix type attribute.
28464 (*thumb2_addsi_short): Likewise.
28465 (thumb2_addsi3_compare0): Likewise.
28466 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28467 attributes accordingly.
28468
28469 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28470
28471 PR other/65911
28472 * function.c (pad_to_arg_alignment): Add parentheses.
28473
28474 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28475
28476 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28477 libgcc/config/frv/elf-lib.h.
28478
28479 2015-04-28 Tom de Vries <tom@codesourcery.com>
28480
28481 * tree-call-cdce.c: Fix example in header comment.
28482
28483 2015-04-28 Richard Biener <rguenther@suse.de>
28484
28485 PR tree-optimization/62283
28486 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28487 fails fatally and we are vectorizing a basic-block simply
28488 cause the child to be constructed piecewise.
28489 (vect_analyze_slp_cost_1): Adjust.
28490 (vect_detect_hybrid_slp_stmts): Likewise.
28491 (vect_bb_slp_scalar_cost): Likewise.
28492 (vect_get_constant_vectors): For piecewise constructed
28493 constants place them after the last def.
28494 (vect_get_slp_defs): Adjust.
28495 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28496 externals for basic-block vectorization.
28497
28498 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28499
28500 PR target/63503
28501 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28502 aarch64-*-*.
28503 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28504 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28505 (AARCH64_TUNE_FMA_STEERING): Likewise.
28506 * config/aarch64/aarch64-cores.def: Set
28507 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28508 FMUL/FMADD instructions.
28509 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28510 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28511 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28512 * config/aarch64/cortex-a57-fma-steering.h: New file.
28513 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28514
28515 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28516
28517 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28518
28519 2015-04-28 Richard Biener <rguenther@suse.de>
28520
28521 PR tree-optimization/65851
28522 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28523 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28524 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28525 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28526 (ccp_visit_phi_node): Adjust.
28527 (evaluate_stmt): For simplifications to SSA names return its
28528 lattice value if that isn't VARYING. Return immediately when
28529 simplified to a constant.
28530 (visit_assignment): Adjust.
28531 (ccp_visit_stmt): Likewise.
28532
28533 2015-04-28 Tom de Vries <tom@codesourcery.com>
28534
28535 PR tree-optimization/65818
28536 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28537 evaluated.
28538
28539 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28540
28541 * calls.c (save_fixed_argument_area): Don't check
28542 ARGS_GROW_DOWNWARD with the preprocessor.
28543 (restore_fixed_argument_area): Likewise.
28544 (mem_overlaps_already_clobbered_arg_p): Likewise.
28545 (check_sibcall_argument_overlap): Likewise.
28546 (expand_call): Likewise.
28547 (emit_library_call_value_1): Likewise.
28548 (store_one_arg): Likewise.
28549 * function.c (assign_parms): Likewise.
28550 (locate_and_pad_parm): Likewise.
28551 (pad_to_arg_alignment): Likewise.
28552 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28553
28554 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28555
28556 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28557 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28558 * calls.c (save_fixed_argument_area): Don't chekc if
28559 ARGS_GROW_DOWNWARD is defined.
28560 (restore_fixed_argument_area): Likewise.
28561 (mem_overlaps_already_clobbered_arg_p): Likewise.
28562 (check_sibcall_argument_overlap): Likewise.
28563 (expand_call): Likewise.
28564 (emit_library_call_value_1): Likewise.
28565 (store_one_arg): Likewise.
28566 * function.c (assign_parms): Likewise.
28567 (locate_and_pad_parm): Likewise.
28568 (pad_to_arg_alignment): Likewise.
28569 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28570
28571 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28572
28573 * defaults.h (gen_epilogue): New function.
28574 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28575 defined.
28576 * cfgrtl.c (cfg_layout_finalize): Likewise.
28577 * df-scan.c: Likewise.
28578 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28579 (reposition_prologue_and_epilogue_notes): Likewise.
28580 * reorg.c (find_end_label): Likewise.
28581 * toplev.c: Likewise.
28582
28583 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28584
28585 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28586 * defaults.h (gen_simple_return): New function.
28587 (gen_simple_return): Likewise.
28588 (HAVE_return): Add default definition to false.
28589 (HAVE_simple_return): Likewise.
28590 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28591 HAVE_return and HAVE_simple_return are defined.
28592 * function.c (gen_return_pattern): Likewise.
28593 (convert_jumps_to_returns): Likewise.
28594 (thread_prologue_and_epilogue_insns): Likewise.
28595 * reorg.c (find_end_label): Likewise.
28596 (dbr_schedule): Likewise.
28597 * shrink-wrap.c: Likewise.
28598 * shrink-wrap.h: Likewise.
28599
28600 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28601
28602 * defaults.h (EPILOGUE_USES): Add default definition of false.
28603 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28604 * resource.c (init_resource_info): Likewise.
28605
28606 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28607
28608 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28609 to false.
28610 * dwarf2out.c (field_byte_offset): REmove check if
28611 PCC_BITFIELD_TYPE_MATTERS is defined.
28612 * stor-layout.c (layout_decl): Likewise.
28613 (update_alignment_for_field): Likewise.
28614 (place_field): Likewise.
28615
28616 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28617
28618 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28619 true.
28620 * regrename.c (check_new_reg_p): Remove check if
28621 HARD_REGNO_RENAME_OK is defined.
28622 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28623
28624 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28625
28626 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28627 * cse.c (fold_rtx): Likewise.
28628 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28629 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28630 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28631 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28632 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28633 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28634 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28635 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28636 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28637 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28638 * Likewise.
28639 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28640 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28641 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28642 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28643 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28644 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28645 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28646 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28647 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28648 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28649 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28650 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28651 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28652 * doc/tm.texi: Regenerate.
28653 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28654 either true or false.
28655
28656 2015-04-27 Jeff Law <law@redhat.com>
28657
28658 PR tree-optimization/65217
28659 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28660 of them has a single use, make sure it is the LHS of the implied
28661 copy.
28662
28663 2015-04-28 Alan Modra <amodra@gmail.com>
28664
28665 PR target/65810
28666 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28667 (offsettable_ok_by_alignment): Use minimum of decl and toc
28668 pointer alignment. Replace dead code with assertion.
28669 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
28670 case if size exceeds toc pointer alignment.
28671 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28672 (rs6000_emit_move): Likewise.
28673 * configure.ac: Add linker toc pointer alignment check.
28674 * configure: Regenerate.
28675 * config.in: Regenerate.
28676
28677 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
28678
28679 * config.gcc: Add h8300-*-linux.
28680 * config/h8300/linux.h: New.
28681 * config/h8300/t-linux: New.
28682 * config/h8300/h8300.c (h8300_option_override): Normal mode
28683 is not supported for h8300-*-linux.
28684 (h8300_file_start): Target priority change.
28685 (get_shift_alg): Likewise.
28686 (h8300_shift_need_scratch_p): Likewise.
28687 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28688 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28689
28690 2015-04-27 Caroline Tice <cmtice@google.com>
28691
28692 * final.c (final_scan_insn): Output cold_function_name as function
28693 type.
28694 * varasm.c (cold_function_name): Make global.
28695 (assemble_start_function): Re-set cold_function_name.
28696 (assemble_end_function): Output cold partition size.
28697 * varasm.h (cold_function_name): Declare global.
28698
28699 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
28700
28701 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28702 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28703 constraint.
28704 (*movxi_internal_avx512f): Ditto.
28705 (define_split): Check for xmm16+, when splitting scalar float_extend.
28706 (*extendsfdf2_mixed): Use "v" constraint.
28707 (define_split): Check for xmm16+, when splitting scalar float_truncate.
28708 (*truncdfsf_fast_sse): Use "v" constraint.
28709 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28710 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28711 (define_peephole2): Check for xmm16+, when converting scalar
28712 float_truncate.
28713 (define_peephole2): Check for xmm16+, when converting scalar
28714 float_extend.
28715 (*fop_<mode>_comm_mixed): Use "v" constraint.
28716 (*fop_<mode>_comm_sse): Ditto.
28717 (*fop_<mode>_1_mixed): Ditto.
28718 (*sqrt<mode>2_sse): Ditto.
28719 (*ieee_s<ieee_maxmin><mode>3): Ditto.
28720
28721 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28722
28723 * combine.c (simplify_if_then_else): Use std::swap instead
28724 of manually swapping.
28725 (known_cond): Likewise.
28726 (simplify_comparison): Likewise.
28727
28728 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
28729
28730 PR target/64579
28731 * config/rs6000/htm.md: Remove all define_expands.
28732 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28733 UNSPECV_HTM_TABORTWCI): Remove.
28734 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28735 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28736 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28737 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28738 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28739 tabortwci_internal): Remove define_insns.
28740 (tabort<wd>c, tabort<wd>ci): New define_insns.
28741 (tabort): Use gpc_reg_operand.
28742 (tcheck): Remove operand.
28743 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28744 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28745 expected value.
28746 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28747 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
28748 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28749 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28750 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28751 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28752 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28753 (tcheck): Remove builtin argument.
28754 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28755 not TARGET_64BIT.
28756 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
28757 tabortdc and tabortdci builtins when not in 64-bit mode.
28758 Modify code to handle the loss of the HTM define_expands.
28759 Emit code to copy the CR register to TARGET.
28760 (htm_init_builtins): Modify code to handle the loss of the HTM
28761 define_expands.
28762 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28763 (RS6000_BTC_64BIT): Likewise.
28764 (RS6000_BTC_CR): New macro.
28765 * doc/extend.texi: Update documentation for htm builtins.
28766
28767 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28768
28769 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28770 of manually swapping.
28771 (simplify_associative_operation): Likewise.
28772 (simplify_binary_operation): Likewise.
28773 (simplify_plus_minus): Likewise.
28774 (simplify_relational_operation): Likewise.
28775 (simplify_ternary_operation): Likewise.
28776
28777 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28778
28779 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28780 (xs_hi_nonmemory_operand): Remove error.
28781 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28782 general_operand rather than xs_hi_general_operand.
28783
28784 2015-04-27 Richard Biener <rguenther@suse.de>
28785
28786 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28787 (record_equivalences_from_stmt): Valueize rhs.
28788 (record_equality): Canonicalize x and y order via
28789 tree_swap_operands_p. Do not swap operands for same loop depth.
28790
28791 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
28792
28793 PR target/65296
28794 PR target/65895
28795 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28796 Add hint how to use own spec file.
28797
28798 2015-04-27 Jakub Jelinek <jakub@redhat.com>
28799
28800 PR tree-optimization/65875
28801 * tree-vrp.c (update_value_range): If in is_new case setting
28802 old_vr to VR_VARYING, also set new_vr to it. Remove
28803 old_vr->type == VR_VARYING test.
28804 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28805 SSA_PROP_INTERESTING if update_value_range returned true,
28806 but new range is VR_VARYING.
28807
28808 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
28809
28810 * combine.c (sign_extend_short_imm): New.
28811 (set_nonzero_bits_and_sign_copies): Use above new function for sign
28812 extension of src short immediate.
28813 (reg_nonzero_bits_for_combine): Likewise for tem.
28814
28815 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28816
28817 * stor-layout.c (self_referential_component_ref_p): New predicate.
28818 (copy_self_referential_tree_r): Use it.
28819 (self_referential_size): Punt for simple operations directly involving
28820 self-referential component references.
28821 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28822
28823 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28824
28825 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28826
28827 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28828
28829 * vec.h (vec): Make splice arguments const. Update definitions
28830 accordingly.
28831
28832 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
28833
28834 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28835 alternatives.
28836
28837 2015-04-26 Tom de Vries <tom@codesourcery.com>
28838
28839 PR tree-optimization/65826
28840 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28841
28842 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
28843
28844 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28845 (*madd3<mode>): Ditto.
28846 (*msub4<mode>): Ditto.
28847 (*msub3<mode>): Ditto.
28848 (*nmadd4<mode>): Ditto.
28849 (*nmadd3<mode>): Ditto.
28850 (*nmadd4<mode>_fastmath): Ditto.
28851 (*nmadd3<mode>_fastmath): Ditto.
28852 (*nmsub4<mode>): Ditto.
28853 (*nmsub3<mode>): Ditto.
28854 (*nmsub4<mode>_fastmath): Ditto.
28855 (*nmsub3<mode>_fastmath): Ditto.
28856
28857 2015-04-24 Jason Merrill <jason@redhat.com>
28858
28859 PR c++/50800
28860 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28861 down when building TYPE_CANONICAL.
28862 (build_pointer_type_for_mode): Likewise.
28863
28864 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
28865
28866 * genrecog.c (validate_pattern): Check matching constraint refers
28867 to a lower numbered operand.
28868
28869 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28870
28871 PR target/65849
28872 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28873 save to independent variables use the Save attribute. This will
28874 allow these options to be modified with the #pragma/attribute
28875 target support.
28876 (-mallow-movmisalign): Likewise.
28877 (-mallow-df-permute): Likewise.
28878 (-msched-groups): Likewise.
28879 (-malways-hint): Likewise.
28880 (-malign-branch-targets): Likewise.
28881 (-mvectorize-builtins): Likewise.
28882 (-msave-toc-indirect): Likewise.
28883
28884 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28885 can be set via the #pragma/attribute target support.
28886 (rs6000_opt_vars): Likewise.
28887 (rs6000_inner_target_options): If VSX was set, also set
28888 -mno-avoid-indexed-addresses.
28889
28890 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28891
28892 * config/arm/iterators.md (shiftable_ops): Rename to...
28893 (SHIFTABLE_OPS): ... This. Update use in comments.
28894 (ior_xor): Rename to...
28895 (IOR_XOR): ... This.
28896 (vqh_ops): Rename to...
28897 (VQH_OPS): ... This.
28898 (vqhs_ops): Rename to...
28899 (VQHS_OPS): ... This.
28900 (rshifts): Rename to...
28901 (RSHIFTS): ... This.
28902 (returns): Rename to...
28903 (RETURNS): ... This.
28904 * config/arm/arm.md: Update uses of the above.
28905 * config/arm/neon.md: Likewise.
28906
28907 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28908
28909 * config.host (case ${host}): Add aarch64*-*-linux case.
28910 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28911 fields to all the cores.
28912 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28913 Add MCPU_MTUNE_NATIVE_SPECS.
28914 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28915 field to all extensions.
28916 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28917 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28918 Adjust definition of AARCH64_OPT_EXTENSION.
28919 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28920 (MCPU_MTUNE_NATIVE_SPECS): Define.
28921 * config/aarch64/driver-aarch64.c: New file.
28922 * config/aarch64/x-arch64: New file.
28923 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28924 -mtune and -march.
28925
28926 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28927 Wei Mi <wmi@google.com>
28928
28929 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28930 * config/i386/i386.c (extract_base_offset_in_addr): New function.
28931 (ix86_operands_ok_for_move_multiple): Ditto.
28932 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28933 (movlpd/movhpd to movupd peephole2): Ditto.
28934
28935 2015-04-24 Marek Polacek <polacek@redhat.com>
28936
28937 PR c/61534
28938 * input.h (from_macro_expansion_at): Define.
28939
28940 PR c/63357
28941 * doc/invoke.texi: Update description of -Wlogical-op.
28942
28943 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28944
28945 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28946 ternary operator in fprintf and harmonize spacing.
28947
28948 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28949
28950 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28951 Mark operand1 commutative.
28952
28953 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28954
28955 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28956 input operands in memory.
28957 (*vec_concatv2si_sse4_1): Ditto.
28958 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28959 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28960 register_operand.
28961 (vec_extract_hi_v32hi): Ditto.
28962 (vec_extract_hi_v64hi): Ditto.
28963 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28964
28965 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28966 Steven Bosscher <steven@gcc.gnu.org>
28967
28968 PR rtl-optimization/34503
28969 * cprop.c (cprop_reg_p): New.
28970 (hash_scan_set): Use above function to check if register can be
28971 propagated.
28972 (find_avail_set): Return up to two sets, one whose source is a
28973 register and one whose source is a constant. Sets are returned in an
28974 array passed as parameter rather than as a return value.
28975 (cprop_insn): Use a do while loop rather than a goto. Try each of the
28976 sets returned by find_avail_set, starting with the one whose source is
28977 a constant. Use cprop_reg_p to check if register can be propagated.
28978 (do_local_cprop): Use cprop_reg_p to check if register can be
28979 propagated.
28980 (implicit_set_cond_p): Likewise.
28981
28982 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28983
28984 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28985 (sem_function::equals): IGNORED_NODES parameter is now unused;
28986 update call of equals_private.
28987 (sem_function::equals_private): Do not call equals_wpa; skip
28988 gimple body matching if there is no body.
28989 (sem_function::init): Add logic to hash tthunk info.
28990 (sem_function::parse): Also parse thunks.
28991 * ipa-icf.h (equals_private): Update declaration.
28992
28993 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28994
28995 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28996 asterisk from name so this can be generated directly.
28997 (*altivec_stvx_<mode>_internal): Likewise.
28998 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28999 that this is never called during or after reload/lra.
29000 (rs6000_frame_related): Remove split_reg
29001 argument and logic that references it.
29002 (emit_frame_save): Remove last parameter from call to
29003 rs6000_frame_related.
29004 (rs6000_emit_prologue): Remove last parameter from eight calls to
29005 rs6000_frame_related. Force generation of stvx instruction for
29006 Altivec register saves. Remove split_reg handling, which is no
29007 longer needed.
29008 (rs6000_emit_epilogue): Force generation of lvx instruction for
29009 Altivec register restores.
29010
29011 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29012
29013 * config/rs6000/rs6000.opt (mcrypto): Change option description to
29014 match category changes in ISA 2.07B.
29015
29016 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29017
29018 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29019 iterators.
29020 (cmp_op, cmp_type): New code attributes.
29021 (NEON_VCMP, NEON_VACMP): New int iterators.
29022 (cmp_op_unsp): New int attribute.
29023 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29024 (neon_vceq<mode>): Delete.
29025 (neon_vc<cmp_op><mode>_insn): New pattern.
29026 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29027 (neon_vcgeu<mode>): Delete.
29028 (neon_vcle<mode>): Likewise.
29029 (neon_vclt<mode>: Likewise.
29030 (neon_vcage<mode>): Likewise.
29031 (neon_vcagt<mode>): Likewise.
29032 (neon_vca<cmp_op><mode>): New define_expand.
29033 (neon_vca<cmp_op><mode>_insn): New pattern.
29034 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29035
29036 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29037
29038 * tree.h (attribute_value_equal): Declare.
29039 * tree.c (attribute_value_equal): Export.
29040
29041 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29042
29043 * ipa-icf.c (sem_item::compare_attributes): New function.
29044 (sem_item::compare_referenced_symbol_properties): Compare variable
29045 attributes.
29046 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29047 (sem_function::param_used_p): New function.
29048 (sem_function::equals_wpa): Fix attribute comparsion; match
29049 parameter type codes; do not compare paremter flags when
29050 they are not used; compare edge flags; compare indirect calls.
29051 (sem_item::update_hash_by_addr_refs): Hash reference type.
29052 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29053 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29054 reference use type.
29055 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29056 * ipa-icf.h (compare_attributes, param_used_p): Declare.
29057
29058 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29059
29060 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29061 cleanup.
29062 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29063 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29064 (sem_item::compare_referenced_symbol_properties): New.
29065 (sem_item::hash_referenced_symbol_properties): New.
29066 (sem_item::compare_cgraph_references): Rename to ...
29067 (sem_item::compare_symbol_references): ... this one; use
29068 compare_referenced_symbol_properties.
29069 (sem_function::equals_wpa): Do not compare
29070 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29071 DECL_IS_OPERATOR_NEW; compare pointer sizes.
29072 (sem_item::update_hash_by_addr_refs): Call
29073 hash_referenced_symbol_properties.
29074 (sem_item::update_hash_by_local_refs): Cleanup.
29075 (sem_function::merge): Do not mix up symbol properties.
29076 (sem_variable::equals_wpa): Use compare_symbol_references.
29077 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29078 (sem_item::hash_referenced_symbol_properties): New.
29079 (sem_item::compare_symbol_references): New.
29080 (sem_item::compare_cgraph_references): Remove.
29081
29082 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
29083
29084 PR target/26702
29085 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29086 Emit size of local.
29087
29088 2015-04-23 Nick Clifton <nickc@redhat.com>
29089
29090 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29091 ATTRIBUTE_UNUSED to x parameter.
29092 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29093
29094 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29095
29096 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29097 TARGET_CRYPTO to TARGET_P8_VECTOR>
29098 (crypto_vpermxor_<mode>): Likewise.
29099 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29100 (BU_CRYPTO_3A): Likewise.
29101 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29102 (BU_CRYPTO_OVERLOAD_3A): New #define.
29103 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29104 (VPMSUMH): Likewise.
29105 (VPMSUMW): Likewise.
29106 (VPMSUMD): Likewise.
29107 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29108 (VPERMXOR_V4SI): Likewise.
29109 (VPERMXOR_V8HI): Likewise.
29110 (VPERMXOR_V16QI): Likewise.
29111 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29112 BU_CRYPTO_OVERLOAD_2A.
29113 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29114 BU_CRYPTO_OVERLOAD_3A.
29115 * config/rs6000/rs6000.opt (mcrypto): Change description of
29116 option.
29117
29118 2015-04-23 Richard Biener <rguenther@suse.de>
29119
29120 * passes.def: Remove copy propagation passes run directly after CCP.
29121 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29122 SSA names.
29123 (ccp_visit_phi_node): Rework to handle first executable edge
29124 specially.
29125
29126 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
29127
29128 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29129 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29130 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29131 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29132 (thumb_legimitimize_reload_address): Remove.
29133 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29134 Remove.
29135 (thumb_legimitimize_reload_address): Remove.
29136
29137 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29138
29139 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29140
29141 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29142
29143 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29144 MAX_LDM_STM_OPS.
29145 (store_multiple): Likewise.
29146
29147 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29148
29149 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29150 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29151 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29152 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29153 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29154 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29155 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29156 Specify issue_rate value.
29157 (arm_issue_rate): Look up issue rate from tuning structs. Remove
29158 large switch statement.
29159 (arm_marvell_pj4_tune): New struct.
29160 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29161 struct.
29162
29163 2015-04-23 Richard Biener <rguenther@suse.de>
29164
29165 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29166 (vect_find_last_store_in_slp_instance): Rename to ...
29167 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29168 (vect_analyze_slp_cost_1): Use vector_load for constant defs
29169 and vec_construct for external defs when estimating prologue cost.
29170 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29171 Compute costs here only when vectorizing loops.
29172 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29173 have been determined.
29174 (vect_schedule_slp_instance): Simplify vectorized code placement
29175 and prepare for in-BB external defs.
29176 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29177 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29178 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29179 guard.
29180 (vect_model_load_cost): Likewise.
29181 (vectorizable_store): Instead add it here.
29182 (vectorizable_load): Likewise.
29183 (vect_is_simple_use): Dump def type textually.
29184
29185 2015-04-23 Richard Biener <rguenther@suse.de>
29186
29187 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29188 * cfgloop.c (verify_loop_structure): Verify the root loop node.
29189 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29190 instead of get_eh_region_from_lp_number.
29191 * loop-init.c (fix_loop_structure): If we removed a loop, reset
29192 the SCEV cache.
29193
29194 2015-04-23 Anton Blanchard <anton@samba.org>
29195
29196 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29197 need for -mprofile-kernel to save LR to stack.
29198
29199 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29200
29201 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29202 adjustments.
29203 (insn_is_swappable_p): Return 1 for a convert from double to
29204 single precision when all of its uses are splats of BE element
29205 zero.
29206
29207 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29208
29209 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29210
29211 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29212
29213 PR target/65456
29214 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
29215 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29216 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29217 option.
29218 (rs6000_builtin_mask_for_load): Return 0 for targets with
29219 efficient unaligned VSX accesses so that the vectorizer will use
29220 direct unaligned loads.
29221 (rs6000_builtin_support_vector_misalignment): Always return true
29222 for targets with efficient unaligned VSX accesses.
29223 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29224 stores on targets with efficient unaligned VSX accesses is almost
29225 always the same as the cost of an aligned load or store, so model
29226 it that way.
29227 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29228 unaligned vectors if we have efficient unaligned VSX accesses.
29229 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29230 undocumented option.
29231
29232 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29233
29234 Revert:
29235 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29236
29237 * config.gcc (LIBC_MUSL): New tm_defines macro.
29238 * config/linux.h (OPTION_MUSL): Define.
29239 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29240 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29241 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29242
29243 * config/linux.opt (mmusl): New option.
29244 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29245 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29246
29247 * configure: Regenerate.
29248
29249 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29250
29251 * config.gcc (LIBC_MUSL): New tm_defines macro.
29252 * config/linux.h (OPTION_MUSL): Define.
29253 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29254 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29255 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29256
29257 * config/linux.opt (mmusl): New option.
29258 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29259 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29260
29261 * configure: Regenerate.
29262
29263 2015-04-22 Yury Gribov <y.gribov@samsung.com>
29264
29265 * doc/invoke.texi (-fsanitize-sections): Update description.
29266 * asan.c (set_sanitized_sections): Parse incoming arg.
29267 (section_sanitized_p): Support wildcards.
29268
29269 2015-04-22 Tom de Vries <tom@codesourcery.com>
29270
29271 PR tree-optimization/65823
29272 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29273 equality between ap_copy and ap.
29274
29275 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29276
29277 PR target/47098
29278 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29279
29280 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29281
29282 PR target/47122
29283 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29284
29285 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29286
29287 PR target/55144
29288 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29289 remove already contained t-files.
29290
29291 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29292
29293 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29294 Remove unneeded forward declarations.
29295 (suitable_for_tail_call_opt_p): Commentary typo fix.
29296
29297 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29298
29299 * varasm.c (emit_bss): Remove redundant guard.
29300
29301 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29302
29303 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29304
29305 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29306
29307 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29308
29309 2015-04-22 Hale Wang <hale.wang@arm.com>
29310 Terry Guo <terry.guo@arm.com>
29311
29312 PR rtl-optimization/64818
29313 * combine.c (can_combine_p): Don't combine user-specified
29314 register if it is in an asm input.
29315
29316 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
29317
29318 PR ipa/65076
29319 * passes.def (early_optimizations): Add pass_dse.
29320
29321 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29322
29323 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29324 * reorg.c (redundant_insn): Remove ifdef
29325 INSN_REFERENCES_ARE_DELAYED.
29326 * resource.c (mark_referenced_resources): Likewise.
29327
29328 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29329
29330 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29331 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29332 * resource.c (mark_set_resources): Likewise.
29333
29334 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29335
29336 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29337 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29338 (flow_find_head_matching_sequence): Likewise.
29339 (try_head_merge_bb): Likewise.
29340 * combine.c (can_combine_p): Likewise.
29341 (try_combine): Likewise.
29342 (distribute_notes): Likewise.
29343 * df-problems.c (can_move_insns_across): Likewise.
29344 * final.c (final): Likewise.
29345 * gcse.c (insert_insn_end_basic_block): Likewise.
29346 * ira.c (find_moveable_pseudos): Likewise.
29347 * reorg.c (try_merge_delay_insns): Likewise.
29348 (fill_simple_delay_slots): Likewise.
29349 (fill_slots_from_thread): Likewise.
29350 * sched-deps.c (sched_analyze_2): Likewise.
29351
29352 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29353
29354 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29355 PIC_OFFSET_TABLE_REGNUM.
29356
29357 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29358
29359 * alias.c (init_alias_target): Remove ifdef
29360 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29361 * df-scan.c (df_insn_refs_collect): Likewise.
29362 (df_get_regular_block_artificial_uses): Likewise.
29363 (df_get_eh_block_artificial_uses): Likewise.
29364 (df_get_entry_block_def_set): Likewise.
29365 (df_get_exit_block_use_set): Likewise.
29366 * emit-rtl.c (gen_rtx_REG): Likewise.
29367 * ira.c (ira_setup_eliminable_regset): Likewise.
29368 * reginfo.c (init_reg_sets_1): Likewise.
29369 * regrename.c (rename_chains): Likewise.
29370 * reload1.c (reload): Likewise.
29371 (eliminate_regs_in_insn): Likewise.
29372 * resource.c (mark_referenced_resources): Likewise.
29373 (init_resource_info): Likewise.
29374
29375 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29376
29377 * defaults.h (MASK_RETURN_ADDR): New definition.
29378 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29379 MASK_RETURN_ADDR.
29380
29381 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29382
29383 * defaults.h (RETURN_ADDR_OFFSET): New definition.
29384 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29385 RETURN_ADDR_OFFSET.
29386 (expand_builtin_frob_return_addr): Likewise.
29387
29388 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29389
29390 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29391 (try_redirect_by_replacing_jump): Likewise.
29392 (rtl_tidy_fallthru_edge): Likewise.
29393 * combine.c (insn_a_feeds_b): Likewise.
29394 (find_split_point): Likewise.
29395 (simplify_set): Likewise.
29396 * cprop.c (cprop_jump): Likewise.
29397 * cse.c (cse_extended_basic_block): Likewise.
29398 * df-problems.c (can_move_insns_across): Likewise.
29399 * function.c (emit_use_return_register_into_block): Likewise.
29400 * haifa-sched.c (sched_init): Likewise.
29401 * ira.c (find_moveable_pseudos): Likewise.
29402 * loop-invariant.c (find_invariant_insn): Likewise.
29403 * lra-constraints.c (curr_insn_transform): Likewise.
29404 * postreload.c (reload_combine_recognize_const_pattern):
29405 * Likewise.
29406 * reload.c (find_reloads): Likewise.
29407 * reorg.c (delete_scheduled_jump): Likewise.
29408 (steal_delay_list_from_target): Likewise.
29409 (steal_delay_list_from_fallthrough): Likewise.
29410 (redundant_insn): Likewise.
29411 (fill_simple_delay_slots): Likewise.
29412 (fill_slots_from_thread): Likewise.
29413 (delete_computation): Likewise.
29414 * sched-rgn.c (add_branch_dependences): Likewise.
29415
29416 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29417
29418 * genconfig.c (main): Always define HAVE_cc0.
29419 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29420 HAVE_cc0.
29421 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29422 (flow_find_head_matching_sequence): Likewise.
29423 (try_head_merge_bb): Likewise.
29424 * cfgrtl.c (rtl_merge_blocks): Likewise.
29425 (try_redirect_by_replacing_jump): Likewise.
29426 (rtl_tidy_fallthru_edge): Likewise.
29427 * combine.c (do_SUBST_MODE): Likewise.
29428 (insn_a_feeds_b): Likewise.
29429 (combine_instructions): Likewise.
29430 (can_combine_p): Likewise.
29431 (try_combine): Likewise.
29432 (find_split_point): Likewise.
29433 (subst): Likewise.
29434 (simplify_set): Likewise.
29435 (distribute_notes): Likewise.
29436 * cprop.c (cprop_jump): Likewise.
29437 * cse.c (cse_extended_basic_block): Likewise.
29438 * df-problems.c (can_move_insns_across): Likewise.
29439 * final.c (final): Likewise.
29440 (final_scan_insn): Likewise.
29441 * function.c (emit_use_return_register_into_block): Likewise.
29442 * gcse.c (insert_insn_end_basic_block): Likewise.
29443 * haifa-sched.c (sched_init): Likewise.
29444 * ira.c (find_moveable_pseudos): Likewise.
29445 * loop-invariant.c (find_invariant_insn): Likewise.
29446 * lra-constraints.c (curr_insn_transform): Likewise.
29447 * optabs.c (prepare_cmp_insn): Likewise.
29448 * postreload.c (reload_combine_recognize_const_pattern):
29449 * Likewise.
29450 * reload.c (find_reloads): Likewise.
29451 (find_reloads_address_1): Likewise.
29452 * reorg.c (delete_scheduled_jump): Likewise.
29453 (steal_delay_list_from_target): Likewise.
29454 (steal_delay_list_from_fallthrough): Likewise.
29455 (try_merge_delay_insns): Likewise.
29456 (redundant_insn): Likewise.
29457 (fill_simple_delay_slots): Likewise.
29458 (fill_slots_from_thread): Likewise.
29459 (delete_computation): Likewise.
29460 (relax_delay_slots): Likewise.
29461 * sched-deps.c (sched_analyze_2): Likewise.
29462 * sched-rgn.c (add_branch_dependences): Likewise.
29463
29464 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29465
29466 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29467 that is trivially ded on non cc0 targets.
29468 (simplify_set): Likewise.
29469 (mark_used_regs_combine): Likewise.
29470 * cse.c (new_basic_block): Likewise.
29471 (fold_rtx): Likewise.
29472 (cse_insn): Likewise.
29473 (cse_extended_basic_block): Likewise.
29474 (set_live_p): Likewise.
29475 * rtlanal.c (canonicalize_condition): Likewise.
29476 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29477
29478 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29479
29480 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29481 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29482 * final.c: Likewise.
29483 * jump.c: Likewise.
29484 * recog.c: Likewise.
29485 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29486 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29487
29488 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29489
29490 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29491 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29492 * builtins.c (expand_builtin): Remove check if
29493 EH_RETURN_DATA_REGNO is defined.
29494 * df-scan.c (df_bb_refs_collect): Likewise.
29495 (df_get_exit_block_use_set): Likewise.
29496 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29497 * ira-lives.c (process_bb_node_lives): Likewise.
29498 * lra-lives.c (process_bb_lives): Likewise.
29499
29500 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29501
29502 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29503 FIRST_PSEUDO_REG): New.
29504 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29505 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29506 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29507 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29508 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29509 (FIRST_INT_REG): New.
29510 (LAST_INT_REG): New.
29511 (FIRST_*_REG): Define using *_REG.
29512 (LAST_*_REG): Ditto.
29513 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29514 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29515 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29516
29517 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29518
29519 * expmed.c: (synth_mult): Only assume overlapping
29520 shift with previous steps in alg_sub_t_m2 case.
29521
29522 2015-04-21 Richard Biener <rguenther@suse.de>
29523
29524 PR tree-optimization/65650
29525 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29526 transitions involving copies.
29527 (set_lattice_value): Adjust for copy lattice state.
29528 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29529 if that doesn't dominate the merge point.
29530 (bit_value_unop): Adjust what we treat as varying mask.
29531 (bit_value_binop): Likewise.
29532 (bit_value_assume_aligned): Likewise.
29533 (evaluate_stmt): When we simplified to a SSA name record a copy
29534 instead of dropping to varying.
29535 (visit_assignment): Simplify.
29536
29537 * gimple-match.h (gimple_simplify): Add another callback.
29538 * gimple-fold.c (fold_stmt_1): Adjust caller.
29539 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29540 for the 2nd callback.
29541 * gimple-match-head.c (gimple_simplify): Add a callback that is
29542 used to valueize the stmt operands and use it that way.
29543
29544 2015-04-21 Richard Biener <rguenther@suse.de>
29545
29546 PR tree-optimization/65788
29547 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29548
29549 2015-04-21 Richard Biener <rguenther@suse.de>
29550
29551 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29552 vec_construct cost by vec_stmt_cost.
29553
29554 2015-04-21 Richard Biener <rguenther@suse.de>
29555
29556 * cfghooks.h (create_basic_block): Replace with two overloads
29557 for RTL and GIMPLE.
29558 (split_block): Likewise.
29559 * cfghooks.c (split_block): Rename to ...
29560 (split_block_1): ... this.
29561 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29562 (split_block_after_labels): Call split_block_1.
29563 (create_basic_block): Rename to ...
29564 (create_basic_block_1): ... this.
29565 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29566 (create_empty_bb): Call create_basic_block_1.
29567 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29568 split_block_after_labels.
29569 * omp-low.c (expand_parallel_call): Likewise.
29570 (expand_omp_target): Likewise.
29571 (simd_clone_adjust): Likewise.
29572 * tree-chkp.c (chkp_get_entry_block): Likewise.
29573 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29574 create_basic_block overload.
29575 (cgraph_node::expand_thunk): Likewise.
29576 * tree-cfg.c (make_blocks): Likewise.
29577 (handle_abnormal_edges): Likewise.
29578 * tree-inline.c (copy_bb): Likewise.
29579
29580 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29581
29582 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29583 New pattern.
29584 (*xor_one_cmplsidi3_ze): Likewise.
29585
29586 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29587
29588 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29589 use df_remove_problem rather than manually removing problems, leaving
29590 holes in df->problems_in_order[].
29591
29592 2015-04-21 Tom de Vries <tom@codesourcery.com>
29593
29594 PR tree-optimization/65802
29595 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29596
29597 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29598
29599 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29600 Increase to 128.
29601 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29602 at '.'. Assert that there's enough space for everything.
29603
29604 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29605
29606 PR tree-optimization/64950
29607 Revert:
29608 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
29609
29610 PR target/41089
29611 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29612 as volatile.
29613
29614 2015-04-20 Shiva Chen <shiva0217@gmail.com>
29615
29616 PR rtl-optimization/64916
29617 * cfgcleanup.c (values_equal_p): New function.
29618 (can_replace_by): Use it.
29619
29620 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
29621
29622 PR c++/65801
29623 * doc/invoke.texi ([-Wnarrowing]): Update.
29624
29625 2015-04-20 Jeff Law <law@redhat.com>
29626
29627 PR tree-optimization/65658
29628 * tree-ssa-threadupdate.c (redirection_block_p): Remove
29629 redundant test for GIMPLE_ASSIGN in last change.
29630
29631 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
29632
29633 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29634 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29635 (legitimize_tls_address): Ditto.
29636 (ix86_expand_move): Ditto.
29637 (ix86_expand_binary_operator): Remove reload_in_progress checks.
29638 (ix86_expand_unary_operator): Ditto.
29639 * config/i386/predicates.md (index_register_operand): Ditto.
29640
29641 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
29642
29643 * reorg.c (try_merge_delay_insns): Improve correctness checking
29644 for targets with multiple delay slots.
29645
29646 2015-04-20 Jeff Law <law@redhat.com>
29647
29648 PR tree-optimization/65658
29649 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29650 statements too.
29651
29652 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29653
29654 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29655 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29656 Delete.
29657
29658 2015-04-20 Jakub Jelinek <jakub@redhat.com>
29659
29660 PR debug/65807
29661 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29662
29663 2015-04-20 Richard Biener <rguenther@suse.de>
29664
29665 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29666 * gimple-fold.c (gimple_build_valueize): New function.
29667 (gimple_build): Always use gimple_build_valueize as valueize hook.
29668
29669 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29670
29671 PR target/64134
29672 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29673 and overwrite variable parts if <= 1/2 the elements are variable.
29674
29675 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
29676
29677 PR rtl-optimization/65805
29678 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29679 Don't use difference of offset and previous offset if
29680 update_sp_offset is non-zero.
29681 (eliminate_regs_in_insn): Ditto.
29682 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29683 lra_eliminate_regs_1 call.
29684 * lra-constraints.c (get_equiv_with_elimination): Ditto.
29685
29686 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
29687
29688 * hash-table.h: Remove version of hash_table that stored value_type *.
29689 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29690 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29691 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29692 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29693 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29694 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29695 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29696 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29697 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29698 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29699 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29700 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29701 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29702 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29703 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29704 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29705
29706 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29707 Jakub Jelinek <jakub@redhat.com>
29708
29709 PR target/65787
29710 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29711 subsequent SH_NONE operand does not overwrite an existing *special
29712 value.
29713 (adjust_extract): Handle case where a vec_extract operation is
29714 wrapped in a PARALLEL.
29715
29716 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29717
29718 PR target/65780
29719 * config/i386/i386.c (ix86_binds_local_p): Define only if
29720 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29721
29722 2015-04-17 Jeff Law <law@redhat.com>
29723
29724 PR tree-optimization/47679
29725 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29726 * tree-ssa-scopedtables.c: New file.
29727 * tree-ssa-scopedtables.h: New file.
29728 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29729 (const_and_copies): Change name/type.
29730 (record_const_or_copy): Move into tree-ssa-scopedtables.c
29731 (record_const_or_copy_1): Similarly.
29732 (restore_vars_to_original_value): Similarly.
29733 (pass_dominator::execute): Create and destroy const_and_copies table.
29734 (thread_across_edge): Update passing of const_and_copies.
29735 (record_temporary_equivalence): Use method calls rather than
29736 manipulating const_and_copies directly.
29737 (record_equality, cprop_into_successor_phis): Similarly.
29738 (dom_opt_dom_walker::before_dom_children): Similarly.
29739 (dom_opt_dom_walker::after_dom_children): Similarly.
29740 (eliminate_redundant_computations): Similarly.
29741 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29742 (record_temporary_equivalence): Likewise.
29743 (invalidate_equivalences): Likewise.
29744 (record_temporary_equivalences_from_phis): Update due to type
29745 change of const_and_copies. Use method calls rather than
29746 manipulating the stack directly.
29747 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29748 (thread_through_normal_block, thread_across_edge): Likewise.
29749 (thread_across_edge): Likewise.
29750 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29751 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
29752 of equiv_stack.
29753 (identify_jump_threads): Update due to type change of equiv_stack.
29754 (finalize_jump_threads): Delete the equiv_stack when complete.
29755
29756 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
29757
29758 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29759 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29760 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29761
29762 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
29763
29764 PR target/65535
29765 * config.gcc: Exit with a comment when we do not have a major version
29766 number for the FreeBSD target.
29767
29768 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29769
29770 PR target/65689
29771 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29772 maybe_allows_mem bitfields.
29773 (maybe_allows_none_start, maybe_allows_none_end,
29774 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29775 maybe_allows_mem_end): New variables.
29776 (compute_maybe_allows): New function.
29777 (add_constraint): Use it to initialize maybe_allows_reg and
29778 maybe_allows_mem fields.
29779 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29780 is_address constraints such that those that allow neither mem nor
29781 reg come first, then those that only allow reg but not mem, then
29782 those that only allow mem but not reg, then the rest.
29783 (write_allows_reg_mem_function): New function.
29784 (write_tm_preds_h): Call it.
29785 * stmt.c (parse_output_constraint, parse_input_constraint): Use
29786 the generated insn_extra_constraint_allows_reg_mem function
29787 instead of always setting *allows_reg = true; *allows_mem = true;
29788 for unknown extra constraints.
29789
29790 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29791
29792 PR target/65780
29793 * output.h (default_binds_local_p_3): New.
29794 * varasm.c (default_binds_local_p_3): Make it public. Take an
29795 argument to indicate if common symbol may be local. If common
29796 symbol may be local, treat non-external variable as defined
29797 locally.
29798 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29799 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29800 * config/i386/i386.c (ix86_binds_local_p): New.
29801 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29802 ix86_binds_local_p.
29803
29804 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29805
29806 PR debug/65771
29807 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29808 trying mem_loc_descriptor on XEXP (rtl, 0).
29809
29810 2015-04-17 Martin Liska <mliska@suse.cz>
29811
29812 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29813 Release symbol_compare_collection.
29814 * ipa-reference.c: Add TODO that a vector should be released.
29815
29816 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29817
29818 PR target/65296
29819 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29820 to new AVR-LibC file layout (bug #44574).
29821 (*avrlibc_devicelib): Same.
29822 * config/avr/avr-mcus.def: Adjust comments.
29823 * config/avr/avr.opt (nodevicelib): Adjust help.
29824
29825 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
29826
29827 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29828
29829 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
29830
29831 PR c++/64527
29832 * gimplify.c (gimplify_init_constructor): Always emit a
29833 side-effecting constructor.
29834
29835 2015-04-17 Tom de Vries <tom@codesourcery.com>
29836
29837 PR tree-optimization/64950
29838 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29839 in cfun->curr_properties.
29840 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29841 if we generate an IFN_VA_ARG.
29842 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29843 function if PROP_gimple_lva is not set in src function.
29844
29845 2015-04-17 Tom de Vries <tom@codesourcery.com>
29846 Michael Matz <matz@suse.de>
29847
29848 PR tree-optimization/64950
29849 * gimple-iterator.c (update_modified_stmts): Remove static.
29850 * gimple-iterator.h (update_modified_stmts): Declare.
29851 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29852 (gimplify_va_arg_internal): New function.
29853 (gimplify_va_arg_expr): Use IFN_VA_ARG.
29854 * gimplify.h (gimplify_va_arg_internal): Declare.
29855 * internal-fn.c (expand_VA_ARG): New unreachable function.
29856 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29857 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29858 (expand_ifn_va_arg): New function.
29859 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29860 (pass_stdarg::execute): Call expand_ifn_va_arg.
29861 (pass_data_lower_vaarg): New pass_data.
29862 (pass_lower_vaarg): New gimple_opt_pass.
29863 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29864 (make_pass_lower_vaarg): New function.
29865 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29866 properties_required field.
29867 * passes.def (all_passes): Add pass_lower_vaarg.
29868 * tree-pass.h (PROP_gimple_lva): Add define.
29869 (make_pass_lower_vaarg): Declare.
29870
29871 2015-04-17 Tom de Vries <tom@codesourcery.com>
29872
29873 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29874 * calls.c (call_expr_flags): Same.
29875
29876 2015-04-17 Tom de Vries <tom@codesourcery.com>
29877
29878 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29879 (pass_stdarg::execute): ... here.
29880
29881 2015-04-17 Tom de Vries <tom@codesourcery.com>
29882 Michael Matz <matz@suse.de>
29883
29884 * tree-cfg.c (make_blocks_1): Factor out of ...
29885 (make_blocks): ... here.
29886 (make_edges_bb): Factor out of ...
29887 (make_edges): ... here.
29888 (gimple_find_sub_bbs): New function.
29889 * tree-cfg.h (gimple_find_sub_bbs): Declare.
29890
29891 2015-04-17 Tom de Vries <tom@codesourcery.com>
29892
29893 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29894
29895 2015-04-17 Yury Gribov <y.gribov@samsung.com>
29896
29897 * asan.c (set_sanitized_sections): New function.
29898 (section_sanitized_p): Ditto.
29899 (asan_protect_global): Optionally sanitize user-defined
29900 sections.
29901 * asan.h (set_sanitized_sections): Declare new function.
29902 * common.opt (fsanitize-sections): New option.
29903 * doc/invoke.texi (-fsanitize-sections): Document new option.
29904 * opts-global.c (handle_common_deferred_options): Handle new
29905 option.
29906
29907 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29908
29909 PR debug/65771
29910 * dwarf2out.c (loc_list_from_tree): Return NULL
29911 for DEBUG_EXPR_DECL.
29912
29913 2015-04-17 Christian Bruel <christian.bruel@st.com>
29914
29915 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29916 same attributes.
29917
29918 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29919
29920 * ira-color.c (setup_left_conflict_sizes_p): Do not process
29921 node itself when computing left conflict subnode size.
29922
29923 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29924
29925 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29926 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29927 *fop_<mode>_1_sse using enabled attribute. Use
29928 register_mixssei387nonimm_operand operand 1 predicate. Change
29929 alternative 3 constraints from "x" to "v".
29930
29931 2015-04-16 Richard Biener <rguenther@suse.de>
29932
29933 PR tree-optimization/65774
29934 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29935 bit-value tracking on.
29936
29937 2015-04-16 Richard Biener <rguenther@suse.de>
29938
29939 PR tree-optimization/64277
29940 * tree-vrp.c (check_array_ref): Fix anti-range handling,
29941 simplify upper bound handling.
29942 (search_for_addr_array): Simplify.
29943 (check_array_bounds): Handle ADDR_EXPRs here.
29944 (check_all_array_refs): Simplify.
29945
29946 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29947
29948 * config/i386/i386.c (print_reg): Rewrite function.
29949
29950 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29951
29952 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29953 Invert the condition.
29954
29955 2015-04-16 Renlin Li <renlin.li@arm.com>
29956
29957 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29958 simplifications for UNSIGNED_FLOAT.
29959
29960 2015-04-16 Nick Clifton <nickc@redhat.com>
29961
29962 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29963 MUL_UNINIT.
29964 (enum rl78_cpu_type): New.
29965 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29966 (umulhi3_shift_virt): Remove m constraint from operand 1.
29967 (umulqihi3_virt): Likewise.
29968 * config/rl78/rl78.c (rl78_option_override): Add code to process
29969 -mcpu and -mmul options.
29970 (rl78_alloc_physical_registers): Add code to handle divhi and
29971 divsi valloc attributes.
29972 (set_origin): Likewise.
29973 * config/rl78/rl78.h (RL78_MUL_G14): Define.
29974 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29975 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29976 __RL78_Gxx__.
29977 (ASM_SPEC): Pass -mcpu on to assembler.
29978 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29979 (mulqi3_rl78): Likewise.
29980 (mulhi3_g13): Likewise.
29981 (mulhi3): Generate the G13 or G14 versions of the insn directly.
29982 (mulsi3): Likewise.
29983 (mulhi3_g14): Add clobbers of AX and BC.
29984 (mulsi3_g14): Likewise.
29985 (mulsi3_g13): Likewise.
29986 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29987 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29988 * config/rl78/rl78.opt (mmul): Initialise value to
29989 RL78_MUL_UNINIT.
29990 (mcpu): New option.
29991 (m13, m14, mrl78): New option aliases.
29992 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29993 (MULTILIB_DIRNAMES): Add g13 and g14.
29994 * doc/invoke.texi: Document -mcpu and -mmul options.
29995
29996 2015-04-16 Richard Biener <rguenther@suse.de>
29997
29998 * tree-ssa-ccp.c (likely_value): See if we have operands that
29999 are marked as never simulate again and return CONSTANT in this
30000 case.
30001 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30002 not have any operands that will be simulated again as
30003 not being simulated again.
30004
30005 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
30006
30007 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30008 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30009 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30010 attribute.
30011 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30012 enabled attribute.
30013 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30014 *float<SWI48:mode><MODEF:mode>2_sse.
30015 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30016 enabled attribute.
30017 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30018 enabled attribute.
30019
30020 2015-04-15 Tom de Vries <tom@codesourcery.com>
30021
30022 PR other/65487
30023 * function.c (push_dummy_function): New function.
30024 (init_dummy_function_start): Use push_dummy_function.
30025 (pop_dummy_function): New function. Factored out of ...
30026 (expand_dummy_function_end): ... here.
30027 * function.h (push_dummy_function, pop_dummy_function): Declare.
30028 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30029 pop_dummy_function.
30030 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30031
30032 2015-04-15 Jeff Law <law@redhat.com>
30033
30034 PR tree-optimization/47679
30035 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30036 need for forward declaration in upcoming changes.
30037 (record_conditions, record_edge_info): Likewise.
30038
30039 PR rtl-optimization/42522
30040 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30041 SIGN_EXTRACT as a whole object rather than simplifying
30042 its operand.
30043
30044 2015-04-15 Jakub Jelinek <jakub@redhat.com>
30045
30046 PR ipa/65765
30047 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30048 and GIMPLE_PREDICT use break instead of return true. For
30049 GIMPLE_EH_DISPATCH, compare dispatch region.
30050
30051 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
30052
30053 * doc/extend.texi (__sync Builtins): Simplify some text. Update
30054 details about the implementation. Make clear preference for
30055 __atomic builtins. Reduce possibility of future change.
30056
30057 2015-04-15 Nick Clifton <nickc@redhat.com>
30058
30059 * config/rx/rx.opt (mallow-string-insns): New option.
30060 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30061 builtin if string instructions are denied.
30062 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30063 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30064 appropriate.
30065 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30066 * config/rx/rx.md (movstr): Enable pattern only if string
30067 instructions are allowed.
30068 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30069 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30070 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30071 (MULTILIB_DIRNAMES): Add no-strings.
30072 * doc/invoke.texi: Document -mno-allow-string-insns.
30073
30074 2015-04-15 Alan Modra <amodra@gmail.com>
30075
30076 PR target/65408
30077 PR target/58744
30078 PR middle-end/36043
30079 * calls.c (load_register_parameters): Don't load past end of
30080 mem unless suitably aligned.
30081
30082 2015-04-15 Nick Clifton <nickc@redhat.com>
30083
30084 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30085 decrement instruction as being frame related.
30086 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30087 based addresses.
30088 If zero extending a function address enclose the operation in
30089 %code(...).
30090 (rl78_preferred_reload_class): New function.
30091 (TARGET_PREFERRED_RELOAD_CLASS): Define.
30092 * config/rl78/rl78.md: Remove useless constraints in expanders.
30093 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30094 (mulhi3_rl78): Likewise.
30095 (mulhi3_g13): Likewise.
30096 (mulsi3_rl78): Likewise.
30097 (es_addr): Move to before the multiply patterns.
30098
30099 2015-04-15 Alan Modra <amodra@gmail.com>
30100
30101 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30102 and sequence_stack. Add seq.
30103 (seq_stack): Delete.
30104 * function.c (prepare_function_start): Don't access x_last_insn.
30105 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30106 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30107 * emit_rtl.c (start_sequence, push_topmost_sequence,
30108 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30109 sequence accessors.
30110 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30111 remove_insn): Likewise. Simplify.
30112 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30113 and pop_topmost_sequence.
30114 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
30115 debug insns.
30116 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30117
30118 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
30119
30120 PR target/65729
30121 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30122 the assertiion.
30123
30124 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30125
30126 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30127 (LEGACY_INT_REGNO_P): Ditto.
30128 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30129 (ANY_MASK_REG_P): Remove.
30130 (BND_REG_P): Rename from ANY_BND_REG_P.
30131 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30132 legacy integer registers. Do not handle MMX_REG_P in a special way.
30133 Merge 64byte and 32byte SSE handling.
30134
30135 2015-04-14 Nick Clifton <nickc@redhat.com>
30136
30137 * expr.c (expand_assignment): Force an address offset computation
30138 into a register before changing its mode.
30139 (expand_expr_real_1): Likewise.
30140
30141 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
30142
30143 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30144 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30145 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30146 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30147 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30148 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30149 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30150 and __aarch64_vget_lane_any.
30151
30152 2015-04-14 Jakub Jelinek <jakub@redhat.com>
30153
30154 PR rtl-optimization/65761
30155 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30156 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30157
30158 2015-04-14 Richard Biener <rguenther@suse.de>
30159
30160 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30161 (graphite_can_represent_scev): Use POINTER_TYPE_P.
30162
30163 2015-04-14 Richard Biener <rguenther@suse.de>
30164
30165 PR tree-optimization/65758
30166 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30167 against -1.
30168 (ccp_lattice_meet): Likewise.
30169 (bit_value_unop): Likewise.
30170 (bit_value_binop): Likewise.
30171 (bit_value_assume_aligned): Likewise.
30172
30173 2015-04-14 Christian Bruel <christian.bruel@st.com>
30174
30175 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30176 function.
30177
30178 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
30179
30180 PR tree-optimization/63387
30181 * match.pd ((x unord x) | (y unord y) -> (x unord y),
30182 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30183
30184 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30185
30186 * config/i386/predicates.md (any_QIreg_operand): Rename from
30187 q_regs_operand. Do not process subregs.
30188 (QIreg_operand): Use QI_REGNO_P predicate.
30189 (ext_QIreg_operand): Ditto.
30190 (ext_register_operand): Ditto.
30191 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30192 (AND splitters): Ditto.
30193 (AND with -65536 splitter): Add SWI48 mode for operand 0.
30194 (AND with -256 splitter): Use any_QIreg_operand predicate and
30195 SWI248 mode for operand 0.
30196 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30197 mode for operand 0.
30198 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30199
30200 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
30201
30202 * doc/plugins.texi: Rewrite first introductory paragraph.
30203
30204 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30205
30206 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30207 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30208
30209 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30210
30211 * ipa-profie.c (ipa_profile): Check number of parameters
30212 and possible polymorphic call targets before
30213 devirtualizing.
30214
30215 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
30216
30217 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30218 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30219
30220 2015-04-13 Richard Biener <rguenther@suse.de>
30221
30222 PR tree-optimization/65204
30223 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30224 takens for bit-CCP.
30225
30226 2015-04-13 Richard Biener <rguenther@suse.de>
30227
30228 PR target/65660
30229 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30230 and cond_not_taken_branch_cost to 4 and 2.
30231 (bdver2_cost): Likewise.
30232 (bdver3_cost): Likewise.
30233 (bdver4_cost): Likewise.
30234
30235 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30236
30237 * hash-table.h (hash_table constructor): Add mem stats.
30238 (alloc_entries): Likewise.
30239
30240 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30241
30242 * ipa-cp.c (ipcp_driver): Relase prev_edge.
30243 * passes.c (execute_one_pass): Only add transform if pass has one.
30244
30245 2015-04-12 Joseph Myers <joseph@codesourcery.com>
30246
30247 * config/i386/i386.c (ix86_option_override_internal): Don't set
30248 -fprefetch-loop-arrays if optimizing for size.
30249
30250 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30251 Gerald Pfeifer <gerald@pfeifer.com>
30252
30253 * doc/contrib.texi (Contributors): Add Martin Jambor and
30254 Michael Matz.
30255
30256 2015-04-12 Jakub Jelinek <jakub@redhat.com>
30257
30258 * BASE-VER: Set to 6.0.0.
30259
30260 PR tree-optimization/65747
30261 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30262 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30263
30264 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30265
30266 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30267 sentence. Improve grammar.
30268
30269 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30270
30271 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30272
30273 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30274
30275 PR ipa/65743
30276 * ipa-inline-transform.c (speculation_removed): Remove static var.
30277 (check_speculations): New function.
30278 (clone_inlined_nodes): Do not check spculations.
30279 (inline_call): Call check_speculations.
30280 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30281 consider non-invariants.
30282
30283 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30284 Martin Liska <mliska@suse.cz>
30285
30286 PR ipa/65722
30287 * ipa-icf.c (sem_item::compare_cgraph_references): function and
30288 variable can not match.
30289 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30290 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30291
30292 2015-04-11 Jakub Jelinek <jakub@redhat.com>
30293
30294 PR tree-optimization/65735
30295 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30296 Remove visited_phis argument, add visited_bbs, avoid recursing into the
30297 same bb rather than just into the same phi node.
30298 (thread_through_normal_block): Adjust caller.
30299
30300 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30301
30302 * doc/contrib.texi (Contributors): Add Ira Rosen.
30303
30304 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
30305
30306 * gcov.c (find_source): Fix miswording in error message.
30307 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30308 (ix86_expand_sse_comi_round): Fix typo in error message.
30309
30310 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30311
30312 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30313
30314 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
30315
30316 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30317
30318 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30319
30320 PR target/65710
30321 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30322 Print bad_spills_num and insn_pseudos_num.
30323
30324 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30325
30326 PR target/65694
30327 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30328 when creating +1 values for SImode.
30329
30330 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30331
30332 PR target/65729
30333 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30334 assert.
30335
30336 2015-04-10 Jakub Jelinek <jakub@redhat.com>
30337 Iain Sandoe <iain@codesourcery.com>
30338
30339 PR target/65351
30340 * configure: Regenerate.
30341
30342 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30343
30344 PR target/65671
30345 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30346
30347 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
30348
30349 * doc/contrib.texi (Contributors): Add John Marino.
30350
30351 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30352
30353 PR tree-optimization/65709
30354 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30355 TREE_TYPE (TREE_TYPE (t)).
30356
30357 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
30358
30359 PR target/65710
30360 * lra-int.h (lra_bad_spill_regno_start): New.
30361 * lra.c (lra_bad_spill_regno_start): New.
30362 (lra): Set up lra_bad_spill_regno_start. Set up
30363 lra_constraint_new_regno_start unconditionally.
30364 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30365 spill preferences.
30366
30367 2015-04-09 Marek Polacek <polacek@redhat.com>
30368 Jakub Jelinek <jakub@redhat.com>
30369
30370 PR middle-end/65554
30371 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30372 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30373 of STRIP_NOPS.
30374
30375 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
30376
30377 PR rtl-optimization/65693
30378 * combine.c (is_parallel_of_n_reg_sets): Move outside of
30379 #ifndef HAVE_cc0.
30380
30381 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
30382
30383 PR target/65296
30384 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30385 device specs file if "device-specs%s" didn't resolve to a path.
30386
30387 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30388
30389 PR target/65676
30390 * config/i386/i386.c (fixup_modeless_constant): New.
30391 (ix86_expand_args_builtin): Fixup modeless constant operand.
30392 (ix86_expand_round_builtin): Ditto.
30393 (ix86_expand_special_args_builtin): Ditto.
30394 (ix86_expand_builtin): Ditto.
30395
30396 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30397
30398 PR target/65693
30399 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30400 any pow2 integer in between 2 and 0x80000000U inclusive.
30401
30402 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
30403
30404 PR rtl-optimization/65693
30405 * combine.c (is_parallel_of_n_reg_sets): Change first argument
30406 from an rtx_insn * to an rtx.
30407 (try_combine): Adjust both callers. Use it once more.
30408
30409 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30410
30411 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30412 (chkp_make_static_const_bounds): Search existing
30413 symbol by assembler name. Use make_decl_one_only.
30414 (chkp_get_zero_bounds_var): Remove node search which
30415 is now performed in chkp_make_static_const_bounds.
30416 (chkp_get_none_bounds_var): Likewise.
30417
30418 2015-04-08 Michael Witten <mfwitten@gmail.com>
30419
30420 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30421 to an example.
30422
30423 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30424
30425 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30426
30427 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30428
30429 * doc/extend.texi (__sync Builtins): Fix grammar.
30430
30431 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30432
30433 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30434
30435 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30436
30437 * varasm.c (emit_local): Move definition of align.
30438
30439 2015-04-08 Julian Brown <julian@codesourcery.com>
30440
30441 * config/nvptx/mkoffload.c (process): Support variable mapping.
30442
30443 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30444
30445 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30446 alpha_links **.
30447 (alpha_write_one_linkage): Correct typo.
30448
30449 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30450
30451 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30452
30453 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30454
30455 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30456
30457 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30458
30459 * tree-chkp.h (chkp_insert_retbnd_call): New.
30460 * tree-chkp.c (chkp_insert_retbnd_call): New.
30461 * ipa-split.c (insert_bndret_call_after): Remove.
30462 (split_function): Use chkp_insert_retbnd_call.
30463 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30464 bounds for instrumented functions.
30465
30466 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30467
30468 PR ipa/65540
30469 * calls.c (initialize_argument_information): When producing tail
30470 call also turn SSA_NAMES passed by references to original PARM_DECLs
30471
30472 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30473
30474 PR target/65648
30475 * lra-remat.c (do_remat): Process input and non-input insn
30476 registers separately.
30477
30478 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30479
30480 PR debug/65678
30481 * valtrack.c (debug_lowpart_subreg): New function.
30482 (dead_debug_insert_temp): Use it.
30483
30484 PR middle-end/65680
30485 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30486 into signed HOST_WIDE_INT the same as negative bit_offset.
30487
30488 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30489
30490 * ipa-comdats.c (ipa_comdats): Visit all thunks
30491 to set proper comdat group.
30492
30493 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30494
30495 PR target/65489
30496 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30497 on constants for NEON VSTRUCT modes.
30498
30499 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30500 Iain Sandoe <iain@codesourcery.com>
30501
30502 PR target/65351
30503 * configure: Regenerate.
30504
30505 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30506
30507 PR target/65614
30508 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30509 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30510 that LFD is used to load double constants instead of LFS. Add
30511 defaults for all costs structures. Add comments for missing
30512 initialization fields.
30513 (size32_cost): Likewise.
30514 (size64_cost): Likewise.
30515 (rs64a_cost): Likewise.
30516 (mpccore_cost): Likewise.
30517 (ppc403_cost): Likewise.
30518 (ppc405_cost): Likewise.
30519 (ppc440_cost): Likewise.
30520 (ppc476_cost): Likewise.
30521 (ppc601_cost): Likewise.
30522 (ppc603_cost): Likewise.
30523 (ppc604_cost): Likewise.
30524 (ppc604e_cost): Likewise.
30525 (ppc620_cost): Likewise.
30526 (ppc630_cost): Likewise.
30527 (ppccell_cost): Likewise.
30528 (ppc750_cost): Likewise.
30529 (ppc7450_cost): Likewise.
30530 (ppc8540_cost): Likewise.
30531 (ppce300c2c3_cost): Likewise.
30532 (ppce500mc_cost): Likewise.
30533 (ppce500mc64_cost): Likewise.
30534 (ppce5500_cost): Likewise.
30535 (ppce6500_cost): Likewise.
30536 (titan_cost): Likewise.
30537 (power4_cost): Likewise.
30538 (power6_cost): Likewise.
30539 (power7_cost): Likewise.
30540 (power8_cost): Likewise.
30541 (ppca2_cost): Likewise.
30542 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30543
30544 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30545 instead of XXLOR to copy SFmode to clear out dirty bits created
30546 when SFmode denormals are generated.
30547 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30548 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30549
30550 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30551
30552 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30553 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30554 * config/aarch64/aarch64-tune.md: Regenerate.
30555
30556 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30557
30558 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30559 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30560 * config/arm/arm-cores.def (exynos-m1): New core.
30561 * config/arm/arm-tune.md: Regenerate.
30562 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30563 * config/arm/bpabi.h: Likewise.
30564
30565 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30566
30567 * ipa-cp (set_single_call_flag): Remove too
30568 restrictive assert.
30569
30570 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30571
30572 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30573 GOMP_offload_unregister from the destructor.
30574
30575 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30576
30577 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30578 flags for instrumentation thunk.
30579 (chkp_produce_thunks): Likewise.
30580
30581 2015-04-05 Martin Liska <mliska@suse.cz>
30582
30583 PR ipa/65665
30584 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30585 has computed data structure.
30586 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30587
30588 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30589
30590 * invoke.texi (inline-unit-growth): Increase growth to 20%
30591 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30592
30593 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30594
30595 PR target/65647
30596 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
30597 value checking.
30598 (lra_rematerialization_iter): New.
30599 * lra.c (lra): Initialize lra_rematerialization_iter.
30600 Stop updating lra_constraint_new_regno_start after switching of
30601 inheritance and rematerialization.
30602 * lra-remat.c (lra_rematerialization_iter): New.
30603 (lra_remat): Add printing pass iteration. Do rematerialization
30604 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30605
30606 2015-04-04 Richard Biener <rguenther@suse.de>
30607
30608 PR tree-optimization/64909
30609 PR tree-optimization/65660
30610 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30611 to take a cost vector for scalar iteration cost.
30612 (vect_get_single_scalar_iteration_cost): Likewise.
30613 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30614 Compute the scalar iteration cost into a cost vector.
30615 (vect_get_known_peeling_cost): Use the scalar cost vector to
30616 account for the cost of the peeled iterations.
30617 (vect_estimate_min_profitable_iters): Likewise.
30618 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30619 Likewise.
30620
30621 2015-04-04 Alan Modra <amodra@gmail.com>
30622
30623 PR target/65576
30624 PR target/65240
30625 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30626 0.0 constant unless TARGET_VSX.
30627 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30628 alternative.
30629
30630 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30631
30632 PR ipa/65654
30633 * ipa-inline-transform.c (inline_call): Skip sanity check to work
30634 around the ICE
30635
30636 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30637
30638 PR ipa/65655
30639 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30640 speculative indirect edges to avoid ordering issue.
30641
30642 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30643
30644 PR ipa/65076
30645 * ipa-inline.c (edge_badness): Add combined size to the denominator.
30646
30647 2015-04-03 Jakub Jelinek <jakub@redhat.com>
30648
30649 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30650 TYPE_ARTIFICIAL on the .omp_data* types.
30651
30652 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30653
30654 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30655 instrumentation thunks.
30656
30657 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30658
30659 * config/i386/i386.c (ix86_expand_call): Avoid nested
30660 PARALLEL in returned call value.
30661
30662 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30663
30664 * lto-cgraph.c (input_cgraph_1): Always link instrumented
30665 assembler name with original one.
30666
30667 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30668
30669 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30670
30671 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30672
30673 Revert parts of r216820.
30674 * config/i386/i386.md (movqi_internal): Correct type calculation
30675 for alternatives 3 and 5.
30676
30677 2015-04-02 Jakub Jelinek <jakub@redhat.com>
30678
30679 PR preprocessor/61977
30680 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30681 predefine __vector/__bool/__pixel macros nor context sensitive
30682 macros for CLK_ASM.
30683 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30684
30685 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
30686
30687 * config/pa/pa.c (pa_output_move_double): Directly handle register
30688 indexed memory operand. Simplify handling of scaled register indexed
30689 memory operands.
30690
30691 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30692
30693 PR driver/65444
30694 * config/i386/linux-common.h (MPX_SPEC): New.
30695 (CHKP_SPEC): Add MPX_SPEC.
30696 * doc/invoke.texi (-fcheck-pointer-boudns): Document
30697 possible issues with '-z bndplt' support in linker.
30698
30699 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30700
30701 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30702 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30703 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30704 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30705 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30706
30707 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
30708
30709 * config/i386/sync.md (UNSPEC_MOVA): Remove.
30710 (atomic_load<mode>): Change operand 0 predicate to
30711 nonimmediate_operand and fix up the destination when needed.
30712 Use UNSPEC_LDA.
30713 (atomic_loaddi_fpu): Use UNSPEC_LDA.
30714 (atomic_store<mode>): Change operand 1 predicate to
30715 nonimmendate_operand and move the source to register when needed.
30716 Use UNSPEC_STA.
30717 (atomic_store<mode>_1): Use UNSPEC_STA.
30718 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30719 Fix moves from memory operand. Use UNSPEC_STA.
30720
30721 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30722
30723 * expmed.c (strict_volatile_bitfield_p): Check that the access will
30724 not cross a MODESIZE boundary.
30725 (store_bit_field, extract_bit_field): Added assertions in the
30726 strict volatile bitfields code path.
30727
30728 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
30729
30730 PR target/65624
30731 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30732 Increase args array size by one to avoid buffer overflow.
30733
30734 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30735
30736 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30737 split_part.
30738 * ipa-inline.c (edge_badness): Add wrapper penalty.
30739 (sum_callers): Move up.
30740 (inline_small_functions): Set single_caller.
30741 * ipa-inline.h (inline_summary): Add single_caller.
30742 * ipa-split.c (split_function): Set split_part.
30743 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30744 * cgraph.h (cgraph_node): Add split_part.
30745
30746 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
30747
30748 PR target/58945
30749 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30750 Do not split operands 0 and operands 2 to halfmode.
30751 (atomic_compare_and_swap<mode>): Update for
30752 atomic_compare_and_swap<dwi>_doubleword changes.
30753
30754 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30755
30756 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30757 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30758 no caching is done.
30759
30760 2015-03-31 Martin Liska <mliska@suse.cz>
30761
30762 PR ipa/65557
30763 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30764 has already filled up function summary.
30765 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30766
30767 2015-03-31 Richard Biener <rguenther@suse.de>
30768
30769 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30770 of types.
30771
30772 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
30773
30774 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30775 nested functions.
30776 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30777 (s390_asm_output_function_label): Adapt to new signature of
30778 s390_function_num_hotpatch_hw
30779 Optimise the code generating assembler output.
30780 Add comments to assembler file.
30781
30782 2015-03-31 Richard Biener <rguenther@suse.de>
30783
30784 PR middle-end/65626
30785 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30786 of the noreturn call so it is last and cleanup_control_flow_bb
30787 can do the CFG part.
30788
30789 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
30790
30791 PR target/65531
30792 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30793 same_comdat_group for external symbols.
30794 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30795 infinite same_comdat_group traversal loop.
30796
30797 2015-03-31 Jakub Jelinek <jakub@redhat.com>
30798
30799 PR plugins/61176
30800 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30801 automatically to $headers.
30802
30803 2015-03-30 Jakub Jelinek <jakub@redhat.com>
30804
30805 PR ipa/65610
30806 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30807 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30808 function.
30809 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30810 Use it.
30811 * ipa-prop.c (param_type_may_change_p): Likewise.
30812 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30813 (remove_unused_scope_block_p): Add in_ctor_dtor_block
30814 argument. Before inlining, preserve
30815 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30816 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
30817 recursive calls.
30818 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30819
30820 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30821
30822 PR ipa/65076
30823 * ipa-inline.c (edge_badness): Base denominator on callee's
30824 grwoth squared.
30825
30826 2015-03-27 Martin Jambor <mjambor@suse.cz>
30827
30828 PR ipa/65478
30829 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30830 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30831 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30832 node_calling_single_call.
30833 * ipa-cp.c (count_callers): New function.
30834 (set_single_call_flag): Likewise.
30835 (initialize_node_lattices): Count callers and set single_flag_call if
30836 necessary.
30837 (incorporate_penalties): New function.
30838 (good_cloning_opportunity_p): Use it, dump new flags.
30839 (propagate_constants_topo): Set node_within_scc flag if appropriate.
30840 * doc/invoke.texi (ipa-cp-recursion-penalty,
30841 ipa-cp-single-call-pentalty): Document.
30842
30843 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30844
30845 PR ipa/65588
30846 * symtab.c (symtab_node::get_partitioning_class): Register vars
30847 are duplicated.
30848 * varpool.c (symbol_table::output_variables) Do not assemble unefined
30849 decls for non-symbols.
30850
30851 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
30852
30853 PR target/65248
30854 * output.h (default_binds_local_p_2): New.
30855 * varasm.c (default_binds_local_p_2): Renamed to ...
30856 (default_binds_local_p_3): This. Don't return true on protected
30857 data symbol if protected data may be external.
30858 (default_binds_local_p): Use default_binds_local_p_3.
30859 (default_binds_local_p_1): Likewise.
30860 (default_binds_local_p_2): New.
30861 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30862 default_binds_local_p_2 if TARGET_MACHO is undefined.
30863
30864 2015-03-27 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR target/65593
30867 * config/i386/i386.c (legitimize_pic_address): If base
30868 is SYMBOL_REF or LABEL_REF using %rip addressing, force
30869 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30870
30871 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30872
30873 PR target/65531
30874 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30875 comdat groups.
30876
30877 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30878
30879 PR ipa/65600
30880 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30881 of optimized out indirect call.
30882 (redirect_to_unreachable): Always build symbol table node for
30883 BUILT_IN_UNREACHABLE
30884
30885 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
30886
30887 PR target/65407
30888 * ira-costs.c (record_reg_classes): Process all constraint string
30889 containing 0-9.
30890
30891 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
30892
30893 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30894 memory_operand.
30895
30896 PR target/65052
30897 * config/c6x/constraints.md (S3): New constraint.
30898 * config/c6x/c6x.md (real_jump): Use it.
30899
30900 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30901
30902 PR middle-end/65595
30903 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30904 do redirection if the call is not optimized out.
30905
30906 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
30907
30908 PR target/65495
30909 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30910 (fchkp-check-incomplete-type): Add LTO.
30911 (fchkp-zero-input-bounds-for-main): Likewise.
30912 (fchkp-first-field-has-own-bounds): Likewise.
30913 (fchkp-narrow-bounds): Likewise.
30914 (fchkp-narrow-to-innermost-array): Likewise.
30915 (fchkp-use-static-bounds): Likewise.
30916 (fchkp-use-static-const-bounds): Likewise.
30917 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30918
30919 2015-03-27 Marek Polacek <polacek@redhat.com>
30920
30921 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30922
30923 2015-03-27 Marek Polacek <polacek@redhat.com>
30924
30925 PR sanitizer/65583
30926 * ubsan.c (ubsan_create_edge): New function.
30927 (instrument_bool_enum_load): Call it.
30928 (instrument_nonnull_arg): Likewise.
30929 (instrument_nonnull_return): Likewise.
30930 (instrument_object_size): Likewise.
30931
30932 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30933
30934 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30935 auto_vec.
30936
30937 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30938
30939 PR lto/65536
30940 * lto-streamer.h (class lto_location_cache): New.
30941 (struct data_in): Add location_cache.
30942 (lto_input_location): Update prototype.
30943 (stream_input_location_now): New.
30944 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30945 pointer to location.
30946 (stream_input_location): Update.
30947 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30948 (warn_odr): Apply location cache before warning.
30949 (lto_input_location): Update prototype.
30950 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30951 Use stream_input_location_now.
30952 * lto-streamer-in.c (lto_location_cache::current_cache): New static
30953 variable.
30954 (lto_location_cache::cmp_loc): New function.
30955 (lto_location_cache::apply_location_cache): New function.
30956 (lto_location_cache::accept_location_cache): New function.
30957 (lto_location_cache::revert_location_cache): New function.
30958 (lto_location_cache::input_location): New function.
30959 (lto_input_location): Do location caching.
30960 (stream_input_location_now): New function.
30961 (input_eh_region, input_struct_function_base): Use
30962 stream_input_location_now.
30963 (lto_data_in_create): use new.
30964 (lto_data_in_delete): Use delete.
30965 * tree-streamer-in.c (unpack_ts_block_value_fields,
30966 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30967 lto_input_ts_exp_tree_pointers): Update for cached location api.
30968
30969 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30970
30971 PR ipa/65076
30972 * passes.def: Add pass_nothrow.
30973 * ipa-pure-const.c: (pass_data_nothrow): New.
30974 (pass_nothrow): New.
30975 (pass_nothrow::execute): New.
30976 (make_pass_nothrow): New.
30977 * tree-pass.h (make_pass_nothrow): Declare.
30978
30979 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30980
30981 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30982 edge to change by speculation resolution or redirection.
30983 (edge_set_predicate): Likewise.
30984 (inline_summary_t::duplicate): Likewise.
30985 (remap_edge_summaries): Likewise.
30986
30987 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30988
30989 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30990 New macros.
30991 (can_inline_edge_p): Relax option matching for always inline functions.
30992
30993 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
30994
30995 PR target/65561
30996 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30997 Check operand 4 and operand 0 for equality.
30998 (avx512f_vextract<shuffletype>32x4_1_maskm):
30999 Check operand 6 and operand 0 for equality.
31000 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31001 for equality.
31002 (vec_extract_hi_<mode>_maskm): Ditto.
31003
31004 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31005
31006 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31007 dead calls back to live.
31008 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31009 cross check to ...
31010 (cgraph_node::verify_node): ... here; verify only callee edges,
31011 not caller.
31012 * cif-code.def (CILK_SPAWN): New code.
31013
31014 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31015
31016 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31017 (edge_set_predicate): Use it to mark unreachable edges.
31018 (inline_summary_t::duplicate): Remove unnecesary code.
31019 (remap_edge_summaries): Likewise.
31020 (dump_inline_summary): Report contains_cilk_spawn.
31021 (compute_inline_parameters): Compute contains_cilk_spawn.
31022 (inline_read_section, inline_write_summary): Stream
31023 contains_cilk_spawn.
31024 * ipa-inline.c (can_inline_edge_p): Do not touch
31025 DECL_STRUCT_FUNCTION that may not be available;
31026 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31027 remove check for callee_fun->can_throw_non_call_exceptions and
31028 replace it by optimization attribute check; check for flag_exceptions.
31029 * ipa-inline-transform.c (inline_call): Maintain
31030 DECL_FUNCTION_PERSONALITY
31031 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31032
31033 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31034
31035 PR tree-optimization/65551
31036 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31037 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31038
31039 2015-03-26 Richard Biener <rguenther@suse.de>
31040
31041 PR middle-end/65555
31042 * tree-cfg.c (verify_gimple_call): Do not require a call to
31043 have no LHS if it wasn't recognized as control altering yet.
31044
31045 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31046
31047 PR tree-optimization/64715
31048 * passes.def: Add another instance of pass_object_sizes before ccp1.
31049 * tree-object-size.c (pass_object_sizes::execute): In
31050 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31051 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31052 __bos result and the computed constant. Remove redundant
31053 checks, obsoleted by gimple_call_builtin_p test.
31054
31055 * var-tracking.c (variable_tracking_main_1): Don't track
31056 variables for targetm.no_register_allocation targets.
31057
31058 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
31059
31060 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31061 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31062
31063 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31064
31065 PR target/65569
31066 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31067 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
31068 0.0 is correctly setup.
31069 (extenddftf2_internal): Likewise.
31070
31071 2015-03-25 Sebastian Pop <s.pop@samsung.com>
31072
31073 PR tree-optimization/65177
31074 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31075 (bb_in_bbs): New.
31076 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
31077 edges not adjacent on the path to the original code.
31078
31079 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
31080
31081 PR bootstrap/65537
31082 * doc/install.texi (Building a native compiler): Document new
31083 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
31084 configuration assumes that the host supports the linker plugin.
31085
31086 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
31087
31088 PR target/65508
31089 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31090 chain for generated call.
31091
31092 2015-03-25 Richard Biener <rguenther@suse.de>
31093
31094 * passes.c (pass_manager::execute_early_local_passes): Guard
31095 execution of pass_chkp_instrumentation_passes with
31096 flag_check_pointer_bounds.
31097 (pass_chkp_instrumentation_passes::gate): Likewise.
31098
31099 2015-03-25 Martin Liska <mliska@suse.cz>
31100
31101 PR tree-optimization/65538
31102 * symbol-summary.h (function_summary::~function_summary):
31103 Relese memory for allocated summaries.
31104 (function_summary::release): New function.
31105
31106 2015-03-25 Jakub Jelinek <jakub@redhat.com>
31107
31108 PR lto/65515
31109 * lto-streamer-out.c (DFS::worklist): New struct.
31110 (DFS::worklist_vec): New data member.
31111 (DFS::next_dfs_num): Remove.
31112 (DFS::DFS): Rewritten using worklist instead of recursion,
31113 using most of code from DFS::DFS_write_tree.
31114 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31115 pass it to DFS_write_tree calls.
31116 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31117 quick initial checks push it into worklist_vec and return.
31118
31119 2015-03-25 Richard Biener <rguenther@suse.de>
31120
31121 PR middle-end/65519
31122 * genmatch.c (expr::gen_transform): Re-write to avoid
31123 using gimple_build.
31124
31125 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31126
31127 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31128
31129 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31130
31131 * config/arm/arm.opt (print_tune_info): New option.
31132 * config/arm/arm.c (arm_print_tune_info): New function.
31133 (arm_file_start): Call arm_print_tune_info.
31134 * config/arm/arm-protos.h (struct tune_params): Add comment.
31135 * doc/invoke.texi (@item -mprint-tune-info): New item.
31136 (-mtune): mention it in ARM Option Summary.
31137
31138 2015-03-25 DJ Delorie <dj@redhat.com>
31139
31140 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31141 correct clause.
31142
31143 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
31144 Martin Liska <mliska@suse.cz>
31145
31146 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31147 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31148 (sem_item::add_type): New function.
31149 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31150 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31151 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31152 (sem_function::equals_wpa): Fix typo.
31153 * ipa-icf.h (sem_item::add_type): New function.
31154 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31155 order.
31156
31157 2015-03-24 Jakub Jelinek <jakub@redhat.com>
31158
31159 PR tree-optimization/65533
31160 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31161 with swapped operands, call vect_free_slp_tree on
31162 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31163 vector.
31164
31165 2015-03-24 Richard Biener <rguenther@suse.de>
31166
31167 PR middle-end/65517
31168 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31169 for fixup if necessary.
31170
31171 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
31172
31173 * doc/extend.texi (Function Attributes): Add @cindex entries
31174 for all attributes and regularize their format. Delete text
31175 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
31176 information about "eightbit_data", "tiny_data", and "model"
31177 variable attributes to the Variable Attributes section. Fix
31178 some obvious typos and copy-editing issues.
31179 (Variable Attributes, Type Attributes): Likewise add/fix
31180 @cindex entries for all attributes.
31181
31182 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31183
31184 PR target/65523
31185 * tree-chkp.c (chkp_build_returned_bound): Ignore
31186 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31187
31188 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
31189
31190 PR target/65505
31191 * config/sh/predicates.md (simple_mem_operand,
31192 displacement_mem_operand): Add test for reg.
31193 (short_displacement_mem_operand): Test for displacement_mem_operand
31194 before invoking sh_disp_addr_displacement.
31195 * config/sh/constraints.md (Sdd, Sra): Simplify.
31196 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31197 Remove redundant displacement_mem_operand tests.
31198
31199 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
31200
31201 PR target/65296
31202 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31203 the same -mmcu=MCU more than once.
31204
31205 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31206
31207 PR bootstrap/65522
31208 * ipa-devirt.c: Remove duplicate demangle.h include.
31209
31210 PR target/65504
31211 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31212 on the pseudo.
31213 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31214 REG_POINTER on *destptr after adjusting it for prologue size.
31215
31216 PR ipa/65521
31217 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31218 ultimate_alias_target ()->order ints instead of
31219 ultimate_alias_target () pointers.
31220
31221 2015-03-23 Richard Biener <rguenther@suse.de>
31222
31223 PR tree-optimization/65518
31224 * tree-vect-stmts.c (vectorizable_load): Reject single-element
31225 interleaving cases we generate absymal code for.
31226
31227 2015-03-23 Richard Biener <rguenther@suse.de>
31228
31229 PR tree-optimization/65494
31230 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31231 matches here.
31232 (vect_analyze_slp_instance): But do that here, always and once.
31233
31234 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31235
31236 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31237 adding T or multiplying by T+1 and subracting T.
31238
31239 2015-03-22 Jeff Law <law@redhat.com>
31240
31241 PR rtl-optimization/64317
31242 * Makefile.in (OBJS): Add gcse-common.c
31243 * gcse.c: Include gcse-common.h
31244 (struct modify_pair_s): Move structure definition to gcse-common.h
31245 (compute_transp): Move function to gcse-common.c.
31246 (canon_list_insert): Similarly.
31247 (record_last_mem_set_info): Break out some code and put it into
31248 gcse-common.c. Call into the new common code.
31249 (compute_local_properties): Pass additional arguments to compute_transp.
31250 * postreload-gcse.c: Include gcse-common.h and df.h
31251 (modify_mem_list_set, blocks_with_calls): New variables.
31252 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31253 (get_bb_avail_insn): Pass in the expression index too.
31254 (alloc_mem): Allocate memory for the new bitmaps and lists.
31255 (free_mem): Free memory for the new bitmaps and lists.
31256 (insert_expr_in_table): Record a bitmap index for each entry we
31257 add to the table.
31258 (record_last_mem_set_info): Call into common code in gcse-common.c.
31259 (get_bb_avail_insn): If no available insn was found in the requested
31260 BB. If BB has a single predecessor, see if the expression is
31261 transparent in BB and available in that single predecessor.
31262 (compute_expr_transp): New wrapper for compute_transp.
31263 (eliminate_partially_redundant_load): Pass expression's bitmap_index
31264 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
31265 (gcse_after_reload_main): If there are elements in the hash table,
31266 then compute transparency for all the elements in the hash table.
31267 * gcse-common.h: New file.
31268 * gcse-common.c: New file.
31269
31270 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
31271
31272 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31273 as an adjective.
31274 (System Headers): Likewise.
31275 (Ifdef): Likewise.
31276 (Traditional macros): Likewise.
31277 (Invocation): Likewise.
31278 (Option Index): Likewise.
31279 * doc/cppopts.texi (-M): Likewise.
31280 (-finput-charset): Likewise.
31281 (--help): Likewise.
31282 * doc.invoke.texi (AVR Options): Likewise.
31283 (V850 Options): Likewise.
31284
31285 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
31286
31287 PR ipa/65475
31288 * ipa-devirt.c: Include demangle.h
31289 (odr_type_d): Add field rtti_broken.
31290 (odr_subtypes_equivalent_p): Do not require name to match.
31291 (compare_virtual_tables): Fix typo; if type already has ODR violation,
31292 bypass the tests; be ready for function referneces in vtables that are
31293 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31294 (warn_odr): Give up for nameless types.
31295 (warn_types_mismatch): Report mismatch in mangled names;
31296 report mismatch in anonymous namespaces; look into component types to
31297 give useful error; report when mismatch is dragged in from other ODR
31298 type.
31299 (odr_types_equivalent_p): Match types for being polymorphic; avoid
31300 duplicated diagnostics.
31301 (add_type_duplicate): Reorder checks so more informative ones come
31302 first; fix typo; do not output "the extra base is defined here" when
31303 we did not warn.
31304 (BINFO_N_BASE_BINFOS): Relax sanity check.
31305
31306 2015-03-22 Martin Liska <mliska@suse.cz>
31307 Jakub Jelinek <jakub@redhat.com>
31308
31309 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31310 masks that can potentially include a builtin.
31311 (ix86_add_new_builtins): Introduce fast filter for isa values
31312 that cannot trigger builtin inclusion.
31313
31314 2015-03-22 Martin Liska <mliska@suse.cz>
31315
31316 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31317 (sem_item::update_hash_by_local_refs): Likewise.
31318 (sem_variable::get_hash): Empty line is fixed.
31319 (sem_item_optimizer::execute): Include adding of hash references.
31320 (sem_item_optimizer::update_hash_by_addr_refs): New function.
31321 (sem_item_optimizer::build_hash_based_classes): Use local hash.
31322 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31323 (sem_item::update_hash_by_local_refs): Likewise.
31324
31325 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31326
31327 PR ipa/65502
31328 * ipa-comdats.c (enqueue_references): Walk through thunks.
31329 (ipa_comdats): Likewise.
31330 (set_comdat_group_1): New function.
31331
31332 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31333
31334 PR ipa/65475
31335 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31336 non-polymorphic
31337
31338 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
31339 Gerald Pfeifer <gerald@pfeifer.com>
31340
31341 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31342
31343 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31344 Sandra Loosemore <sandra@codesourcery.com>
31345
31346 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31347 function parameter declaration.
31348 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31349 Update arguments to nios2_adjust_call_address().
31350 (sibcall_internal): Rename from *sibcall.
31351 (sibcall_value_internal): Rename from *sibcall_value.
31352 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31353 (nios2_large_got_address): Add target temp reg parameter.
31354 (nios2_got_address): Adjust call to nios2_large_got_address, add
31355 force_reg around it.
31356 (nios2_load_pic_address): Add target temp reg parameter, replace call
31357 to nios2_got_address with corresponding code.
31358 (nios2_legitimize_constant_address): Update call to
31359 nios2_load_pic_address.
31360 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31361 to use temp reg for PIC loading purposes.
31362 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31363 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31364 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31365
31366 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31367
31368 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31369 usage of "the @option{...}".
31370 (-Wopenmp-simd): Likewise.
31371 (-fsanitize-recover): Likewise.
31372 (-fsanitize-undefined-trap-on-error): Likewise.
31373 (-flto): Likewise.
31374 (tracer-dynamic-coverage-feedback): Likewise.
31375 (reorder-block-duplicate-feedback): Likewise.
31376 (loop-unroll-jam-size): Likewise.
31377 (-B): Likewise.
31378 (-I-): Likewise.
31379 (-mabs=legacy): Likewise.
31380 (-mupper-regs-df): Likewise.
31381 (-mupper-regs-sf): Likewise.
31382 (-mpointers-to-nested-functions): Likewise.
31383
31384 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31385
31386 * doc/extend.texi (Cilk Plus Builtins): Add markup.
31387
31388 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31389
31390 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31391 additional index entries and cross-references.
31392 (-fchkp-check-incomplete-type): Likewise.
31393 (-fchkp-first-field-has-own-bounds): Likewise.
31394 (-fchkp-narrow-to-innermost-array): Likewise.
31395 (-fchkp-use-fast-string-functions): Likewise.
31396 (-fchkp-use-nochk-string-functions): Likewise.
31397 (-fchkp-use-static-const-bounds): Likewise.
31398 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31399 (-fchkp-instrument-marked-only): Likewise.
31400 (-fchkp-use-wrappers): Likewise.
31401 (-static-libmpx): Likewise.
31402 (-static-libmpxwrappers): Likewise.
31403 * doc/extend.texi (bnd_legacy): Likewise.
31404 (bnd_instrument): Likewise.
31405 (bnd_variable_size): Likewise.
31406 (Pointer Bounds Checker builtins): Likewise.
31407
31408 2015-03-21 Tom de Vries <tom@codesourcery.com>
31409
31410 PR tree-optimization/65458
31411 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31412 * cgraph.h (cgraph_node): Add parallelized_function field.
31413 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31414 (input_overwrite_node): Read parallelized_function field.
31415 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31416 parallelized_function on cgraph_node for child_fn.
31417 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31418 Remove include of gt-tree-parloops.h.
31419 (parallelized_functions): Remove static variable.
31420 (parallelized_function_p): Rewrite using parallelized_function field of
31421 cgraph_node.
31422 (create_loop_fn): Remove adding to parallelized_functions.
31423 * Makefile.in (GTFILES): Remove tree-parloops.c
31424
31425 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
31426
31427 PR rtl-optimization/64366
31428 * lra.c (lra_update_insn_regno_info): Consider regs in
31429 CALL_INSN_FUNCTION_USAGE memory.
31430
31431 2015-03-20 Richard Biener <rguenther@suse.de>
31432
31433 PR middle-end/64715
31434 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31435 for type comparison and gcc_checking_assert.
31436 (chrec_fold_plus_poly_poly): Likewise.
31437 (chrec_fold_multiply_poly_poly): Likewise.
31438 (chrec_convert_1): Likewise.
31439 * gimplify.c (gimplify_expr): Remove premature folding of
31440 &X + CST to &MEM[&X, CST].
31441
31442 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31443
31444 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31445 already is final.
31446 (ipa_inline): Recompute inline_failed codes.
31447 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31448 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31449 CIF_FINAL_ERROR.
31450
31451 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31452
31453 PR rtl-optimization/60851
31454 * recog.c (constrain_operands): Accept a pseudo register before reload
31455 for LRA enabled targets.
31456
31457 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31458
31459 PR target/65240
31460 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31461 -ffast-math handling that kept non-0 constants live in the RTL
31462 until reload. Remove logic testing the number of instructions it
31463 took to create a constant in a GPR that was never used, due to a
31464 test for soft-float earlier.
31465 (memory_fp_constant): Delete, no longer used.
31466
31467 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31468 alternatives for loading non-0 constants into GPRs for hard
31469 floating point that is no longer needed due to changes in
31470 easy_fp_constant. Add support for loading 0.0 into GPRs.
31471 (mov<mode>_hardfloat32): Likewise.
31472 (mov<mode>_hardfloat64): Likewise.
31473 (mov<mode>_64bit_dm): Likewise.
31474 (movtd_64bit_nodm): Likewise.
31475 (pre-reload move FP constant define_split): Delete define_split,
31476 since it is no longer used.
31477 (extenddftf2_internal): Remove GHF constraints that are not valid
31478 for extenddftf2.
31479
31480 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31481
31482 PR rtl-optimization/63491
31483 * lra-constraints.c (check_and_process_move): Use src instead of
31484 sreg. Remove some dead code.
31485
31486 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31487
31488 PR ipa/65380
31489 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31490 (sem_variable::merge): Likewise.
31491
31492 2015-03-19 Martin Liska <mliska@suse.cz>
31493
31494 PR ipa/65465
31495 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31496 all fields of cgraph_thunk_info.
31497
31498 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31499
31500 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31501 clone instrumented thunks.
31502
31503 2015-03-19 Richard Biener <rguenther@suse.de>
31504
31505 Revert
31506 2015-03-10 Richard Biener <rguenther@suse.de>
31507
31508 PR middle-end/63155
31509 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31510 * tree-ssa-coalesce.c: Include timevar.h.
31511 (attempt_coalesce): Handle graph being NULL.
31512 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31513 Split out abnormal coalescing to ...
31514 (perform_abnormal_coalescing): ... this function.
31515 (coalesce_ssa_name): Perform abnormal coalescing without computing
31516 live/conflict.
31517 (verify_ssa_coalescing_worker): New function.
31518 (verify_ssa_coalescing): Likewise.
31519
31520 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31521 Jakub Jelinek <jakub@redhat.com>
31522
31523 PR sanitizer/65400
31524 * tsan.c (instrument_gimple): Clear tail call flag on
31525 calls.
31526
31527 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31528
31529 PR sanitizer/65400
31530 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31531 call in the return bb.
31532 (find_split_points): Add RETURN_BB argument, don't call
31533 find_return_bb.
31534 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31535 if true append TSAN_FUNC_EXIT internal call after the call to
31536 the split off function.
31537 (execute_split_functions): Call find_return_bb here.
31538 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31539 Adjust find_split_points and split_function calls.
31540
31541 2015-03-18 DJ Delorie <dj@redhat.com>
31542
31543 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31544 (iorqi3_virt): Likewise.
31545
31546 2015-03-18 Tom de Vries <tom@codesourcery.com>
31547
31548 * tree-parloops.c (parallelize_loops): Make static.
31549 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31550
31551 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31552
31553 PR middle-end/64491
31554 Revert:
31555 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31556
31557 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31558 condition would be removed due to undefined behaviour.
31559
31560 2015-03-18 Martin Liska <mliska@suse.cz>
31561
31562 PR ipa/65432
31563 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31564 xstrdup_for_dump wrapper.
31565 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31566 sem_item::name.
31567 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31568 with xstrdup_for_dump.
31569 (sem_variable::equals): Likewise.
31570 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31571 sem_item::name.
31572 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31573 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31574 symtab_node::asm_name with xstrdup_for_dump.
31575 (congruence_class::dump): Use symtab_node::name instead of
31576 sem_item::name.
31577 * ipa-icf.h (symtab_node::name): Remove.
31578 (symtab_node::asm_name): Likewise.
31579
31580 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31581
31582 PR tree-optimization/65450
31583 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31584 function.
31585 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31586 it instead of duplicate_ssa_name_ptr_info.
31587
31588 PR target/65222
31589 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31590
31591 2015-03-18 Richard Biener <rguenther@suse.de>
31592
31593 * tree-data-ref.h (struct access_matrix): Remove.
31594 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31595 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31596 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31597 (am_vector_index_for_loop): Likewise.
31598 (struct data_reference): Remove access_matrix member.
31599 (DR_ACCESS_MATRIX): Remove.
31600 (lambda_vector_new): Add comment.
31601 (lambda_matrix_new): Use XOBNEWVEC.
31602
31603 2015-03-18 Richard Biener <rguenther@suse.de>
31604
31605 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31606 (pass_ch::execute): Cleanup the CFG only if we did sth.
31607 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31608
31609 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31610
31611 * expmed.c (synth_mult): Use std::swap instead of manually
31612 swapping algorithms.
31613
31614 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31615
31616 PR target/65078
31617 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31618
31619 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
31620
31621 PR target/65296
31622 * config/avr/avr.opt (-nodevicelib): New option.
31623 * doc/invoke.texi (AVR Options): Document it.
31624 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31625 libgcc.a, libc.a, libm.a.
31626 * config/avr/specs.h: Same.
31627 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31628 which don't (directly) depend on the device. Print more help.
31629 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31630 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31631 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31632 case of an error.
31633 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31634 for specs file name.
31635 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31636 * config/avr/avr-mcus.def: Adjust initializers and comments.
31637
31638 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
31639
31640 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31641 DECL_ONE_ONLY to check if decl is one only.
31642 * ipa-split.c (consider_split): Limit splitt of one only functions.
31643
31644 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31645
31646 PR tree-optimization/65427
31647 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31648 functions.
31649 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31650
31651 2015-03-16 Marek Polacek <polacek@redhat.com>
31652
31653 * cgraph.h (add_new_static_var): Remove declaration.
31654 * varpool.c (add_new_static_var): Remove function.
31655
31656 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31657
31658 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31659 instead of vec<tree> * with vec_alloc and release for args.
31660 Adjust all users.
31661
31662 PR middle-end/65431
31663 * omp-low.c (delete_omp_context): Only splay_tree_delete
31664 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31665 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
31666
31667 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
31668
31669 PR sanitizer/64820
31670 * cfgexpand.c (align_base): New function.
31671 (alloc_stack_frame_space): Call it.
31672 (expand_stack_vars): Align prev_frame to be sure
31673 data->asan_vec elements aligned properly.
31674
31675 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
31676
31677 PR middle-end/65409
31678 * expr.c (store_field): Do not do a direct block copy if the source is
31679 a PARALLEL with BLKmode.
31680
31681 2015-03-16 Tom de Vries <tom@codesourcery.com>
31682
31683 PR middle-end/65414
31684 Revert:
31685 2015-03-12 Tom de Vries <tom@codesourcery.com>
31686
31687 PR rtl-optimization/64895
31688 * lra-lives.c (check_pseudos_live_through_calls): Use
31689 actual_call_used_reg_set instead of call_used_reg_set, if available.
31690
31691 2015-03-16 Alan Modra <amodra@gmail.com>
31692
31693 PR target/63150
31694 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31695 Modify Z->r bswapdi splitter to use dest in place of scratch.
31696 In r->Z and Z->r bswapdi splitter rename word_high, word_low
31697 to word1, word2 and rearrange logic to suit.
31698 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31699 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
31700 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31701 Add one '?' on r->r. Modify Z->r splitter to avoid need for
31702 early clobber.
31703
31704 2015-03-14 Jakub Jelinek <jakub@redhat.com>
31705
31706 PR tree-optimization/65369
31707 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31708 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31709 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31710
31711 PR tree-optimization/65418
31712 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31713 are casts in the first PLUS_EXPR operand, ensure tbias and
31714 *totallowp are in the inner type.
31715
31716 PR rtl-optimization/65401
31717 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31718 argument. If true, adjust_address_nv of x with big-endian
31719 correction for the mode widening to GET_MODE (y).
31720 (make_field_assignment): Don't do MEM mode widening here.
31721 Use MEM_P instead of GET_CODE == MEM.
31722
31723 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
31724
31725 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31726 the external decls.
31727
31728 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31729
31730 PR target/64600
31731 * config/arm/arm.c (arm_gen_constant, AND case): Use
31732 ARM_SIGN_EXTEND when constructing AND mask.
31733
31734 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31735
31736 * graph.c (print_graph_cfg): Make function names visible and append
31737 parenthesis to it. Also make groups of basic blocks belonging to the
31738 same function visible.
31739
31740 2015-03-12 Richard Biener <rguenther@suse.de>
31741
31742 PR middle-end/44563
31743 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31744 to avoid quadratic behavior with inline expansion splitting blocks.
31745 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31746 with the successor if the predecessor will be merged with it.
31747 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31748 entry block with its successor.
31749
31750 2015-03-13 Richard Biener <rguenther@suse.de>
31751
31752 PR middle-end/44563
31753 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31754 (cleanup_tree_cfg_1): Do not call it.
31755 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31756 (fixup_noreturn_call): Mark the stmt as control altering.
31757 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31758 here.
31759 (pass_data_fixup_cfg): Produce a dump file.
31760 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31761 (need_noreturn_fixup): New global.
31762 (pass_dominator::execute): Fixup queued noreturn calls.
31763 (optimize_stmt): Queue calls that became noreturn for fixup.
31764 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31765 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31766 (el_to_fixup): New global.
31767 (eliminate_dom_walker::before_dom_childre): Queue calls that
31768 became noreturn for fixup.
31769 (eliminate): Fixup queued noreturn calls.
31770 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31771 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31772 (substitute_and_fold_dom_walker::before_dom_children): Queue
31773 alls that became noreturn for fixup.
31774 (substitute_and_fold): Fixup queued noreturn calls.
31775
31776 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
31777
31778 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31779 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31780 are building; for methods check ODR type of class they belong to if
31781 they may lead to a polymorphic call.
31782 (sem_function::compare_polymorphic_p): Be bit smarter about testing
31783 when function may lead to a polymorphic call.
31784 (sem_function::compare_type_list): Remove.
31785 (sem_variable::equals): Update use of compatible_types_p.
31786 (sem_variable::parse_tree_refs): Remove.
31787 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31788 cdtor.
31789 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31790 matching here.
31791 (func_checker::compatible_polymorphic_types_p): Break out from ...
31792 (unc_checker::compatible_types_p): ... here.
31793 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31794 Declare.
31795 (unc_checker::compatible_types_p): Update.
31796 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31797 Remove.
31798
31799 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31800
31801 PR rtl-optimization/65235
31802 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31803 When first element of vec_concat is const_int, calculate its size
31804 using second element.
31805
31806 2015-03-12 Richard Biener <rguenther@suse.de>
31807
31808 PR middle-end/65270
31809 * fold-const.c (operand_equal_p): Fix ordering of resetting
31810 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31811
31812 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31813
31814 * config/s390/s390.c (s390_reorg): Move code to output nops after label
31815 to s390_reorg ().
31816 (s390_asm_output_function_label): Likewise.
31817 * config/s390/s390.c (s390_asm_output_function_label):
31818 Fix function label alignment with -mhtopatch.
31819 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31820 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31821 ("nop_2_byte"): New define_insn.
31822 ("nop_4_byte"): Likewise.
31823 ("nop_6_byte"): Likewise.
31824 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31825 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31826
31827 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31828
31829 PR target/65103
31830 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31831 register.
31832
31833 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31834
31835 PR target/65044
31836 * toplev.c (process_options): Restrict Pointer Bounds Checker
31837 usage with Address Sanitizer.
31838
31839 2015-03-12 Richard Biener <rguenther@suse.de>
31840
31841 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31842 to split on.
31843 * omp-low.c (expand_omp_taskreg): Split block before removing
31844 the stmt.
31845 (expand_omp_target): Likewise.
31846 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31847 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31848 stmt to split_block.
31849
31850 2015-03-12 Tom de Vries <tom@codesourcery.com>
31851
31852 PR rtl-optimization/64895
31853 * lra-lives.c (check_pseudos_live_through_calls): Use
31854 actual_call_used_reg_set instead of call_used_reg_set, if available.
31855
31856 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31857
31858 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31859 (cgraph_node::remove): Likewise.
31860 (cgraph_node::get_untransformed_body): Likewise.
31861 * varpool.c (varpool_node::remove): Likewise.
31862 (varpool_node::get_constructor): Add sanity check.
31863
31864 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
31865
31866 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31867 old GCC versions.
31868 (-fabi-compat-version): Likewise.
31869 (-ffriend-injection): Likewise.
31870 (-Wdeclaration-after-statement): Likewise.
31871 (-fomit-frame-pointer): Likewise.
31872 (-ftree-coalesce-inlined-vars): Likewise.
31873 (-fvisibility=): Likewise.
31874 * doc/extend.texi (Typeof): Likewise.
31875 (Zero Length): Likewise.
31876 (Escaped Newlines): Likewise.
31877 (Compound Literals): Likewise.
31878 (Function Attributes): Likewise.
31879 (Label Attributes): Likewise.
31880 (Type Attributes): Likewise.
31881 (Function Names): Likewise.
31882 (Other Builtins): Likewise.
31883 (Function Specific Option Pragmas): Likewise.
31884 (C++ Interface): Likewise.
31885
31886 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
31887
31888 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31889
31890 2015-03-11 Marek Polacek <polacek@redhat.com>
31891
31892 PR tree-optimization/65388
31893 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31894
31895 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31896
31897 PR target/65296
31898 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31899 * configure: Regenerate.
31900 * config.in: Regenerate.
31901 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31902 [-mn-flash]: Document it.
31903 [__AVR_ARCH__]: Document avrtiny.
31904
31905 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31906 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31907 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31908
31909 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31910
31911 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31912
31913 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31914
31915 PR target/65242
31916 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31917 allow reloads of PLUS in floating point/VSX registers.
31918
31919 2015-03-11 Junmo Park <junmoz.park@samsung.com>
31920
31921 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31922 crypto_sha256_fast.
31923 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31924
31925 2015-03-11 Richard Biener <rguenther@suse.de>
31926
31927 PR tree-optimization/65310
31928 * tree-sra.c (build_ref_for_offset): Also preserve larger
31929 alignment.
31930
31931 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
31932
31933 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31934
31935 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31936
31937 PR target/65368
31938 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31939 new define_expand.
31940 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31941
31942 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31943
31944 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31945 (sem_function::equals_wpa): ... here.
31946
31947 2015-03-10 Marek Polacek <polacek@redhat.com>
31948 Jakub Jelinek <jakub@redhat.com>
31949
31950 PR sanitizer/65367
31951 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31952 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
31953 separately.
31954
31955 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31956
31957 PR target/65286
31958 * config/rs6000/t-linux: For powerpc64* target set
31959 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31960
31961 2015-03-10 Richard Biener <rguenther@suse.de>
31962
31963 PR middle-end/44563
31964 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31965 for redirect_all_calls.
31966
31967 2015-03-10 Marek Polacek <polacek@redhat.com>
31968
31969 * gdbinit.in (pcfun): Define and document.
31970
31971 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
31972
31973 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31974 of libgomp-plugin.h.
31975 (find_target_compiler): Support a case when the path to gcc is
31976 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31977 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31978 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31979 libgomp-plugin.h.
31980 (main): Use GCC_INSTALL_NAME as target_driver_name.
31981 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31982 define.
31983 (mkoffload.o): Remove obsolete include path and defines.
31984 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31985
31986 2015-03-10 Richard Biener <rguenther@suse.de>
31987
31988 PR middle-end/63155
31989 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31990 * tree-ssa-coalesce.c: Include timevar.h.
31991 (attempt_coalesce): Handle graph being NULL.
31992 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31993 Split out abnormal coalescing to ...
31994 (perform_abnormal_coalescing): ... this function.
31995 (coalesce_ssa_name): Perform abnormal coalescing without computing
31996 live/conflict.
31997 (verify_ssa_coalescing_worker): New function.
31998 (verify_ssa_coalescing): Likewise.
31999
32000 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32001
32002 PR target/65296
32003 * config.gcc (extra_options) [avr]: Remove.
32004 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32005 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32006 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32007
32008 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32009 (-mmcu=): Add Var and MissingArgError properties.
32010 (-march=): Remove.
32011 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32012 * config/avr/t-multilib: Regenerate.
32013 * config/avr/specs.h: New file.
32014 * config/avr/driver-avr.c: New file.
32015 * config/avr/genopt.sh: Remove file.
32016 * config/avr/avr-tables.opt: Remove file.
32017 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32018 * config/avr/avr-c.c: Same.
32019 * avr-arch.h: Same.
32020 (avr_current_device): Remove proto.
32021 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32022 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32023 (EXTRA_SPEC_FUNCTIONS): Define.
32024 (avr_devicespecs_file): New specs function proto.
32025 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32026 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32027 (avr_current_device): Remove definition and usage.
32028 (avr_set_core_architecture): New static function.
32029 (avr_option_override): Use it.
32030 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32031 (mcu_name): New static array.
32032 (comparator, avr_archs_str, avr_mcus_str): New static functions.
32033 (avr_inform_devices, avr_inform_core_architectures): New functions.
32034 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32035 (avrlibc.h) [WITH_AVRLIBC]: Include.
32036 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32037 (print_mcu): Rewrite from scratch.
32038 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32039 Forward to avr-specific specs defined in device-specs file.
32040 * config/avr/t-avr (driver-avr.o): New rule.
32041 (avr-devices.o): Depend on avr-arch.h.
32042 (avr-mcus): No more depend on avr-tables.opt.
32043 (avr-tables.opt): Remove rule.
32044 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32045
32046 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32047
32048 * c-family/c.opt (fchkp-use-wrappers): New.
32049 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32050 (chkp_wrap_function): New.
32051 (chkp_build_instrumented_fndecl): Support wrapped
32052 functions.
32053 * doc/invoke.texi (-fcheck-pointer-bounds): New.
32054 (-fchkp-check-incomplete-type): New.
32055 (-fchkp-first-field-has-own-bounds): New.
32056 (-fchkp-narrow-bounds): New.
32057 (-fchkp-narrow-to-innermost-array): New.
32058 (-fchkp-optimize): New.
32059 (-fchkp-use-fast-string-functions): New.
32060 (-fchkp-use-nochk-string-functions): New.
32061 (-fchkp-use-static-bounds): New.
32062 (-fchkp-use-static-const-bounds): New.
32063 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32064 (-fchkp-check-read): New.
32065 (-fchkp-check-write): New.
32066 (-fchkp-store-bounds): New.
32067 (-fchkp-instrument-calls): New.
32068 (-fchkp-instrument-marked-only): New.
32069 (-fchkp-use-wrappers): New.
32070 (-static-libmpx): New.
32071 (-static-libmpxwrappers): New.
32072
32073 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32074
32075 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32076 (CHKP_SPEC): Add wrappers library.
32077 * c-family/c.opt (static-libmpxwrappers): New.
32078
32079 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32080
32081 * config/i386/linux-common.h (LIBMPX_LIBS): New.
32082 (LIBMPX_SPEC): New.
32083 (CHKP_SPEC): New.
32084 * gcc.c (CHKP_SPEC): New.
32085 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32086 * c-family/c.opt (static-libmpx): New.
32087
32088 2015-03-10 Richard Biener <rguenther@suse.de>
32089
32090 PR middle-end/44563
32091 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32092 for compare_type.
32093 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32094 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32095 (cgraph_add_edge_to_call_site_hash): Likewise.
32096 (cgraph_node::get_edge): Likewise.
32097 (cgraph_edge::set_call_stmt): Likewise.
32098 (cgraph_edge::remove_caller): Likewise.
32099
32100 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
32101
32102 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32103 (callee_saved_gpr_regs_size): ... this.
32104 (callee_saved_regs_first_regno): Rename to ...
32105 (callee_saved_first_gpr_regno): ... this.
32106 (callee_saved_regs_last_regno) Rename to ...
32107 (callee_saved_last_gpr_regno): ... this.
32108 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32109 variables.
32110 (nds32_initial_elimination_offset): Likewise.
32111 (nds32_expand_prologue): Likewise.
32112 (nds32_expand_epilogue): Likewise.
32113 (nds32_expand_prologue_v3push): Likewise.
32114 (nds32_expand_epilogue_v3pop): Likewise.
32115 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32116 Adjust renamed variables.
32117 (nds32_output_stack_pop): Likewise.
32118
32119 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
32120
32121 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32122 code in comment.
32123
32124 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32125
32126 PR rtl-optimization/65321
32127 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32128 than shift mode.
32129 * var-tracking.c (use_narrower_mode): Likewise.
32130
32131 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32132
32133 PR tree-optimization/65355
32134 * varasm.c (notice_global_symbol): Do not produce RTL.
32135 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32136 anchor.
32137 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32138 check for section anchors.
32139
32140 2015-03-10 Alan Modra <amodra@gmail.com>
32141
32142 PR target/65286
32143 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32144 to be single-arch by default. Set cpu_is_64bit for powerpc64
32145 given --with-cpu=native.
32146 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32147 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32148 and powerpc64le.
32149 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32150 rs6000_isa_flags rather than TARGET_64BIT.
32151
32152 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
32153 Kaz Kojima <kkojima@gcc.gnu.org>
32154
32155 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32156
32157 2015-03-09 Jakub Jelinek <jakub@redhat.com>
32158
32159 PR lto/65361
32160 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32161 on a TREE_BINFO, instead use BINFO_TYPE.
32162
32163 2015-03-09 Richard Biener <rguenther@suse.de>
32164
32165 PR middle-end/65270
32166 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32167 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32168 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
32169 of that. When comparing dereferences compare alignment.
32170 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32171
32172 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32173
32174 * ipa-inline-analysis.c (check_callers): Check
32175 node->can_remove_if_no_direct_calls_and_refs_p.
32176 (growth_likely_positive): Reorganize to call
32177 can_remove_if_no_direct_calls_p later.
32178 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32179 will_be_removed_from_program_if_no_direct_calls_p): Add
32180 will_inline parameter.
32181 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32182 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32183 Handle inliner case correctly.
32184
32185 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32186
32187 PR tree-optimization/63743
32188 * cfgexpand.c (reorder_operands): Also reorder if only second operand
32189 had its definition forwarded by TER.
32190
32191 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32192
32193 PR lto/65316
32194 * ipa-utils.h (types_odr_comparable): Add strict argument.
32195 * ipa-devirt.c: Fix whitespace;
32196 (odr_hasher): Remove.
32197 (odr_name_hasher, odr_vtable_hasher): New hashers.
32198 (can_be_name_hashed_p): New predicate.
32199 (hash_type_name): remove.
32200 (hash_odr_name): New.
32201 (odr_name_hasher::hash): new.
32202 (can_be_vtable_hashed_p): New.
32203 (hash_odr_vtable): New.
32204 (odr_vtable_hasher::hash): New.
32205 (types_same_for_odr): Add strict parameter.
32206 (types_odr_comparable): Likewise.
32207 (odr_name_hasher::equal): New.
32208 (odr_vtable_hasher::equal): New.
32209 (odr_name_hasher::remove): New.
32210 (odr_hash_type): Change to hash_table<odr_name_hasher>.
32211 (odr_vtable_hash_type): New.
32212 (odr_vtable_hash): New.
32213 (odr_subtypes_equivalent_p): Do strict comparsion.
32214 (add_type_duplicate): Merge type names; cleanup; avoid type
32215 duplicates.
32216 (register_odr_type): Initialize vtable hash.
32217 (build_type_inheritance_graph): Likewise
32218 (get_odr_type): Reorg to use two hashes.
32219 (dump_possible_polymorphic_call_targets): Move sanity check after debug
32220 output.
32221 (ipa_devirt): Dump type_inheritance_graph.
32222 (types_same_for_odr): Add strict mode.
32223
32224 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32225
32226 PR ipa/65334
32227 * cgraph.h (symtab_node): Add definition_alignment,
32228 can_increase_alignment_p and increase_alignment.
32229 * symtab.c (symtab_node::can_increase_alignment_p,
32230 increase_alignment_1, symtab_node::increase_alignment,
32231 symtab_node::definition_alignment): New.
32232 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32233 can_increase_alignment_p.
32234 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32235 * tree-vect-stmts.c (ensure_base_align): Likewise.
32236 * varasm.c (function_section_1): Use definition_alignment.
32237 (assemble_start_function): Likewise.
32238 (emit_local): likewise.
32239 (build_constant_desc): Likewsie.
32240 (output_constant_def_contents): Likewise.
32241 (place_block_symbol): Likewise.
32242 (output_object_block): Likewise.
32243
32244 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32245
32246 PR ipa/65316
32247 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32248 when outputting debug.
32249
32250 2015-03-07 Marek Polacek <polacek@redhat.com>
32251 Martin Uecker <uecker@eecs.berkeley.edu>
32252
32253 PR sanitizer/65280
32254 * doc/invoke.texi: Update description of -fsanitize=bounds.
32255
32256 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
32257
32258 * tree-ssa-phiopt.c (neg_replacement): Remove.
32259 (tree_ssa_phiopt_worker): Remove negate optimization.
32260
32261 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32262
32263 PR ipa/65302
32264 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32265
32266 2015-03-06 Richard Biener <rguenther@suse.de>
32267
32268 PR middle-end/64928
32269 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32270 and liveout_obstack members.
32271 (calculate_live_on_exit): Remove.
32272 (calculate_live_ranges): Change declaration.
32273 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32274 (new_tree_live_info): Adjust.
32275 (calculate_live_ranges): Delete livein when not wanted.
32276 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32277 Deal with partly deleted live info.
32278 (loe_visit_block): Remove temporary bitmap by using
32279 bitmap_ior_and_compl_into.
32280 (live_worklist): Adjust accordingly.
32281 (calculate_live_on_exit): Make static.
32282 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32283 we do not need livein.
32284
32285 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
32286
32287 * real.c (real_from_string): Fix typo in assertion.
32288
32289 2015-03-06 Alex Velenko <alex.velenko@arm.com>
32290
32291 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32292 the patch.
32293
32294 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32295
32296 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32297
32298 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
32299
32300 PR target/64342
32301 * lra-assigns.c (find_hard_regno_for): Rename to
32302 find_hard_regno_for_1. Add a new parameter.
32303 (find_hard_regno_for): New function using find_hard_regno_for_1.
32304
32305 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32306
32307 PR rtl-optimization/65067
32308 * expmed.c (store_bit_field, extract_bit_field): Reworked the
32309 strict volatile bitfield handling.
32310
32311 2015-03-05 Martin Liska <mliska@suse.cz>
32312
32313 PR ipa/65318
32314 * ipa-icf.c (sem_variable::equals): Compare variables types.
32315
32316 2015-03-05 Richard Henderson <rth@redhat.com>
32317
32318 PR target/65121
32319 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32320 correctly check weak symbol binding.
32321
32322 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
32323
32324 PR middle-end/65315
32325 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32326 needed alignment.
32327
32328 2015-03-05 Martin Liska <mliska@suse.cz>
32329
32330 * ipa-inline.c (inline_small_functions): Set default value to
32331 prevent warning during bootstrap.
32332 * tree.h: Add pragma guard that ignores false positives during
32333 bootstrap.
32334
32335 2015-03-05 Richard Biener <rguenther@suse.de>
32336
32337 PR tree-optimization/65310
32338 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32339 Properly preserve alignment of the base of the access.
32340
32341 2015-03-05 Richard Biener <rguenther@suse.de>
32342
32343 PR ipa/65270
32344 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32345 Compare dependence info.
32346
32347 2015-03-05 Richard Biener <rguenther@suse.de>
32348
32349 PR middle-end/65233
32350 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32351 tree-into-ssa.h.
32352 (walk_ssa_copies): Revert last chage. Instead do not walk
32353 SSA names registered for SSA update.
32354
32355 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32356
32357 PR ipa/65270
32358 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32359 vtable references for their containing type.
32360 (sem_function::equals_wpa): Compare TYPE_RESTRICT
32361 and type attributes.
32362
32363 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
32364
32365 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32366 before negating it.
32367 * stor-layout.c (finalize_record_size): Revert latest change.
32368
32369 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
32370
32371 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32372
32373 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32374
32375 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32376 for correct comdat handling.
32377 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32378 Likewise.
32379 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32380 (used_from_object_file_p_worker): Remove.
32381 (cgraph_node::only_called_directly_or_alised): Add
32382 used_from_object_file_p.
32383 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32384 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32385 can_remove_if_no_direct_calls_and_refs_p.
32386
32387 2015-03-04 Nick Clifton <nickc@redhat.com>
32388
32389 * config/rl78/rl78.h (enum reg_class): Remove real registers from
32390 General register class.
32391 * config/rl78/rl78-real.md: Replace general register constraints
32392 with real+virtual register constraints.
32393
32394 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32395
32396 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32397 from checking for -mhtm option.
32398
32399 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32400
32401 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32402 (struct ipa_sra_check_caller_data): Add has_thunk field.
32403 (ipa_sra_check_caller): Check for thunk.
32404 (ipa_sra_preliminary_function_checks): Give up on function with
32405 thunks.
32406 (ipa_early_sra): Use call_for_symbol_and_aliases.
32407
32408 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
32409
32410 PR target/65249
32411 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32412 called for __stack_chk_guard symbol.
32413
32414 2015-03-03 DJ Delorie <dj@redhat.com>
32415
32416 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32417 inc/dec.
32418 (*addhi3_real): Likewise.
32419 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32420 pattern to match incrementing memory.
32421 * config/rl78/predicates.md (rl78_1_2_operand): New.
32422 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32423 it's the same and only mem.
32424 (rl78_alloc_physical_registers_op2): If there's effectively only
32425 one MEM, transcode it into HL.
32426 (rl78_far_p): Reject addresses that aren't legitimate.
32427
32428 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32429
32430 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32431 negating it.
32432
32433 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32434
32435 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32436
32437 Implement call0 ABI for xtensa
32438 * config/xtensa/constraints.md ("a" constraint): Include stack
32439 pointer in case of call0 ABI.
32440 ("q" constraint): Make empty in case of call0 ABI.
32441 ("D" constraint): Include stack pointer in case of call0 ABI.
32442 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32443 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32444 prototypes.
32445 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32446 variable.
32447 (xtensa_regno_to_class): Make it a local variable in the
32448 function xtensa_regno_to_class.
32449 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32450 macro, function prototype and implementation.
32451 (reg_nonleaf_alloc_order): Make it a local variable in the
32452 function order_regs_for_local_alloc.
32453 (xtensa_conditional_register_usage): New function.
32454 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32455 (xtensa_valid_move): Allow direct moves to stack pointer
32456 register in call0 ABI.
32457 (xtensa_setup_frame_addresses): Only spill register windows in
32458 windowed ABI.
32459 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32460 call0 ABI respectively.
32461 (xtensa_function_arg_1): Only mark a7 register for copying in
32462 windowed ABI.
32463 (xtensa_call_save_reg): New function.
32464 (compute_frame_size): Add space for callee saved register
32465 storage to the frame size in call0 ABI.
32466 (xtensa_expand_prologue): Generate code to set up stack frame
32467 and save callee-saved registers in call0 ABI.
32468 (xtensa_expand_epilogue): New function.
32469 (xtensa_set_return_address): New function.
32470 (xtensa_return_addr): Calculate return address in call0 ABI.
32471 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32472 emit copying code in windowed ABI.
32473 (order_regs_for_local_alloc): Add preferred register allocation
32474 order for non-leaf function in call0 ABI.
32475 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32476 (xtensa_asm_trampoline_template): Add trampoline generation for
32477 call0 ABI.
32478 (xtensa_trampoline_init): Add trampoline initialization for
32479 call0 ABI.
32480 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32481 functions.
32482 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32483 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32484 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32485 ABI call-used registers.
32486 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32487 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32488 call0 ABI.
32489 (REG_CLASS_CONTENTS): Include all registers into the preferred
32490 reload registers set, adjust the set in the
32491 xtensa_conditional_register_usage.
32492 (xtensa_regno_to_class): Drop variable declaration.
32493 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32494 function.
32495 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32496 respectively.
32497 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32498 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32499 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32500 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32501 location in call0 ABI.
32502 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32503 stack adjustment size when handling exception.
32504 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32505 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32506 definitions.
32507 ("return" pattern): Generate ret.n/ret in call0 ABI.
32508 ("epilogue" pattern): Expand epilogue.
32509 ("nonlocal_goto" pattern): Use default in call0 ABI.
32510 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32511 emit eh_set_a0_* depending on ABI.
32512 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32513 ("eh_set_a0_call0", "blockage"): New patterns.
32514
32515 2015-03-03 Martin Liska <mliska@suse.cz>
32516
32517 PR ipa/65287
32518 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32519
32520 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32521
32522 PR 65138/target
32523 * config/rs6000/rs6000-tables.opt: Regenerate table.
32524
32525 2015-03-03 Renlin Li <renlin.li@arm.com>
32526
32527 * doc/md.texi (@item ^): Change ? into ^.
32528
32529 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32530
32531 * doc/tm.texi: Regenerated.
32532
32533 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32534
32535 * builtins.c (expand_builtin_return_addr): Add
32536 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32537 surrounding #ifdef.
32538 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32539 definition to 1.
32540 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32541 Likewise.
32542 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32543 undefined.
32544 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32545 paragraph.
32546
32547 2015-03-03 Martin Jambor <mjambor@suse.cz>
32548 Eric Botcazou <ebotcazou@adacore.com>
32549
32550 * tree-sra.c (ipa_sra_check_caller_data): New type.
32551 (has_caller_p): Removed.
32552 (ipa_sra_check_caller): New function.
32553 (ipa_sra_preliminary_function_checks): Use it.
32554
32555 2015-03-03 Martin Liska <mliska@suse.cz>
32556
32557 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32558 instead of if branch.
32559
32560 2015-03-03 Martin Liska <mliska@suse.cz>
32561
32562 PR ipa/65282
32563 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32564
32565 2015-03-23 Jeff Law <law@redhat.com>
32566
32567 PR tree-optimization/65241
32568 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32569 hash table if INSERT is true.
32570
32571 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32572
32573 PR target/65296
32574 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32575
32576 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32577
32578 PR target/64331
32579 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32580 (avr_pass_data_recompute_notes): New static variable.
32581 (avr_pass_recompute_notes): New class.
32582 (avr_register_passes): New static function.
32583 (avr_option_override): Call it.
32584
32585 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32586
32587 Fix various problems with specs file generation.
32588
32589 PR target/65296
32590 * config.gcc (extra_gcc_objs) [avr]: Remove.
32591 * config/avr/driver-avr.c: Remove file.
32592 * config/avr/t-avr (driver-avr.o): Remove rule.
32593 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32594 INCLUDES to build. Depend on TM_H.
32595 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32596 build warnings. Fix non-matching types and non-existing %-codes.
32597 (tm.h): Include.
32598 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32599 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32600 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32601 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32602 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32603 (LIBGCC_SPEC): Remove definitions.
32604
32605 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32606
32607 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32608 to create a register in testing mode.
32609
32610 2015-03-03 Martin Liska <mliska@suse.cz>
32611 Jan Hubicka <hubicka@ucw.cz>
32612
32613 PR ipa/65263
32614 * cgraph.c (cgraph_node::has_thunk_p): New function.
32615 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32616 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32617 (sem_function::merge): Assert is changed.
32618
32619 2015-03-03 Martin Liska <mliska@suse.cz>
32620 Martin Jambor <mjambor@suse.cz>
32621
32622 PR ipa/65087
32623 * ipa-icf.c (sem_item_optimizer::execute): Change function
32624 return value to boolean.
32625 (sem_item_optimizer::merge_classes): Likewise.
32626 (ipa_icf_driver): Return TODO_remove_functions in case there's
32627 a merge operation processed.
32628 * ipa-icf.h: Change function return value to boolean.
32629
32630 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32631
32632 PR 65138/target
32633 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32634 processor type for 64-bit little endian PowerPC.
32635
32636 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32637 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
32638 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
32639 printing built-in mask so it does not pass NULL pointers.
32640
32641 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32642 -mcpu=powerpc64le.
32643
32644 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
32645
32646 PR target/58158
32647 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32648 !ISA_HAS_FP_CONDMOVE.
32649
32650 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
32651
32652 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32653 reload_completed.
32654
32655 2015-03-02 Ulrich Drepper <drepper@gmail.com>
32656
32657 * doc/invoke.texi (Options for Code Generation Conventions):
32658 Fix URL of DSO paper.
32659
32660 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32661
32662 PR ipa/65130
32663 * ipa-inline.c (check_callers): Looks for recursion.
32664 (inline_to_all_callers): Give up on uninlinable or recursive edges.
32665 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32666 summary of inline clones.
32667 (do_estimate_growth_1): Fix recursion check.
32668
32669 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32670
32671 PR ipa/64988
32672 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32673 comdat groups.
32674
32675 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32676 Aldy Hernandez <aldyh@redhat.com>
32677
32678 PR lto/65276
32679 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32680 when checking TYPE_BINFO.
32681
32682 2015-03-02 Richard Biener <rguenther@suse.de>
32683
32684 PR ipa/65270
32685 * ipa-icf-gimple.c: Include builtins.h.
32686 (func_checker::compare_memory_operand): Compare base alignment.
32687
32688 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32689
32690 PR target/65184
32691 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32692 passed by reference.
32693
32694 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32695
32696 PR target/65183
32697 * tree-chkp.c (chkp_check_lower): Don't check against
32698 zero bounds for already instrumented functions.
32699 (chkp_check_upper): Likewise.
32700 (chkp_fini): Clean pass local data to avoid wrong reusage.
32701
32702 2015-02-28 Martin Liska <mliska@suse.cz>
32703 Jan Hubicka <hubicka@ucw.cz>
32704
32705 * ipa-icf.c (sem_variable::equals): Improve debug output;
32706 get variable constructor.
32707 (sem_variable::parse): Do not filter out too early; give up on
32708 volatile and register vars.
32709 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32710 variables.
32711 * ipa-icf.h (sem_variable::init): Do not set ctor.
32712 (sem_variable::ctor): Remove.
32713
32714 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
32715
32716 PR middle-end/65233
32717 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32718
32719 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32720
32721 * ipa-icf.c: Include stor-layout.h
32722 (sem_function::compare_cgraph_references): Rename to ...
32723 (sem_item::compare_cgraph_references): ... this one.
32724 (sem_variable::equals_wpa): New function
32725 (sem_variable::equals): Do not check stuff already verified by
32726 equals_wpa.
32727 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32728 * ipa-icf.h (sem_item): Add compare_cgraph_references.
32729 (sem_function): Remove compare_cgraph_references.
32730 (sem_variable): Turns equals_wpa into non-inline.
32731
32732 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32733
32734 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32735 (sem_item::add_expr): New function.
32736 (sem_function::hash_stmt): Handle operands of most statements.
32737 (sem_variable::get_hash): Hash the actual constructor.
32738 * ipa-icf.h (sem_item): Add add_expr.
32739 (sem_function): Update prototype of hash_stmt
32740
32741 2015-02-28 Martin Liska <mliska@suse.cz>
32742 Jan Hubicka <hubicka@ucw.cz>
32743
32744 PR ipa/65245
32745 * ipa-icf-gimple.c (func_checker::compare_function_decl):
32746 Remove.
32747 (func_checker::compare_variable_decl): Skip symtab vars.
32748 (func_checker::compare_cst_or_decl): Update.
32749 * ipa-icf.c (sem_function::parse): Do not consider aliases.
32750 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32751 use correct symtab predicates.
32752 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32753 (sem_variable::parse): Update comment.
32754 (sem_item_optimizer::build_graph): Consider ultimate aliases
32755 for references.
32756
32757 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32758
32759 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32760 of OBJ_TYPE_REF.
32761
32762 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32763
32764 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32765 (sem_variable::merge) Likewise.
32766
32767 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32768
32769 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32770 target; also match flag_ipa_devirt.
32771
32772 2015-03-01 Martin Liska <mliska@suse.cz>
32773 Jan Hubicka <hubicka@ucw.cz>
32774
32775 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32776 Validate variable alignment.
32777 * ipa-icf.c (sem_function::equals_private): Be more precise
32778 about non-common function attributes.
32779 (sem_variable::equals): Likewise.
32780
32781 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32782
32783 PR ipa/65237
32784 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32785 across COMDAT group boundary.
32786
32787 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32788
32789 PR ipa/65232
32790 * ipa-icf.c (clear_decl_rtl): New function.
32791 (sem_function::merge): Clear RTL before forming alias.
32792 (sem_variable::merge): Clear RTL before forming alias.
32793
32794 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32795
32796 PR ipa/65236
32797 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32798
32799 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
32800
32801 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32802 to neon_to_gp<q>.
32803
32804 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32805
32806 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32807 a typo in the description.
32808
32809 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32810
32811 PR target/64317
32812 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32813 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32814 * lra-constraints.c: Include "params.h".
32815 (EBB_PROBABILITY_CUTOFF): Use
32816 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32817 (lra_inheritance): Use '<' instead of '<=' for
32818 EBB_PROBABILITY_CUTOFF.
32819 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32820 Document change.
32821
32822 2015-02-27 Martin Liska <mliska@suse.cz>
32823
32824 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32825 vector length condition.
32826
32827 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
32828
32829 * doc/extend.texi (x86 transactional memory intrinsics):
32830 Reorganize discussion of _xbegin. Clarify that the return
32831 value is a bit mask. Expand example and move to end of section.
32832
32833 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32834 Aldy Hernandez <aldyh@redhat.com>
32835
32836 PR rtl-optimization/65220
32837 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32838
32839 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32840
32841 PR target/65032
32842 * lra-remat.c (update_scratch_ops): New.
32843 (do_remat): Call it.
32844 * lra.c (lra_register_new_scratch_op): New. Take code from ...
32845 (remove_scratches): ... here.
32846 * lra-int.h (lra_register_new_scratch_op): New prototype.
32847
32848 2015-02-27 Marek Polacek <polacek@redhat.com>
32849
32850 PR c/65040
32851 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32852 -Wformat-signedness anymore.
32853
32854 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32855
32856 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32857 function.
32858 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32859
32860 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32861
32862 * config/s390/s390.c (enum s390_builtin):
32863 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32864 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32865 (s390_init_builtins): Generate new builtin functions.
32866 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32867 (s390_sfpc, s390_efpc): New pattern definitions.
32868
32869 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32870
32871 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32872 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32873 (s390_builtin_decls): New array.
32874 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32875 (s390_builtin_decl): New function.
32876 (TARGET_BUILTIN_DECL): Define macro.
32877
32878 2015-02-27 Richard Biener <rguenther@suse.de>
32879
32880 PR middle-end/63175
32881 * builtins.c (get_object_alignment_2): Make sure to re-apply
32882 the ANDed mask after recursing to its operand gets us a new
32883 misalignment bit position.
32884
32885 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
32886 Martin Liska <mliska@suse.cz>
32887
32888 PR bootstrap/65150
32889 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32890 Use address_matters_p.
32891 (redirect_all_callers, set_addressable): New functions.
32892 (sem_function::merge): Reorganize and fix merging issues.
32893 (sem_variable::merge): Likewise.
32894 (sem_variable::compare_sections): Remove.
32895 * common.opt (fmerge-all-constants, fmerge-constants): Remove
32896 Optimization flag.
32897 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32898 redirect them.
32899 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32900 decl is used.
32901 (address_matters_1): New function.
32902 (symtab_node::address_matters_p): New function.
32903 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32904 check for merged flag.
32905 * cgraph.h (address_matters_p): Declare.
32906 (symtab_node::address_taken_from_non_vtable_p): Remove.
32907 (symtab_node::address_can_be_compared_p): New method.
32908 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32909 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32910 Remove.
32911 (comdat_can_be_unshared_p_1) Use address_matters_p.
32912 (update_vtable_references): Fix formating.
32913 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32914 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32915 * cgraphclones.c: Preserve merged and icf_merged flags.
32916
32917 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
32918
32919 * doc/extend.texi (Function Attributes): Fix spelling and typos.
32920 (Label Attributes): Likewise.
32921 (Cilk Plus Builtins): Likewise.
32922 (ARC SIMD Built-in Functions): Likewise.
32923 (ARM C Language Extensions (ACLE)): Likewise.
32924 (PowerPC Built-in Functions): Likewise.
32925 (PowerPC Hardware Transactional Memory Built-in Functions):
32926 Likewise.
32927
32928 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32929
32930 PR tree-optimization/65216
32931 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32932 new stmt and new SSA_NAME for lhs whenever the arguments have
32933 changed and weren't just swapped. Fix comment typo.
32934
32935 PR tree-optimization/65215
32936 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32937 for PDP endian targets.
32938 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32939 Fix up formatting issues.
32940 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
32941 size is smaller than the original, adjust MEM_REF offset by the
32942 difference of sizes. Use is_gimple_mem_ref_addr instead of
32943 is_gimple_min_invariant test to avoid adding address temporaries.
32944
32945 2015-02-26 Martin Liska <mliska@suse.cz>
32946 Jan Hubicka <hubicka@ucw.cz>
32947
32948 PR ipa/64693
32949 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32950 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32951 (sem_item_optimizer::process_cong_reduction): Include division by
32952 sensitive references.
32953 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32954 * ipa-ref.c (ipa_ref::address_matters_p): New function.
32955 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32956
32957 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
32958
32959 PR target/65192
32960 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32961 Remove.
32962 * config/avr/avr.c: Same.
32963 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32964 Refuse any constant address not in 0..0xbf.
32965 * config/avr/avr.md (*mov<mode>, *movsf): Remove
32966 tiny_valid_direct_memory_access_range from insn conditions.
32967 (mov<mode>): Don't special-case expansion of avrtiny addresses.
32968
32969 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32970
32971 PR target/61142
32972 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32973 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32974 * config/sh/predicates.md (const_logical_operand): New predicate.
32975 * config/sh/sh.md: Add new peephole2 patterns.
32976
32977 2015-02-26 Marek Polacek <polacek@redhat.com>
32978
32979 PR ipa/65008
32980 * ipa-inline.c (early_inliner): Recompute inline parameters.
32981
32982 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32983
32984 PR target/65171
32985 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32986 instructions with TImode operands are included in the analysis.
32987
32988 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32989
32990 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32991 of an EDGE_FSM_THREAD.
32992
32993 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
32994
32995 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32996
32997 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
32998
32999 PR debug/46102
33000 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33001
33002 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33003
33004 PR tree-optimization/65048
33005 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33006 (thread_through_all_blocks): Call valid_jump_thread_path.
33007 Remove invalid FSM jump-thread paths.
33008
33009 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33010
33011 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33012 (ipa_write_optimization_summaries): Likewise.
33013 * tree-streamer.h: Include data-streamer.h.
33014 (streamer_mode_table): Declare extern variable.
33015 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33016 * lto-streamer-out.c (lto_output_init_mode_table,
33017 lto_write_mode_table): New functions.
33018 (produce_asm_for_decls): Call lto_write_mode_table when streaming
33019 offloading LTO.
33020 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33021 (lto_create_simple_input_block): Add mode_table argument to the
33022 lto_input_block constructors.
33023 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33024 Likewise.
33025 * data-streamer-in.c (string_for_index): Likewise.
33026 * ipa-inline-analysis.c (inline_read_section): Likewise.
33027 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33028 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33029 * lto-streamer-in.c (lto_read_body_or_constructor,
33030 lto_input_toplevel_asms): Likewise.
33031 (lto_input_mode_table): New function.
33032 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33033 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33034 Use bp_pack_machine_mode.
33035 * real.h (struct real_format): Add name field.
33036 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33037 (class lto_input_block): Add mode_table member.
33038 (lto_input_block::lto_input_block): Add mode_table_ argument,
33039 initialize mode_table.
33040 (struct lto_file_decl_data): Add mode_table field.
33041 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33042 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33043 unpack_ts_decl_common_value_fields,
33044 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33045 * tree-streamer.c (streamer_mode_table): New variable.
33046 * real.c (ieee_single_format, mips_single_format,
33047 motorola_single_format, spu_single_format, ieee_double_format,
33048 mips_double_format, motorola_double_format,
33049 ieee_extended_motorola_format, ieee_extended_intel_96_format,
33050 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33051 ibm_extended_format, mips_extended_format, ieee_quad_format,
33052 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33053 decimal_single_format, decimal_double_format, decimal_quad_format,
33054 ieee_half_format, arm_half_format, real_internal_format): Add name
33055 field.
33056 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33057
33058 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
33059
33060 PR target/65161
33061 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33062 reordering for selective scheduling.
33063
33064 2015-02-26 Terry Guo <terry.guo@arm.com>
33065
33066 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33067 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33068 (arm_arch_no_volatile_ce): Declare new global variable.
33069 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33070 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33071 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33072 (TARGET_NO_VOLATILE_CE): New macro.
33073 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33074 volatile memory access in IT block
33075
33076 2015-02-25 Kai Tietz <ktietz@redhat.com>
33077
33078 PR tree-optimization/61917
33079 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33080 that reduc_def_stmt is null.
33081
33082 2015-02-25 Martin Liska <mliska@suse.cz>
33083
33084 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33085 hard register variables.
33086
33087 2015-02-25 Kai Tietz <ktietz@redhat.com>
33088
33089 PR target/64212
33090 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33091 (symtab::noninterposable_alias): Likewise.
33092
33093 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
33094
33095 PR target/65167
33096 * config/i386/i386.c (ix86_function_arg_regno_p): Support
33097 bounds registers.
33098 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33099
33100 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
33101
33102 PR target/64997
33103 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33104 as split condition; force split via '#' in output pattern.
33105
33106 2015-02-25 Richard Biener <rguenther@suse.de>
33107 Kai Tietz <ktietz@redhat.com>
33108
33109 PR tree-optimization/61917
33110 * tree-vect-loop.c (vectorizable_reduction): Allow
33111 vect_internal_def without reduction to exit graceful.
33112
33113 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33114
33115 PR target/65196
33116 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33117 only with NONDEBUG_INSN_P.
33118
33119 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33120
33121 Use variadic macros with avr-log.c.
33122
33123 * config/avr/avr-protos.h (avr_vdump): New prototype.
33124 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33125 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33126 * config/avr/avr-log.c: Adjust comments.
33127 (avr_vdump): New function.
33128 (avr_vadump): Pass caller as 2nd argument instead of format string.
33129 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33130 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33131
33132 2015-02-25 Jakub Jelinek <jakub@redhat.com>
33133
33134 PR lto/64374
33135 * target.def (target_option_stream_in): New target hook.
33136 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33137 targetm.target_option.post_stream_in if non-NULL.
33138 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33139 * doc/tm.texi: Updated.
33140 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33141 function.
33142 (TARGET_OPTION_POST_STREAM_IN): Redefine.
33143
33144 2015-02-24 Jeff Law <law@redhat.com>
33145
33146 PR target/65117
33147 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33148 of operand 0 and operand 2.
33149 (zero_cost_loop_end, loop_end): Similarly.
33150
33151 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
33152
33153 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33154 CXX_MEM_STAT_INFO.
33155
33156 2015-02-24 DJ Delorie <dj@redhat.com>
33157
33158 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33159 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33160 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33161 instead of hardcoding SImode.
33162
33163 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
33164
33165 * omp-low.c (create_omp_child_function): Tag entrypoint
33166 functions with a special attribute.
33167
33168 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33169
33170 PR target/65058
33171 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33172
33173 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
33174
33175 PR rtl-optimization/65123
33176 * lra-remat.c (operand_to_remat): Check hard regs in insn
33177 definition too.
33178
33179 2015-02-24 Nick Clifton <nickc@redhat.com>
33180
33181 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33182 to the assembler.
33183
33184 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
33185
33186 PR libgomp/64625
33187 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33188 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33189 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33190 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33191 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33192 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33193 (BUILT_IN_GOACC_PARALLEL): Specify as
33194 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33195 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33196 * builtin-types.def
33197 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33198 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33199 Remove function types.
33200 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33201 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33202 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33203 New function types.
33204
33205 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
33206
33207 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33208
33209 2015-02-24 Jakub Jelinek <jakub@redhat.com>
33210
33211 PR tree-optimization/65170
33212 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33213 if val[1] < 0, clear also val[2] and return 3.
33214
33215 2015-02-24 Alan Modra <amodra@gmail.com>
33216
33217 PR target/65172
33218 * config/rs6000/rs6000.c (get_memref_parts): Only return true
33219 when *base is a reg. Handle nested plus addresses. Simplify
33220 pre_modify test.
33221
33222 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
33223
33224 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33225 use natural alignment when optimizing for size.
33226
33227 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
33228
33229 PR target/65153
33230 * config/sh/sh.md (movsicc_true+3): Remove peephole.
33231 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33232 * config/sh/sh.c (replace_n_hard_rtx): Remove.
33233
33234 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
33235
33236 PR fortran/63427
33237 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33238 too big for a wide_int. Implement missing wrapping operation.
33239
33240 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
33241
33242 PR target/65163
33243 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33244 instead of const_int 4294901760.
33245
33246 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
33247
33248 * config/avr/t-avr: Fix typo in comment.
33249
33250 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
33251
33252 * doc/rtl.texi (fma): Clarify documentation.
33253
33254 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
33255
33256 PR debug/58123
33257 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33258 over input_location.
33259
33260 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33261
33262 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33263 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33264 restrict alignments to absolute_biggest_alignment.
33265 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33266 Define.
33267 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33268 * doc/tm.texi: Regenerate.
33269 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33270
33271 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
33272
33273 PR target/64172
33274 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33275
33276 2015-02-20 Richard Biener <rguenther@suse.de>
33277
33278 PR tree-optimization/65136
33279 * tree-ssa-propagate.c: Include cfgloop.h.
33280 (replace_phi_args_in): Avoid replacing loop latch edge PHI
33281 arguments with constants.
33282
33283 2015-02-20 Jakub Jelinek <jakub@redhat.com>
33284 Martin Liska <mliska@suse.cz>
33285
33286 PR target/63892
33287 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33288 don't try to create_thunk if stdarg_p. If
33289 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33290 redirect_callers if possible.
33291 (sem_item_optimizer::execute): Call unregister_hooks here...
33292 (ipa_icf_driver): ... instead of here.
33293
33294 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33295
33296 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33297 Mark operand 0 as earlyclobber in 2nd alternative.
33298 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33299 Write negated shift amount into QI lowpart operand 0 and use it
33300 in the shift step.
33301 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33302
33303 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33304
33305 * cgraph.h (clone_function_name_1): Declare.
33306 * cgraphclones.c (clone_function_name_1): New function.
33307 (clone_function_name): Use it.
33308 * lto-partition.c: Include "stringpool.h".
33309 (must_not_rename, maybe_rewrite_identifier)
33310 (validize_symbol_for_target): New static functions.
33311 (privatize_symbol_name): Use must_not_rename.
33312 (promote_symbol): Call validize_symbol_for_target.
33313 (lto_promote_cross_file_statics): Likewise.
33314 (lto_promote_statics_nonwpa): Likewise.
33315
33316 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
33317
33318 PR target/64452
33319 * config/avr/avr.md (pushhi_insn): New insn.
33320 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33321
33322 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33323 Jakub Jelinek <jakub@redhat.com>
33324
33325 * tree-streamer.c (preload_common_nodes): Don't preload
33326 TI_VA_LIST* for offloading.
33327 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33328 in_lto_p.
33329
33330 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
33331
33332 * config/pa/pa.c (pa_emit_move_sequence): Always force
33333 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
33334 note on insn.
33335
33336 * config/pa/pa.c (pa_reloc_rw_mask): New function.
33337 (TARGET_ASM_RELOC_RW_MASK): Define.
33338 (pa_cannot_force_const_mem): Revert previous change.
33339
33340 2015-02-19 Martin Jambor <mjmabor@suse.cz>
33341 Jan Hubicka <hubicka@ucw.cz>
33342
33343 PR ipa/65028
33344 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33345 across jump functions.
33346
33347 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
33348
33349 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33350
33351 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
33352
33353 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33354
33355 2015-02-19 Richard Henderson <rth@redhat.com>
33356
33357 PR middle-end/65074
33358 * varasm.c (default_binds_local_p_2): Don't test node->definition;
33359 test DECL_EXTERNAL independent of symtab_node.
33360
33361 2015-02-19 Jakub Jelinek <jakub@redhat.com>
33362
33363 PR lto/65012
33364 * varpool.c (varpool_node::get_constructor): Return early
33365 if this->lto_file_data is NULL.
33366
33367 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33368
33369 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33370 (rank_for_schedule_debug): Update.
33371 (ready_sort): Make static. Move sorting logic to ...
33372 (ready_sort_debug, ready_sort_real): New static functions.
33373 (schedule_block): Sort both debug insns and real insns in preparation
33374 for ready list trimming. Improve debug output.
33375 * sched-int.h (ready_sort): Remove global declaration.
33376
33377 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
33378
33379 * ipa-icf.c (sem_function::equals_private): Adjust.
33380 (sem_function::bb_dict_test): Take a vec<int> * instead of
33381 auto_vec<int>.
33382 * ipa-icf.h (bb_dict_test): Likewise.
33383
33384 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33385
33386 PR gcov-profile/64634
33387 * tree-eh.c (frob_into_branch_around): Fix up typos
33388 in function comment.
33389 (lower_catch): Put eh_seq resulting from EH lowering of
33390 the cleanup sequence after the cleanup rather than before it.
33391
33392 2015-02-18 Tom de Vries <tom@codesourcery.com>
33393
33394 * common.opt (fstdarg-opt): New option.
33395 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33396 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33397 (@item -fstdarg-opt): New item.
33398
33399 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
33400
33401 PR target/65064
33402 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33403 for common symbols.
33404
33405 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33406
33407 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33408 insn-modes.h.
33409 (ALL_HOST_OBJS): Add mkoffload.o.
33410 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33411
33412 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
33413
33414 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33415 (compare_virtual_tables): Be smarter about skipping typeinfos;
33416 do sane output on virtual table table mismatch.
33417 (warn_odr): Be ready for forward declarations of enums;
33418 output sane info on base mismatch and virtual table mismatch.
33419 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33420 when only one type is polymorphic.
33421 (get_odr_type): Fix hashtable corruption.
33422 (dump_odr_type): Dump mangled names.
33423
33424 2015-02-18 Richard Biener <rguenther@suse.de>
33425
33426 PR tree-optimization/65063
33427 * tree-predcom.c (determine_unroll_factor): Return 1 if we
33428 have replaced looparound PHIs.
33429
33430 2015-02-18 Martin Liska <mliska@suse.cz>
33431
33432 * lto-streamer.c (lto_streamer_init): Encapsulate
33433 streamer_check_handled_ts_structures with checking macro.
33434
33435 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33436
33437 PR ipa/65087
33438 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33439 section if !implicit_section.
33440 (cgraph_node::create_version_clone_with_body): Likewise.
33441 * trans-mem.c (ipa_tm_create_version): Likewise.
33442
33443 2015-02-18 Richard Biener <rguenther@suse.de>
33444
33445 PR tree-optimization/62217
33446 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33447 into BIVs.
33448
33449 2015-02-18 Marek Polacek <polacek@redhat.com>
33450
33451 PR sanitizer/65081
33452 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33453 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33454 is in range [-16K, -1]. Don't issue run-time error if
33455 (ptr > ptr + offset).
33456
33457 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33458
33459 * doc/install.texi (nvptx-*-none): New section.
33460 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33461 * config/nvptx/nvptx.opt: Update.
33462
33463 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33464 (access_check): New functions, copied from
33465 config/i386/intelmic-mkoffload.c.
33466 (main): For non-installed testing, look in all COMPILER_PATHs for
33467 GCC_INSTALL_NAME.
33468
33469 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33470
33471 2015-02-18 Andrew Pinski <apinski@cavium.com>
33472 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33473
33474 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33475 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33476
33477 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33478
33479 * ipa-visibility.c (function_and_variable_visibility): Only
33480 check locality if node is not already local.
33481 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33482 call_for_symbol_and_aliases instead of
33483 call_for_symbol_thunks_and_aliases.
33484 (ipa_inline): Likewise.
33485 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33486 first walk aliases.
33487 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33488 call_for_symbol_and_aliases.
33489 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33490 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33491 (ipa_propagate_frequency): Update.
33492 (ipa_profile): Add opt_for_fn gueards.
33493
33494 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33495
33496 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33497 * doc/invoke.texi (SH options): Document it.
33498 * config/sh/sh.c (sh_insn_length_adjustment): Check
33499 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33500
33501 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33502
33503 * common.opt (fipa-cp-alignment): New.
33504 * ipa-cp.c (ipcp_store_alignment_results): Check
33505 flag_ipa_cp_alignment.
33506 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33507 -O2.
33508 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33509 * doc/invoke.texi: Document -fipa-cp-alignment.
33510
33511 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33512
33513 PR target/64793
33514 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33515 to nil. Adjust comments.
33516
33517 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33518
33519 * ipa-visibility.c (function_and_variable_visibility): Only
33520 check locality if node is not already local.
33521 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33522 call_for_symbol_and_aliases instead of
33523 call_for_symbol_thunks_and_aliases.
33524 (ipa_inline): Likewise.
33525 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33526 first walk aliases.
33527 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33528 call_for_symbol_and_aliases.
33529 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33530 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33531 (ipa_propagate_frequency): Update.
33532 (ipa_profile): Add opt_for_fn guards.
33533
33534 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33535
33536 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33537 skipping of "strange" tokens.
33538
33539 2015-02-17 Jeff Law <law@redhat.com>
33540
33541 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33542 obsolete comment.
33543
33544 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33545
33546 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33547 as forcing a HARD_DEP between instructions, thereby
33548 disallowing rewriting to break dependencies.
33549
33550 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33551
33552 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33553 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33554 variables in boundary that have no inlitalizer encoded and are
33555 not aliases.
33556 * varasm.c (default_binds_local_p_2): External definitions do not
33557 count as definitions here.
33558
33559 2015-02-16 Jeff Law <law@redhat.com>
33560
33561 PR tree-optimization/64823
33562 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33563 statements.
33564 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33565 threading through blocks with PHIs, but no statements.
33566 (thread_through_normal_block): Distinguish between blocks where
33567 we did not process all the statements and blocks with no statements.
33568
33569 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33570 James Greenhalgh <james.greenhalgh@arm.com>
33571
33572 PR ipa/64963
33573 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33574 section if not linkonce. Fix up formatting.
33575 (cgraph_node::create_version_clone_with_body): Copy section.
33576 * trans-mem.c (ipa_tm_create_version): Likewise.
33577
33578 2015-02-16 Richard Biener <rguenther@suse.de>
33579
33580 PR tree-optimization/65077
33581 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33582 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33583 (find_func_aliases): Allow float values to carry pointers again.
33584
33585 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33586
33587 * doc/install.texi (Specific): Reorder targets list to put
33588 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33589 from the top menu.
33590
33591 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33592 David Edelsohn <dje.gcc@gmail.com>
33593
33594 PR target/65058
33595 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33596 mapping class to external variable or function reference.
33597 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33598 mapping class.
33599
33600 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
33601
33602 PR target/53348
33603 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33604 ASM_WEAKEN_DECL if defined.
33605
33606 2015-02-16 Richard Biener <rguenther@suse.de>
33607
33608 PR lto/65015
33609 * varasm.c (default_file_start): For LTO produced units
33610 emit <artificial> as file directive.
33611
33612 2015-02-16 Richard Biener <rguenther@suse.de>
33613
33614 PR tree-optimization/63593
33615 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33616 stmts and releasing SSA names until...
33617 (execute_pred_commoning): ... after processing all chains.
33618
33619 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33620
33621 PR ipa/65059
33622 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33623 external functions.
33624
33625 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
33626
33627 * doc/bugreport.texi: Adjust section titles throughout the file
33628 to use "Title Case".
33629 * doc/extend.texi: Likewise.
33630 * doc/gcov.texi: Likewise.
33631 * doc/implement-c.texi: Likewise.
33632 * doc/implement-cxx.texi: Likewise.
33633 * doc/invoke.texi: Likewise.
33634 * doc/objc.texi: Likewise.
33635 * doc/standards.texi: Likewise.
33636 * doc/trouble.texi: Likewise.
33637
33638 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
33639
33640 * cgraph.h (symtab_node::has_aliases_p): Simplify.
33641 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33642 * tree.c (lookup_binfo_at_offset): Make static.
33643 (get_binfo_at_offset): Do not shadow offset; add explanatory
33644 comment.
33645
33646 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
33647
33648 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33649 for all floading point loads and stores except those using a register
33650 index address.
33651 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33652 to a register.
33653
33654 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33655
33656 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33657 (do_estimate_growth_1): Record if any uninlinable edge was seen.
33658 (estimate_growth): Handle uninlinable edges correctly.
33659 (check_callers): New.
33660 (growth_likely_positive): Handle aliases correctly.
33661
33662 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33663
33664 * ipa-chkp.c: Use iterate_direct_aliases.
33665 * symtab.c (resolution_used_from_other_file_p): Move inline.
33666 (symtab_node::create_reference): Fix formating.
33667 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33668 (symtab_node::iterate_reference): Move inline.
33669 (symtab_node::iterate_referring): Move inline.
33670 (symtab_node::iterate_direct_aliases): Move inline.
33671 (symtab_node::used_from_object_file_p_worker): Inline into ...
33672 (symtab_node::used_from_object_file_p): ... this one; move inline.
33673 (symtab_node::call_for_symbol_and_aliases): Move inline;
33674 use iterate_direct_aliases.
33675 (symtab_node::call_for_symbol_and_aliases_1): New method.
33676 (cgraph_node::call_for_symbol_and_aliases): Move inline;
33677 use iterate_direct_aliases.
33678 (cgraph_node::call_for_symbol_and_aliases_1): New method.
33679 (varpool_node::call_for_node_and_aliases): Rename to ...
33680 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33681 use iterate_direct_aliases.
33682 (varpool_node::call_for_symbol_and_aliases_1): New method.
33683 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33684 (ipa_discover_readonly_nonaddressable_var): Update.
33685 * ipa-devirt.c: Fix formating.
33686 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33687 Move inline.
33688 (cgraph_node::call_for_symbol_and_aliases): Move inline.
33689 (cgraph_node::call_for_symbol_and_aliases_1): New function..
33690 * cgraph.h (used_from_object_file_p_worker): Remove.
33691 (resolution_used_from_other_file_p): Move inline.
33692 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33693 (symtab_node::iterate_reference): Move inline.
33694 (symtab_node::iterate_referring): Move inline.
33695 (symtab_node::iterate_direct_aliases): Move inline.
33696 (symtab_node::used_from_object_file_p_worker): Inline into ...
33697 (symtab_node::used_from_object_file_p): Move inline.
33698 * tree-emutls.c (ipa_lower_emutls): Update.
33699 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33700 (varpool_node::call_for_node_and_aliases): Remove.
33701
33702 2015-02-14 Jakub Jelinek <jakub@redhat.com>
33703
33704 PR tree-optimization/62209
33705 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33706 op == range->exp, insert seq and gimplified code after labels
33707 instead of after the phi.
33708
33709 2015-02-13 Jeff Law <law@redhat.com>
33710
33711 PR bootstrap/65060
33712 Revert my change for tree-optimization/64823.
33713
33714 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33715
33716 PR tree-optimization/65053
33717 * tree-ssa-phiopt.c (value_replacement): When moving assign before
33718 cond, either reset VR on lhs or set it to phi result VR.
33719
33720 2015-02-13 Jeff Law <law@redhat.com>
33721
33722 PR tree-optimization/64823
33723 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33724 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33725 threading through blocks with PHIs, but no statements.
33726 (thread_through_normal_block): Distinguish between blocks where
33727 we did not process all the statements and blocks with no statements.
33728
33729 PR rtl-optimization/47477
33730 * match.pd (convert (plus/minus (convert @0) (convert @1): New
33731 simplifier to narrow arithmetic.
33732
33733 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
33734
33735 PR ipa/65028
33736 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33737 polymorphic call info when type is not known to be preserved.
33738
33739 2015-02-13 Maritn Jambor <mjambor@suse.cz>
33740
33741 PR ipa/65028
33742 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33743 (inline_call): Use it.
33744
33745 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
33746
33747 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33748 GOMP_DEVICE_NVIDIA_PTX.
33749
33750 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33751
33752 PR ipa/65034
33753 * stmt.c (emit_case_nodes): Use void_type_node instead of
33754 NULL_TREE as LABEL_DECL type.
33755
33756 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
33757
33758 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33759 constraints.
33760 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33761 symbolic references to data to be forced to constant memory on the
33762 SOM target.
33763
33764 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
33765
33766 PR tree-optimization/65002
33767 * tree-cfg.c (pass_data_fixup_cfg): Don't update
33768 SSA on start.
33769 * tree-sra.c (some_callers_have_no_vuse_p): New.
33770 (ipa_early_sra): Reject functions whose callers
33771 assume function is read only.
33772
33773 2015-02-13 Richard Biener <rguenther@suse.de>
33774
33775 PR lto/65015
33776 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33777 for LTO produced CUs.
33778
33779 2015-02-13 Bin Cheng <bin.cheng@arm.com>
33780
33781 PR tree-optimization/64705
33782 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33783 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33784 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33785 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33786 expand_simple_operations.
33787
33788 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
33789 Richard Henderson <rth@redhat.com>
33790
33791 PR rtl/32219
33792 * cgraphunit.c (cgraph_node::finalize_function): Set definition
33793 before notice_global_symbol.
33794 (varpool_node::finalize_decl): Likewise.
33795 * varasm.c (default_binds_local_p_2): Rename from
33796 default_binds_local_p_1, add weak_dominate argument. Use direct
33797 returns instead of assigning to local variable. Unify varpool and
33798 cgraph paths via symtab_node. Reject undef weak variables before
33799 testing visibility. Reorder tests for simplicity.
33800 (default_binds_local_p): Use default_binds_local_p_2.
33801 (default_binds_local_p_1): Likewise.
33802 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33803 via symtab_node.
33804 (default_elf_asm_output_external): Emit visibility when specified.
33805
33806 2015-02-13 Alan Modra <amodra@gmail.com>
33807
33808 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33809 code setting up r11 for out-of-line fp restore.
33810
33811 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
33812
33813 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33814 (muser-mode): Likewise.
33815
33816 2015-02-13 Alan Modra <amodra@gmail.com>
33817
33818 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33819 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33820
33821 2015-02-12 David Howells <dhowells@redhat.com>
33822
33823 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33824 warning.
33825 * tree-ssa-uninit.c (dump_predicates): Likewise.
33826 * opts.c (print_filtered_help): Likewise.
33827
33828 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33829
33830 * dwarf2out.c (output_die): Use "%s", name instead of name to
33831 avoid -Wformat-security warning.
33832
33833 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33834 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33835 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33836 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33837
33838 2015-02-12 Jason Merrill <jason@redhat.com>
33839
33840 * common.opt (-flifetime-dse): New.
33841
33842 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33843
33844 PR sanitizer/65019
33845 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33846
33847 PR tree-optimization/65014
33848 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33849 use original second operand of arg0 or arg1 instead of
33850 that adjusted by STRIP_NOPS.
33851
33852 2015-02-11 Jeff Law <law@redhat.com>
33853
33854 PR target/63347
33855 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33856 that needs to be queued, just queue it for a single cycle.
33857
33858 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
33859
33860 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33861 bodies of thunks; comment on why.
33862 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33863 symbols are extern.
33864
33865 2015-02-11 Richard Henderson <rth@redhat.com>
33866
33867 PR sanitize/65000
33868 * tree-eh.c (mark_reachable_handlers): Mark source and destination
33869 regions of __builtin_eh_copy_values.
33870
33871 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33872
33873 PR middle-end/65003
33874 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33875 ultimate alias is MEM with SYMBOL_REF satisfying
33876 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
33877 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33878
33879 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
33880
33881 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33882 "diagnostic-core.h".
33883 (main): Initialize progname, and call diagnostic_initialize.
33884
33885 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33886 instead of __OPENMP_TARGET__.
33887
33888 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33889 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33890 hard-coding PTX_ID.
33891
33892 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
33893
33894 * doc/sourcebuild.texi (pie_enabled): Document.
33895
33896 2015-02-11 Martin Liska <mliska@suse.cz>
33897
33898 PR ipa/64813
33899 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33900 a return value for call to a function that is noreturn.
33901
33902 2015-02-11 Richard Biener <rguenther@suse.de>
33903
33904 PR lto/65015
33905 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33906 and -fresolution.
33907
33908 2015-02-11 Andrew Pinski <apinski@cavium.com>
33909
33910 PR target/64893
33911 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33912 Change the first argument type to size_type_node and add another
33913 size_type_node.
33914 (aarch64_simd_expand_builtin): Handle the new argument to
33915 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33916 print an out when the first two arguments are not
33917 nonzero integer constants.
33918 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33919 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33920
33921 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33922
33923 PR target/61925
33924 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33925 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33926 (ix86_set_current_function): Rewritten.
33927 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33928 when creating builtin fndecls.
33929
33930 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33931
33932 PR ipa/65005
33933 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33934 function.
33935 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33936 have no comdat group.
33937 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33938 (lto_output_varpool_node): Always output alias info.
33939 (output_refs): Output refs of boundary aliases, too.
33940 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33941 (output_symtab): Output call eges in thunks in boundary.
33942 (get_alias_symbol): Remove.
33943 (input_node, input_varpool_node): Do not special case weakrefs.
33944 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33945 alias and thunks targets in the boundary; do not take removed symbols
33946 from their comdat groups.
33947 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33948 (cgraph_node::global_info): Remove.
33949 (cgraph_node::rtl_info): Look through aliases and thunks.
33950 * cgrpah.h (global_info): Remove.
33951 (non_local_p): Remove.
33952
33953 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33954 Sandra Loosemore <sandra@codesourcery.com>
33955
33956 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33957 to inline asm. List dialects in proper order.
33958
33959 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33960 Sandra Loosemore <sandra@codesourcery.com>
33961
33962 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33963
33964 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33965
33966 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33967 modified) reference to Solaris.
33968
33969 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
33970
33971 * doc/extend.texi (Extended Asm): Fix typos.
33972
33973 2015-02-10 Jakub Jelinek <jakub@redhat.com>
33974
33975 PR sanitizer/65004
33976 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33977
33978 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
33979
33980 PR target/64661
33981 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33982 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33983 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33984 * config/sh/constraints.md (Ara, Add): New constraints.
33985 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33986 predicates.
33987 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33988 atomic_mem_operand_0. Don't use force_reg on the memory address.
33989 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33990 Sra constraint. Convert to insn_and_split. Add workaround for
33991 PR 64974.
33992 (atomic_compare_and_swap<mode>_hard): Copy to
33993 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
33994 Use atomic_mem_operand_0 predicate.
33995 (atomic_compare_and_swap<mode>_soft_gusa,
33996 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33997 AraAdd constraints.
33998 (atomic_compare_and_swap<mode>_soft_tcb,
33999 atomic_compare_and_swap<mode>_soft_imask,
34000 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34001 atomic_mem_operand_0 predicate and SraSdd constraints.
34002 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34003 constraint.
34004 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34005 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
34006 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34007 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
34008 force_reg on the memory address.
34009 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34010 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34011 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34012 atomic_mem_operand_1 predicate and Sra constraint.
34013 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34014 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34015 Use atomic_mem_operand_1 predicate.
34016 (atomic_<fetchop_name><mode>_hard): Copy to
34017 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34018 Use atomic_mem_operand_1 predicate.
34019 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34020 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34021 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
34022 insn_and_split. Use atomic_mem_operand_1 predicate.
34023 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34024 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
34025 Use atomic_mem_operand_1 predicate.
34026 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34027 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34028 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34029 in generated insn with original mem operand before emitting the insn.
34030 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34031 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34032 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34033 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34034 Use atomic_mem_operand_1 predicate and AraAdd constraints.
34035 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34036 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34037 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34038 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34039 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34040 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34041 atomic_not_fetch<mode>_soft_tcb,
34042 atomic_<fetchop_name>_fetch<mode>_soft_imask,
34043 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34044 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34045 Use atomic_mem_operand_1 predicate and SraSdd constraints.
34046
34047 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
34048
34049 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34050 and 3 earlyclobber operands.
34051
34052 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34053
34054 * common.opt (fstack-reuse): Mark as optimization.
34055
34056 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34057
34058 PR ipa/64982
34059 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34060
34061 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
34062
34063 PR tree-optimization/64326
34064 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34065
34066 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
34067
34068 PR gcov-profile/61889
34069 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34070
34071 2015-02-10 Richard Biener <rguenther@suse.de>
34072
34073 PR tree-optimization/64995
34074 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34075 value we use is final.
34076 (visit_reference_op_store): Always valueize op.
34077 (visit_use): Properly valueize vuses.
34078
34079 2015-02-10 Richard Biener <rguenther@suse.de>
34080
34081 PR tree-optimization/64909
34082 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34083 pass a scalar-stmt count estimate to the cost model.
34084 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34085
34086 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
34087
34088 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34089 enabled by default together with var-tracking.
34090
34091 2015-02-10 Nick Clifton <nickc@redhat.com>
34092
34093 * config/rl78/rl78.c: Remove DIV attribute code accidentally
34094 included in previous rl78 commit.
34095
34096 2015-02-10 Richard Biener <rguenther@suse.de>
34097
34098 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34099 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34100 return the bitpack.
34101
34102 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34103
34104 PR gcov-profile/61889
34105 * config.in: regenerate.
34106 * configure.in: Likewise.
34107 * configure.ac: Check for ftw.h.
34108 * gcov-tool.c: Check for ftw.h before using nftw.
34109
34110 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34111
34112 PR lto/64076
34113 * ipa-visibility.c (update_visibility_by_resolution_info): Only
34114 assert when not in lto mode.
34115
34116 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34117
34118 * ira-color.c (setup_left_conflict_sizes_p): Simplify
34119 initialization/assignment of conflict_size.
34120
34121 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
34122
34123 PR ipa/64978
34124 * ipa-cp.c (gather_caller_stats): Skip thunks.
34125 (propagate_constants_topo): Skip aliases.
34126
34127 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
34128
34129 PR target/64761
34130 * config/sh/sh.c (sh_option_override): Don't change
34131 -freorder-blocks-and-partition to -freorder-blocks even when
34132 unwinding is enabled.
34133 (sh_can_follow_jump): Return false if the followee jump is
34134 a crossing jump when -freorder-blocks-and-partition is specified.
34135 * config/sh/sh.md (*jump_compact_crossing): New insn.
34136
34137 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
34138 Kaz Kojima <kkojima@gcc.gnu.org>
34139
34140 PR target/64761
34141 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34142 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34143 (sh_can_redirect_branch): Rename to ...
34144 (sh_can_follow_jump): ... this. Constify argument types.
34145 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34146 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34147 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34148 * doc/tm.texi: Regenerate.
34149
34150 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34151
34152 PR sanitizer/64981
34153 * builtins.c (expand_builtin): Call targetm.expand_builtin
34154 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34155
34156 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34157
34158 PR ipa/61548
34159 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34160
34161 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34162
34163 PR ipa/63566
34164 * ipa-icf.c (set_local): New function.
34165 (sem_function::merge): Use it.
34166
34167 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34168
34169 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34170 (add_type_duplicate): Fix comparison of BINFOs.
34171
34172 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34173
34174 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34175 on getting VOID pointer.
34176
34177 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34178
34179 PR target/64979
34180 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34181 va_list escapes.
34182
34183 2015-02-09 Richard Biener <rguenther@suse.de>
34184
34185 * genmatch.c (replace_id): Copy expr_type.
34186
34187 2015-02-09 Richard Biener <rguenther@suse.de>
34188
34189 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34190 (streamer_write_tree_bitfields): Declare.
34191 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34192 properly unpack padding.
34193 (unpack_value_fields): Inline ...
34194 (streamer_read_tree_bitfields): ... here.
34195 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34196 and properly add padding bits.
34197 (streamer_pack_tree_bitfields): Fold into ...
34198 (streamer_write_tree_bitfields): ... this new function,
34199 exposing the bitpack object.
34200 * lto-streamer-out.c (lto_write_tree_1): Call
34201 streamer_write_tree_bitfields.
34202
34203 2015-02-09 Richard Biener <rguenther@suse.de>
34204
34205 PR tree-optimization/54000
34206 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34207 (struct ivopts_data): Add loop_loc member.
34208 (tree_ssa_iv_optimize_loop): Dump loop location.
34209 (create_new_ivs): Likewise, also dump number of IVs generated.
34210
34211 2015-02-09 Martin Liska <mliska@suse.cz>
34212
34213 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34214 just if not yet registered.
34215 (ipa_icf_generate_summary): Register callgraph hooks.
34216
34217 2015-02-08 Andrew Pinski <apinski@cavium.com>
34218
34219 * config/aarch64/aarch64.c (gty_dummy): Delete.
34220
34221 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34222
34223 PR ipa/63566
34224 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34225 (cgraph_node::local_p): Remove thunk related FIXME.
34226
34227 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34228
34229 PR ipa/63566
34230 * i386.c (ix86_function_regparm): Look through aliases to see if callee
34231 is local and optimized.
34232 (ix86_function_sseregparm): Likewise; also use target's SSE math
34233 settings; error out instead of silently generating wrong code
34234 on mismatches.
34235 (init_cumulative_args): Look through aliases.
34236
34237 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34238
34239 PR ipa/63566
34240 * ipa-split.c (execute_split_functions): Split if function has aliases.
34241
34242 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34243
34244 PR ipa/63566
34245 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34246 aliases before trying to expand it.
34247 (cgraph_node::expand_thunk): Fix formating.
34248
34249 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
34250
34251 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34252 (Using Assembly Language with C): Expand introduction.
34253 (Basic Asm): Copy-edit. Add more information about uses of
34254 basic asm.
34255 (Extended Asm): Copy-edit. Document new escape syntax and
34256 %l[label] syntax.
34257 (Global Reg Vars): Copy-edit.
34258 (Local Reg Vars): Likewise.
34259
34260 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
34261
34262 PR debug/2714
34263 PR bootstrap/64256
34264 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34265 (DBX_CONTIN_CHAR): Define.
34266
34267 2015-02-06 Sebastian Pop <s.pop@samsung.com>
34268 Brian Rzycki <b.rzycki@samsung.com>
34269
34270 PR tree-optimization/64878
34271 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34272 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34273 Stop recursion at loop phi nodes after having visited a loop phi node.
34274
34275 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34276
34277 * toplev.c (process_options): Change flag_ipa_ra before creating
34278 optimization_{default,current}_node.
34279
34280 PR ipa/64896
34281 * cgraphunit.c (cgraph_node::expand_thunk): If
34282 restype is not is_gimple_reg_type nor the thunk_fndecl
34283 returns aggregate_value_p, set restmp to a temporary variable
34284 instead of resdecl.
34285
34286 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
34287
34288 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34289
34290 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34291
34292 PR target/64205
34293 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34294 add a general secondary reload handler for SDmode, unless we have
34295 both read/write support for SDmode.
34296
34297 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34298
34299 PR middle-end/64937
34300 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34301 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34302 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34303 1 before, push it to abstract_vec.
34304 (dwarf2out_abstract_function): Adjust caller. Don't call
34305 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34306 DECL_ABSTRACT_P flags for all abstract_vec elts.
34307
34308 2015-02-06 Renlin Li <renlin.li@arm.com>
34309
34310 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34311 complex gimple.
34312 * tree-ssa.c (execute_update_addresses_taken): Likewise.
34313
34314 2015-02-06 Jeff Law <law@redhat.com>
34315
34316 PR target/64889
34317 * config/h8300/h8300.c (push): New argument "in_prologue".
34318 Pass "in_prologue" along to "F".
34319 (h8300_push_pop): Corresponding changes.
34320 (h8300_expand_prologue): Likewise.
34321 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
34322
34323 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34324
34325 PR rtl-optimization/64957
34326 PR debug/64817
34327 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34328 IOR rather than for AND.
34329
34330 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
34331
34332 PR target/62631
34333 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34334 of shift-add and (add + shift) operations. Rename local variable.
34335
34336 2015-02-05 Jeff Law <law@redhat.com>
34337
34338 PR target/17306
34339 * config/h8300/constraints.md (U): Correctly dectect
34340 "eightbit_data" memory addresses.
34341 * config/h8300/h8300.c (eightbit_constant_address_p): Also
34342 handle (const (plus (symbol_ref (x)))) where x is declared
34343 as an 8-bit data memory address.
34344 * config/h8300/h8300.md (call, call_value): Correctly detect
34345 "funcvec" functions.
34346
34347 PR target/43264
34348 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34349 24 to 28 bits for the H8/300.
34350
34351 2015-02-06 Alan Modra <amodra@gmail.com>
34352
34353 PR target/64876
34354 * config/rs6000/rs6000.c (chain_already_loaded): New function.
34355 (rs6000_call_aix): Use it.
34356
34357 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
34358
34359 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34360 check.
34361
34362 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
34363
34364 * config/h8300/constraints.md ("U" constraint): Use strict
34365 variant of REG_OK_FOR_BASE_P after reload has started.
34366
34367 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
34368
34369 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34370 define to zero if !TARGET_NEON.
34371 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34372
34373 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34374 Trevor Saunders <tsaunders@mozilla.com>
34375
34376 PR ipa/61548
34377 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34378
34379 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34380
34381 PR ipa/61548
34382 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34383 when removing varpool nodes.
34384
34385 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34386
34387 PR ipa/61548
34388 * varpool.c (varpool_node::remove): Fix order of variables.
34389
34390 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34391
34392 PR ipa/64686
34393 * ipa-inline.c (inline_small_functions): Fix ordering issue between
34394 speculation resolution and key updates.
34395
34396 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34397
34398 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34399 about not letting any speculative edges unupdated.
34400
34401 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34402
34403 PR gcov/64123
34404 * gcov-io.c (gcov_var): Export.
34405
34406 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34407
34408 PR middle-end/64922
34409 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34410 edges that become speculative.
34411
34412 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34413
34414 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34415 or DW_LANG_Fortran08.
34416 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34417 DW_LANG_Fortran08.
34418 (gen_compile_unit_die): Handle "GNU Fortran2003" and
34419 "GNU Fortran2008" language strings.
34420 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34421 * langhooks.h (lang_GNU_Fortran): New prototype.
34422 * langhooks.c (lang_GNU_Fortran): New function.
34423 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34424 lang_GNU_Fortran.
34425
34426 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34427
34428 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34429 (RTX_OK_FOR_OLO10_P): Likewise.
34430
34431 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34432
34433 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34434
34435 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34436
34437 PR middle-end/64922
34438 * gimple.c: Include gimple-ssa.h.
34439 (maybe_remove_unused_call_args): New function.
34440 * gimple.h (maybe_remove_unused_call_args): Declare.
34441 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34442 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34443 * gimple-fold.c (gimple_fold_call): Likewise.
34444
34445 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34446
34447 PR rtl-optimization/64905
34448 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34449 pointer alignment if it isn't needed.
34450
34451 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34452
34453 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34454 cortex-a72.cortex-a53.
34455 * config/aarch64/aarch64-tune.md: Regenerate.
34456 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34457
34458 2015-02-04 Nick Clifton <nickc@redhat.com>
34459
34460 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34461 inside a MEM.
34462
34463 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34464
34465 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34466 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34467 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34468 of DEF_BUILTIN.
34469 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34470 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34471 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34472 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34473 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34474 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34475 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34476 * tree-core.h (enum built_in_function): In between
34477 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34478 for builtins that use DEF_BUILTIN_CHKP macro.
34479
34480 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34481
34482 PR debug/64817
34483 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34484 operands for tcc_comparison exprs. Fix typos.
34485
34486 PR debug/64817
34487 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34488 of two XORs that have an intervening AND or IOR.
34489
34490 PR debug/64817
34491 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34492 simplification of XOR of AND to not allocate new rtx before
34493 committing to a simplification.
34494
34495 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34496
34497 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34498 manual swaps in all peepholes.
34499
34500 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34501
34502 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34503 of manual swapping implementation.
34504 (aarch64_expand_vec_perm_const_1): Likewise.
34505
34506 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34507
34508 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34509 (generic_addrcost_table): Remove NAMED_PARAM.
34510 (cortexa57_addrcost_table): Likewise.
34511 (xgene1_addrcost_table): Likewise.
34512 (generic_regmove_table): Likewise.
34513 (cortexa53_regmove_table): Likewise.
34514 (xgene1_regmove_table): Likewise.
34515 (generic_vector_table): Likewise.
34516 (cortexa57_vector_table): Likewise.
34517 (xgene1_vector_table): Likewise.
34518 (generic_tunings): Likewise.
34519 (cortexa53_tunings): Likewise.
34520 (cortexa57_tunings): Likewise.
34521 (xgene1_tunings): Likewise.
34522
34523 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34524
34525 * config/arm/arm-cores.def: Add cortex-a72 and
34526 cortex-a72.cortex-a53.
34527 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34528 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34529 * config/arm/arm-tune.md: Regenerate.
34530 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34531 "cortex-a72.cortex-a53".
34532 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34533
34534 2015-02-04 Nick Clifton <nickc@redhat.com>
34535
34536 PR target/64408
34537 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34538 of accepted codes.
34539 (nonimmediate_di_operand): Likewise.
34540
34541 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34542 prefixes of known F5 using MSP430 MCUs.
34543
34544 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34545
34546 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34547 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34548 instead of __builtin_sqrt.
34549
34550 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34551
34552 * varasm.c (do_assemble_alias): Follow transparent alias
34553 chain for target.
34554 (default_assemble_visibility): Follow transparent alias
34555 chain for decl name.
34556
34557 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34558
34559 PR middle-end/62103
34560 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34561 to compute size of referenced value in the constant case.
34562
34563 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34564
34565 PR rtl-optimization/64756
34566 * cse.c (invalidate_dest): New function.
34567 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34568 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34569 invalidate and do not record it.
34570
34571 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34572
34573 PR target/64660
34574 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34575 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34576 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34577 atomic_nand<mode>_soft_tcb): New insns.
34578 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34579 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34580 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34581 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34582 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34583 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34584 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34585 atomic_not<mode>_hard if operands[0] is unused.
34586 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34587 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34588 if operands[0] is unused.
34589 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34590 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34591 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34592 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34593 unused.
34594 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34595 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34596 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34597 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34598 if operands[0] is unused.
34599 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
34600 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34601 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
34602 atomic_nand_fetchsi_hard if operands[0] is unused.
34603 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
34604 atomic_nand<mode>_hard if operands[0] is unused.
34605 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
34606 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34607 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
34608 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34609 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
34610 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34611 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34612 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34613 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
34614 atomic_not<mode>_hard if operands[0] is unused.
34615 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34616 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34617 unused.
34618 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34619 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34620 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
34621 atomic_nand<mode>_hard if operands[0] is unused.
34622 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34623 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34624
34625 2015-02-03 David Malcolm <dmalcolm@redhat.com>
34626
34627 PR jit/64810
34628 * Makefile.in (GCC_OBJS): Add gcc-main.o.
34629 * gcc-main.c: New file, containing "main" taken from gcc.c.
34630 * gcc.c (do_self_spec): Free decoded_options.
34631 (class driver): Move declaration to gcc.h.
34632 (main): Move declaration and implementation to new file
34633 gcc-main.c.
34634 (driver_get_configure_time_options): New function.
34635 * gcc.h (class driver): Move this declaration here, from
34636 gcc.c.
34637 (driver_get_configure_time_options): New declaration.
34638
34639 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
34640
34641 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34642 cross-module inlining.
34643 * cgraph.h (cgraph_node): Add flag merged.
34644 * ipa-icf.c (sem_function::merge): Maintain it.
34645
34646 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
34647
34648 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34649 instead of OBJECT_P.
34650
34651 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
34652
34653 PR target/62631
34654 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34655 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34656 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34657 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34658
34659 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34660
34661 PR other/63504
34662 * combine.c (reg_n_sets_max): New variable.
34663 (can_change_dest_mode, reg_nonzero_bits_for_combine,
34664 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34665 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34666 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34667 (rest_of_handle_combine): Initialize reg_n_sets_max.
34668
34669 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
34670
34671 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34672 if some always_inline was inlined, apply changes before inlining
34673 heuristically.
34674
34675 2015-02-02 David Malcolm <dmalcolm@redhat.com>
34676
34677 PR jit/64810
34678 * config/arm/arm.c (arm_option_override): Set
34679 arm_selected_arch/cpu/tune to NULL on entry.
34680
34681 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
34682 Andrew Pinski <pinskia@gcc.gnu.org>
34683 Jakub Jelinek <jakub@gcc.gnu.org>
34684
34685 PR target/64231
34686 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34687 integer typing for small model. Use IN_RANGE.
34688
34689 2015-02-02 Richard Biener <rguenther@suse.de>
34690
34691 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34692 * tree-vrp.c (vrp_valueize_1): Likewise.
34693
34694 2015-02-02 Alan Modra <amodra@gmail.com>
34695
34696 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34697 than mem for toc_restore.
34698 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34699 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34700 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34701
34702 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
34703
34704 PR target/64047
34705 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34706 explicit default options.
34707
34708 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
34709
34710 PR ipa/64872
34711 * ipa-utils.c (ipa_merge_profiles): Add release argument.
34712 * ipa-icf.c (sem_function::merge): Do not release body when merging.
34713 * ipa-utils.h (ipa_merge_profiles): Update prototype.
34714
34715 2015-02-01 Jakub Jelinek <jakub@redhat.com>
34716
34717 PR debug/64817
34718 * cfgexpand.c (deep_ter_debug_map): New variable.
34719 (avoid_deep_ter_for_debug): New function.
34720 (expand_debug_expr): If TERed SSA_NAME is in
34721 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34722 instead of trying to expand SSA_NAME's def stmt.
34723 (expand_debug_locations): When expanding debug bind
34724 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34725 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34726 value.
34727 (pass_expand::execute): Call avoid_deep_ter_for_debug on
34728 all debug bind stmts. Delete deep_ter_debug_map after
34729 expand_debug_location if non-NULL and clear it.
34730
34731 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
34732
34733 PR target/64851
34734 * config/sh/sync.md (atomic_fetch_notsi_hard,
34735 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34736 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34737 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34738 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34739 atomic_not_fetch<mode>_soft_imask): New insns.
34740
34741 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34742
34743 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34744 (rank_for_schedule_debug): Split from ...
34745 (rank_for_schedule): ... this.
34746 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34747 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34748
34749 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34750
34751 * doc/md.texi (Machine Constraints): Alphabetize table by target.
34752 * doc/extend.texi (x86 Variable Attributes): Move section to
34753 correct alphabetization after renaming.
34754 (x86 Type Attributes): Likewise.
34755 (Target Builtins): Re-alphabetize menu.
34756 (x86 Built-in Functions): Move section to correct alphabetization
34757 after renaming.
34758 (x86 transactional memory intrinsics): Likewise.
34759 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34760 and x86 Windows Options in table and menu.
34761 (x86 Options): Move section to correct alphabetization after
34762 renaming.
34763 (x86 Windows Options): Likewise.
34764
34765 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34766
34767 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34768 preferred names of the architecture and its 32- and 64-bit
34769 variants.
34770 * doc/invoke.texi: Likewise.
34771 * doc/md.texi: Likewise.
34772
34773 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34774
34775 PR target/64882
34776 * config/i386/predicates.md (address_no_seg_operand): Reject
34777 non-CONST_INT_P operands in invalid mode.
34778
34779 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34780
34781 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34782 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
34783 * config/i386/predicates.md (address_no_seg_operand): Call
34784 address_operand with VOIDmode.
34785 (vsib_address_operand): Ditto.
34786 (address_mpx_no_base_operand): Ditto.
34787 (address_mpx_no_index_operand): Ditto.
34788
34789 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34790
34791 PR target/64688
34792 * lra-constraints.c (original_subreg_reg_mode): New.
34793 (simplify_operand_subreg): Try to simplify subreg of const. Use
34794 original_subreg_reg_mode for it.
34795 (swap_operands): Update original_subreg_reg_mode.
34796 (curr_insn_transform): Set up original_subreg_reg_mode.
34797
34798 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34799
34800 PR target/64617
34801 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34802 function.
34803 (process_alt_operands): Use it.
34804 (curr_insn_transform): Check the optional reload pseudo class is
34805 ok for the mode.
34806
34807 2015-01-30 Joseph Myers <joseph@codesourcery.com>
34808
34809 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34810 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34811 prototype.
34812 * toplev.h (init_asm_output): Update comment on use of
34813 UNKNOWN_LOCATION with fatal_error.
34814 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34815 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34816 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34817 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34818 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34819 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34820 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34821 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34822 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34823 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34824 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34825 fatal_error changed to pass input_location as first argument.
34826
34827 2015-01-30 Martin Liska <mliska@suse.cz>
34828
34829 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34830 in #pragma GCC diagnostic guards.
34831
34832 2015-01-30 Richard Biener <rguenther@suse.de>
34833
34834 PR tree-optimization/64829
34835 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34836 not add a widening conversion pattern but hand off extra
34837 widenings to callers.
34838 (vect_recog_widen_mult_pattern): Handle extra widening produced
34839 by vect_handle_widen_op_by_const.
34840 (vect_recog_widen_shift_pattern): Likewise.
34841 (vect_pattern_recog_1): Remove excess vertical space in dumping.
34842 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34843 (vect_init_vector_1): Likewise.
34844 (vect_get_vec_def_for_operand): Likewise.
34845 (vect_finish_stmt_generation): Likewise.
34846 (vectorizable_load): Likewise.
34847 (vect_analyze_stmt): Likewise.
34848 (vect_is_simple_use): Likewise.
34849
34850 2015-01-29 Jeff Law <law@redhat.com>
34851
34852 * combine.c (try_combine): Fix typo in comment.
34853
34854 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
34855
34856 PR target/64580
34857 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34858 (rs6000_stack_info): Add assert.
34859 (rs6000_output_savres_externs): New function, split off from...
34860 (rs6000_output_function_prologue): ... here. Do not call it for
34861 thunks.
34862
34863 2015-01-29 Jeff Law <law@redhat.com>
34864
34865 PR target/15184
34866 * combine.c (try_combine): If I0 is a memory load and I3 a store
34867 to a related address, increase the "goodness" of doing a 4-insn
34868 combination with I0-I3.
34869 (make_field_assignment): Handle SUBREGs in the ior+and case.
34870
34871 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
34872
34873 PR tree-optimization/64746
34874 * tree-if-conv.c (mask_exists): New function.
34875 (predicate_mem_writes): Save created mask with given size for further
34876 use.
34877 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34878 (ifcvt_repair_bool_pattern): Collect all statements that are root
34879 of bool pattern and use iterative algorithm to remove multiple uses
34880 of predicates, display number of required iterations.
34881
34882 2015-01-29 Richard Biener <rguenther@suse.de>
34883
34884 PR tree-optimization/64853
34885 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34886 stmt will get simulated again.
34887 * tree-ssa-ccp.c (valueize_op_1): Likewise.
34888
34889 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34890
34891 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34892 return_in_pc. Remove redundant assignments.
34893 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34894 (arm_expand_epilogue): Don't compare boolean with true in if condition.
34895
34896 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
34897
34898 * config/i386/i386.c (ix86_mode_after): Make static.
34899
34900 2015-01-29 Richard Biener <rguenther@suse.de>
34901
34902 PR tree-optimization/64844
34903 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34904 dump cost model analysis.
34905 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34906 Do not register adjusted load/store costs here.
34907
34908 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34909 Uros Bizjak <ubizjak@gmail.com>
34910
34911 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34912 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34913 using x86_use_pseudo_pic_reg.
34914 * config/i386/i386.c (ix86_conditional_register_usage): Remove
34915 support for fixed PIC register.
34916 (ix86_use_pseudo_pic_reg): Not static any more.
34917
34918 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34919
34920 PR middle-end/64805
34921 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34922 to avoid error in cgraph node verification.
34923
34924 2015-01-29 Marek Polacek <polacek@redhat.com>
34925
34926 * doc/standards.texi: Reflect that the default for C is gnu11.
34927
34928 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
34929
34930 PR target/64761
34931 * reorg.c (switch_text_sections_between_p): New function.
34932 (relax_delay_slots): Call it when testing if the jump insn
34933 is removable. Use targetm.can_follow_jump when testing if
34934 the conditional branch can follow an unconditional jump.
34935
34936 2015-01-27 Caroline Tice <cmtice@google.com>
34937
34938 Committing VTV Cywin/Ming patch for Patrick Wollgast
34939 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34940 if -fvtable-verify=preinit/std is used.
34941 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34942 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34943 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34944 if -fvtable-verify=preinit/std is used.
34945 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34946 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34947 if -fvtable-verify=preinit/std is used.
34948 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34949 * config/i386/mingw32.h (LIB_SPEC): Likewise.
34950 * varasm.c (assemble_variable): Add code to properly set the comdat
34951 section and name for the .vtable_map_vars section in case the
34952 target is PE or COFF.
34953
34954 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34955
34956 PR ipa/64801
34957 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34958 make sane BB profile.
34959 (cgraph_node::expand_thunk): Make sane BB profile.
34960 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34961 * cgraph.h (init_lowered_empty_function): Update prototype.
34962 * config/i386/i386.c (make_resolver_func): Update call.
34963 * predict.c (gate): Disable branch prediction pass if
34964 profile is already there.
34965
34966 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34967
34968 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34969 * opth-gen.awk: Likewise.
34970 * common.opt: Mark flag_fp_contract_mode as Optimization.
34971
34972 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
34973
34974 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34975 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34976
34977 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
34978
34979 PR target/64659
34980 * config/sh/predicates.md (atomic_arith_operand,
34981 atomic_logical_operand): Remove.
34982 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34983 (atomic_arith_operand_0): New predicate.
34984 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34985 Use atomic_arith_operand_0 for input values.
34986 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34987 atomic_compare_and_swap<mode>_soft_gusa,
34988 atomic_compare_and_swap<mode>_soft_tcb,
34989 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34990 arith_reg_operand instead of register_operand.
34991 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
34992 atomic_arith_operand_0 for newval input.
34993 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34994 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34995 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34996 arith_reg_operand instead of register_operand.
34997 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34998 fetchop_predicate_1, fetchop_constraint_1_llcs,
34999 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35000 fetchop_constraint_1_imask): New code iterator attributes.
35001 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35002 register_operand. Use fetchop_predicate_1.
35003 (atomic_fetch_<fetchop_name>si_hard,
35004 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35005 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35006 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35007 and arith_reg_operand instead of register_operand. Use
35008 fetchop_predicate_1, fetchop_constraint_1_gusa.
35009 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35010 and arith_reg_operand instead of register_operand. Use
35011 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
35012 to allow R0 usage.
35013 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35014 and arith_reg_operand instead of register_operand. Use
35015 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
35016 to allow R0 usage.
35017 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35018 register_operand. Use atomic_logical_operand_1.
35019 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35020 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35021 arith_reg_operand instead of register_operand.
35022 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35023 Use arith_reg_dest and arith_reg_operand instead of register_operand.
35024 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
35025 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35026 register_operand. Use fetchop_predicate_1.
35027 (atomic_<fetchop_name>_fetchsi_hard,
35028 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35029 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35030 fetchop_constraint_1_llcs.
35031 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35032 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35033 fetchop_constraint_1_gusa.
35034 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35035 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35036 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
35037 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35038 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35039 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
35040 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35041 register_operand. Use atomic_logical_operand_1.
35042 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35043 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35044 arith_reg_operand instead of register_operand.
35045 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35046 arith_reg_operand instead of register_operand. Use logical_operand
35047 and K08. Adjust asm sequence to allow R0 usage.
35048 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35049 arith_reg_operand instead of register_operand. Use logical_operand
35050 and K08.
35051
35052 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35053
35054 PR other/63504
35055 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35056 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35057 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35058 only get_full_len HOST_WIDE_INTs from get_val () array rather than
35059 all bits in *val_wide.
35060
35061 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
35062
35063 * varpool.c (tls_model_names): Fix names.
35064 (varpool_node::dump): Dump tls- prefix for tls models.
35065
35066 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
35067 Bernd Schmidt <bernds@codesourcery.com>
35068 Nathan Sidwell <nathan@codesourcery.com>
35069
35070 * config/nvptx/mkoffload.c: New file.
35071 * config/nvptx/t-nvptx: Add build rules for it.
35072 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35073 (extra_programs): Add mkoffload.
35074 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35075 function.
35076 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35077
35078 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
35079
35080 PR middle-end/64809
35081 * cfgexpand.c (reorder_operands): Skip debug gimples.
35082
35083 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
35084
35085 PR tree-optimization/64277
35086 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35087 range info when possible to refine estimation.
35088
35089 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
35090
35091 PR tree-optimization/64718
35092 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35093 be a 16bit unsigned integer when n->range is 16.
35094 (bswap_replace): Convert src to that type if necessary for all bswap
35095 sizes. Fix rotation right notation in nearby comment. Use bswap_type
35096 set in pass_optimize_bswap::execute ().
35097
35098 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
35099
35100 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35101 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35102 integer and floating point variants.
35103 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35104
35105 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
35106
35107 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35108 for all vector modes.
35109
35110 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35111
35112 PR bootstrap/64612
35113 * doc/sourcebuild.texi (comdat_group): Document.
35114
35115 2015-01-28 Terry Guo <terry.guo@arm.com>
35116
35117 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35118
35119 2015-01-27 David Malcolm <dmalcolm@redhat.com>
35120
35121 * toplev.c (print_version): Add param "show_global_state", and
35122 only print GGC and plugin information if it is true.
35123 (init_asm_output): Pass in "true" for the new param when calling
35124 print_version.
35125 (process_options): Likewise.
35126 (toplev::main): Likewise.
35127 * toplev.h (print_version): Add new param to decl.
35128
35129 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35130
35131 PR ipa/60871
35132 PR ipa/64139
35133 * tree.c (lookup_binfo_at_offset): New function.
35134 (get_binfo_at_offset): Use it.
35135
35136 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35137
35138 PR ipa/64282
35139 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35140 on vtable being vtable.
35141
35142 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35143
35144 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35145 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35146 -mhotpatch= option.
35147 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35148 -mno-hotpatch options. Change syntax of -mhotpatch= option.
35149 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35150 Renamed.
35151 (s390_hotpatch_trampoline_halfwords_max): Renamed.
35152 (s390_hotpatch_hw_max): New name.
35153 (s390_hotpatch_trampoline_halfwords): Renamed.
35154 (s390_hotpatch_hw_before_label): New name.
35155 (get_hotpatch_attribute): Removed.
35156 (s390_hotpatch_hw_after_label): New name.
35157 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35158 attribute.
35159 (s390_attribute_table): Ditto.
35160 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35161 (s390_function_num_hotpatch_hw): New name.
35162 Remove special handling of inline functions and hotpatching.
35163 Return number of nops before and after the function label.
35164 (s390_can_inline_p): Removed.
35165 (s390_asm_output_function_label): Emit a configurable number of nops
35166 after the function label.
35167 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35168 (TARGET_CAN_INLINE_P) Removed.
35169 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35170
35171 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35172 Jiong Wang <jiong.wang@arm.com>
35173
35174 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35175 of scratch reg.
35176 (cb<optab><mode>1): Likewise.
35177 * config/aarch64/iterators.md (bcond): New define_code_attr.
35178
35179 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35180
35181 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35182 memory accesses.
35183
35184 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35185
35186 * config/s390/s390.c (s390_register_move_cost): Increase costs for
35187 FPR->GPR moves.
35188
35189 2015-01-27 Richard Biener <rguenther@suse.de>
35190
35191 * tree-vrp.c (update_value_range): Intersect the range with
35192 old recorded SSA name range information.
35193
35194 2015-01-27 Nick Clifton <nickc@redhat.com>
35195
35196 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35197 BC, DE and HL registers directly, not via AX.
35198 When decrementing the stack pointer by a large amount, transfer SP
35199 into AX and perform the subtraction there.
35200 (rl78_expand_epilogue): Perform the inverse of the above
35201 enhancements.
35202
35203 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35204
35205 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35206
35207 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35208 Yury Gribov <y.gribov@samsung.com>
35209
35210 PR ubsan/64741
35211 * ubsan.c (ubsan_source_location): Refactor code.
35212 (ubsan_type_descriptor): Update type size. Refactor code.
35213
35214 2015-01-27 Richard Biener <rguenther@suse.de>
35215
35216 PR tree-optimization/56273
35217 PR tree-optimization/59124
35218 PR tree-optimization/64277
35219 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35220 from the first VRP pass.
35221
35222 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35223
35224 PR ipa/64776
35225 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35226 handle the first argument in the same loop as all the other arguments.
35227
35228 PR rtl-optimization/61058
35229 * jump.c (cleanup_barriers): Update basic block boundaries
35230 if BLOCK_FOR_INSN is non-NULL on PREV.
35231
35232 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
35233
35234 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35235 bounds narrowing, already instrumented calls and calls to
35236 not instrumentable functions.
35237
35238 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35239
35240 PR tree-optimization/64807
35241 * wide-int.cc (wi::divmod_internal): Clear
35242 b_dividend[dividend_blocks_needed].
35243
35244 2015-01-26 DJ Delorie <dj@redhat.com>
35245
35246 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35247 volatile memory references.
35248
35249 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
35250
35251 PR target/49263
35252 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35253 remove_insn.
35254 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35255 shifts if it already fits into K08.
35256
35257 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35258
35259 PR ipa/64730
35260 * ipa-inline.c (inline_small_functions): Print "unknown" even
35261 if edge->call_stmt is non-NULL, but has builtins or unknown
35262 location.
35263
35264 PR middle-end/64421
35265 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35266 with asterisk, skip the first character.
35267
35268 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35269
35270 PR target/64806
35271 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35272 order change.
35273
35274 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
35275
35276 PR target/64795
35277 * config/i386/i386.md (*movdi_internal): Also check operand 0
35278 to determine TYPE_LEA operand.
35279 (*movsi_internal): Ditto.
35280
35281 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35282
35283 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35284 OPTION_MASK_QUAD_MEMORY_ATOMIC.
35285
35286 2015-01-26 Renlin Li <renlin.li@arm.com>
35287
35288 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35289 the comment.
35290 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35291 for higher part.
35292
35293 2015-01-26 Richard Biener <rguenther@suse.de>
35294
35295 PR middle-end/64764
35296 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35297 combining two BIT_AND_EXPR predicates.
35298
35299 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35300
35301 PR bootstrap/64754
35302 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35303
35304 2015-01-26 Terry Guo <terry.guo@arm.com>
35305
35306 * config/arm/arm.c (arm_file_start): Update the assignment of
35307 Tag_ABI_HardFP_use.
35308
35309 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
35310
35311 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35312 pipeline model.
35313 config/arm/arm.md: Include the new Cortex-A57 model.
35314 (generic_sched): Don't use generic_sched when tuning for
35315 Cortex-A57.
35316
35317 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
35318 Uros Bizjak <ubizjak@gmail.com>
35319
35320 * config/i386/i386.c (get_builtin_code_for_version): Add
35321 support for BMI and BMI2 multiversion functions.
35322
35323 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35324
35325 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35326 (extract_bit_field): Likewise.
35327 (extract_low_bits): Likewise.
35328 (expand_mult): Likewise.
35329 (expand_mult_highpart_adjust): Likewise.
35330
35331 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35332
35333 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35334 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35335 * config/i386/i386.c (processor_model): Add
35336 M_INTEL_COREI7_BROADWELL.
35337 (arch_names_table): Add "broadwell".
35338
35339 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
35340
35341 PR target/49263
35342 PR target/53987
35343 PR target/64345
35344 PR target/59533
35345 PR target/52933
35346 PR target/54236
35347 PR target/51244
35348 * config/sh/sh-protos.h
35349 (sh_extending_set_of_reg::can_use_as_unextended_reg,
35350 sh_extending_set_of_reg::use_as_unextended_reg,
35351 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35352 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35353 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35354 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35355 (sh_treg_insns): New class.
35356 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35357 (scope_counter): New class.
35358 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35359 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35360 sh_extending_set_of_reg::can_use_as_unextended_reg,
35361 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35362 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35363 sh_split_treg_set_expr): New functions.
35364 (addsubcosts): Handle treg_set_expr.
35365 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35366 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35367 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35368 (sh_insn_operands_modified_between_p): Make non-static.
35369 * config/sh/predicates.md (zero_extend_movu_operand): Allow
35370 simple_mem_operand in addition to displacement_mem_operand.
35371 (zero_extend_operand): Don't allow zero_extend_movu_operand.
35372 (treg_set_expr, treg_set_expr_not_const01,
35373 arith_reg_or_treg_set_expr): New predicates.
35374 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35375 arith_or_int_operand instead of logical_operand. Convert to
35376 insn_and_split. Try to optimize constant operand in splitter.
35377 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
35378 (*tstqi_t_zero): Delete.
35379 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35380 (tstsi_t_and_not): Delete.
35381 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35382 Convert to insn_and_split.
35383 (unnamed split, tstsi_t_zero_extract_xor,
35384 tstsi_t_zero_extract_subreg_xor_little,
35385 tstsi_t_zero_extract_subreg_xor_big): Delete.
35386 (*tstsi_t_shift_mask): New insn_and_split.
35387 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35388 to recombine with surrounding insns when splitting.
35389 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35390 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35391 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35392 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35393 (*cbranch_div0s: Delete.
35394 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35395 Try to recombine with surrounding insns when splitting. Add operand
35396 order variants.
35397 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35398 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35399 *addc_r_r_msb, *addc_2r_msb): Delete.
35400 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
35401 order variant.
35402 (*addc_negreg_t): New insn_and_split.
35403 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35404 Try to recombine with surrounding insns when splitting.
35405 Add operand order variants.
35406 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35407 insn_and_split patterns.
35408 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
35409 surrounding insns when splitting.
35410 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35411 (*rotcl): Likewise. Add zero_extract variant.
35412 (*ashrsi2_31): New insn_and_split.
35413 (*negc): Convert to insn_and_split. Use treg_set_expr.
35414 (*zero_extend<mode>si2_disp_mem): Update comment.
35415 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35416 condition.
35417 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
35418 with surrounding insns when splitting.
35419 (any_treg_expr_to_reg): New insn_and_split.
35420 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35421 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35422 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35423 *zero_extract_2): New single bit zero extract patterns.
35424 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35425 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35426 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35427 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35428 set destination.
35429 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35430 register_operand for set source.
35431
35432 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35433
35434 * i386.opt (prefetch_sse): New targetsave.
35435 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35436 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35437 ix86_cost/ix86_tune_cost.
35438
35439 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35440
35441 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35442 Support the JIT by using 0 as the language type.
35443
35444 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35445
35446 PR target/64317
35447 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35448 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35449 (mark_regno_live, process_bb_lives): Pass new parameter value to
35450 make_hard_regno_born.
35451
35452 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35453
35454 PR rtl-optimization/63637
35455 PR rtl-optimization/60663
35456 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35457 if elt->cost is MAX_COST for ASM_OPERANDS.
35458 (find_sets_in_insn): Fix up comment typo.
35459 (cse_insn): Don't set src_volatile for all non-volatile
35460 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35461 or with "memory" clobber. Set elt->cost to MAX_COST
35462 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35463 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35464
35465 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35466
35467 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35468 alternative 1.
35469
35470 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35471
35472 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35473 libgcc/config/i386/elf-lib.h.
35474
35475 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35476
35477 PR driver/64737
35478 * gcc.c (print_configuration): Don't print a blank line at the end
35479 here...
35480 (run_attempt): ... but here unstead.
35481
35482 PR middle-end/64734
35483 * omp-low.c (scan_sharing_clauses): Don't ignore
35484 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35485 on target data/update constructs.
35486
35487 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35488
35489 PR target/50928
35490 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35491 (DEBUG_RELOAD): Removed define.
35492 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35493 (m32c_function_arg): Added a type cast.
35494 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35495 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35496 * config/m32c/bitops.md (andqi3_16): Likewise.
35497 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35498 (push_a01_l): Likewise.
35499
35500 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35501
35502 PR jit/64721
35503 * main.c (main): Construct toplev instances with init_signals=true.
35504 * toplev.c (general_init): Add param "init_signals", and use it to
35505 conditionalize the calls to signal and host_hooks.extra_signals.
35506 (toplev::toplev): Add param "init_signals".
35507 (toplev::main): When invoking general_init, pass m_init_signals
35508 to control whether signal-handlers are installed.
35509 * toplev.h (toplev::toplev): Add param "init_signals".
35510 (toplev::m_init_signals): New field.
35511
35512 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35513
35514 PR jit/64722
35515 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35516 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35517 latter may be affected by the former (e.g. on i686).
35518
35519 2015-01-23 Martin Liska <mliska@suse.cz>
35520
35521 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35522 false positive during profiledbootstrap.
35523
35524 2015-01-23 Tom de Vries <tom@codesourcery.com>
35525
35526 PR libgomp/64672
35527 * lto-opts.c (lto_write_options): Output non-explicit conservative
35528 -fno-openacc.
35529 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35530 (append_compiler_options): Pass -fopenacc through.
35531
35532 2015-01-23 Tom de Vries <tom@codesourcery.com>
35533
35534 PR libgomp/64707
35535 * lto-opts.c (lto_write_options): Output non-explicit conservative
35536 -fno-openmp.
35537 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35538 (append_compiler_options): Pass -fopenmp through.
35539
35540 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35541
35542 PR debug/64511
35543 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35544 GTY markup.
35545
35546 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35547 * diagnostic.def (DK_ICE_NOBT): New kind.
35548 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35549 like DK_ICE, but never print backtrace.
35550 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35551 (internal_error_no_backtrace): New function.
35552 * gcc.c (execute): Use internal_error_no_backtrace instead of
35553 internal_error.
35554
35555 2015-01-22 Jeff Law <law@redhat.com>
35556
35557 PR target/52076
35558 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35559 improve code density for small immediate to memory case.
35560 (insv): Better handle bitfield assignments when the field is
35561 being set to all ones.
35562 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35563 operand predicate.
35564
35565 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35566 Jakub Jelinek <jakub@redhat.com>
35567
35568 PR middle-end/64729
35569 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35570 for !TARGET_LIBC_PROVIDES_SSP version and
35571 -fstack-protector-{all,strong,explicit} otherwise.
35572 * config/freebsd.h (LINK_SSP_SPEC): Handle
35573 -fstack-protector-{strong,explicit}.
35574
35575 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35576 H.J. Lu <hongjiu.lu@intel.com>
35577
35578 PR ipa/64694
35579 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35580 heap.
35581
35582 2015-01-22 Wei Mi <wmi@google.com>
35583
35584 PR rtl-optimization/64557
35585 * dse.c (record_store): Call get_addr for mem_addr.
35586 (check_mem_read_rtx): Likewise.
35587
35588 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35589
35590 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35591
35592 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35593
35594 * toplev.c (init_local_tick): Process the failure when read
35595 fails for random_seed.
35596
35597 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35598 'pretty_name' to avoid memory overflow.
35599
35600 2015-01-22 Richard Biener <rguenther@suse.de>
35601
35602 PR middle-end/64728
35603 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35604 abnormal coalescing on undefined SSA names.
35605
35606 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
35607
35608 PR target/64688
35609 PR target/64477
35610 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35611 for alternative 3.
35612 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35613
35614 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
35615
35616 PR middle-end/63325
35617 * fold-const.c (fold_checksum_tree): Don't include value of
35618 expr->decl_with_vis.symtab_node in the checksum.
35619
35620 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35621
35622 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35623
35624 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
35625
35626 PR driver/64690
35627 * gcc.c (insert_comments): New function.
35628 (try_generate_repro): Call it.
35629 (append_text): Removed.
35630
35631 2015-01-22 Richard Biener <rguenther@suse.de>
35632
35633 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35634 with IL incompatible options. Properly honor user optimize
35635 attributes.
35636
35637 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
35638
35639 PR rtl-optimization/64682
35640 * combine.c (distribute_notes): When moving a death note for
35641 a register that is set in the new I2, make sure to put it
35642 before that new I2.
35643
35644 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
35645
35646 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35647 not TARGET_DEFAULT.
35648
35649 2015-01-21 Jakub Jelinek <jakub@redhat.com>
35650
35651 PR debug/64511
35652 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35653 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35654 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35655
35656 PR sanitizer/64706
35657 * doc/invoke.texi (-fsanitize=vptr): Document.
35658
35659 PR rtl-optimization/62078
35660 * dse.c: Include cfgcleanup.h.
35661 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35662 anything call purge_all_dead_edges and cleanup_cfg at the end
35663 of the pass.
35664
35665 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
35666
35667 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35668 edges.
35669
35670 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35671
35672 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35673 decl attribute.
35674
35675 2015-01-21 David Sherwood <david.sherwood@arm.com>
35676 Tejas Belagod <Tejas.Belagod@arm.com>
35677
35678 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35679 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35680 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35681 Removed.
35682
35683 2015-01-21 David Sherwood <david.sherwood@arm.com>
35684 Tejas Belagod <Tejas.Belagod@arm.com>
35685
35686 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35687 (aarch64_reverse_mask): New decls.
35688 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35689 (insn_count): New mode_attr.
35690 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35691 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35692 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35693 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35694 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35695 (aarch64_simd_st4): New patterns.
35696 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35697 (aarch64_reverse_mask): New functions.
35698
35699 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35700
35701 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35702 Declare.
35703 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35704 addressing modes for BE.
35705 (aarch64_print_operand): Add 'R' specifier.
35706 (aarch64_simd_disambiguate_copy): Delete.
35707 (aarch64_simd_emit_reg_reg_move): New function.
35708 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35709 in define_splits for structural moves.
35710 (mov<mode>): Use less restrictive predicates.
35711 (*aarch64_mov<mode>): Simplify and only allow for LE.
35712 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35713
35714 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35715
35716 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35717
35718 2015-01-21 Richard Henderson <rth@redhat.com>
35719
35720 PR target/64669
35721 * ccmp.c (used_in_cond_stmt_p): Remove.
35722 (expand_ccmp_expr): Don't use it.
35723
35724 2015-01-21 Nick Clifton <nickc@redhat.com>
35725
35726 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35727 PARALLELs.
35728
35729 2015-01-21 Richard Biener <rguenther@suse.de>
35730
35731 PR middle-end/64313
35732 * tree-core.h (builtin_info, builtin_info_type): Turn from
35733 an object with two arrays into an array of an object with
35734 decl and two flags, implicit_p and declared_p.
35735 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35736 set_builtin_decl, set_builtin_decl_implicit_p,
35737 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35738 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35739 * builtins.c (builtin_info): Adjust.
35740 * gimplify.c (gimplify_addr_expr): References to builtins
35741 that have been declared by the user makes them eligible for
35742 use by the compiler. Call set_builtin_decl_implicit_p on them.
35743
35744 2015-01-20 Jeff Law <law@redhat.com>
35745
35746 PR target/59946
35747 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35748 allow pc-relative addresses in operand predicates or constraints.
35749
35750 2015-01-21 Bin Cheng <bin.cheng@arm.com>
35751
35752 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35753 neon on aarch32 processors for stringops.
35754
35755 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35756
35757 PR ipa/63576
35758 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35759
35760 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35761
35762 PR lto/45375
35763 * ipa-inline.c: Include lto-streamer.h
35764 (report_inline_failed_reason): Output source file differences and
35765 flags on optimization/target node mismatch.
35766 (can_inline_edge_p): Consider caller to be the outer inline function;
35767 be less restrictive about matching opimize and optimize_size attributes.
35768 (inline_account_function_p): Break out from ...
35769 (inline_small_functions): ... here.
35770 * ipa-inline-transform.c (clone_inlined_nodes): Use
35771 inline_account_function_p.
35772 (inline_call): Use optimize attribution; use inline_account_function_p.
35773 (inline_transform): Use opt_for_fn.
35774 * ipa-inline.h (inline_account_function_p): Declare.
35775
35776 2015-01-20 Jakub Jelinek <jakub@redhat.com>
35777
35778 PR debug/64663
35779 * dwarf2out.c (decl_piece_node): Don't put bitsize into
35780 mode if bitsize <= 0.
35781 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35782 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35783 sizes and positions.
35784
35785 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
35786
35787 * config/nios2/nios2.c (nios2_asm_file_end): Implement
35788 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35789 needed.
35790 (TARGET_ASM_FILE_END): Define.
35791
35792 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35793
35794 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35795 (struct tune_params): Use the enum.
35796 * arm.c (arm_*_tune): Update.
35797 (arm_option_override): Update.
35798
35799 2015-01-20 Richard Biener <rguenther@suse.de>
35800
35801 PR ipa/64684
35802 * ipa-reference.c (add_static_var): Inline ...
35803 (analyze_function): ... here after splitting out from ...
35804 (is_proper_for_analysis): ... this.
35805
35806 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
35807
35808 PR target/64149
35809 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35810 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35811 replace the conditional with it's true branch.
35812 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35813 (arm_lra_p): Remove.
35814
35815 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
35816
35817 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35818
35819 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35820
35821 * config/tilegx/mul-tables.c: Move symtab.h include after
35822 coretypes.h include.
35823 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35824 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35825 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35826 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35827 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35828
35829 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
35830
35831 PR bootstrap/64676
35832 Revert:
35833 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35834
35835 PR rtl-optimization/64081
35836 * loop-iv.c (def_pred_latch_p): New function.
35837 (latch_dominating_def): Allow specific cases with non-single
35838 definitions.
35839 (iv_get_reaching_def): Likewise.
35840 (check_complex_exit_p): New function.
35841 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35842 with exits not executing on any iteration.
35843
35844 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35845
35846 PR lto/45375
35847 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35848 to set branch cost.
35849
35850 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35851
35852 PR lto/45375
35853 * i386.c (gate): Check flag_expensive_optimizations and
35854 optimize_size.
35855 (ix86_option_override_internal): Drop optimize_size condition
35856 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35857 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35858 MASK_PREFER_AVX128.
35859 (ix86_avx256_split_vector_move_misalign,
35860 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35861 * sse.md (all uses of TARGET_PREFER_AVX128): Add
35862 optimize_insn_for_speed_p check.
35863
35864 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
35865
35866 * config/mips/mips.h (FP_ASM_SPEC): New define.
35867 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35868 instead.
35869
35870 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
35871
35872 PR target/53988
35873 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35874 nullptr for insn when reaching the first insn.
35875 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35876 (sh_insn_operands_modified_between_p): Add nullptr check.
35877 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35878 sign extending mem load if the insn contains any UNSPEC or
35879 UNSPEC_VOLATILE.
35880
35881 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35882
35883 * params.def (inline-unit-growth): Drop to 15%.
35884 * invoke.texi (inline-unit-growth): Document change.
35885
35886 2015-01-19 Martin Liska <mliska@suse.cz>
35887
35888 PR ipa/64668
35889 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35890 function for second argument of OBJ_TYPE_REF.
35891
35892 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35893
35894 PR ipa/64218
35895 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35896 whether function is an alias.
35897
35898 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35899
35900 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35901 cases.
35902
35903 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
35904
35905 PR rtl-optimization/64671
35906 * lra-remat.c (operand_to_remat): Don't consider jump and call
35907 insns.
35908
35909 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
35910
35911 PR target/59828
35912 * config/rs6000/default64.h: Include rs6000-cpus.def.
35913 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35914 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35915 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35916 and POWER8.
35917 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35918 POWER8.
35919 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35920 pseudo-op to specify assembler dialect.
35921
35922 2015-01-19 Martin Liska <mliska@suse.cz>
35923
35924 PR ipa/64664
35925 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35926 Handle safe potentially removed nodes during filtering.
35927
35928 2015-01-19 Martin Liska <mliska@suse.cz>
35929
35930 * doc/extend.texi (no_icf): Add new attribute description.
35931 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35932 where the pass attempts to merge a function with no_icf attribute.
35933
35934 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35935
35936 PR target/64532
35937 * doc/md.texi (ARM Options): Document register constraints.
35938
35939 2015-01-19 Jiong Wang <jiong.wang@arm.com>
35940 Andrew Pinski <apinski@cavium.com>
35941
35942 PR target/64304
35943 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35944 (ashl<mode>3): Don't expand if operands[2] is not constant.
35945
35946 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35947
35948 PR target/64448
35949 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35950 Match xor-and-xor RTL pattern.
35951
35952 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35953
35954 PR rtl-optimization/64081
35955 * loop-iv.c (def_pred_latch_p): New function.
35956 (latch_dominating_def): Allow specific cases with non-single
35957 definitions.
35958 (iv_get_reaching_def): Likewise.
35959 (check_complex_exit_p): New function.
35960 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35961 with exits not executing on any iteration.
35962
35963 2015-01-19 Jakub Jelinek <jakub@redhat.com>
35964
35965 * common.opt (fgraphite): Fix a typo.
35966
35967 2015-01-19 Felix Yang <felix.yang@huawei.com>
35968
35969 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35970 pattern.
35971 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35972 uminp, smax_nanp, smin_nanp): New builtins.
35973 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35974 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35975 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35976 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35977 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35978 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35979 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35980 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35981 vpminnms_f32): Rewrite using builtin functions.
35982
35983 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
35984
35985 PR libgomp/64625
35986 * omp-low.c (offload_symbol_decl): Remove variable.
35987 (get_offload_symbol_decl): Remove function.
35988 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35989 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35990 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35991 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35992 BUILT_IN_GOACC_UPDATE don't pass it at all.
35993
35994 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35995
35996 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35997 callers.
35998
35999 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36000
36001 * ipa-chkp.c (chkp_produce_thunks): Add early param
36002 to split thunks production into two passes. Keep
36003 'always_inline' function bodies after the first pass.
36004 (pass_data_ipa_chkp_early_produce_thunks): New.
36005 (pass_ipa_chkp_early_produce_thunks): New.
36006 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36007 chkp_produce_thunks signature.
36008 (make_pass_ipa_chkp_early_produce_thunks): New.
36009 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36010 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36011 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36012
36013 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36014
36015 * cgraph.c (cgraph_node::dump): Dump profile flags.
36016
36017 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
36018
36019 PR target/64652
36020 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36021 reg appear first in the parallel.
36022
36023 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36024
36025 * ipa-reference.c (set_reference_optimization_summary,
36026 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36027 disabled.
36028 (ignore_module_statics): New static var.
36029 (propagate_bits): If ipa-reference is disabled, do not look into local
36030 properties.
36031 (analyze_function): Disable analysis when ipa_reference is disabled.
36032 (generate_summary): Do not dump when reference is disabled;
36033 collect vars accessed from functions with ipa-reference disabled.
36034 (get_read_write_all_from_node): When ipa-reference is disabled, use the
36035 node flags.
36036 (gate): Enable for LTO.
36037 (ignore_edge_p): New function.
36038 (propagate): Skip functions w/o ipa-reference analysis.
36039 * optc-save-gen.awk: Handle optimize_debug correctly.
36040 * opth-gen.awk: Likewise.
36041 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36042 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36043 fira-share-save-slots, fira-share-spill-slots,
36044 fmodulo-sched-allow-regmoves, fpartial-inlining,
36045 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36046 ftracer, ftree-parallelize-loops, fassociative-math,
36047 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36048 Optimization
36049 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36050 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36051 Optimization.
36052 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36053 Fix for IPA.
36054
36055 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36056
36057 PR ipa/64378
36058 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36059 flag correctly.
36060 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36061
36062 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
36063
36064 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36065 Remove duplicate option listings.
36066
36067 2015-01-18 Felix Yang <felix.yang@huawei.com>
36068
36069 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36070 (autofdo_source_profile::get_callsite_total_count,
36071 function_instance::get_function_instance_by_decl,
36072 string_table::get_index, string_table::get_index_by_decl,
36073 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36074 Fix comment typos. Reformatting and minor code rearrangement.
36075
36076 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36077
36078 * config/rs6000/rs6000.md (probe_stack): Delete.
36079 (probe_stack_address): New.
36080
36081 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36082
36083 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36084 to test for 32-bit ABIs, not !TARGET_POWERPC64.
36085
36086 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36087
36088 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36089 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
36090 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
36091 snafu.
36092 (rs6000_libcall_value): Use the new function.
36093
36094 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
36095
36096 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36097
36098 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
36099
36100 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36101 implement a more precise life analysis for it during backward scan.
36102
36103 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
36104
36105 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36106
36107 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
36108
36109 PR rtl-optimization/52773
36110 * calls.c (emit_library_call_value): When pushing arguments use
36111 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36112 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
36113 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36114
36115 2015-01-17 Jeff Law <law@redhat.com>
36116
36117 PR rtl-optimization/32790
36118 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36119 not ZERO_EXTEND in SET_DESTs.
36120
36121 2015-01-17 Alan Modra <amodra@gmail.com>
36122
36123 * cprop.c (do_local_cprop): Revert last change.
36124
36125 2015-01-16 DJ Delorie <dj@redhat.com>
36126 Nick Clifton <nickc@redhat.com>
36127
36128 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36129 (addhi3_real): Likewise. Fix [HL+0] syntax.
36130 (subqi3_real): Likewise.
36131 (subhi3_real): Likewise.
36132 (cbranchqi4_real): Likewise. Allow saddr,#imm.
36133 (cbranchhi4_real): Likewise.
36134 (cbranchhi4_real_inverted): Likewise.
36135 (cbranchsi4_real_lt): Likewise.
36136 (cbranchsi4_real_ge): Likewise.
36137 (cbranchsi4_real_ge): Likewise.
36138 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36139 (sub<mode>3_virt): Likewise.
36140 (cbranchqi4_virt): Likewise.
36141 (cbranchhi4_virt): Likewise.
36142 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36143 always use '[reg+imm]' even when imm is zero.
36144 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36145 (rl78_general_operand): New.
36146 (rl78_nonimmediate_operand): New.
36147 (rl78_nonfar_operand): Use them.
36148 (rl78_nonfar_nonimm_operand): Likewise.
36149 (rl78_stack_based_mem): Fix.
36150 * config/rl78/constraints.md (Ibqi): New.
36151 (IBqi): New.
36152 (Wsa): New.
36153 (Wsf): New.
36154 (Cs1): Fix.
36155 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36156 (iorqi3): Likewise.
36157 (xorqi3): Likewise.
36158 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36159
36160 * config/rl78/constrains (Qs8): New constraint.
36161 * config/rl78/rl78.c (rl78_flags_already_set): New function.
36162 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36163 * config/rl78/rl78-real.md (update_Z): New attribute.
36164 Update patterns to set it.
36165 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36166 shorter compare and branch sequence can be used.
36167 (cbranchhi4_real): Likewise.
36168 (cbranchhi4_real_inverted): Likewise.
36169
36170 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36171 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36172 address space.
36173 * config/rl78/rl78.c (rl78_get_name_encoding): New.
36174 (rl78_option_override): Allow -mes0 only if C.
36175 (characterize_address): Support subregs of symbol_refs.
36176 (rl78_addr_space_address_mode): Move. Add __near.
36177 (rl78_far_p): Likewise.
36178 (rl78_addr_space_pointer_mode): Likewise.
36179 (rl78_as_legitimate_address): Likewise.
36180 (rl78_addr_space_subset_p): Likewise.
36181 (rl78_addr_space_convert): Likewise.
36182 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36183 symbols with -mes0.
36184 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
36185 addressing.
36186 (rl78_alloc_physical_registers_op1): Change logic to prefer
36187 symbol[BC] addressing.
36188 (frodata_section): New.
36189 (rl78_asm_init_sections): Initialize it.
36190 (rl78_select_section): Put __far readonly symbols in .frodata.
36191 (rl78_make_type_far): New.
36192 (rl78_insert_attributes): Force all readonly symbols to be
36193 __far when -mes0.
36194 (rl78_asm_out_integer): New.
36195 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36196 * config/rl78/rl78.opt (-mes0): New.
36197
36198 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36199 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36200 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36201 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36202 (rl78_saddr_p): New.
36203 (rl78_output_aligned_common): New.
36204 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36205 (rl78_handle_saddr_attribute): New.
36206 (rl78_handle_naked_attribute): New.
36207 (rl78_attribute_table): Add saddr.
36208 (rl78_print_operand_1): Don't print '!' on saddr operands.
36209 (rl78_print_operand_1): Strip encodings.
36210 (rl78_sfr_p): New.
36211 (rl78_strip_name_encoding): New.
36212 (rl78_attrlist_to_encoding): New.
36213 (rl78_encode_section_info): New.
36214 (rl78_asm_init_sections): New.
36215 (rl78_select_section): New.
36216 (rl78_output_labelref): New.
36217 (rl78_output_aligned_common): New.
36218 (rl78_asm_out_integer): New.
36219 (rl78_asm_ctor_dtor): New.
36220 (rl78_asm_constructor): New.
36221 (rl78_asm_destructor): New.
36222
36223 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36224 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36225 (transcode_memory_rtx): Update.
36226 (rl78_expand_epilogue): Use A_REG instead of 0.
36227
36228 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36229
36230 * config/arm/arm-protos.h (struct tune_params): New field
36231 sched_autopref_queue_depth.
36232 * config/arm/arm.c (sched-int.h): Include header.
36233 (arm_first_cycle_multipass_dfa_lookahead_guard,)
36234 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36235 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36236 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36237 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36238 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36239 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36240 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36241 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
36242 * config/arm/t-arm (arm.o): Update.
36243 * haifa-sched.c (update_insn_after_change): Update.
36244 (rank_for_schedule): Use auto-prefetcher model, if requested.
36245 (autopref_multipass_init): New static function.
36246 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36247 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36248 variable for debug dumps.
36249 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36250 (autopref_multipass_dfa_lookahead_guard): New global function that
36251 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36252 (init_h_i_d): Update.
36253 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36254 * sched-int.h (enum autopref_multipass_data_status): New const enum.
36255 (autopref_multipass_data_): Structure for auto-prefetcher data.
36256 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36257 (struct _haifa_insn_data:autopref_multipass_data): New field.
36258 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36259 (autopref_multipass_dfa_lookahead_guard): Declare.
36260
36261 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36262
36263 * rtlanal.c (get_base_term): Handle SCRATCH.
36264
36265 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36266
36267 * config/aarch64/aarch64.c
36268 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36269 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36270 * config/arm/arm.c
36271 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36272 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36273
36274 2015-01-17 Alan Modra <amodra@gmail.com>
36275
36276 * cprop.c (do_local_cprop): Disallow replacement of fixed
36277 hard registers.
36278
36279 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36280
36281 PR target/62066
36282 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36283 early return 0.
36284
36285 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
36286
36287 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36288 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36289
36290 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36291
36292 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36293 * config/arm/thumb1.md: ... Here.
36294
36295 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36296
36297 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36298 TImode for TARGET_32BIT.
36299
36300 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36301
36302 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36303 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36304 as ...
36305 (rs6000_abi_word_mode): New function.
36306
36307 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36308
36309 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36310 instead of UNITS_PER_WORD to describe the size of stack slots.
36311
36312 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36313
36314 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36315 as rs6000_promote_function_mode. Move comment to there.
36316 (rs6000_promote_function_mode): New function.
36317
36318 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36319
36320 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36321 -mpowerpc64 is active.
36322
36323 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36324
36325 PR middle-end/64353
36326 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36327 virtuals on start.
36328
36329 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36330
36331 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36332 introduced in revision 219724.
36333
36334 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36335 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36336
36337 PR target/64263
36338 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36339 destination is not a GP reg.
36340 (*movdi_aarch64): Likewise.
36341
36342 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
36343
36344 PR target/64623
36345 * config/rs6000/default64.h: Revert ISA change.
36346
36347 2015-01-16 Richard Biener <rguenther@suse.de>
36348
36349 PR middle-end/64614
36350 * tree-ssa-uninit.c: Include tree-cfg.h.
36351 (MAX_SWITCH_CASES): New define.
36352 (convert_control_dep_chain_into_preds): Handle switch statements.
36353 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36354 (normalize_one_pred_1): Do not split bit-manipulations.
36355 Record (x & CST).
36356
36357 2015-01-16 Richard Biener <rguenther@suse.de>
36358
36359 PR tree-optimization/64568
36360 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36361 complex load rewriting for TARGET_MEM_REFs.
36362
36363 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
36364
36365 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36366
36367 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
36368
36369 PR target/64149
36370 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36371 variable.
36372 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36373 (aarch64_lra_p): Remove.
36374
36375 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36376
36377 PR target/64363
36378 * ipa-chkp.h (chkp_instrumentable_p): New.
36379 * ipa-chkp.c: Include tree-inline.h.
36380 (chkp_instrumentable_p): New.
36381 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36382 Fix processing of not instrumentable functions.
36383 (chkp_versioning): Use chkp_instrumentable_p. Warn about
36384 not instrumentable functions.
36385 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36386 chkp_instrumentable_p.
36387 * tree-inline.h (copy_forbidden): New.
36388 * tree-inline.c (copy_forbidden): Not static anymore.
36389
36390 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36391
36392 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36393 ptr1, ptr2 unused.
36394
36395 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36396
36397 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36398 type OP_OUT to OP_INOUT.
36399
36400 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36401
36402 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36403 (high x) y) to y if x and y have the same base.
36404
36405 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36406
36407 * config/arm/cortex-a57.md: New.
36408 * config/aarch64/aarch64.md: Include it.
36409 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36410 * config/aarch64/aarch64-tune.md: Regenerate.
36411
36412 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
36413
36414 PR target/64015
36415 * ccmp.c (expand_ccmp_next): New function.
36416 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36417 and compare insn sequence.
36418 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36419 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36420 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36421 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36422 (*ccmp_ior): Changed to ccmp_ior<mode>.
36423 (cmp<mode>): New pattern.
36424 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36425 parameters.
36426 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36427
36428 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
36429
36430 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36431 _mm256_bsrli_epi128): New.
36432 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36433
36434 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36435
36436 * expmed.c (store_bit_field_using_insv): Improve warning message.
36437 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36438
36439 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36440
36441 PR rtl-optimization/64011
36442 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36443 there is partial overflow.
36444
36445 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36446
36447 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36448 prototype.
36449 (nds32_expand_epilogue_v3pop): Likewise.
36450 * config/nds32/nds32.md (sibcall): Define this for sibling call
36451 optimization.
36452 (sibcall_register): Likewise.
36453 (sibcall_immediate): Likewise.
36454 (sibcall_value): Likewise.
36455 (sibcall_value_register): Likewise.
36456 (sibcall_value_immediate): Likewise.
36457 (sibcall_epilogue): Likewise.
36458 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36459 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36460 (nds32_expand_epilogue_v3pop): Likewise.
36461
36462 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36463
36464 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36465 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36466 (return_internal): New.
36467 (return): Define this named pattern.
36468 (simple_return): Define this named pattern.
36469 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36470 pattern instead of unspec_volatile_func_return.
36471 (nds32_expand_epilogue_v3pop): Likewise.
36472 (nds32_can_use_return_insn): New function.
36473
36474 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36475
36476 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36477 * config/nds32/nds32.md (pop25return): New.
36478 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36479 pop25return pattern.
36480
36481 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36482
36483 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36484 -mforbid-fp-as-gp, and -mex9 options.
36485
36486 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36487
36488 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36489 remove -mgp-direct option.
36490
36491 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36492
36493 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36494 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36495
36496 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36497
36498 * ipa-inline.c (inline_small_functions): Work around hints
36499 cache issue.
36500
36501 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36502
36503 PR target/59710
36504 * doc/invoke.texi (Option Summary): Document new Nios II
36505 -mgpopt= syntax.
36506 (Nios II Options): Likewise.
36507 * config/nios2/nios2.opt: Add -mgpopt= option support.
36508 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36509 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36510 * config/nios2/nios2.c (nios2_option_override): Adjust
36511 -mgpopt defaulting.
36512 (nios2_in_small_data_p): Return true for explicit small data
36513 sections even with -G0.
36514 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36515 option choices.
36516
36517 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36518
36519 PR ipa/64612
36520 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36521 of comdat locals.
36522 (inline_call): Fix removal of aliases.
36523
36524 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36525
36526 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36527 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36528 * opts.c (common_handle_option): Add -fsanitize=vptr.
36529 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36530 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36531 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36532 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36533 (ubsan_expand_vptr_ifn): New prototype.
36534 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36535 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36536 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36537 expand_LOOP_VECTORIZED): Make argument nameless, remove
36538 ATTRIBUTE_UNUSED.
36539 (expand_UBSAN_VPTR): New function.
36540 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36541 in fn spec.
36542 (UBSAN_VPTR): New internal function.
36543 * sanopt.c (tree_map_traits): Renamed to ...
36544 (sanopt_tree_map_traits): ... this.
36545 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36546 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36547 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36548 (maybe_optimize_ubsan_vptr_ifn): New function.
36549 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36550 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36551 -fsanitize=vptr.
36552 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36553 internal calls like pure functions for aliasing, even when they
36554 have other side-effects that prevent making them ECF_PURE.
36555 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36556 (ubsan_expand_vptr_ifn): New function.
36557
36558 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36559
36560 PR rtl-optimization/64110
36561 * stmt.c (parse_output_constraint): Process '^' and '$'.
36562 (parse_input_constraint): Ditto.
36563 * lra-constraints.c (process_alt_operands): Process the new
36564 constraints.
36565 * ira-costs.c (record_reg_classes): Process the new constraint
36566 '^'.
36567 * genoutput.c (indep_constraints): Add '^' and '$'.
36568 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36569 * doc/md.texi: Add description of the new constraints.
36570
36571 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36572 Bernd Schmidt <bernds@codesourcery.com>
36573 Cesar Philippidis <cesar@codesourcery.com>
36574 James Norris <jnorris@codesourcery.com>
36575 Tom de Vries <tom@codesourcery.com>
36576 Ilmir Usmanov <i.usmanov@samsung.com>
36577 Dmitry Bocharnikov <dmitry.b@samsung.com>
36578 Evgeny Gavrin <e.gavrin@samsung.com>
36579 Jakub Jelinek <jakub@redhat.com>
36580
36581 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36582 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36583 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36584 New function types.
36585 * builtins.c: Include "gomp-constants.h".
36586 (expand_builtin_acc_on_device): New function.
36587 (expand_builtin, is_inexpensive_builtin): Handle
36588 BUILT_IN_ACC_ON_DEVICE.
36589 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36590 New macros.
36591 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36592 flag_openmp.
36593 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36594 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36595 i386/intelmic-offload.h.
36596 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36597 to libgomp and its dependencies.
36598 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36599 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36600 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36601 * config/ia64/hpux.h (LIB_SPEC): Likewise.
36602 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36603 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36604 * doc/generic.texi: Update for OpenACC changes.
36605 * doc/gimple.texi: Likewise.
36606 * doc/invoke.texi: Likewise.
36607 * doc/sourcebuild.texi: Likewise.
36608 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36609 GF_OMP_FOR_KIND_OACC_LOOP.
36610 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36611 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36612 GF_OMP_TARGET_KIND_OACC_UPDATE,
36613 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36614 Dump more data.
36615 * gimple.c: Update comments for OpenACC changes.
36616 * gimple.def: Likewise.
36617 * gimple.h: Likewise.
36618 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36619 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36620 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36621 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36622 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36623 appropriate place.
36624 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36625 * gimplify.c: Include "gomp-constants.h".
36626 Update comments for OpenACC changes.
36627 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36628 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36629 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36630 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36631 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36632 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36633 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36634 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36635 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36636 OMP_CLAUSE_SEQ.
36637 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36638 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36639 OMP_CLAUSE_SET_MAP_KIND.
36640 (gimplify_oacc_cache): New function.
36641 (gimplify_omp_for): Handle OACC_LOOP.
36642 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36643 OACC_DATA.
36644 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36645 OACC_EXIT_DATA, OACC_UPDATE.
36646 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36647 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36648 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36649 (gimplify_body): Consider flag_openacc next to flag_openmp.
36650 * lto-streamer-out.c: Include "gomp-constants.h".
36651 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36652 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36653 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36654 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36655 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36656 (BUILT_IN_ACC_ON_DEVICE): New builtins.
36657 * omp-low.c: Include "gomp-constants.h".
36658 Update comments for OpenACC changes.
36659 (struct omp_context): Add reduction_map, gwv_below, gwv_this
36660 members.
36661 (extract_omp_for_data, use_pointer_for_field, install_var_field)
36662 (new_omp_context, delete_omp_context, scan_sharing_clauses)
36663 (create_omp_child_function, scan_omp_for, scan_omp_target)
36664 (check_omp_nesting_restrictions, lower_reduction_clauses)
36665 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36666 Update for OpenACC changes.
36667 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36668 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36669 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36670 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36671 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36672 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
36673 OMP_CLAUSE_MAP_*.
36674 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36675 Handle GF_OMP_FOR_KIND_OACC_LOOP.
36676 (expand_omp_target, lower_omp_target): Handle
36677 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36678 GF_OMP_TARGET_KIND_OACC_UPDATE,
36679 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36680 GF_OMP_TARGET_KIND_OACC_DATA.
36681 (pass_expand_omp::execute, execute_lower_omp)
36682 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36683 flag_openmp.
36684 (offload_symbol_decl): New variable.
36685 (oacc_get_reduction_array_id, oacc_max_threads)
36686 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36687 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36688 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36689 (oacc_gimple_assign, oacc_initialize_reduction_data)
36690 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36691 functions.
36692 (is_targetreg_ctx): Remove function.
36693 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36694 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36695 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36696 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36697 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36698 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36699 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36700 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36701 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36702 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36703 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36704 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36705 * tree-core.h: Update comments for OpenACC changes.
36706 (enum omp_clause_map_kind): Remove.
36707 (struct tree_omp_clause): Change type of map_kind member from enum
36708 omp_clause_map_kind to unsigned char.
36709 * tree-inline.c: Update comments for OpenACC changes.
36710 * tree-nested.c: Likewise. Include "gomp-constants.h".
36711 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36712 (convert_tramp_reference_stmt, convert_gimple_call): Update for
36713 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36714 OMP_CLAUSE_SET_MAP_KIND.
36715 * tree-pretty-print.c: Include "gomp-constants.h".
36716 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36717 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36718 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36719 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36720 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36721 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
36722 instead of OMP_CLAUSE_MAP_*.
36723 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36724 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36725 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36726 * tree-streamer-in.c: Include "gomp-constants.h".
36727 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36728 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
36729 * tree-streamer-out.c: Include "gomp-constants.h".
36730 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36731 OMP_CLAUSE_MAP_*.
36732 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36733 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36734 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36735 * tree.c (omp_clause_num_ops): Update accordingly.
36736 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36737 Likewise.
36738 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36739 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36740 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36741 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36742 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36743 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36744 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36745 (OMP_CLAUSE_SET_MAP_KIND): New macro.
36746 * varpool.c (varpool_node::get_create): Consider flag_openacc next
36747 to flag_openmp.
36748 * config/i386/intelmic-offload.h: New file.
36749 * config/nvptx/offload.h: Likewise.
36750
36751 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36752
36753 * explow.h: Remove duplicate contents.
36754 * dojump.h: Likewise.
36755
36756 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
36757
36758 * arm.c (arm_xgene_tune): Add default initializer for instruction
36759 fusion.
36760
36761 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36762
36763 PR ipa/64068
36764 PR ipa/64559
36765 * ipa.c (symbol_table::remove_unreachable_nodes):
36766 Do not put abstract origins into boundary.
36767
36768 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
36769
36770 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36771 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36772
36773 2015-01-15 Steve Ellcey <sellcey@mips.com>
36774
36775 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36776 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36777 builtins.def, and chkp-builtins.def.
36778
36779 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
36780
36781 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36782 ISA 2.7 (POWER8).
36783
36784 2015-01-15 Richard Biener <rguenther@suse.de>
36785
36786 PR tree-optimization/61743
36787 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36788 information on PHIs for some simple cases.
36789
36790 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36791
36792 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36793 Include xgene1.md.
36794 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36795 * config/arm/arm-cores.def (xgene1): New entry.
36796 * config/arm/arm-tables.opt: Regenerate.
36797 * config/arm/arm-tune.md: Regenerate.
36798 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36799
36800 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36801
36802 * tree-if-conv.c: Include hash-map.h.
36803 (aggressive_if_conv): New variable.
36804 (fold_build_cond_expr): Add simplification of non-zero condition.
36805 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36806 destination block is not always executed.
36807 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36808 than two predecessors if AGGRESSIVE_IF_CONV is true.
36809 (if_convertible_stmt_p): Fix commentary.
36810 (all_preds_critical_p): New function.
36811 (has_pred_critical_p): New function.
36812 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36813 BB can have more than two predecessors and all incoming edges can be
36814 critical.
36815 (predicate_bbs): Skip predication for loop exit block, use build2_loc
36816 to compute predicate for true edge.
36817 (find_phi_replacement_condition): Delete this function.
36818 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36819 Allow interchange PHI arguments if EXTENDED is false.
36820 Change check that block containing reduction statement candidate
36821 is predecessor of phi-block since phi may have more than two arguments.
36822 (phi_args_hash_traits): New helper structure.
36823 (struct phi_args_hash_traits): New type.
36824 (phi_args_hash_traits::hash): New function.
36825 (phi_args_hash_traits::equal_keys): New function.
36826 (gen_phi_arg_condition): New function.
36827 (predicate_scalar_phi): Add handling of phi nodes with more than two
36828 arguments, delete COND and TRUE_BB arguments, insert body of
36829 find_phi_replacement_condition to predicate ordinary phi nodes.
36830 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36831 delete call of find_phi_replacement_condition and invoke
36832 predicate_scalar_phi with two arguments.
36833 (insert_gimplified_predicates): Add assert that non-predicated block
36834 don't have statements to insert.
36835 (ifcvt_split_critical_edges): New function.
36836 (ifcvt_split_def_stmt): Likewise.
36837 (ifcvt_walk_pattern_tree): Likewise.
36838 (stmt_is_root_of_bool_pattern): Likewise.
36839 (ifcvt_repair_bool_pattern): Likewise.
36840 (ifcvt_local_dce): Likewise.
36841 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36842 is copy of inner or outer loop force_vectorize field, invoke
36843 ifcvt_split_critical_edges, ifcvt_local_dce and
36844 ifcvt_repair_bool_pattern for aggressive if-conversion.
36845
36846 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
36847
36848 * config/aarch64/aarch64.md: Include xgene1.md.
36849 * config/aarch64/xgene1.md: New file.
36850
36851 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36852
36853 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36854 xgene1 (APM XGene-1) core definition.
36855 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36856 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36857 * doc/invoke.texi: Document -mcpu=xgene1.
36858
36859 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36860
36861 * dojump.h: New header file.
36862 * explow.h: Likewise.
36863 * expr.h: Remove includes.
36864 Move expmed.c prototypes to expmed.h.
36865 Move dojump.c prototypes to dojump.h.
36866 Move alias.c prototypes to alias.h.
36867 Move explow.c prototypes to explow.h.
36868 Move calls.c prototypes to calls.h.
36869 Move emit-rtl.c prototypes to emit-rtl.h.
36870 Move varasm.c prototypes to varasm.h.
36871 Move stmt.c prototypes to stmt.h.
36872 (saved_pending_stack_adjust): Move to dojump.h.
36873 (adjust_address): Move to explow.h.
36874 (adjust_address_nv): Move to emit-rtl.h.
36875 (adjust_bitfield_address): Likewise.
36876 (adjust_bitfield_address_size): Likewise.
36877 (adjust_bitfield_address_nv): Likewise.
36878 (adjust_automodify_address_nv): Likewise.
36879 * explow.c (expr_size): Move to expr.c.
36880 (int_expr_size): Likewise.
36881 (tree_expr_size): Likewise.
36882 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36883 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36884 * genemit.c (main): Generate includes statistics.h, real.h,
36885 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36886 stmt.h.
36887 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36888 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36889 explow.h, emit-rtl.h, stmt.h.
36890 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36891 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36892 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36893 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36894 emit-rtl.h, varasm.h, stmt.h.
36895 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36896 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36897 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36898 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36899 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36900 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36901 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36902 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36903 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36904 tm.h tree.h varasm.h vec.h wide-int.h.
36905 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36906 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36907 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36908 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36909 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36910 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36911 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36912 * loop-iv.c: Likewise.
36913 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36914 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36915 statistics.h stmt.h tree.h varasm.h wide-int.h.
36916 * lra-constraints.c: Likewise.
36917 * lra-eliminations.c: Likewise.
36918 * lra-lives.c: Likewise.
36919 * lra-remat.c: Likewise.
36920 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36921 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36922 statistics.h stmt.h tree.h varasm.h wide-int.h.
36923 * hw-doloop.c: Likewise.
36924 * ira-color.c: Likewise.
36925 * ira-emit.c: Likewise.
36926 * loop-doloop.c: Likewise.
36927 * loop-invariant.c: Likewise.
36928 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36929 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36930 statistics.h stmt.h tree.h varasm.h wide-int.h.
36931 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36932 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36933 statistics.h stmt.h tree.h varasm.h wide-int.h.
36934 * combine-stack-adj.c: Likewise.
36935 * cse.c: Likewise.
36936 * ddg.c: Likewise.
36937 * ifcvt.c: Likewise.
36938 * ira-costs.c: Likewise.
36939 * jump.c: Likewise.
36940 * lra-coalesce.c: Likewise.
36941 * lra-spills.c: Likewise.
36942 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36943 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36944 stmt.h varasm.h wide-int.h.
36945 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36946 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36947 varasm.h.
36948 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36949 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36950 statistics.h stmt.h varasm.h wide-int.h.
36951 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36952 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36953 varasm.h wide-int.h.
36954 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36955 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36956 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36957 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36958 statistics.h stmt.h.
36959 * config/tilepro/tilepro.c: Likewise.
36960 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36961 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36962 * config/pdp11/pdp11.c: Likewise.
36963 * config/xtensa/xtensa.c: Likewise.
36964 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36965 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36966 varasm.h.
36967 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36968 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36969 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36970 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36971 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36972 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36973 * rtl-chkp.c: Likewise.
36974 * tree-chkp-opt.c: Likewise.
36975 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36976 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36977 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36978 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36979 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36980 statistics.h stmt.h.
36981 * tree-vect-data-refs.c: Likewise.
36982 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36983 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36984 rtl.h statistics.h stmt.h varasm.h.
36985 * internal-fn.c: Likewise.
36986 * ipa-icf-gimple.c: Likewise.
36987 * lto-section-out.c: Likewise.
36988 * tree-data-ref.c: Likewise.
36989 * tree-nested.c: Likewise.
36990 * tree-outof-ssa.c: Likewise.
36991 * tree-predcom.c: Likewise.
36992 * tree-pretty-print.c: Likewise.
36993 * tree-scalar-evolution.c: Likewise.
36994 * tree-ssa-strlen.c: Likewise.
36995 * tree-vect-loop.c: Likewise.
36996 * tree-vect-patterns.c: Likewise.
36997 * tree-vect-slp.c: Likewise.
36998 * tree-vect-stmts.c: Likewise.
36999 * tsan.c: Likewise.
37000 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37001 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37002 stmt.h.
37003 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37004 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37005 statistics.h stmt.h varasm.h.
37006 * loop-unroll.c: Likewise.
37007 * ubsan.c: Likewise.
37008 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37009 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37010 stmt.h varasm.h.
37011 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37012 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37013 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37014 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37015 statistics.h stmt.h.
37016 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37017 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37018 statistics.h stmt.h varasm.h.
37019 * gimple-match-head.c: Likewise.
37020 * lto-cgraph.c: Likewise.
37021 * lto-section-in.c: Likewise.
37022 * lto-streamer-in.c: Likewise.
37023 * lto-streamer-out.c: Likewise.
37024 * tree-affine.c: Likewise.
37025 * tree-cfg.c: Likewise.
37026 * tree-cfgcleanup.c: Likewise.
37027 * tree-if-conv.c: Likewise.
37028 * tree-into-ssa.c: Likewise.
37029 * tree-ssa-alias.c: Likewise.
37030 * tree-ssa-copyrename.c: Likewise.
37031 * tree-ssa-dse.c: Likewise.
37032 * tree-ssa-forwprop.c: Likewise.
37033 * tree-ssa-live.c: Likewise.
37034 * tree-ssa-math-opts.c: Likewise.
37035 * tree-ssa-pre.c: Likewise.
37036 * tree-ssa-sccvn.c: Likewise.
37037 * tree-tailcall.c: Likewise.
37038 * tree-vect-generic.c: Likewise.
37039 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37040 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37041 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37042 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37043 * varasm.c: Likewise.
37044 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37045 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37046 varasm.h.
37047 * init-regs.c: Likewise.
37048 * ira.c: Likewise.
37049 * omp-low.c: Likewise.
37050 * stack-ptr-mod.c: Likewise.
37051 * tree-ssa-reassoc.c: Likewise.
37052 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37053 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37054 varasm.h.
37055 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37056 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37057 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37058 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37059 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37060 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37061 * tree-ssa-phiopt.c: Likewise.
37062 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37063 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37064 * config/fr30/fr30.c: Likewise.
37065 * config/frv/frv.c: Likewise.
37066 * expr.c: Likewise.
37067 * final.c: Likewise.
37068 * optabs.c: Likewise.
37069 * passes.c: Likewise.
37070 * simplify-rtx.c: Likewise.
37071 * stmt.c: Likewise.
37072 * toplev.c: Likewise.
37073 * var-tracking.c: Likewise.
37074 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37075 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37076 * lower-subreg.c: Likewise.
37077 * postreload-gcse.c: Likewise.
37078 * ree.c: Likewise.
37079 * reginfo.c: Likewise.
37080 * store-motion.c: Likewise.
37081 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37082 fixed-value.h hashtab.h real.h stmt.h varasm.h.
37083 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37084 fixed-value.h hashtab.h statistics.h stmt.h.
37085 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37086 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37087 * except.c: Likewise.
37088 * explow.c: Likewise.
37089 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37090 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37091 varasm.h.
37092 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37093 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37094 * tree-ssa-structalias.c: Likewise.
37095 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37096 fixed-value.h insn-config.h real.h statistics.h.
37097 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37098 fixed-value.h insn-config.h real.h statistics.h stmt.h.
37099 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37100 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37101 * cfgbuild.c: Likewise.
37102 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37103 fixed-value.h real.h rtl.h statistics.h stmt.h.
37104 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37105 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37106 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37107 fixed-value.h real.h statistics.h stmt.h.
37108 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37109 fixed-value.h real.h statistics.h stmt.h varasm.h.
37110 * cprop.c: Likewise.
37111 * modulo-sched.c: Likewise.
37112 * postreload.c: Likewise.
37113 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37114 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37115 statistics.h stmt.h varasm.h.
37116 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37117 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37118 rtl.h statistics.h stmt.h varasm.h.
37119 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37120 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37121 varasm.h.
37122 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37123 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37124 varasm.h.
37125 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37126 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37127 varasm.h.
37128 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37129 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37130 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37131 function.h real.h statistics.h stmt.h varasm.h.
37132 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37133 insn-config.h real.h statistics.h stmt.h.
37134 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37135 statistics.h stmt.h.
37136 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37137 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37138 statistics.h stmt.h varasm.h.
37139 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37140 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37141 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37142 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37143 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37144 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37145 statistics.h stmt.h varasm.h.
37146 * ipa-polymorphic-call.c: Likewise.
37147 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37148 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37149 statistics.h stmt.h.
37150 * config/c6x/c6x.c: Likewise.
37151 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37152 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37153 statistics.h stmt.h varasm.h.
37154 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37155 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37156 stmt.h varasm.h.
37157 * ipa-split.c: Likewise.
37158 * tree-eh.c: Likewise.
37159 * tree-ssa-dce.c: Likewise.
37160 * tree-ssa-loop-niter.c: Likewise.
37161 * tree-vrp.c: Likewise.
37162 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37163 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37164 stmt.h.
37165 * config/nds32/nds32-fp-as-gp.c: Likewise.
37166 * config/nds32/nds32-intrinsic.c: Likewise.
37167 * config/nds32/nds32-isr.c: Likewise.
37168 * config/nds32/nds32-md-auxiliary.c: Likewise.
37169 * config/nds32/nds32-memory-manipulation.c: Likewise.
37170 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37171 * config/nds32/nds32-predicates.c: Likewise.
37172 * config/nds32/nds32.c: Likewise.
37173 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37174 fixed-value.h hashtab.h real.h statistics.h.
37175 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37176 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37177 * config/arm/arm.c: Likewise.
37178 * config/avr/avr.c: Likewise.
37179 * config/bfin/bfin.c: Likewise.
37180 * config/h8300/h8300.c: Likewise.
37181 * config/i386/i386.c: Likewise.
37182 * config/ia64/ia64.c: Likewise.
37183 * config/iq2000/iq2000.c: Likewise.
37184 * config/m32c/m32c.c: Likewise.
37185 * config/m32r/m32r.c: Likewise.
37186 * config/m68k/m68k.c: Likewise.
37187 * config/mcore/mcore.c: Likewise.
37188 * config/mep/mep.c: Likewise.
37189 * config/mips/mips.c: Likewise.
37190 * config/mn10300/mn10300.c: Likewise.
37191 * config/moxie/moxie.c: Likewise.
37192 * config/pa/pa.c: Likewise.
37193 * config/rl78/rl78.c: Likewise.
37194 * config/rx/rx.c: Likewise.
37195 * config/s390/s390.c: Likewise.
37196 * config/sh/sh.c: Likewise.
37197 * config/sparc/sparc.c: Likewise.
37198 * config/spu/spu.c: Likewise.
37199 * config/stormy16/stormy16.c: Likewise.
37200 * config/v850/v850.c: Likewise.
37201 * config/vax/vax.c: Likewise.
37202 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37203 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37204 * config/msp430/msp430.c: Likewise.
37205 * predict.c: Likewise.
37206 * value-prof.c: Likewise.
37207 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37208 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37209 * config/microblaze/microblaze.c: Likewise.
37210 * config/nios2/nios2.c: Likewise.
37211 * config/rs6000/rs6000.c: Likewise.
37212 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37213 insn-config.h real.h rtl.h statistics.h stmt.h.
37214 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37215 insn-config.h real.h statistics.h stmt.h.
37216 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37217 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37218 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37219 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37220 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37221 fixed-value.h real.h statistics.h stmt.h.
37222 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37223 fixed-value.h statistics.h stmt.h.
37224 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37225 stmt.h.
37226
37227 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37228
37229 * gengtype.c (create_user_defined_type): Workaround
37230 -Wmaybe-uninitialized false positives.
37231 * cse.c (fold_rtx): Likewise.
37232 * loop-invariant.c (gain_for_invariant): Likewise.
37233
37234 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
37235
37236 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37237 set the memory attributes in all cases but clear MEM_EXPR if need be.
37238
37239 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37240
37241 PR tree-optimization/64434
37242 * cfgexpand.c (reorder_operands): New function.
37243 (expand_gimple_basic_block): Insert call of reorder_operands if
37244 optimized is true.
37245
37246 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
37247
37248 * config/mips/micromips.md (*swp): Remove explicit parallel.
37249 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37250 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37251 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37252 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37253 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37254 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37255 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37256 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37257 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37258 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37259 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37260 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37261 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37262 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37263 (mips_wrdsp): Likewise.
37264 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37265 parallel.
37266 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37267 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37268 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37269 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37270 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37271 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37272 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37273 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37274 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37275
37276 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37277
37278 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37279 (mips_print_operand): Support 'y' to print exact log2 in decimal
37280 of a const_int.
37281 * config/mips/mips.h (ISA_HAS_LSA): New define.
37282 (ISA_HAS_DLSA): Likewise.
37283 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37284 * config/mips/predicates.md (const_immlsa_operand): New predicate.
37285
37286 2015-01-15 Martin Liska <mliska@suse.cz>
37287
37288 PR target/64377
37289 * optc-save-gen.awk: Add support for array types.
37290
37291 2015-01-15 Richard Biener <rguenther@suse.de>
37292
37293 PR middle-end/64365
37294 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37295 for MEM_REF access functions with the same base can never partially
37296 overlap.
37297
37298 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
37299
37300 * common.opt: New option -fstack-protector-explicit.
37301 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37302 (stack_protect_decl_phase): Handle stack_protect attribute for
37303 explicit stack protection requests.
37304 (expand_used_vars): Similarly.
37305 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37306 * doc/extend.texi: Add documentation for "stack_protect" attribute.
37307 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37308
37309 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
37310
37311 PR target/53988
37312 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37313 reg-reg copies.
37314 (sh_extending_set_of_reg): New struct.
37315 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37316 sh_remove_reg_dead_or_unused_notes): New Declarations.
37317 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37318 sh_find_extending_set_of_reg, sh_split_tst_subregs,
37319 sh_extending_set_of_reg::use_as_extended_reg): New functions.
37320 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37321 convert to insn_and_split and use new function sh_split_tst_subregs.
37322
37323 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
37324
37325 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37326 option.
37327 (Optimization Options): Move -fuse-ld documentation to...
37328 (Link Options): ...here.
37329
37330 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37331
37332 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37333 offsets.
37334 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37335 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37336 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37337 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37338 instead of ZR for the memory operand of LL/SC.
37339 (compare_and_swap_12, sync_add<mode>): Likewise.
37340 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37341 (sync_new_<optab>_12, sync_nand_12): Likewise.
37342 (sync_old_nand_12, sync_new_nand_12): Likewise.
37343 (sync_sub<mode>, sync_old_add<mode>): Likewise.
37344 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37345 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37346 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37347 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37348 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37349 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37350 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37351 * doc/md.texi (ZC): Update description.
37352
37353 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37354
37355 * builtins.c (expand_builtin_atomic_exchange): Remove error when
37356 memory model is CONSUME.
37357 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37358 expand_builtin_atomic_store): Change invalid memory model errors to
37359 warnings.
37360 (expand_builtin_atomic_clear): Change invalid model errors to warnings
37361 and issue warning for CONSUME.
37362
37363 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
37364
37365 * lto-cgraph: Update function comments for
37366 lto_symtab_encoder_encode_*.
37367
37368 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37369
37370 * Makefile.in (site.exp): Do not set ENABLE_LTO.
37371
37372 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37373
37374 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37375 * lto-cgraph.c (select_what_to_stream): Remove argument, use
37376 lto_stream_offload_p instead.
37377 * lto-streamer.h (select_what_to_stream): Remove argument.
37378 * passes.c (ipa_write_summaries): Likewise.
37379 * tree-pass.h (ipa_write_summaries): Likewise.
37380
37381 2015-01-14 Richard Biener <rguenther@suse.de>
37382
37383 PR tree-optimization/59354
37384 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37385 groups larger than the slp group size as having gaps.
37386
37387 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37388
37389 PR middle-end/59448
37390 * builtins.c (get_memmodel): Promote consume to acquire always.
37391
37392 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37393
37394 PR target/64386
37395 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37396 V32HImode.
37397
37398 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37399
37400 PR target/64393
37401 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37402 Enable AVX512BW.
37403 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37404 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37405 AVX512VBMI, as it implies AVX512BW.
37406
37407 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37408
37409 PR target/64387
37410 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37411 (vec_unpacks_hi_v16sf): Ditto.
37412
37413 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37414
37415 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37416 is not available.
37417
37418 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37419
37420 * doc/invoke.texi (mapcs): Mention deprecation.
37421 (mapcs-frame): Likewise.
37422
37423 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
37424
37425 PR target/64453
37426 * config/arm/arm.c (callee_saved_reg_p): Define.
37427 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37428 register is callee saved instead of !call_used_regs[reg].
37429 (thumb1_compute_save_reg_mask): Likewise.
37430
37431 2015-01-14 Hale Wang <hale.wang@arm.com>
37432
37433 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37434 Cortex-M7.
37435
37436 2015-01-14 Richard Biener <rguenther@suse.de>
37437
37438 PR lto/64415
37439 * tree-inline.c (insert_debug_decl_map): Check destination
37440 function MAY_HAVE_DEBUG_STMTS.
37441 (insert_init_debug_bind): Likewise.
37442 (insert_init_stmt): Remove redundant check.
37443 (remap_gimple_stmt): Drop debug stmts if the destination
37444 function has var-tracking assignments disabled.
37445
37446 2015-01-14 Martin Liska <mliska@suse.cz>
37447
37448 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37449 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37450
37451 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37452
37453 PR target/64460
37454 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37455 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37456
37457 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37458
37459 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37460 level from an ARCH; do not inject the default.
37461 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37462 MIPS_ISA_LEVEL_SPEC.
37463 (MIPS_ISA_NAN2008_SPEC): Update comment.
37464 (BASE_DRIVER_SELF_SPECS): Likewise.
37465 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37466 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37467 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37468 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37469 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37470
37471 2015-01-14 Richard Biener <rguenther@suse.de>
37472
37473 PR tree-optimization/64493
37474 PR tree-optimization/64495
37475 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37476 assign the proper vectorized PHI to the inner loop exit PHIs.
37477
37478 2015-01-14 Joey Ye <joey.ye@arm.com>
37479
37480 * config/arm/arm.c (arm_compute_save_reg_mask):
37481 Do not save lr in case of tail call.
37482 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37483
37484 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37485
37486 * tree-vrp.c (check_array_ref): Emit more warnings
37487 for warn_array_bounds >= 2.
37488 * common.opt: New option -Warray-bounds=.
37489 * doc/invoke.texi: Document -Warray-bounds=.
37490
37491 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37492
37493 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37494 (mforbid-fp-as-gp): Remove.
37495 (mex9): Remove.
37496 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37497 (nds32_symbol_load_store_p): Remove.
37498 (nds32_fp_as_gp_check_available): Clean up implementation.
37499 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37500 cases.
37501 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37502 fp-as-gp and ex9 cases.
37503
37504 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37505
37506 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37507 for bintuils bug 14342.
37508 (init_ic_make_global_vars): Likewise.
37509 (gimple_init_edge_profiler): Likewise.
37510 (gimple_gen_ic_func_profiler): Likewise.
37511
37512 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37513
37514 * ipa-inline.c (inline_small_functions): Swap the operands in
37515 enum.
37516
37517 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37518
37519 PR ipa/64481
37520 * ipa-inline-analysis.c (node_growth_cache): Remove.
37521 (initialize_growth_caches): Do not initialize it.
37522 (free_growth_caches): Do not free it.
37523 (do_estimate_growth): Rename to ...
37524 (estimate_growth): ... this one; drop growth cache code.
37525 (growth_likely_positive): Always go the heuristics way.
37526 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37527 (reset_edge_caches): Do not reset node growth.
37528 (heap_edge_removal_hook): Do not maintain cache.
37529 (inline_small_functions): Likewise; strenghten sanity check.
37530 (ipa_inline): Do not maintain caches.
37531 * ipa-inline.h (node_growth_cache): Remove.
37532 (do_estimate_growth): Remove to ...
37533 (estimate_growth): this one; remove inline version.
37534 (reset_node_growth_cache): Remove.
37535
37536 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37537
37538 PR ipa/64565
37539 * ipa-inline.c (inline_small_functions): Update callee keys after
37540 resolving speculation
37541 (inline_small_functions): Always check monotonicity of the queue.
37542
37543 2015-01-13 Marek Polacek <polacek@redhat.com>
37544
37545 PR middle-end/64391
37546 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37547
37548 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37549
37550 PR rtl-optimization/64286
37551 * ree.c (combine_reaching_defs): Move part of comment earlier,
37552 remove !SCALAR_INT_MODE_P check.
37553 (add_removable_extension): Don't add vector mode
37554 extensions if all uses of the source register aren't the same
37555 vector extensions.
37556
37557 2015-01-13 Renlin Li <renlin.li@arm.com>
37558
37559 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37560 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37561
37562 2015-01-13 Martin Liska <mliska@suse.cz>
37563
37564 * ipa-icf.c (sem_function::equals_private): Call new functions
37565 cl_target_option_print_diff and cl_optimization_print_diff.
37566 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37567 (cl_optimization_print_diff): Likewise.
37568 * opth-gen.awk: Likewise.
37569
37570 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37571
37572 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37573 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37574 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37575 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37576 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37577 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37578
37579 2015-01-13 Andrew Pinski <apinski@cavium.com>
37580
37581 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37582 instead of src mode.
37583
37584 2015-01-13 Richard Biener <rguenther@suse.de>
37585
37586 PR lto/64373
37587 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37588 DECL_CONTEXT.
37589
37590 2015-01-13 Andrew Pinski <apinski@cavium.com>
37591
37592 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37593 volatile mems.
37594 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37595
37596 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37597
37598 PR middle-end/63974
37599 * cfgexpand.c (expand_computed_goto): Don't call
37600 convert_memory_address here.
37601
37602 2015-01-13 Richard Biener <rguenther@suse.de>
37603
37604 PR tree-optimization/64406
37605 * tree-loop-distibution.c (pass_loop_distribution::execute):
37606 Reset the SCEV hashtable if we distributed anything.
37607
37608 2015-01-13 Richard Biener <rguenther@suse.de>
37609
37610 PR tree-optimization/64404
37611 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37612 SLP types for CSEd loads.
37613
37614 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37615
37616 PR tree-optimization/64436
37617 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37618 merge of two symbolic numbers for a bitwise OR to ...
37619 (perform_symbolic_merge): This. Also fix computation of the range and
37620 end of the symbolic number corresponding to the result of a bitwise OR.
37621
37622 2015-01-13 Richard Biener <rguenther@suse.de>
37623
37624 PR tree-optimization/64568
37625 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37626 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37627
37628 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37629
37630 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37631 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37632
37633 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37634
37635 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37636 target-specific symbol_ref flag.
37637 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37638 resides in rodata section.
37639 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37640 (nds32_encode_section_info): New function.
37641
37642 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37643
37644 * config/nds32/nds32.md (call): Use pseudo instruction bal which
37645 clobbers TA_REGNUM if large code model is specified.
37646 (call_register): Likewise.
37647 (call_immediate): Likewise.
37648 (call_value): Likewise.
37649 (call_value_register): Likewise.
37650 (call_value_immediate): Likewise.
37651
37652 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37653
37654 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37655 (TARGET_CMODEL_MEDIUM): New macro.
37656 (TARGET_CMODEL_LARGE): New macro.
37657 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37658 code model setting in assembly code.
37659
37660 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37661
37662 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37663 Remove MASK_GP_DIRECT flag.
37664 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37665 one of the multilib default options.
37666 * config/nds32/nds32.opt (mgp-direct): Remove.
37667 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37668 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
37669
37670 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37671
37672 * config/nds32/nds32.opt (mcmodel): Add new option.
37673 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37674 to describe code model.
37675
37676 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
37677
37678 PR target/64479
37679 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37680
37681 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
37682
37683 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37684 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37685 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37686 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37687 __builtin_sh_set_fpscr.
37688
37689 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37690
37691 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37692 after a funtion name just to indicate it is a function.
37693 ([-fsanitize-undefined-trap-on-error]): Likewise.
37694 ([-fdbg-cnt=]): Likewise.
37695 ([-mmemcpy]): Likewise.
37696 ([-mflush-func]): Likewise.
37697 ([-msynci]): Likewise.
37698
37699 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37700
37701 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37702 example.
37703
37704 2015-01-12 Jakub Jelinek <jakub@redhat.com>
37705
37706 PR tree-optimization/64563
37707 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37708 instead of != VR_VARYING.
37709
37710 PR target/64513
37711 * config/i386/i386.c (ix86_expand_prologue): Add
37712 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37713
37714 PR tree-optimization/64454
37715 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37716 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37717 for signed or [0, op1 - 1] for unsigned modulo.
37718 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37719 even if op1 does not satisfy integer_pow2p.
37720
37721 PR other/64370
37722 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37723
37724 2015-01-12 Jeff Law <law@redhat.com>
37725
37726 PR target/64461
37727 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37728 (trunchiqi2, truncsihi2): Similarly.
37729
37730 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37731 rather than calling F.
37732
37733 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
37734
37735 * tsan.c (instrument_expr): Use force_gimple_operand.
37736 Use may_be_nonaddressable_p instead of is_gimple_addressable.
37737
37738 2015-01-12 Richard Biener <rguenther@suse.de>
37739
37740 PR tree-optimization/64530
37741 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37742 back dr1.
37743
37744 2015-01-12 Richard Biener <rguenther@suse.de>
37745
37746 PR middle-end/64357
37747 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37748 latches properly.
37749
37750 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37751
37752 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37753 Cortex-A17 tuning parameters.
37754 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37755
37756 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37757
37758 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37759 * config/arm/arm.c (arm_macro_fusion_p): New function.
37760 (arm_macro_fusion_pair_p): Likewise.
37761 (TARGET_SCHED_MACRO_FUSION_P): Define.
37762 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37763 (ARM_FUSE_NOTHING): Likewise.
37764 (ARM_FUSE_MOVW_MOVT): Likewise.
37765 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37766 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37767 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37768 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37769 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37770 arm_cortex_a5_tune): Specify fuseable_ops value.
37771
37772 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
37773
37774 PR bootstrap/64561
37775 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37776 test for PIE with copy reloc.
37777 * configure: Regenerated.
37778
37779 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37780
37781 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37782 in gen_rtx_REG.
37783 (arm_tls_descseq_addr): Likewise.
37784 (arm_gen_movmemqi): Likewise.
37785 (arm_expand_epilogue_apcs_frame): Likewise.
37786 (arm_expand_epilogue): Likewise.
37787 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
37788 in gen_rtx_REG.
37789
37790 2015-01-12 Martin Liska <mliska@suse.cz>
37791
37792 PR ipa/64550
37793 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37794 volatility for correct operands.
37795
37796 2015-01-12 Martin Liska <mliska@suse.cz>
37797
37798 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37799 indication that a function is not leaf.
37800 (sem_function::compare_polymorphic_p): Likewise.
37801
37802 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37803
37804 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37805 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37806 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37807 fold-const.h, tree-check.h.
37808
37809 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37810
37811 PR ipa/63967
37812 PR ipa/64425
37813 * ipa-inline.c (compute_uninlined_call_time,
37814 compute_inlined_call_time): Use counts for extra precision when
37815 needed possible.
37816 (big_speedup_p): Fix formating.
37817 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37818 (relative_time_benefit): Remove.
37819 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37820 merge guessed and read profile paths.
37821 (inline_small_functions): Count only !optimize_size functions into
37822 initial size; be more lax about sanity check when profile is used;
37823 be sure to update inlined function profile when profile is read.
37824
37825 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37826
37827 PR ipa/63470
37828 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37829 cost when edge becomes direct.
37830 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37831 is resolved or when introducing new speculation.
37832
37833 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
37834
37835 PR ipa/64551
37836 PR ipa/64552
37837 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37838 '||' to fix typo issue.
37839
37840 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37841 accept and return NULL.
37842
37843 2015-01-12 Martin Liska <mliska@suse.cz>
37844
37845 * cgraph.c (cgraph_edge::remove_callee): Move function to header
37846 file for being inlined.
37847 (cgraph_set_edge_callee): Delete.
37848 (cgraph_edge::redirect_callee): Move function to header file
37849 for being inlined.
37850 (cgraph_edge::make_direct): Use new function.
37851 (cgraph_edge::dump_edge_flags): New function created from
37852 static dump_edge_flags function.
37853 (cgraph_node::dump): Use new function.
37854 (cgraph_edge::verify_count_and_frequency): New function created
37855 from verify_edge_count_and_frequency.
37856 (cgraph_edge::verify_corresponds_to_fndecl): New function created
37857 from verify_edge_corresponds_to_fndecl.
37858 (verify_edge_corresponds_to_fndecl): Delete.
37859 (cgraph_node::verify_node): Use new function.
37860 * cgraph.h (cgraph_edge::set_callee): New function.
37861 (cgraph_edge::dump_edge_flags): Likewise.
37862 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37863
37864 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
37865
37866 * ipa-utils.c (estimate_function_body_sizes): Do not
37867 free node params when called late with early=true.
37868
37869 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
37870
37871 * doc/md.texi (Instruction Patterns): Rewrite text for
37872 clarity.
37873 (Example): Likewise.
37874
37875 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
37876
37877 * doc/invoke.texi (Option Summary): Break long lines.
37878 [(-fdiagnostics-color)]: Put long literal in @smallexample
37879 instead of inline.
37880 [(-fsanitize-recover)]: Likewise.
37881 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37882 [(-ffast-math)]: Likewise.
37883 [(--param max-inline-insns-recursive)]: Likewise.
37884 [(--param max-inline-recursive-depth)]: Likewise.
37885 [(-mno-text-section-literals)]: Likewise.
37886
37887 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
37888
37889 * doc/install.texi: Update for libgomp being renamed from "GNU
37890 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37891 Runtime Library".
37892 * doc/sourcebuild.texi: Likewise.
37893
37894 2015-01-10 Anthony Green <green@moxielogic.com>
37895
37896 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37897 mul.x availability for moxiebox configuration.
37898
37899 2015-01-09 Anthony Green <green@moxielogic.com>
37900
37901 * config/moxie/moxie.md: Tabify assembly output.
37902
37903 2015-01-09 Anthony Green <green@moxielogic.com>
37904
37905 * config/moxie/moxie.md (CC_REG): Correct register definition.
37906
37907 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
37908
37909 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37910 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
37911 of log files.
37912
37913 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37914
37915 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37916
37917 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
37918 Jakub Jelinek <jakub@redhat.com>
37919
37920 PR middle-end/64412
37921 * lto-streamer.h (lto_stream_offload_p): New declaration.
37922 * lto-streamer.c (lto_stream_offload_p): New variable.
37923 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37924 at the same time as section_name_prefix.
37925 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37926 if lto_stream_offload_p.
37927 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37928 stream TREE_TARGET_OPTION if lto_stream_offload_p.
37929 (write_ts_function_decl_tree_pointers): Don't
37930 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37931 * tree-streamer-in.c (unpack_value_fields): Don't stream
37932 TREE_TARGET_OPTION in if ACCEL_COMPILER.
37933 (lto_input_ts_function_decl_tree_pointers): Don't stream
37934 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37935 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37936 instead of section_name_prefix string comparisons.
37937
37938 2015-01-09 Jakub Jelinek <jakub@redhat.com>
37939
37940 PR rtl-optimization/64536
37941 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37942 tablejumps.
37943
37944 2015-01-09 Michael Collison <michael.collison@linaro.org>
37945
37946 PR tree-optimization/64322
37947 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37948 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37949
37950 2015-01-09 Tom de Vries <tom@codesourcery.com>
37951
37952 PR rtl-optimization/64539
37953 * regcprop.c (kill_clobbered_values): Factor out of ...
37954 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
37955 instead of note_stores with kill_clobbered_value.
37956
37957 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37958
37959 * ginclude/unwind-arm-common.h: Revert previous commit.
37960
37961 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37962
37963 * config.gcc (arm*-*-freebsd*): New configuration.
37964 * config/arm/freebsd.h: New file.
37965 * config.host: Add extra components for arm*-*-freebsd*.
37966 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37967 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37968
37969 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37970
37971 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37972 for -mcpu=e6500.
37973 * config/rs6000/t-rtems: Add e6500 multilibs.
37974
37975 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37976
37977 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37978 MPC8540.
37979
37980 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37981
37982 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37983 MULTILIB_EXCEPTIONS.
37984
37985 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37986
37987 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37988 MULTILIB_EXCEPTIONS.
37989
37990 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37991
37992 * config/arm/t-rtems-eabi: Rename to...
37993 * config/arm/t-rtems: ...this.
37994 * config/arm/rtems-eabi.h: Rename to...
37995 * config/arm/rtems.h: ...this.
37996 * config.gcc (arm*-*-rtems*): Reflect changes above.
37997
37998 2015-01-09 Richard Biener <rguenther@suse.de>
37999
38000 PR tree-optimization/64410
38001 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38002 on the LHS.
38003 (execute_update_addresses_taken): Deal with that.
38004 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38005 loads/stores for complex variables.
38006
38007 2015-01-09 Martin Liska <mliska@suse.cz>
38008
38009 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38010 name comparison.
38011 (func_checker::compare_memory_operand): New function.
38012 (func_checker::compare_operand): Split case to newly
38013 added functions.
38014 (func_checker::compare_cst_or_decl): New function.
38015 (func_checker::compare_gimple_call): Identify
38016 memory operands.
38017 (func_checker::compare_gimple_assign): Likewise.
38018 * ipa-icf-gimple.h: New function.
38019
38020 2015-01-09 Martin Liska <mliska@suse.cz>
38021
38022 PR ipa/64503
38023 * sreal.c (sreal::dump): Change unsigned format to signed for
38024 m_exp value.
38025 (sreal::to_double): Replace exp2 with scalbln.
38026
38027 2015-01-09 Martin Liska <mliska@suse.cz>
38028
38029 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38030 * ipa-icf.c (sem_function::equals_private): Add support for target and
38031 (sem_item_optimizer::merge_classes): Remove redundant function
38032 optimization flags comparison.
38033 * tree.h (target_opts_for_fn): New function.
38034
38035 2015-01-09 Tom de Vries <tom@codesourcery.com>
38036
38037 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38038
38039 2015-01-09 Kito Cheng <kito@0xlab.org>
38040
38041 PR rtl-optimization/64348
38042 * lra-constraints.c (split_reg): Fix caller-save store/restore
38043 instruction generation.
38044
38045 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
38046
38047 PR gcov-profile/61790
38048 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38049 long long. Fallback to int64_t if host doesn't have long long and
38050 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
38051
38052 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38053
38054 PR tree-optimization/63989
38055 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38056 from 1000 to 10000.
38057 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38058 (get_stridx): If we don't have a record for certain SSA_NAME,
38059 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38060 constant offset, call get_stridx_plus_constant.
38061 (get_stridx_plus_constant): New function.
38062 (zero_length_string): Don't use get_stridx here.
38063
38064 PR target/55023
38065 PR middle-end/64388
38066 * dse.c (struct insn_info): Mention frame_read set also
38067 before reload for tail calls on some targets.
38068 (scan_insn): Revert 2014-12-22 change. Set frame_read
38069 also before reload for tail calls if
38070 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
38071 instead of add_non_frame_wild_read for non-const/memset
38072 tail calls after reload.
38073
38074 2015-01-08 Jason Merrill <jason@redhat.com>
38075
38076 * ubsan.c (do_ubsan_in_current_function): New.
38077 (pass_ubsan::gate): Use it.
38078 * ubsan.h: Declare it.
38079 * convert.c (convert_to_integer): Use it.
38080
38081 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38082
38083 PR target/64338
38084 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38085 compare_code when it is unconditionally overwritten afterwards.
38086 Use ix86_reverse_condition instead of reverse_condition. Don't
38087 change code if *reverse_condition* returned UNKNOWN and don't
38088 swap ct/cf and negate diff in that case.
38089
38090 2015-01-08 Mike Stump <mikestump@comcast.net>
38091
38092 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38093 (pass_tsan_O0::gate): Likewise.
38094 * extend.texi (Function Attributes): Add no_sanitize_thread
38095 documentation.
38096
38097 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
38098
38099 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38100 for registering builtins.
38101 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38102 add -fopenmp to the argv_obstack used when invoking
38103 compile_for_target.
38104
38105 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38106 add "-m32" or "-m64" to argv_obstack.
38107 (generate_host_descr_file): Likewise, when invoking host_compiler.
38108 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38109 ld.
38110
38111 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38112
38113 * config/sh/sh-mem.cc: Use constant as second operand when emitting
38114 tstsi_t insns.
38115
38116 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38117
38118 PR target/55212
38119 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38120 constant load if constant operand fits into I08.
38121
38122 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38123
38124 PR sanitizer/64336
38125 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38126 and TREE_THIS_VOLATILE for MEM_REFs.
38127 (build5_stat): Fix up initialization of TREE_READONLY and
38128 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38129
38130 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
38131
38132 PR target/64533
38133 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38134 of r for the second alternative of the destination operand.
38135
38136 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
38137
38138 PR target/36557
38139 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38140
38141 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38142
38143 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38144 keywords.
38145 ([-fivar-visibility], [-fvisibility]): Likewise.
38146
38147 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38148
38149 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38150 the file where @code, @command, etc is more appropriate.
38151
38152 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
38153
38154 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38155 of -mrecip= documentation.
38156
38157 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38158
38159 PR target/64505
38160 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38161 correct reload handler if -m32 -mpowerpc64 is used.
38162
38163 2015-01-06 Tom de Vries <tom@codesourcery.com>
38164
38165 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38166
38167 2015-01-08 Christian Bruel <christian.bruel@st.com>
38168
38169 PR target/64507
38170 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38171
38172 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
38173
38174 PR tree-optimization/63259
38175 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38176 if optab exists for 16bit byteswap.
38177
38178 2015-01-06 Jakub Jelinek <jakub@redhat.com>
38179
38180 * opts.c (common_handle_option): Add support for
38181 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38182 * doc/invoke.texi: Document -fno-sanitize=all,
38183 -f{,no-}sanitize-recover=all. Document that
38184 -fsanitize=float-cast-overflow is not enabled
38185 by -fsanitize=undefined. Fix up documentation
38186 of -f{,no-}sanitize-recover.
38187
38188 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
38189
38190 * config.gcc: Add Visium support.
38191 * configure.ac: Likewise.
38192 * configure: Regenerate.
38193 * doc/extend.texi (interrupt attribute): Add Visium.
38194 * doc/invoke.texi: Document Visium options.
38195 * doc/install.texi: Document Visium target.
38196 * doc/md.texi: Document Visium constraints.
38197 * common/config/visium: New directory.
38198 * config/visium: Likewise.
38199
38200 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38201
38202 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38203 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38204
38205 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38206
38207 * combine.c (combine_validate_cost): Do not count the cost of a
38208 split I2 twice. Do not display it twice in the dump, either.
38209
38210 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38211
38212 Revert parts of r219199.
38213 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38214 <inttypes.h>.
38215 ([-Wtraditional]): Restore markup on <limits.h>.
38216
38217 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
38218
38219 PR c++/31397
38220 * doc/invoke.texi: Document -Wsuggest-override.
38221
38222 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
38223
38224 PR rtl-optimization/64287
38225 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38226 (process_options): Disable flag_ipa_ra if profiling.
38227
38228 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
38229
38230 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38231
38232 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
38233
38234 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38235 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38236 put under #if TARGET_LOOPS guard.
38237
38238 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
38239
38240 * config/i386/i386.c (output_387_binary_op): Use std::swap.
38241
38242 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
38243
38244 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38245 * rtl.h (refers_to_regno_p): Add overload.
38246 * cse.c: Use it.
38247 * bt-load.c: Likewise.
38248 * combine.c: Likewise.
38249 * df-scan.c: Likewise.
38250 * sched-deps.c: Likewise.
38251 * config/s390/s390.c: Likewise.
38252 * config/m32r/m32r.c: Likewise.
38253 * config/rs6000/spe.md: Likewise.
38254 * config/rs6000/rs6000.c: Likewise.
38255 * config/pa/pa.c: Likewise.
38256 * config/stormy16/stormy16.c: Likewise.
38257 * config/cris/cris.c: Likewise.
38258 * config/arc/arc.md: Likewise.
38259 * config/arc/arc.c: Likewise.
38260 * config/sh/sh.md: Likewise.
38261 * config/sh/sh.c: Likewise.
38262 * config/frv/frv.c: Likewise.
38263
38264 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38265
38266 PR sanitizer/64265
38267 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38268 call as cleanup of the whole body.
38269 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38270 * tsan.c (replace_func_exit): New function.
38271 (instrument_func_exit): Moved earlier.
38272 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38273 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38274 been found.
38275 (tsan_pass): Don't call instrument_func_exit.
38276 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38277 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38278 inlining.
38279
38280 PR sanitizer/64344
38281 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38282 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38283 it to libubsan handler instead of EXPR. Fold comparisons earlier,
38284 if the result is integer_zerop, return NULL_TREE.
38285 * convert.c (convert_to_integer): Pass expr as ARG.
38286
38287 PR tree-optimization/64465
38288 * tree-inline.c (redirect_all_calls): During inlining
38289 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38290 changed the stmt to a non-throwing call.
38291
38292 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38293
38294 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38295 etc markup throughout the file.
38296
38297 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38298
38299 Enable experimental TSAN support for Ada.
38300 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38301
38302 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38303
38304 PR tree-optimization/64494
38305 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38306 clear SSA_NAME_ANTI_RANGE_P flag.
38307
38308 2015-01-05 Marek Polacek <polacek@redhat.com>
38309
38310 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38311
38312 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38313
38314 Update copyright years.
38315
38316 * gcc.c (process_command): Update copyright notice dates.
38317 * gcov-dump.c: Ditto.
38318 * gcov.c: Ditto.
38319 * doc/cpp.texi: Bump @copying's copyright year.
38320 * doc/cppinternals.texi: Ditto.
38321 * doc/gcc.texi: Ditto.
38322 * doc/gccint.texi: Ditto.
38323 * doc/gcov.texi: Ditto.
38324 * doc/install.texi: Ditto.
38325 * doc/invoke.texi: Ditto.
38326
38327 * auto-profile.c, auto-profile.h: Fix up Copyright line.
38328
38329 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
38330
38331 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38332 verb tense, etc.
38333 ([-fvtable-verify], [-fvtv-debug]): Likewise.
38334 ([-Wabi]): Likewise.
38335 ([-fmessage-length]): Likewise.
38336 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38337 ([-Wno-discarded-qualifiers]): Likewise.
38338 ([-Wnodiscarded-array-qualifiers]): Likewise.
38339 ([-Wno-virtual-move-assign]): Likewise.
38340 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38341 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38342 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38343 ([-fsanitize-undefined-trap-on-error]): Likewise.
38344 ([-floop-interchange]): Likewise.
38345 ([-ftree-coalesce-inlined-vars]): Likewise.
38346 ([-fvect-cost-model]): Likewise.
38347 ([-flto]): Likewise.
38348 ([--param]): Likewise.
38349 (Spec Files): Likewise.
38350 ([-mstrict-align]): Likewise.
38351 ([-mfix-cortex-a53-835769]): Likewise.
38352 ([-march], [-mtune]): Likewise.
38353 ([-mpic-register]): Likewise.
38354 ([-munaligned-access]): Likewise.
38355 ([-msp8]): Likewise.
38356 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38357 (AVR Built-in Macros): Likewise.
38358 ([-mpreferred-stack-boundary]): Likewise.
38359 ([-mtune-crtl]): Likewise.
38360 ([-mashf]): Likewise.
38361 ([-mmcu=]): Likewise.
38362 ([-minrt]): Likewise.
38363 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38364 ([-mupper-regs]): Likewise.
38365 ([-matomic-model]): Likewise.
38366 ([-mdiv]): Likewise.
38367 ([-mzdcbranch]): Likewise.
38368 ([-mdisable-callt]): Likewise.
38369 ([-msoft-float]): Likewise.
38370 ([-m8byte-align]): Likewise.
38371 ([-fstack-reuse]): Likewise.
38372
38373 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38374
38375 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38376 Fix markup, light copy-editing.
38377 ([-fauto-profile]): Rewrite to fix formatting and content
38378 problems.
38379
38380 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38381
38382 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38383 Copy-edit description.
38384 ([-fisolate-erroneous-paths-attribute]): Likewise.
38385 * common.opt (fisolate-erroneous-paths-dereference):
38386 Copy-edit description.
38387 (fisolate-erroneous-paths-attribute): Likewise.
38388
38389 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38390
38391 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38392 tidy grammar.
38393
38394 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38395
38396 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38397 ([-fvtv-debug]): Likewise.
38398 ([-Wc++-compat]): Likewise.
38399 ([-Wc++11-compat]): Likewise.
38400 ([-Wc++14-compat]): Likewise.
38401 ([-Wno-sized-deallocation]): Likewise.
38402 ([-femit-class-debug-always]): Likewise.
38403 ([-femit-struct-debug-detailed]): Likewise.
38404 ([-fno-keep-inline-dllexport]): Likewise.
38405 ([-fira-algorithm]): Likewise.
38406 ([-fira-region]): Likewise.
38407 ([-flra-remat]): Likewise.
38408 ([-fipa-ra]): Likewise.
38409 ([-fhoist-adjacent-loads]): Likewise.
38410 ([-fisolate-erroneous-paths-dereference]): Likewise.
38411 ([-fisolate-erroneous-paths-attribute]): Likewise.
38412 ([-ftree-switch-conversion]): Likewise.
38413 ([-ftree-tail-merge]): Likewise.
38414 ([-ftree-loop-if-convert]): Likewise.
38415 ([-ftree-loop-if-convert-stores]): Likewise.
38416 ([-ftree-loop-distribution]): Likewise.
38417 ([-ftree-loop-distribute-patterns]): Likewise.
38418 ([-flto-compression-level]): Likewise.
38419 ([-flto-report]): Likewise.
38420 ([-flto-report-wpa]): Likewise.
38421 ([-fuse-linker-plugin]): Likewise.
38422 ([-mfix-cortex-a53-835769]): Likewise.
38423 ([-mno-fix-cortex-a53-835769]): Likewise.
38424 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38425 explicit listing; add a note to the discussion indicating they
38426 exist. Reorder table to group similar options. Add missing
38427 @opindex entries. Add @need commands throughout the table to
38428 allow it to be split across multiple pages.
38429 ([-m8bit-idiv]): Fix @opindex.
38430 ([-mavx256-split-unaligned-load]): Likewise.
38431 ([-mavx256-split-unaligned-store]): Likewise.
38432 ([-mstack-protector-guard]): Likewise.
38433 ([-mcpu=]): Likewise.
38434 ([-mcpu]): Likewise.
38435 ([-mpointer-size=]): Likewise.
38436
38437 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38438
38439 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38440 instead of `m' constraint. Likewise for unnamed movb comparison
38441 patterns using reg_before_reload_operand predicate.
38442 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38443 predicate to reject register index and LO_SUM DLT memory forms
38444 after reload.
38445
38446 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38447
38448 * doc/invoke.texi (Option Summary): Fix spelling of
38449 -fdevirtualize-at-ltrans.
38450 ([-fdevirtualize]): Fix markup.
38451 ([-fdevirtualize-speculatively]): Fix typo.
38452 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38453 implementor-speaky.
38454 * common.opt (fdevirtualize-at-ltrans): Likewise.
38455 * ipa-devirt.c: Fix typos in comments throughout the file.
38456 (ipa_devirt): Fix typos in format strings for dump output.
38457
38458 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38459
38460 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38461 discussion of defaults, light copy-editing.
38462
38463 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38464
38465 * tsan.c (instrument_expr): corrected previous checkin.
38466
38467 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38468
38469 Instrument bit field and unaligned accesses for TSAN.
38470 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38471 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38472 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38473 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38474 unaligned memory regions.
38475
38476 2015-01-01 Anthony Green <green@moxielogic.com>
38477
38478 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38479 Restrict move source register offsets to 16 bits.
38480 \f
38481 Copyright (C) 2015 Free Software Foundation, Inc.
38482
38483 Copying and distribution of this file, with or without modification,
38484 are permitted in any medium without royalty provided the copyright
38485 notice and this notice are preserved.