]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
expr.c (do_store_flag): Expand vector comparison as VEC_COND_EXPR if...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2
3 * expr.c (do_store_flag): Expand vector comparison as
4 VEC_COND_EXPR if vector comparison is not supported
5 by target.
6
7 2015-11-12 Renlin Li <renlin.li@arm.com>
8
9 * config/arm/arm.md (addsi3_compare_op2): Make the order of
10 assembly pattern consistent with constraint order.
11
12 2015-11-12 Tom de Vries <tom@codesourcery.com>
13
14 * gen-pass-instances.awk (handle_line): Simplify match regexp.
15
16 2015-11-12 Tom de Vries <tom@codesourcery.com>
17
18 * gen-pass-instances.awk (handle_line): Simplify init of
19 postfix_starts_at.
20
21 2015-11-12 Tom de Vries <tom@codesourcery.com>
22
23 * gen-pass-instances.awk (handle_line): Rename var where to
24 call_starts_at.
25
26 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
27
28 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
29 do not expand to rtl.
30
31 2015-11-12 Richard Biener <rguenther@suse.de>
32
33 PR tree-optimization/58497
34 * tree-vect-generic.c: Include gimplify.h.
35 (tree_vec_extract): Lookup constant/constructor DEFs.
36 (do_cond): Unshare cond.
37
38 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
39
40 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
41 combined insn if the alignment of vector mode memory operand
42 is less than ssememalign.
43
44 2015-11-12 Tom de Vries <tom@codesourcery.com>
45
46 * gen-pass-instances.awk (handle_line): Print parentheses and
47 pass_name explicitly.
48
49 2015-11-12 Tom de Vries <tom@codesourcery.com>
50
51 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
52 and postfix vars.
53
54 2015-11-12 Tom de Vries <tom@codesourcery.com>
55
56 * gen-pass-instances.awk (handle_line): Add comments.
57
58 2015-11-12 Tom de Vries <tom@codesourcery.com>
59
60 * gen-pass-instances.awk (handle_line): Rename len_of_end to
61 len_of_close.
62
63 2015-11-12 Tom de Vries <tom@codesourcery.com>
64
65 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
66
67 2015-11-12 Tom de Vries <tom@codesourcery.com>
68
69 * gen-pass-instances.awk (handle_line): Restructure using early-out.
70
71 2015-11-12 Tom de Vries <tom@codesourcery.com>
72
73 * gen-pass-instances.awk (handle_line): Unify semicolon use.
74
75 2015-11-12 Tom de Vries <tom@codesourcery.com>
76
77 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
78
79 2015-11-12 Tom de Vries <tom@codesourcery.com>
80
81 * gen-pass-instances.awk: Add emacs indent setting.
82
83 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
84
85 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
86 to match.pd.
87 Move Convert A/(B/C) to (A/B)*C to match.pd.
88 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
89 Move Optimize (X & (-A)) / A where A is a power of 2, to
90 X >> log2(A) to match.pd.
91
92 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
93 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
94 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
95 New simplifier.
96 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
97
98 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
99
100 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
101 variable.
102 (neon_vst2_lane<mode>): Likewise.
103 (neon_vld3_lane<mode>): Likewise.
104 (neon_vst3_lane<mode>): Likewise.
105 (neon_vld4_lane<mode>): Likewise.
106 (neon_vst4_lane<mode>): Likewise.
107
108 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
109 Sebastian Pop <s.pop@samsung.com>
110
111 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
112 New member codegen_error
113 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
114 early return.
115 (translate_isl_ast_node_user): Early return in case of error.
116 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
117 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
118 (add_parameters_to_ivs_params): Remove macro.
119 (graphite_regenerate_ast_isl): Add if_region pointer to region.
120 * graphite-poly.c (new_poly_dr): Remove macro.
121 (print_pdr): Same.
122 (new_gimple_poly_bb): Same.
123 (free_gimple_poly_bb): Same.
124 (print_scop_params): Same.
125 * graphite-poly.h (struct poly_dr): Same.
126 (struct poly_bb): Add new_bb.
127 (gbb_from_bb): Remove dead code.
128 (pbb_from_bb): Same.
129 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
130 (parameter_index_in_region): Same.
131 (find_scop_parameters): Same.
132 (build_cross_bb_scalars_def): New.
133 (build_cross_bb_scalars_use): New.
134 (graphite_find_cross_bb_scalar_vars): New
135 (try_generate_gimple_bb): Reads and Writes.
136 (build_alias_set): Move.
137 (gather_bbs::before_dom_children): Gather bbs visited.
138 (build_scops): call build_alias_set.
139 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
140 (remove_simple_copy_phi): Delete.
141 (remove_invariant_phi): Delete.
142 (simple_copy_phi_p): Delete.
143 (reduction_phi_p): Delete.
144 (isl_id_for_dr): Remove unused param.
145 (parameter_index_in_region_1): Remove macro usage.
146 (set_scop_parameter_dim): Same.
147 (add_param_constraints): Same.
148 (add_conditions_to_constraints): Same
149 (build_scop_iteration_domain): Same.
150 (pdr_add_alias_set): Comment.
151 (add_scalar_version_numbers): New.
152 (build_poly_dr): ISL id.
153 (build_scop_drs): Move.
154 (build_poly_sr_1): Same.
155 (insert_stmts): Remove.
156 (build_poly_sr): New.
157 (new_pbb_from_pbb): Delete.
158 (insert_out_of_ssa_copy_on_edge): Delete.
159 (create_zero_dim_array): Delete.
160 (scalar_close_phi_node_p): Delete.
161 (propagate_expr_outside_region): Delete.
162 (rewrite_close_phi_out_of_ssa): Delete.
163 (rewrite_phi_out_of_ssa): Delete.
164 (rewrite_degenerate_phi): Delete.
165 (rewrite_reductions_out_of_ssa): Delete.
166 (rewrite_cross_bb_scalar_dependence): Delete.
167 (handle_scalar_deps_crossing_scop_limits):
168 (rewrite_cross_bb_scalar_deps): Delete.
169 (build_poly_scop): Remove calls to out-of-ssa functions.
170 * graphite.c (graphite_transform_loops): Early return in case of
171 codegen error.
172 * sese.c (debug_rename_map_1): Delete.
173 (debug_rename_map): Delete.
174 (sese_record_loop): Remove macro.
175 (build_sese_loop_nests): Same.
176 (new_sese_info): Same.
177 (free_sese_info): Same.
178 (sese_insert_phis_for_liveouts):
179 (is_loop_closed_ssa_use): New.
180 (number_of_phi_nodes): New.
181 (bb_contains_loop_close_phi_nodes): New.
182 (bb_contains_loop_phi_nodes): New.
183 (phi_uses_name): New.
184 (is_valid_rename):
185 (get_rename): Add old_bb and loop_phi for more precise matching of
186 exprs.
187 (set_rename): Pass region.
188 (later_of_the_two): New.
189 (gsi_insert_earliest): New.
190 (collect_all_ssa_names): New.
191 (substitute_ssa_name): New.
192 (rename_all_uses): New.
193 (get_rename_from_scev): New.
194 (rename_uses): Pass old_bb for more precise matching of exprs.
195 (get_def_bb_for_const): New.
196 (get_new_name): New.
197 (get_loc): New.
198 (get_edges): New.
199 (copy_loop_phi_args): New.
200 (copy_loop_phi_nodes): New.
201 (get_loop_init_value): New.
202 (find_init_value): New.
203 (find_init_value_close_phi): New.
204 (copy_loop_close_phi_args): New.
205 (copy_loop_close_phi_nodes): New.
206 (add_phi_arg_for_new_expr): New.
207 (copy_cond_phi_args): New.
208 (copy_cond_phi_nodes): New.
209 (copy_phi_nodes): New.
210 (should_copy_to_new_region): New.
211 (set_rename_for_each_def): New.
212 (graphite_copy_stmts_from_block): Early return in case of error.
213 (copy_bb_and_scalar_dependences): Same.
214 * sese.h (vec_find): New.
215 (SESE_PARAMS): Delete.
216 (SESE_LOOPS): Delete.
217 (SESE_LOOP_NEST): Delete.
218 (sese_contains_loop): Remove macro usage.
219 (sese_nb_params): Same.
220 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
221
222 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
223
224 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
225 isl_union_map_add_map on every pbb->schedule.
226
227 2015-11-11 Tom de Vries <tom@codesourcery.com>
228
229 * tree-parloops.c (create_parallel_loop): Return void.
230
231 2015-11-11 Tom de Vries <tom@codesourcery.com>
232
233 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
234 block only when needed.
235
236 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
237
238 * config/alpha/alpha-protos.h (print_operand): Remove.
239 (print_operand_address): Remove.
240 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
241 (PRINT_OPERAND_ADDRESS): Remove.
242 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
243 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
244 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
245 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
246 (print_operand_address): Rename to...
247 (alpha_print_operand_address): ...this and make static.
248 (print_operand): Rename to...
249 (alpha_print_operand): ...this and make static.
250 (alpha_print_operand_punct_valid_p): New static function.
251
252 2015-11-11 Richard Biener <rguenther@suse.de>
253
254 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
255 Declare.
256 (vect_analyze_data_refs_alignment): Make loop vect specific.
257 (vect_verify_datarefs_alignment): Likewise.
258 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
259 Add missing continue.
260 (vect_compute_data_ref_alignment): Export.
261 (vect_compute_data_refs_alignment): Merge into...
262 (vect_analyze_data_refs_alignment): ... this.
263 (verify_data_ref_alignment): Split out from ...
264 (vect_verify_datarefs_alignment): ... here.
265 (vect_slp_analyze_and_verify_node_alignment): New function.
266 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
267 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
268 misplaced checks on alignment.
269 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
270 alignment analysis after SLP discovery and do it per instance.
271 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
272 bother to re-try using different vector sizes.
273
274 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
275 Cesar Philippidis <cesar@codesourcery.com>
276
277 * gcc/gimplify.c (enum omp_region_type): Add ORT_ACC,
278 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
279 (gimple_add_tmp_var): Add ORT_ACC checks.
280 (gimplify_var_or_parm_decl): Likewise.
281 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
282 mask.
283 (omp_add_variable): Look in outer contexts for openacc and allow
284 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
285 checks.
286 (omp_notice_variable, omp_is_private, omp_check_private): Add
287 ORT_ACC checks.
288 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
289 Permit private openacc reductions.
290 (gimplify_oacc_cache): Specify ORT_ACC.
291 (gimplify_omp_workshare): Adjust OpenACC region types.
292 (gimplify_omp_target_update): Likewise.
293 * gcc/omp-low.c (scan_sharing_clauses): Remove Openacc
294 firstprivate sorry.
295 (lower-rec_input_clauses): Don't handle openacc firstprivate
296 references here.
297 (lower_omp_target): Emit initializers for openacc firstprivate vars.
298
299 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
300
301 PR target/67265
302 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
303 frame pointer for stack checking if non-call exceptions aren't used.
304 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
305
306 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
307
308 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
309 [LA]SHIFTRT.
310
311 2015-11-11 Martin Liska <mliska@suse.cz>
312 Richard Biener <rguenther@suse.de>
313
314 PR rtl-optimization/68287
315 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
316 number of elements.
317
318 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
319
320 * config/mips/mips.c (mips_breakable_sequence_p): New function.
321 (mips_break_sequence): New function.
322 (mips_reorg_process_insns): Use them. Use compact branches in selected
323 situations.
324
325 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
326
327 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
328
329 2015-11-11 Jiong Wang <jiong.wang@arm.com>
330 Jim Wilson <wilson@gcc.gnu.org>
331
332 PR target/67305
333 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
334 be true and eliminable registers mentioned.
335
336 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
337
338 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
339 options.
340 * config/arc/arc-opts.h: Add ARCv2 CPUs.
341 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
342 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
343 situation, and store instructions with large offsets.
344 (arc_secondary_reload_conv): New function.
345 (arc_init): Add ARCv2 options.
346 (arc_conditional_register_usage): Select the proper register usage
347 for ARCv2 processors.
348 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
349 architecture.
350 (arc_compute_function_type): Likewise.
351 (arc_print_operand): Handle new ARCv2 punctuation characters.
352 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
353 bytes.
354 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
355 function.
356 (arc_reorg, arc_hazard): Use it.
357 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
358 __EM__.
359 (ASM_SPEC): Add ARCv2 options.
360 (TARGET_NORM): ARC HS has norm instructions by default.
361 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
362 HS.
363 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
364 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
365 Define.
366 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
367 Likewise.
368 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
369 (TARGET_LP_WR_INTERLOCK): Likewise.
370 * config/arc/arc.md
371 (commutative_binary_mult_comparison_result_used, movsicc_insn)
372 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
373 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
374 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
375 Use it for ARCv2.
376 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
377 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
378 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
379 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
380 (extzvsi): New pattern.
381 * config/arc/arc.opt: New ARCv2 options.
382 * config/arc/arcEM.md: New file.
383 * config/arc/arcHS.md: Likewise.
384 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
385 values.
386 (Cm2): A signed 9-bit integer constant constraint.
387 (C62): An unsigned 6-bit integer constant constraint.
388 (C16): A signed 16-bit integer constant constraint.
389 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
390 (short_const_int_operand): New predicate.
391 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
392 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
393 -mcode-density and -mdiv-rem.
394
395 2015-11-11 Julia Koval <julia.koval@intel.com>
396
397 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
398
399 2015-11-11 Julia Koval <julia.koval@intel.com>
400
401 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
402
403 2015-11-11 Martin Liska <mliska@suse.cz>
404
405 * gimple-ssa-strength-reduction.c (create_phi_basis):
406 Use auto_vec.
407 * passes.c (release_dump_file_name): New function.
408 (pass_init_dump_file): Used from this function.
409 (pass_fini_dump_file): Likewise.
410 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
411 * var-tracking.c (vt_initialize): Use pool_allocator.
412
413 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
414 Jiong Wang <jiong.wang@arm.com>
415
416 PR tree-optimization/68234
417 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
418 node which estimiated to be VR_VARYING initially.
419
420 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
421
422 * regname.c (scan_rtx_reg): Check the matching number of consecutive
423 registers when tying chains.
424 (build_def_use): Move terminated_this_insn earlier in the function.
425
426 2015-11-10 Mike Frysinger <vapier@gentoo.org>
427
428 * configure.ac: Use = with test and not ==.
429 * configure: Regenerated.
430
431 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
432
433 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
434 machine asserts. Update defines for 64 bit.
435
436 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
437
438 PR target/63870
439 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
440 lane number.
441 (neon_vst1_lane<mode>): Likewise.
442 (neon_vld2_lane<mode>): Likewise.
443 (neon_vst2_lane<mode>): Likewise.
444 (neon_vld3_lane<mode>): Likewise.
445 (neon_vst3_lane<mode>): Likewise.
446 (neon_vld4_lane<mode>): Likewise.
447 (neon_vst4_lane<mode>): Likewise.
448
449 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
450
451 PR target/63870
452 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
453 qualifier_struct_load_store_lane_index.
454 (arm_storestruct_lane_qualifiers) Likewise.
455 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
456 big-endian.
457 (neon_vst1_lane<mode>) Likewise.
458 (neon_vld2_lane<mode>) Likewise.
459 (neon_vst2_lane<mode>) Likewise.
460 (neon_vld3_lane<mode>) Likewise.
461 (neon_vst3_lane<mode>) Likewise.
462 (neon_vld4_lane<mode>) Likewise.
463 (neon_vst4_lane<mode>) Likewise.
464
465 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
466
467 PR target/63870
468 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
469 qualifier_struct_load_store_lane_index.
470 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
471 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
472 argument qualifiers.
473 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
474 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
475
476 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
477
478 * config/nvptx/nvptx.opt (moptimize): New flag.
479 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
480 default.
481 (nvptx_optimize_inner): New.
482 (nvptx_process_pars): Call it when optimizing.
483 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
484
485 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
486
487 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
488 Remove redundant code.
489
490 2015-11-10 Jeff Law <law@redhat.com>
491
492 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
493 call to output_address.
494 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
495 Add unnamed machine_mode argument.
496
497 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
498
499 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
500 default to 64-bit.
501
502 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
503
504 * config/i386/i386.md (*movabs<mode>_1): Add explicit
505 size directives for -masm=intel.
506 (*movabs<mode>_2): Ditto.
507
508 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
509
510 * config/i386/i386.c (ix86_print_operand): Remove dead code that
511 tried to avoid (%rip) for call operands.
512
513 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
514
515 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
516 argument. Do not use RIP relative addressing when no_rip is set.
517 (ix86_print_operand): Update call to ix86_print_operand_address_as.
518 (ix86_print_operand_address): Ditto.
519 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
520 absolute movabs operand 0. Add square braces for -masm=intel.
521 (*movabs<mode>_2): Ditto for operand 1.
522
523 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
524
525 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
526 combine_vcvtf2i pattern.
527
528 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
529
530 * config/arm/arm.c (neon_valid_immediate): Remove integer
531 CONST_DOUBLE handling. It should never occur.
532
533 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
534
535 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
536 (ATOMIC_LDOP): Likewise.
537 (atomic_ldop): Likewise.
538 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
539 (ATOMIC_LDOP): Likewise.
540 (atomic_ldop): Likewise.
541
542 2015-11-10 Martin Liska <mliska@suse.cz>
543
544 * alloc-pool.h (allocate_raw): New function.
545 (operator new (size_t, object_allocator<T> &a)): Use the
546 function instead of object_allocator::allocate).
547
548 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
549
550 * config/i386/sse.md (HALFMASKMODE): New attribute.
551 (DOUBLEMASKMODE): New attribute.
552 (vec_pack_trunc_qi): New.
553 (vec_pack_trunc_<mode>): New.
554 (vec_unpacks_lo_hi): New.
555 (vec_unpacks_lo_si): New.
556 (vec_unpacks_lo_di): New.
557 (vec_unpacks_hi_hi): New.
558 (vec_unpacks_hi_<mode>): New.
559
560 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
561
562 * optabs.c (expand_binop_directly): Allow scalar mode for
563 vec_pack_trunc_optab.
564 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
565 boolean vector producers from pattern sequence when computing VF.
566 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
567 vect_recog_mask_conversion_pattern.
568 (search_type_for_mask): Choose the smallest
569 type if different size types are mixed.
570 (build_mask_conversion): New.
571 (vect_recog_mask_conversion_pattern): New.
572 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
573 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
574 load with pattern.
575 (vectorizable_conversion): Support boolean vectors.
576 (free_stmt_vec_info): Allow patterns for statements with no lhs.
577 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
578
579 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
580
581 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
582 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
583 Cast mask to FP mode if required.
584 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
585 (vcond_mask_<mode><avx512fmaskmodelower>): New.
586 (vcond_mask_<mode><sseintvecmodelower>): New.
587 (vcond_mask_<mode><sseintvecmodelower>): New.
588 (vcond_mask_v2div2di): New.
589 (vcond_mask_<mode><sseintvecmodelower>): New.
590 (vcond_mask_<mode><sseintvecmodelower>): New.
591
592 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
593
594 * optabs-query.h (get_vcond_mask_icode): New.
595 * optabs-tree.c (expand_vec_cond_expr_p): Use
596 get_vcond_mask_icode for VEC_COND_EXPR with mask.
597 * optabs.c (expand_vec_cond_mask_expr): New.
598 (expand_vec_cond_expr): Use get_vcond_mask_icode
599 when possible.
600 * optabs.def (vcond_mask_optab): New.
601 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
602 generate redundant comparison for COND_EXPR.
603 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
604 as a condition.
605 (vectorizable_condition): Likewise.
606 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
607 cond_exp with no embedded comparison.
608 (vect_build_slp_tree_1): Likewise.
609
610 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
611
612 * config/i386/sse.md (maskload<mode>): Rename to ...
613 (maskload<mode><sseintvecmodelower>): ... this.
614 (maskstore<mode>): Rename to ...
615 (maskstore<mode><sseintvecmodelower>): ... this.
616 (maskload<mode><avx512fmaskmodelower>): New.
617 (maskstore<mode><avx512fmaskmodelower>): New.
618
619 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
620
621 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
622 (expand_MASK_STORE): Adjust to maskstore optab changes.
623 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
624 Adjust to maskload, maskstore optab changes.
625 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
626 * optabs.def (maskload_optab): Transform into convert optab.
627 (maskstore_optab): Likewise.
628 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
629 can_vec_mask_load_store_p signature change.
630 (predicate_mem_writes): Use boolean mask.
631 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
632 can_vec_mask_load_store_p signature change. Allow invariant masks.
633 (vectorizable_operation): Ignore type precision for boolean vectors.
634
635 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
636
637 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
638 (const_vector_mask_from_tree): New.
639 (const_vector_from_tree): Use const_vector_mask_from_tree
640 for boolean vectors.
641 * optabs-query.h (get_vec_cmp_icode): New.
642 * optabs-tree.c (expand_vec_cmp_expr_p): New.
643 * optabs-tree.h (expand_vec_cmp_expr_p): New.
644 * optabs.c (vector_compare_rtx): Add OPNO arg.
645 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
646 (expand_vec_cmp_expr): New.
647 * optabs.def (vec_cmp_optab): New.
648 (vec_cmpu_optab): New.
649 * optabs.h (expand_vec_cmp_expr): New.
650 * tree-vect-generic.c (expand_vector_comparison): Add vector
651 comparison optabs check.
652 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
653 operations for VF. Add mask type computation.
654 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
655 (vectorizable_comparison): New.
656 (vect_analyze_stmt): Add vectorizable_comparison.
657 (vect_transform_stmt): Likewise.
658 (vect_init_vector): Support boolean vector invariants.
659 (vect_get_vec_def_for_operand): Add VECTYPE arg.
660 (vectorizable_condition): Directly provide vectype for invariants
661 used in comparison.
662 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
663 (enum vect_var_kind): Add vect_mask_var.
664 (enum stmt_vec_info_type): Add comparison_vec_info_type.
665 (vectorizable_comparison): New.
666 (vect_get_vec_def_for_operand): Add VECTYPE arg.
667 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
668 (vect_create_destination_var): Likewise.
669 * tree-vect-patterns.c (check_bool_pattern): Check fails
670 if we can vectorize comparison directly.
671 (search_type_for_mask): New.
672 (vect_recog_bool_pattern): Support cases when bool pattern
673 check fails.
674 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
675 comparison statements.
676 (vect_get_constant_vectors): Support boolean vector
677 constants.
678 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
679 (ix86_expand_int_vec_cmp): New.
680 (ix86_expand_fp_vec_cmp): New.
681 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
682 op_true and op_false.
683 (ix86_int_cmp_code_to_pcmp_immediate): New.
684 (ix86_fp_cmp_code_to_pcmp_immediate): New.
685 (ix86_cmp_code_to_pcmp_immediate): New.
686 (ix86_expand_mask_vec_cmp): New.
687 (ix86_expand_fp_vec_cmp): New.
688 (ix86_expand_int_sse_cmp): New.
689 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
690 (ix86_expand_int_vec_cmp): New.
691 (ix86_get_mask_mode): New.
692 (TARGET_VECTORIZE_GET_MASK_MODE): New.
693 * config/i386/sse.md (avx512fmaskmodelower): New.
694 (vec_cmp<mode><avx512fmaskmodelower>): New.
695 (vec_cmp<mode><sseintvecmodelower>): New.
696 (vec_cmpv2div2di): New.
697 (vec_cmpu<mode><avx512fmaskmodelower>): New.
698 (vec_cmpu<mode><sseintvecmodelower>): New.
699 (vec_cmpuv2div2di): New.
700
701 2015-11-10 Richard Biener <rguenther@suse.de>
702
703 PR tree-optimization/68240
704 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
705 properly.
706 (visit_phi): For PHIs with just a single executable edge
707 take its value directly.
708 (expressions_equal_p): Handle VN_TOP properly.
709
710 2015-11-10 Richard Biener <rguenther@suse.de>
711
712 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
713 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
714 conservatively.
715
716 2015-11-10 Richard Biener <rguenther@suse.de>
717
718 PR tree-optimization/56118
719 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
720 cost favor vectorized version.
721
722 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
723
724 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
725 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
726 (neg_not_op): New code attribute.
727
728 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
729
730 * ifcvt.c (noce_try_inverse_constants): New function.
731 (noce_process_if_block): Call it.
732 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
733 * optabs.def (negcc_optab, notcc_optab): Declare.
734 * optabs.c (emit_conditional_neg_or_complement): New function.
735 * doc/tm.texi (Standard Names): Document negcc, notcc names.
736
737 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
738
739 PR rtl-optimization/68236
740 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
741 if insn_queue doesn't exist.
742 (haifa_sched_finish): Reset insn_queue to NULL.
743
744 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
745
746 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
747 (build_def_use): Initialize terminated_this_insn.
748 (find_best_rename_reg): Pick and check register from the tied chain.
749 (regrename_do_replace): Mark head as renamed.
750 (struct du_head *terminated_this_insn). New static variable.
751 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
752 * regrename.h (struct du_head): Add tied_chain, renamed members.
753
754 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
755
756 PR bootstrap/68256
757 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
758 Return false.
759
760 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
761
762 PR target/57845
763 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
764 not promote the mode for aggregate types.
765
766 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
767
768 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
769 * omp-low.c (build_oacc_routine_dims): New.
770
771 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
772
773 * config/rs6000/constraints.md (wF constraint): New constraints
774 for power9/toc fusion.
775 (wG constraint): Likewise.
776
777 * config/rs6000/predicates.md (u6bit_cint_operand): New
778 predicate, recognize 0..63.
779 (upper16_cint_operand): New predicate for power9 and toc fusion.
780 (fpr_reg_operand): Likewise.
781 (toc_fusion_or_p9_reg_operand): Likewise.
782 (toc_fusion_mem_raw): Likewise.
783 (toc_fusion_mem_wrapped): Likewise.
784 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
785 address range.
786 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
787 instead.
788 (fusion_addis_mem_combo_load): Add support for power9 fusion of
789 floating point loads, floating point stores, and gpr stores.
790 (fusion_addis_mem_combo_store): Likewise.
791 (fusion_offsettable_mem_operand): Likewise.
792
793 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
794 declarations.
795 (emit_fusion_load_store): Likewise.
796 (fusion_p9_p): Likewise.
797 (expand_fusion_p9_load): Likewise.
798 (expand_fusion_p9_store): Likewise.
799 (emit_fusion_p9_load): Likewise.
800 (emit_fusion_p9_store): Likewise.
801 (fusion_wrap_memory_address): Likewise.
802
803 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
804 elements for power9 fusion.
805 (rs6000_debug_print_mode): Rework debug information to print more
806 information about fusion.
807 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
808 support.
809 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
810 offsettable memory address.
811 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
812 (emit_fusion_gpr_load): Move most of the code from
813 emit_fusion_gpr_load into emit_fusion-addis that handles both
814 power8 and power9 fusion.
815 (emit_fusion_addis): Likewise.
816 (emit_fusion_load_store): Likewise.
817 (fusion_wrap_memory_address): Add support for TOC fusion.
818 (fusion_split_address): Likewise.
819 (fusion_p9_p): Add support for power9 fusion.
820 (expand_fusion_p9_load): Likewise.
821 (expand_fusion_p9_store): Likewise.
822 (emit_fusion_p9_load): Likewise.
823 (emit_fusion_p9_store): Likewise.
824
825 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
826 new instructions in ISA 3.0.
827 (TARGET_CTZ): Likewise.
828 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
829 (TARGET_TOC_FUSION_FP): Likewise.
830
831 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
832 fusion unspecs.
833 (UNSPEC_FUSION_ADDIS): Likewise.
834 (QHSI mode iterator): New iterator for power9 fusion.
835 (GPR_FUSION): Likewise.
836 (FPR_FUSION): Likewise.
837 (mod<mode>3): Add support for ISA 3.0
838 modulus instructions.
839 (umod<mode>3): Likewise.
840 (divmod peephole): Likewise.
841 (udivmod peephole): Likewise.
842 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
843 instructions.
844 (ctz<mode>2_h): Likewise.
845 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
846 (ashdi3_extswsli_dot): Likewise.
847 (ashdi3_extswsli_dot2): Likewise.
848 (power9 fusion splitter): New power9/toc fusion support.
849 (toc_fusionload_<mode>): Likewise.
850 (toc_fusionload_di): Likewise.
851 (fusion_gpr_load_<mode>): Update predicate function.
852 (power9 fusion peephole2s): New power9/toc fusion support.
853 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
854 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
855 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
856 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
857 (fusion_p9_<mode>_constant): Likewise.
858
859 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
860
861 * optabs.c (prepare_libcall_arg): New function.
862 (expand_fixed_convert): Add call to prepare_libcall_arg.
863
864 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
865
866 * sched-int.h (dump_rgn_dependencies_dot): Declare
867 * sched-rgn.c (dump_rgn_dependencies_dot): New function
868 * print-rtl.h (print_insn): Add prototype
869
870 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
871 * common.opt (-fsched-verbose): Set default value to 1.
872 * invoke.texi (-fsched-verbose): Update the option's description.
873
874 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
875
876 * config/visium/visium.h (PRINT_OPERAND): Delete.
877 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
878 (PRINT_OPERAND_ADDRESS): Likewise.
879 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
880 to...
881 (visium_print_operand_punct_valid_p): ...this. New function.
882 (TARGET_PRINT_OPERAND): Define to...
883 (print_operand): Rename to...
884 (visium_print_operand): ...this.
885 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
886 (visium_output_address): Rename to...
887 (visium_print_operand_address): ...this.
888 (print_operand_address): Delete.
889
890 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
891
892 PR middle-end/68259
893 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
894 Check that the type of the first operand is an aggregate type.
895
896 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
897
898 * omp-low.c: Fix some OpenACC comment typos.
899 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
900 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
901 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
902
903 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
904
905 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
906
907 2015-11-09 Jeff Law <law@redhat.com>
908
909 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
910 being in gimple/ssa form. Remove redundant check for SSA_NAME.
911 Fix comment typo.
912
913 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
914 Peter Bergner <bergner@vnet.ibm.com>
915
916 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
917 ISA 3.0 (power9).
918 (-mpower9-vector): Likewise.
919 (-mpower9-dform): Likewise.
920 (-mpower9-minmax): Likewise.
921 (-mtoc-fusion): Likewise.
922 (-mmodulo): Likewise.
923 (-mfloat128-hardware): Likewise.
924
925 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
926 mask for ISA 3.0 (power9).
927 (POWERPC_MASKS): Add new ISA 3.0 switches.
928 (power9 cpu): Add power9 cpu.
929
930 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
931 power9.
932 (ASM_CPU_SPEC): Likewise.
933 (EXTRA_SPECS): Likewise.
934
935 * config/rs6000/rs6000-opts.h (enum processor_type): Add
936 PROCESSOR_POWER9.
937
938 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
939 power9.
940 (rs6000_debug_reg_global): Add support for power9 fusion.
941 (rs6000_setup_reg_addr_masks): Cache mode size.
942 (rs6000_option_override_internal): Until real power9 tuning is
943 added, use -mtune=power8 for -mcpu=power9.
944 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
945 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
946 of Altivec registers.
947 (rs6000_option_override_internal): Add support for ISA 3.0
948 switches.
949 (rs6000_loop_align): Add support for power9 cpu.
950 (rs6000_file_start): Likewise.
951 (rs6000_adjust_cost): Likewise.
952 (rs6000_issue_rate): Likewise.
953 (insn_must_be_first_in_group): Likewise.
954 (insn_must_be_last_in_group): Likewise.
955 (force_new_group): Likewise.
956 (rs6000_register_move_cost): Likewise.
957 (rs6000_opt_masks): Likewise.
958
959 * config/rs6000/rs6000.md (cpu attribute): Add power9.
960 * config/rs6000/rs6000-tables.opt: Regenerate.
961
962 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
963 _ARCH_PWR9 if power9 support is available.
964
965 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
966 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
967
968 * configure.ac: Determine if the assembler supports the ISA 3.0
969 instructions.
970 * config.in (HAVE_AS_POWER9): Likewise.
971 * configure: Regenerate.
972
973 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
974 switches.
975
976 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
977
978 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
979 Remove integer CONST_DOUBLE handling. It should never occur.
980
981 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
982
983 PR target/68129
984 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
985 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
986 Delete VOIDmode case. Assert that mode is not VOIDmode.
987 * config/aarch64/predicates.md (const0_operand): Remove const_double
988 match.
989
990 2015-11-09 Martin Liska <mliska@suse.cz>
991
992 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
993 body_info release function.
994 * ipa-prop.c (ipa_release_body_info): New function.
995 (ipa_analyze_node): Call the function.
996 (ipa_node_params::~ipa_node_params): Release known_csts.
997 * ipa-prop.h (ipa_release_body_info): Declare.
998
999 2015-11-09 Martin Liska <mliska@suse.cz>
1000
1001 * gcc.c (record_temp_file): Release name string.
1002 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1003 of vec.
1004 * lra-lives.c (free_live_range_list): Utilize
1005 lra_live_range_pool for allocation and deallocation.
1006 (create_live_range): Likewise.
1007 (copy_live_range): Likewise.
1008 (lra_merge_live_ranges): Likewise.
1009 (remove_some_program_points_and_update_live_ranges): Likewise.
1010 (lra_create_live_ranges_1): Release point_freq_vec that can
1011 be not freed from previous iteration of the function.
1012 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1013 vec.
1014 * tree-sra.c (sra_deinitialize): Release all vectors in
1015 base_access_vec.
1016 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1017 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1018 Release edge_info for a removed edge.
1019 (thread_through_all_blocks): Free region vector.
1020 * tree-ssa.h (free_dom_edge_info): Declare function extern.
1021
1022 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
1023
1024 * optabs.c (expand_vec_cond_expr): Always get sign from type.
1025 * tree.c (wide_int_to_tree): Support negative values for boolean.
1026 (build_nonstandard_boolean_type): Use signed type for booleans.
1027
1028 2015-11-09 Richard Biener <rguenther@suse.de>
1029
1030 PR tree-optimization/68248
1031 * tree-vect-generic.c (expand_vector_operations_1): Handle
1032 scalar rhs2.
1033
1034 2015-11-09 Richard Biener <rguenther@suse.de>
1035
1036 PR tree-optimization/56118
1037 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1038 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1039 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1040 function.
1041 (vect_slp_analyze_data_ref_dependences): Instead of computing
1042 all dependences of the region DRs just analyze the code motions
1043 SLP vectorization will perform. Remove SLP instances that
1044 cannot have their store/load motions applied.
1045 (vect_analyze_data_refs): Allow DRs without a vectype
1046 in BB vectorization.
1047
1048 2015-11-09 Julian Brown <julian@codesourcery.com>
1049
1050 * final.c (output_asm_insn): Pass VOIDmode to output_address.
1051 (output_address): Add MODE argument. Pass to print_operand_address
1052 hook.
1053 * targhooks.c (default_print_operand_address): Add MODE argument.
1054 * targhooks.h (default_print_operand_address): Update prototype.
1055 * output.h (output_address): Update prototype.
1056 * target.def (print_operand_address): Add MODE argument.
1057 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1058 output_address.
1059 (print_operand): Pass access mode to output_address.
1060 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1061 argument.
1062 (mcore_print_operand): Update calls to mcore_print_operand_address.
1063 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1064 output_address.
1065 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1066 output_address.
1067 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1068 global.
1069 (tilegx_print_operand): Don't set above global. Update calls to
1070 output_address.
1071 (tilegx_print_operand_address): Add MODE argument. Use instead of
1072 output_memory_reference_mode global.
1073 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1074 (frv_print_operand): Pass mode to frv_print_operand_address calls.
1075 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1076 output_address.
1077 * config/cris/cris.c (cris_print_operand_address): Add MODE
1078 argument.
1079 (cris_print_operand): Pass mode to output_address calls.
1080 * config/spu/spu.c (print_operand): Pass mode to output_address
1081 calls.
1082 * config/aarch64/aarch64.h (aarch64_print_operand)
1083 (aarch64_print_operand_address): Remove prototypes.
1084 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1085 global.
1086 (aarch64_print_operand): Make static. Update calls to
1087 output_address.
1088 (aarch64_print_operand_address): Add MODE argument. Use instead of
1089 aarch64_memory_reference_mode global.
1090 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1091 hooks.
1092 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1093 Delete macro definitions.
1094 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1095 calls.
1096 * config/xtensa/xtensa.c (print_operand): Pass mode in
1097 output_address calls.
1098 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1099 argument.
1100 (h83000_print_operand): Update calls to h8300_print_operand_address
1101 and output_address.
1102 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1103 argument.
1104 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1105 global.
1106 (tilepro_print_operand): Pass mode to output_address.
1107 (tilepro_print_operand_address): Add MODE argument. Use instead of
1108 output_memory_reference_mode.
1109 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1110 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1111 to output_address calls.
1112 (nvptx_print_operand_address): Add MODE argument.
1113 * config/alpha/alpha.c (print_operand): Pass mode argument in
1114 output_address calls.
1115 * config/m68k/m68k.c (print_operand): Pass mode argument in
1116 output_address call.
1117 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1118 (avr_print_operand): Update calls to avr_print_operand_address.
1119 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1120 argument. Update calls to output_address.
1121 (sparc_print_operand): Pass mode to output_address.
1122 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1123 argument.
1124 (iq2000_print_operand): Pass mode in output_address calls.
1125 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1126 MODE argument.
1127 (xstormy16_print_operand): Pass mode to
1128 xstormy16_print_operand_address calls.
1129 * config/mips/mips.c (mips_print_operand): Update calls to
1130 output_address.
1131 (mips_print_operand_address): Add MODE argument.
1132 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1133 to output_address.
1134 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1135 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1136 output_address.
1137 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1138 (rx_print_operand): Update calls to output_address,
1139 rx_print_operand_address.
1140 * config/nds32/nds32.c (nds32_print_operand): Update calls to
1141 output_address.
1142 (nds32_print_operand_address): Add MODE argument.
1143 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1144 output_address calls.
1145 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1146 output_address call.
1147 (c6x_print_address_operand): Update calls to output_address.
1148 (c6x_print_operand_address): Pass mode to above.
1149 * config/v850/v850.c (v850_print_operand_address): Add MODE
1150 argument.
1151 (v850_print_operand): Pass mode to v850_print_operand_address,
1152 output_address.
1153 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1154 argument.
1155 (mmix_print_operand): Pass mode in output_address calls.
1156 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1157 (sh_print_operand): Pass mem mode to output_address,
1158 sh_print_operand_address.
1159 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1160 argument.
1161 (cr16_print_operand): Pass mode to output_address,
1162 cr16_print_operand_address.
1163 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1164 output_address.
1165 * config/microblaze/microblaze.c (print_operand): Pass mode to
1166 output_address.
1167 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1168 output_address.
1169 (nios2_print_operand_address): Add MODE argument. Update call to
1170 nios2_print_operand_address.
1171 * config/s390/s390.c (print_operand): Pass mode to output_address.
1172 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1173 argument.
1174 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1175 output_address.
1176 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1177 Use instead of output_memory_reference_mode.
1178 (output_memory_reference_mode): Delete global.
1179 (arm_print_operand): Pass mem mode to output_address.
1180 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1181 argument.
1182 (m32r_print_operand): Pass mode to output_address.
1183 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1184 argument.
1185 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1186 * config/i386/i386.c (ix86_print_operand): Pass mode to
1187 output_address calls.
1188 (ix86_print_operand_address): Add MODE argument.
1189
1190 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1191
1192 PR middle-end/68251
1193 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1194 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1195 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1196 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1197
1198 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1199
1200 PR rtl-optimization/67749
1201 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1202 case before emitting the two blocks. Instead modify the register
1203 in the corresponding final insn of the basic block.
1204
1205 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1206
1207 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1208 assembler syntax.
1209 Support Solaris ld.
1210 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1211
1212 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1213 HAVE_INITFINI_ARRAY_SUPPORT.
1214 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1215 value.
1216
1217 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1218 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1219 Don't check HAVE_AS_SPARC_NOBITS.
1220 Heed SECTION_NOTYPE.
1221
1222 * configure: Regenerate.
1223 * config.in: Regenerate.
1224
1225 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1226
1227 PR middle-end/68253
1228 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1229
1230 2015-11-09 Richard Henderson <rth@redhat.com>
1231
1232 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1233 __SEG_GS, __SEG_TLS.
1234 (ix86_register_pragmas): Register address spaces __seg_fs,
1235 __seg_gs, __seg_tls.
1236 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1237 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1238 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1239 * config/i386/i386.c (ix86_decompose_address): Likewise.
1240 (ix86_legitimate_address_p): Likewise.
1241 (memory_address_length): Likewise. Check mem address space too.
1242 (ix86_print_operand): Use ix86_print_operand_address_as.
1243 (ix86_print_operand_address_as): Rename from
1244 ix86_print_operand_address, add new addr_space_t parameter.
1245 Validate that either the parameter or the ix86_address segment
1246 is default address space. Handle ADDR_SPACE_SEG_TLS.
1247 (ix86_print_operand_address): New.
1248 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1249 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1250 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1251 (ix86_addr_space_zero_address_valid): New.
1252 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1253 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1254 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1255 * config/i386/predicates.md (address_no_seg_operand): Likewise.
1256 (vsib_address_operand): Likewise.
1257 (address_mpx_no_base_operand): Likewise.
1258 (address_mpx_no_index_operand): Likewise.
1259 * doc/extend.texi (x86 Named Address Spaces): New section.
1260
1261 * config/i386/i386.c (ix86_check_no_addr_space): New.
1262 (decide_alg): Add have_as parameter.
1263 (alg_usable_p): Likewise; disable rep algorithms if set.
1264 (ix86_expand_set_or_movmem): Notice if either MEM has a
1265 non-default address space.
1266 (ix86_expand_strlen): Likewise.
1267 * config/i386/i386.md (strmov, strset): Likewise.
1268 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1269 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1270 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1271 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1272 *cmpstrnqi_1, *strlenqi_1): Likewise.
1273
1274 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1275 (*movabs<mode>_2): Likewise.
1276
1277 * dwarf2out.c (modified_type_die): Pass the address space number
1278 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1279 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1280 * targhooks.c (default_addr_space_debug): New.
1281 * targhooks.h (default_addr_space_debug): Declare.
1282 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1283 * doc/tm.texi: Rebuild.
1284
1285 * gimple.c (check_loadstore): Return false when 0 is a valid address.
1286 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1287 null when 0 is valid in the source address space.
1288 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1289 * targhooks.c (default_addr_space_zero_address_valid): New.
1290 * targhooks.h (default_addr_space_zero_address_valid): Declare.
1291 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1292 * doc/tm.texi: Rebuild.
1293
1294 * cselib.c (add_mem_for_addr): Compare address spaces when
1295 matching memories.
1296 (cselib_lookup_mem): Likewise.
1297 * fold-const.c (operand_equal_p): Check address spaces of
1298 pointer types before checking integer constants.
1299
1300 PR tree-opt/66768
1301 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1302 the correct type for the base.
1303
1304 2015-11-09 Jeff Law <law@redhat.com>
1305
1306 * tree-into-ssa.c (names_to_release): No longer static.
1307 * tree-into-ssa.h (names_to_release): Declare.
1308 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1309 (release_free_names_and_compact_live_names): New function extracted
1310 from pass_release_ssa_names::execute.
1311 (pass_release_ssa_names::execute): Use it.
1312
1313 2015-11-09 Alan Modra <amodra@gmail.com>
1314
1315 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1316 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1317 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1318 return value.
1319
1320 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1321
1322 PR rtl-optimization/68182
1323 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1324 branch with only one successor just like unconditional branches.
1325
1326 2015-11-08 Jeff Law <law@redhat.com>
1327
1328 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1329 non-FSM path has no edges marked with EDGE_DFS_BACK.
1330 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1331 (thread_single_edge, def_split_header_continue_p): Remove.
1332 (bb_ends_with_multiway_branch): Likewise.
1333 (thread_through_loop_header): Remove cases of threading from
1334 latch through the header. Simplify knowing we won't thread
1335 the latch.
1336 (thread_through_all_blocks): Simplify knowing that only the FSM
1337 threader needs to handle backedges.
1338
1339 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1340
1341 * doc/extend.texi (type attributes): Document scalar_storage_order.
1342 (Structure-Packing Pragmas): Rename into...
1343 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1344 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1345 (Warnings): Document -Wno-scalar-storage-order.
1346 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1347 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1348 extract_bit_field and store_bit_field.
1349 (initialize_argument_information): Adjust call to store_expr.
1350 (load_register_parameters): Adjust call to extract_bit_field.
1351 * expmed.c (check_reverse_storage_order_support): New function.
1352 (check_reverse_float_storage_order_support): Likewise.
1353 (flip_storage_order): Likewise.
1354 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1355 of the value if it is true. Pass REVERSE to recursive call after
1356 adjusting the target offset.
1357 Do not use extraction or movstrict instruction if REVERSE is true.
1358 Pass REVERSE to store_fixed_bit_field.
1359 (store_bit_field): Add REVERSE parameter and pass to it to above.
1360 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1361 store_split_bit_field and store_fixed_bit_field_1.
1362 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1363 order of the value if it is true and adjust the target offset.
1364 (store_split_bit_field): Add REVERSE parameter and pass it to
1365 store_fixed_bit_field. Adjust the target offset if it is true.
1366 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1367 of the value if it is true. Pass REVERSE to recursive call after
1368 adjusting the target offset.
1369 Do not use extraction or subreg instruction if REVERSE is true.
1370 Pass REVERSE to extract_fixed_bit_field.
1371 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1372 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1373 extract_split_bit_field and extract_fixed_bit_field_1.
1374 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1375 order of the value if it is true and adjust the target offset.
1376 (extract_split_bit_field): Add REVERSE parameter and pass it to
1377 extract_fixed_bit_field. Adjust the target offset if it is true.
1378 * expmed.h (flip_storage_order): Declare.
1379 (store_bit_field): Adjust prototype.
1380 (extract_bit_field): Likewise.
1381 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1382 (emit_group_store): Adjust call to store_bit_field.
1383 (copy_blkmode_from_reg): Likewise.
1384 (copy_blkmode_to_reg): Likewise.
1385 (write_complex_part): Likewise.
1386 (read_complex_part): Likewise.
1387 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1388 that it isn't true if the target is a register.
1389 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1390 and flip the storage order of the value.
1391 <BIT_IOR_EXPR>: Flip the storage order of the value.
1392 (get_bit_range): Adjust call to get_inner_reference.
1393 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1394 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1395 with reverse storage order.
1396 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1397 recursive calls and call to store_bit_field. Force the value into a
1398 register if it is true and then flip the storage order of the value.
1399 (store_expr): Add REVERSE parameter and pass it to above.
1400 (categorize_ctor_elements_1): Adjust call to
1401 initializer_constant_valid_p.
1402 (store_constructor_field): Add REVERSE parameter and pass it to
1403 recursive calls and call to store_field.
1404 (store_constructor): Add REVERSE parameter and pass it to calls to
1405 store_constructor_field and store_expr. Set it to true for an
1406 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1407 (store_field): Add REVERSE parameter and pass it to recursive calls
1408 and calls to store_expr and store_bit_field. Temporarily flip the
1409 storage order of the value with record type and integral mode and
1410 adjust the shift if it is true.
1411 (get_inner_reference): Add PREVERSEP parameter and set it to true
1412 upon encoutering a reference with reverse storage order.
1413 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1414 (expand_constructor): Adjust call to store_constructor.
1415 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1416 of the union type to store_expr in the MEM case and assert that it
1417 isn't set in the REG case. Adjust call to store_field.
1418 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1419 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1420 get_inner_reference and extract_bit_field. Temporarily flip the
1421 storage order of the value with record type and integral mode and
1422 adjust the shift if it is true. Flip the storage order of the value
1423 at the end if it is true.
1424 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1425 get_inner_reference. Do not fetch an inner reference if it is true.
1426 * expr.h (store_expr_with_bounds): Ajust prototype.
1427 (store_expr): Likewise.
1428 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1429 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1430 (optimize_bit_field_compare): Deal with reverse storage order.
1431 Adjust calls to get_inner_reference and make_bit_field_ref.
1432 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1433 get_inner_reference.
1434 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1435 to decode_field_reference and make_bit_field_ref.
1436 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1437 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1438 (fold_comparison): Adjust call to get_inner_reference.
1439 (split_address_to_core_and_offset): Adjust call to
1440 get_inner_reference.
1441 * gimple-expr.c (useless_type_conversion_p): Return false for array
1442 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1443 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1444 REF_REVERSE_STORAGE_ORDER flag.
1445 * lto-streamer-out.c (hash_tree): Deal with
1446 TYPE_REVERSE_STORAGE_ORDER.
1447 * output.h (assemble_real): Adjust prototype.
1448 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1449 * stor-layout.c (finish_record_layout): Propagate the
1450 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1451 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1452 (TYPE_SATURATING): Adjust.
1453 (REF_REVERSE_STORAGE_ORDER): Document.
1454 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1455 set it to true upon encoutering a reference with reverse storage
1456 order.
1457 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1458 * tree-inline.c (remap_gimple_op_r): Propagate the
1459 REF_REVERSE_STORAGE_ORDER flag.
1460 (copy_tree_body_r): Likewise.
1461 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1462 store_expr.
1463 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1464 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1465 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1466 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1467 REF_REVERSE_STORAGE_ORDER flag.
1468 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1469 (gimple_canonical_types_compatible_p): Likewise.
1470 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1471 (TYPE_SATURATING): Adjust.
1472 (REF_REVERSE_STORAGE_ORDER): New flag.
1473 (reverse_storage_order_for_component_p): New inline predicate.
1474 (storage_order_barrier_p): Likewise.
1475 (get_inner_reference): Adjust prototype.
1476 * varasm.c: Include expmed.h.
1477 (assemble_variable_contents): Adjust call to output_constant.
1478 (assemble_real): Add REVERSE parameter. Flip the storage
1479 order of the value if REVERSE is true.
1480 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1481 (assemble_constant_contents): Adjust call to output_constant.
1482 (output_constant_pool_2): Adjust call to assemble_real.
1483 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1484 TYPE_REVERSE_STORAGE_ORDER.
1485 (initializer_constant_valid_p): Add REVERSE parameter.
1486 (output_constant): Add REVERSE parameter.
1487 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1488 <REAL_TYPE>: Adjust call to assemble_real.
1489 <COMPLEX_TYPE>: Pass it to recursive calls.
1490 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
1491 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
1492 (struct oc_local_state): Add REVERSE field.
1493 (output_constructor_array_range): Adjust calls to output_constant.
1494 (output_constructor_regular_field): Likewise.
1495 (output_constructor_bitfield): Adjust call to output_constructor.
1496 Flip the storage order of the value if REVERSE is true.
1497 (output_constructor): Add REVERSE parameter. Set it to true for an
1498 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
1499 output_constructor_bitfield.
1500 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1501 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1502 * builtins.c (get_object_alignment_2): Likewise.
1503 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1504 and get_ref_base_and_extent.
1505 * dbxout.c (dbxout_expand_expr): Likewise.
1506 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1507 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1508 (loc_list_from_tree): Likewise.
1509 (fortran_common): Likewise.
1510 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1511 get_ref_base_and_extent.
1512 (get_base_constructor): Likewise.
1513 (fold_const_aggregate_ref_1): Likewise.
1514 * gimple-laddress.c (pass_laddress::execute): Adjust call to
1515 get_inner_reference.
1516 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1517 get_inner_reference and bail out on reverse storage order.
1518 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1519 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1520 build_ref_for_offset.
1521 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1522 get_ref_base_and_extent.
1523 (ipa_polymorphic_call_context): Likewise.
1524 (extr_type_from_vtbl_ptr_store): Likewise.
1525 (check_stmt_for_type_change): Likewise.
1526 (get_dynamic_type): Likewise.
1527 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1528 get_ref_base_and_extent.
1529 (compute_complex_assign_jump_func): Likewise.
1530 (get_ancestor_addr_info): Likewise.
1531 (compute_known_type_jump_func): Likewise.
1532 (determine_known_aggregate_parts): Likewise.
1533 (ipa_get_adjustment_candidate): Likewise.
1534 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1535 MEM_REF.
1536 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1537 (build_ref_for_offset): Adjust prototype.
1538 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1539 get_inner_reference.
1540 * tree-affine.c (tree_to_aff_combination): Adjust call to
1541 get_inner_reference.
1542 (get_inner_reference_aff): Likewise.
1543 * tree-data-ref.c (split_constant_offset_1): Likewise.
1544 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
1545 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1546 get_inner_reference.
1547 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1548 (dump_access): Print new fields.
1549 (create_access): Adjust call to get_ref_base_and_extent and set the
1550 REVERSE flag according to the result.
1551 (completely_scalarize_record): Set the REVERSE flag.
1552 (scalarize_elem): Add REVERSE parameter.
1553 (build_access_from_expr_1): Preserve storage order barriers.
1554 (build_accesses_from_assign): Likewise.
1555 (build_ref_for_offset): Add REVERSE parameter and set the
1556 REF_REVERSE_STORAGE_ORDER flag accordingly.
1557 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1558 the REF_REVERSE_STORAGE_ORDER flag if there are components.
1559 (analyze_access_subtree): Likewise.
1560 (create_artificial_child_access): Set the REVERSE flag.
1561 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1562 (turn_representatives_into_adjustments): Propagate REVERSE flag.
1563 (ipa_sra_check_caller): Adjust call to get_inner_reference.
1564 * tree-ssa-alias.c (ao_ref_base): Adjust call to
1565 get_ref_base_and_extent.
1566 (aliasing_component_refs_p): Likewise.
1567 (stmt_kills_ref_p_1): Likewise.
1568 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1569 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1570 Return true if reverse storage order.
1571 <BIT_FIELD_REF>: Likewise.
1572 <COMPONENT_REF>: Likewise.
1573 <ARRAY_REF>: Likewise.
1574 <ARRAY_RANGE_REF>: Likewise.
1575 (split_address_cost): Likewise. Bail out if reverse storage order.
1576 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1577 get_inner_reference. Bail out if reverse storage order.
1578 (bswap_replace): Adjust call to get_inner_reference.
1579 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1580 the REF_REVERSE_STORAGE_ORDER flag.
1581 <BIT_FIELD_REF>: Likewise.
1582 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1583 barriers.
1584 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1585 to the REF_REVERSE_STORAGE_ORDER flag.
1586 <BIT_FIELD_REF>: Likewise.
1587 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1588 (contains_storage_order_barrier_p): New predicate.
1589 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1590 Punt on storage order barriers if necessary.
1591 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1592 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1593 call to get_ref_base_and_extent.
1594 (do_structure_copy): Likewise.
1595 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1596 get_inner_reference.
1597 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
1598 order.
1599 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1600 * ubsan.c (instrument_bool_enum_load): Likewise.
1601 (instrument_object_size): Likewise.
1602 * var-tracking.c (track_expr_p): Adjust call to
1603 get_ref_base_and_extent
1604 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1605 get_inner_reference.
1606 * config/s390/s390.c (s390_expand_atomic): Adjust call to
1607 store_bit_field.
1608 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1609 extract_bit_field.
1610 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1611
1612 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
1613
1614 * config/sparc/sparc.opt (mfix-at697f): Add final period.
1615
1616 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1617
1618 PR rtl-optimization/67864
1619 * common/config/i386/i386-common.c (ix86_option_optimization_table)
1620 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1621 at -Os and up.
1622
1623 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1624
1625 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1626 internal functions.
1627
1628 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1629
1630 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1631 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1632
1633 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1634
1635 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1636 * internal-fn.c: Don't undef it here.
1637 * tree-core.h: Likewise.
1638
1639 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1640
1641 * builtins.c (fold_builtin_nan): Delete.
1642 (fold_builtin_memcmp): Remove case where both arguments are constant.
1643 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1644 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1645 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1646 * fold-const-call.c: Include fold-const.h.
1647 (host_size_t_cst_p): New function.
1648 (build_cmp_result, fold_const_builtin_nan): Likewise.
1649 (fold_const_call_1): New function, split out from...
1650 (fold_const_call): ...here (for all three interfaces). Handle
1651 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1652
1653 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1654
1655 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1656 (fold_builtin_1): Don't call them.
1657 * fold-const-call.c: Include tm.h.
1658 (fold_const_call_ss): New variant for integer-to-integer folds.
1659 (fold_const_call): Call it.
1660
1661 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1662
1663 * builtins.c (fold_builtin_classify): Move constant cases to...
1664 * fold-const-call.c (fold_const_call_ss): ...here.
1665
1666 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1667
1668 * builtins.h (c_getstr): Move to...
1669 * fold-const.h (c_getstr): ...here.
1670 * builtins.c (c_getstr): Move to...
1671 * fold-const.c (c_getstr): ...here.
1672
1673 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1674
1675 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1676 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1677
1678 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1679
1680 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1681 the dominance info; free it if we can't.
1682 (pass_call_cdce::execute): Don't free the dominance info here.
1683
1684 2015-11-06 Jeff Law <law@redhat.com>
1685
1686 * tree-ssa-threadedge.c (dummy_simplify): Remove.
1687 (thread_around_empty_blocks): Remove backedge_seen_p argument.
1688 If we thread to a backedge, then return false. Update recursive
1689 call to eliminate backedge_seen_p argument.
1690 (thread_through_normal_block): Remove backedge_seen_p argument.
1691 Remove backedge_seen_p argument from calls to
1692 thread_around_empty_blocks. Remove checks on backedge_seen_p.
1693 If we thread to a backedge, then return 0.
1694 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
1695 pass it to thread_through_normal_block or thread_through_empty_blocks.
1696 For joiner handling, if we see a backedge, do not try normal
1697 threading.
1698
1699 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1700
1701 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1702 * graphite-poly.c (new_scop): Initialize original_schedule.
1703 (free_scop): Free original_schedule.
1704 * graphite-poly.h (struct scop): Add field original_schedule.
1705 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1706 (build_poly_scop): Call build_scop_original_schedule.
1707
1708 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1709
1710 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1711 (build_pbb_minimal_scattering_polyhedrons): New.
1712 (build_scop_scattering): Remove.
1713 (build_scop_minimal_scattering): New.
1714 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1715 (build_poly_scop): Call build_scop_minimal_scattering.
1716
1717 2015-11-06 Jeff Law <law@redhat.com>
1718
1719 * cfg-flags.def (IGNORE): New edge flag.
1720 * tree-vrp.c (identify_jump_threads): Mark and clear edges
1721 scheduled for removal with EDGE_IGNORE around call into
1722 jump threader. Do no thread across edges with EDGE_IGNORE,
1723 but do allow threading across those with EDGE_DFS_BACK.
1724
1725 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
1726
1727 * doc/md.texi (multi-alternative constraints): Don't document
1728 alternatives inherently tied to reload for the user documentation.
1729
1730 2015-11-06 Michael Collison <michael.collison@linaro.org
1731 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1732
1733 Revert:
1734 2015-08-01 Michael Collison <michael.collison@linaro.org
1735 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1736
1737 * config/arm/arm.md (*arm_smin_cmp): New pattern.
1738 (*arm_umin_cmp): Likewise.
1739
1740 2015-11-06 Jakub Jelinek <jakub@redhat.com>
1741
1742 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1743 wording.
1744 * omp-low.c (check_omp_nesting_restrictions): Update for the
1745 various new OpenMP 4.5 nesting restrictions, clarified
1746 nesting glossary, closely nested region relationship clarified
1747 to mean explicit or implicit parallel regions (target/teams),
1748 use %</%> or %qs where appropriate.
1749
1750 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1751 Sebastian Pop <s.pop@samsung.com>
1752
1753 * graphite-scop-detection.c (loop_is_valid_scop): Call
1754 optimize_loop_nest_for_speed_p.
1755
1756 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1757 Sebastian Pop <s.pop@samsung.com>
1758
1759 * graphite-optimize-isl.c (optimize_isl): Call
1760 isl_options_set_schedule_maximize_band_depth.
1761
1762 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1763 Sebastian Pop <s.pop@samsung.com>
1764
1765 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1766 and exit edges should not be a part of irreducible loop.
1767 (scop_detection::can_represent_loop_1): Loops should not be
1768 irreducible.
1769 (scop_detection::harmful_stmt_in_region): All the basic block
1770 should belong to reducible loops.
1771
1772 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
1773
1774 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1775 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1776 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1777 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1778 (aarch64_tbx4v8qi): Rename to...
1779 aarch64_tbx4<mode>): ... this.
1780 (aarch64_qtbl3<mode>): New pattern.
1781 (aarch64_qtbx3<mode>): New pattern.
1782 (aarch64_qtbl4<mode>): New pattern.
1783 (aarch64_qtbx4<mode>): New pattern.
1784 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1785 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1786 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1787 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1788 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1789 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1790 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1791 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1792 functions.
1793
1794 2015-11-06 Mike Stump <mikestump@comcast.net>
1795
1796 PR debug/66728
1797 * dwarf2out.c (get_full_len): Return a value based upon the actual
1798 precision needed for the value.
1799 (add_const_value_attribute): Use a maximal wide-int for
1800 CONST_WIDE_INTs, not VOIDmode.
1801 (output_die): Don't ever output NULL with printf.
1802
1803 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1804 BLKmode nor VOIDmode values.
1805
1806 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1807
1808 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1809 and "range2".
1810 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1811 * diagnostic-core.h (warning_at_rich_loc): New declaration.
1812 (error_at_rich_loc): New declaration.
1813 (permerror_at_rich_loc): New declaration.
1814 (inform_at_rich_loc): New declaration.
1815 * diagnostic-show-locus.c (adjust_line): Delete.
1816 (struct point_state): New struct.
1817 (class colorizer): New class.
1818 (class layout_point): New class.
1819 (class layout_range): New class.
1820 (struct line_bounds): New.
1821 (class layout): New class.
1822 (colorizer::colorizer): New ctor.
1823 (colorizer::~colorizer): New dtor.
1824 (layout::layout): New ctor.
1825 (layout::print_source_line): New method.
1826 (layout::print_annotation_line): New method.
1827 (layout::get_state_at_point): New method.
1828 (layout::get_x_bound_for_row): New method.
1829 (diagnostic_show_locus): Reimplement in terms of class layout.
1830 (diagnostic_print_caret_line): Delete.
1831 * diagnostic.c (diagnostic_initialize): Replace
1832 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1833 (diagnostic_set_info_translated): Convert param from location_t
1834 to rich_location *. Eliminate calls to set_location on the
1835 message in favor of storing the rich_location ptr there.
1836 (diagnostic_set_info): Convert param from location_t to
1837 rich_location *.
1838 (diagnostic_build_prefix): Break out array into...
1839 (diagnostic_kind_color): New variable.
1840 (diagnostic_get_color_for_kind): New function.
1841 (diagnostic_report_diagnostic): Colorize the option_text
1842 using the color for the severity.
1843 (diagnostic_append_note): Update for change in signature of
1844 diagnostic_set_info.
1845 (diagnostic_append_note_at_rich_loc): New function.
1846 (emit_diagnostic): Update for change in signature of
1847 diagnostic_set_info.
1848 (inform): Likewise.
1849 (inform_at_rich_loc): New function.
1850 (inform_n): Update for change in signature of diagnostic_set_info.
1851 (warning): Likewise.
1852 (warning_at): Likewise.
1853 (warning_at_rich_loc): New function.
1854 (warning_n): Update for change in signature of diagnostic_set_info.
1855 (pedwarn): Likewise.
1856 (permerror): Likewise.
1857 (permerror_at_rich_loc): New function.
1858 (error): Update for change in signature of diagnostic_set_info.
1859 (error_n): Likewise.
1860 (error_at): Likewise.
1861 (error_at_rich_loc): New function.
1862 (sorry): Update for change in signature of diagnostic_set_info.
1863 (fatal_error): Likewise.
1864 (internal_error): Likewise.
1865 (internal_error_no_backtrace): Likewise.
1866 (source_range::debug): New function.
1867 * diagnostic.h (struct diagnostic_info): Eliminate field
1868 "override_column". Add field "richloc".
1869 (struct diagnostic_context): Add field "colorize_source_p".
1870 (diagnostic_override_column): Delete.
1871 (diagnostic_set_info): Convert param from location_t to
1872 rich_location *.
1873 (diagnostic_set_info_translated): Likewise.
1874 (diagnostic_append_note_at_rich_loc): New function.
1875 (diagnostic_num_locations): New function.
1876 (diagnostic_expand_location): Get the location from the
1877 rich_location.
1878 (diagnostic_print_caret_line): Delete.
1879 (diagnostic_get_color_for_kind): New declaration.
1880 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1881 (error_cb): Update for change in signature of "error" callback.
1882 (fatal_at): Likewise.
1883 (warning_at): Likewise.
1884 * input.c (linemap_client_expand_location_to_spelling_point): New.
1885 * pretty-print.c (text_info::set_range): New method.
1886 (text_info::get_location): New method.
1887 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1888 (struct text_info): Eliminate "locations" array in favor of
1889 "m_richloc", a rich_location *.
1890 (textinfo::set_location): Add a "caret_p" param, and reimplement
1891 in terms of a call to set_range.
1892 (textinfo::get_location): Eliminate inline implementation in favor of
1893 an out-of-line reimplementation.
1894 (textinfo::set_range): New method.
1895 * rtl-error.c (diagnostic_for_asm): Update for change in signature
1896 of diagnostic_set_info.
1897 * tree-diagnostic.c (default_tree_printer): Update for new
1898 "caret_p" param for textinfo::set_location.
1899 * tree-pretty-print.c (percent_K_format): Likewise.
1900
1901 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1902
1903 Properly apply.
1904 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1905 * config/aarch64/aarch64.c
1906 (aarch64_can_use_per_function_literal_pools_p): New.
1907 (aarch64_use_blocks_for_constant_p): Adjust declaration
1908 and use aarch64_can_use_function_literal_pools_p.
1909 (aarch64_select_rtx_section): Update.
1910
1911 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1912
1913 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1914 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1915 (arm_output_multireg_pop): Likewise.
1916 (output_move_double): Likewise.
1917 (output_move_quad): Likewise.
1918 (output_return_instruction): Likewise.
1919 (arm_print_operand): Remove support for %( and %. print modifiers.
1920 (arm_output_shift): Make unified asm.
1921 (arm_declare_function_name): Likewise.
1922 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1923 (ASM_APP_OFF): Adjust.
1924 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1925 (ASM_OUTPUT_REG_POP): Likewise.
1926 * config/arm/arm.md: Adjust uses of %., %(, %)
1927 * config/arm/sync.md: Likewise.
1928 * config/arm/thumb2.md: Likewise.
1929 * config/arm/ldmstm.md: Regenerate.
1930 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1931 * doc/invoke.texi (masm-unified-syntax): Update documentation.
1932
1933 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1934
1935 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1936
1937 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1938
1939 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1940 add OEP_MATCH_SIDE_EFFECTS.
1941 * fold-const.c (operand_equal_p): Update documentation; handle
1942 OEP_MATCH_SIDE_EFFECTS.
1943 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1944 OEP_MATCH_SIDE_EFFECTS.
1945
1946 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
1947 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1948
1949 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1950 * config/aarch64/aarch64-protos.h: Declare.
1951 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1952 frsqrts.
1953 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1954 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1955 code when applicable.
1956 * config/aarch64/aarch64.md: Added enum entries.
1957 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1958 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1959 macros for assembly checks.
1960 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1961 frsqrts and frsqrte are not emitted.
1962 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1963 frsqrts and frsqrte are emitted.
1964 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1965
1966 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1967
1968 PR ipa/68057
1969 PR ipa/68220
1970 * ipa-polymorphic-call.c
1971 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1972 issue when offset is out of range.
1973 (contains_type_p): Fix out of range check, clear dynamic flag.
1974
1975 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
1976
1977 * config.gcc (e6500): Fix cpu_is_64bit typo.
1978
1979 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
1980
1981 * tree-sra.c (completely_scalarize): Properly handle negative array
1982 indices using offset_int.
1983
1984 2015-11-06 Richard Biener <rguenther@suse.de>
1985
1986 * alloc-pool.h (object_allocator::allocate): Default-initialize
1987 object.
1988
1989 2015-11-06 Richard Biener <rguenther@suse.de>
1990
1991 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1992 * lra.c (init_reg_info): Truncate copy_vec instead of
1993 re-allocating a new one and leaking the old.
1994 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1995 bb_infos vec.
1996 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1997 * postreload-gcse.c (free_mem): Free modify_mem_list and
1998 canon_modify_mem_list.
1999
2000 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
2001
2002 PR tree-optimization/68145
2003 * tree-vect-stmts.c (vectorizable_operation): Fix
2004 determination for booleans.
2005
2006 2015-11-06 Tom de Vries <tom@codesourcery.com>
2007
2008 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2009 cond_jump, instead of split after last nondebug insn before cond_jump.
2010 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2011 returning.
2012
2013 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2014
2015 PR target/68088
2016 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2017 subregs from accumulator and make sure it's a register.
2018
2019 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
2020
2021 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2022 low part to scalar.
2023 (reduc_uplus_<mode>): Remove.
2024 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2025 loongson_extract_lo_<mode>.
2026 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2027 reduc_smax_<mode>, reduc_smax_<mode>, use vec
2028 loongson_extract_lo_<mode>.
2029 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2030
2031 2015-11-06 Richard Biener <rguenther@suse.de>
2032
2033 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2034 members.
2035 (vect_stmt_in_region_p): Declare.
2036 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2037 (destroy_bb_vec_info): Likewise.
2038 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2039 (vect_get_and_check_slp_defs): Likewise.
2040 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2041 (vect_slp_bb): Likewise.
2042 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2043 in terms of vect_stmt_in_region_p.
2044 (vect_pattern_recog): Iterate over the BB region.
2045 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2046 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2047 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2048 * config/i386/i386.c: Include gimple-iterator.h.
2049 * config/aarch64/aarch64.c: Likewise.
2050
2051 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
2052
2053 PR rtl-optimization/67753
2054 PR rtl-optimization/64164
2055 * function.c (assign_parm_setup_block): Avoid allocating a
2056 stack slot if we don't have an ABI-reserved one. Emit the
2057 copy to target_reg in the conversion seq if the copy from
2058 entry_parm is in it too. Don't use the conversion seq to copy
2059 a PARALLEL to a REG or a CONCAT.
2060
2061 2015-11-06 Richard Biener <rguenther@suse.de>
2062
2063 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2064 equal_keys.
2065
2066 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2067 Thomas Schwinge <thomas@codesourcery.com>
2068 James Norris <jnorris@codesourcery.com>
2069
2070
2071 * gimplify.c (gimplify_scan_omp_clauses): Add support for
2072 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
2073 (gimplify_adjust_omp_clauses): Likewise.
2074 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2075 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2076 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2077 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2078 (omp_clause_code_name): Likewise.
2079 (walk_tree_1): Handle OMP_CLAUSE_TILE.
2080 * tree.h (OMP_TILE_LIST): New macro.
2081
2082 2015-11-05 Martin Sebor <msebor@redhat.com>
2083
2084 PR c++/67942
2085 * doc/invoke.texi (-Wplacement-new): Document new option.
2086
2087 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
2088
2089 PR tree-optimization/65963
2090 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2091 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2092
2093 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
2094
2095 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2096 (noce_convert_multiple_sets): Likewise.
2097 (noce_process_if_block): Call them.
2098
2099 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2100
2101 * gimple-fold.c: Include omp-low.h.
2102 (fold_internal_goacc_dim): New.
2103 (gimple_fold_call): Call it.
2104
2105 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2106 Ilya Verbin <ilya.verbin@intel.com>
2107
2108 * builtin-types.def
2109 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2110 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2111 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2112 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2113 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2114 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2115 (struct cgraph_simd_clone_arg): Adjust comment.
2116 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2117 to GOMP_target_ext. Add num_teams and thread_limit arguments.
2118 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2119 to GOMP_target_data_ext.
2120 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2121 to GOMP_target_update_ext.
2122 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2123 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2124 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2125 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2126 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2127 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2128 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2129 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2130 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2131 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2132 * tree-core.h (enum omp_clause_schedule_kind): Add
2133 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2134 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2135 OMP_CLAUSE_SCHEDULE_LAST value.
2136 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2137 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2138 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2139 OMP_FOR_CHECK. Remove comment.
2140 * tree-pretty-print.c (dump_omp_clause): Handle
2141 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2142 Simplify. Print schedule clause modifiers.
2143 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2144 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2145 cases.
2146 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2147 (omp_default_clause): Tweak for
2148 private/firstprivate/is_device_ptr variables on target
2149 construct and use_device_ptr on target data.
2150 (omp_check_private): Likewise.
2151 (omp_notice_variable): For references check whether what it refers
2152 to has mappable type, rather than the reference itself.
2153 (omp_is_private): Diagnose linear iteration variables on non-simd
2154 constructs.
2155 (omp_no_lastprivate): Return true only for Fortran.
2156 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2157 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2158 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2159 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2160 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
2161 lastprivate and linear when combined with distribute. Gimplify
2162 variable low-bound for array reduction. Look through
2163 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2164 reductions.
2165 (gimplify_adjust_omp_clauses_1): For implicit references to
2166 variables with reference type and when not ref to scalar or
2167 ref to pointer, map what they refer to using tofrom and
2168 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2169 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2170 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2171 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
2172 Diagnose the same var on both firstprivate and lastprivate on
2173 distribute construct.
2174 (gimplify_omp_for): Fix up handling of predetermined
2175 lastprivate or linear iter vars when combined with distribute.
2176 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2177 functions.
2178 (gimplify_omp_workshare): Call optimize_target_teams.
2179 * omp-low.c (struct omp_region): Add sched_modifiers field.
2180 (struct omp_for_data): Likewise.
2181 (omp_any_child_fn_dumped): New variable.
2182 (extract_omp_for_data): Fill in sched_modifiers, and mask out
2183 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2184 from sched_kind.
2185 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2186 bits of OMP_CLAUSE_SCHED_KIND.
2187 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2188 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
2189 for array section reductions.
2190 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2191 for distribute parallel for, if there are lastprivate clauses on the
2192 for.
2193 (lower_rec_input_clauses): Handle non-zero low-bound on array
2194 section reductions.
2195 (lower_reduction_clauses): Likewise.
2196 (lower_send_clauses): Look through POINTER_PLUS_EXPR
2197 for array section reductions.
2198 (expand_parallel_call): Use nonmonotonic entrypoints for
2199 nonmonotonic: dynamic/guided.
2200 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2201 child_fn if current_function_decl has assembler name set, but child_fn
2202 does not. Dump the header and IL of the child function when not in SSA
2203 form.
2204 (expand_omp_target): Likewise. Pass num_teams and thread_limit
2205 arguments to BUILT_IN_GOMP_TARGET.
2206 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2207 Initialize the extra _looptemp_ clause to fd->loop.n2.
2208 (expand_omp_for): Use nonmonotonic entrypoints for
2209 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
2210 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
2211 again if we have dumped any child functions.
2212 (lower_omp_for_lastprivate): Determine the right count variable
2213 for distribute simd, or distribute parallel for{, simd}.
2214 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2215 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
2216 support.
2217 (simd_clone_clauses_extract): Handle variable step
2218 for references and arguments passed by reference.
2219 (simd_clone_mangle): Mangle ref/uval/val variable steps.
2220 (simd_clone_adjust_argument_types): Handle
2221 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2222 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2223 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2224 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2225 (simd_clone_linear_addend): New function.
2226 (simd_clone_adjust): Handle variable step like similarly
2227 to constant step, use simd_clone_linear_addend to determine
2228 the actual step at runtime.
2229
2230 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2231
2232 * target.def (goacc.dim_limit): New hook.
2233 * targhooks.h (default_goacc_dim_limit): Declare.
2234 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2235 * doc/tm.texi: Rebuilt.
2236 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2237 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2238 (default_goacc_dim_limit): New.
2239 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2240 (nvptx_goacc_dim_limit) New.
2241 (TARGET_GOACC_DIM_LIMIT): Override.
2242 * tree-vrp.c: Include omp-low.h, target.h.
2243 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2244 IFN_GOACC_DIM_POS.
2245
2246 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2247
2248 * tree-vect-generic.c (do_compare): Use -1 for true
2249 result instead of 1.
2250
2251 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2252
2253 * config/aarch64/aarch64.c
2254 (aarch64_can_use_per_function_literal_pools_p): New.
2255 (aarch64_use_blocks_for_constant_p): Adjust declaration
2256 and use aarch64_can_use_function_literal_pools_p.
2257 (aarch64_select_rtx_section): Update.
2258
2259 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2260
2261 * targhooks.c (default_get_mask_mode): Use BLKmode in
2262 case target doesn't support required vector mode.
2263 * stor-layout.c (layout_type); Check for BLKmode.
2264
2265 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2266 Sebastian Pop <s.pop@samsung.com>
2267
2268 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2269 Remove use of parameter_rename_map.
2270 (copy_def): Remove.
2271 (copy_internal_parameters): Remove.
2272 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2273 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2274 (free_sese_info): Do not free parameter_rename_map.
2275 (set_rename): Do not use parameter_rename_map.
2276 (rename_uses): Update call to set_rename.
2277 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2278 * sese.h (parameter_rename_map_t): Remove.
2279 (struct sese_info_t): Remove field parameter_rename_map.
2280
2281 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2282 Sebastian Pop <s.pop@samsung.com>
2283
2284 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2285 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2286 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2287 anonymous namespace.
2288 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2289 (isl_id_for_pbb): Use a buffer of size 10.
2290 (isl_id_for_ssa_name): Same.
2291 * sese.c (set_rename): Add more dumps.
2292
2293 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2294
2295 * omp-low.c (struct omp_context): Remove reduction_map field.
2296 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2297 (new_omp_context, delete_omp_context, scan_omp_target): Remove
2298 reduction_map handling.
2299 (lower_omp_target): Remove obsolete openacc reduction handling.
2300
2301 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2302
2303 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2304
2305 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2306 Cesar Philippidis <cesar@codesourcery.com>
2307
2308 * config/nvptx/nvptx.c: Include gimple headers.
2309 (worker_red_size, worker_red_align, worker_red_name,
2310 worker_red_sym): New.
2311 (nvptx_option_override): Initialize worker reduction buffer.
2312 (nvptx_file_end): Write out worker reduction buffer var.
2313 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2314 nvptx_expand_cmp_swap): New builtin expanders.
2315 (enum nvptx_builtins): New.
2316 (nvptx_builtin_decls): New.
2317 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2318 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2319 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2320 nvptx_lockless_update): New helpers.
2321 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2322 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2323 (nvptx_goacc_reduction): New.
2324 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2325 TARGET_BUILTIN_DECL): Override.
2326 (TARGET_GOACC_REDUCTION): Override.
2327
2328 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2329 Cesar Philippidis <cesar@codesourcery.com>
2330
2331 * internal-fn.def (GOACC_REDUCTION): New.
2332 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2333 * internal-fn.c (expand_GOACC_REDUCTION): New.
2334 * target.def (goacc.reduction): New OpenACC hook.
2335 * targhooks.h (default_goacc_reduction): Declare.
2336 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2337 * doc/tm.texi: Rebuilt.
2338 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2339 scan_sharing_clauses): Remove oacc reduction handling here.
2340 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2341 (oacc_lower_reduction_var_helper): Delete.
2342 (lower_oacc_reductions): New.
2343 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2344 (lower_oacc_head_tail): Call lower_oacc_reductions.
2345 (oacc_gimple_assign, oacc_init_reduction_array,
2346 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2347 oacc_process_reduction_data): Delete.
2348 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2349 dummy OpenACC gang reduction for reductions at outer level.
2350 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2351 (default_goacc_reduction): New.
2352 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2353
2354 2015-11-04 Martin Liska <mliska@suse.cz>
2355
2356 * cgraphunit.c (cgraph_node::expand_thunk): Call
2357 allocate_struct_function before init_function_start.
2358 (cgraph_node::expand): Use push_cfun and pop_cfun.
2359 * config/i386/i386.c (ix86_code_end): Call
2360 allocate_struct_function before init_function_start.
2361 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2362 * function.c (init_function_start): Move preamble to all
2363 callers.
2364 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2365 (execute_one_pass): Handle newly added TODO_discard_function.
2366 (execute_pass_list_1): Terminate if cfun equals to NULL.
2367 (execute_pass_list): Do not push and pop cfun, expect that
2368 cfun is set.
2369 * tree-pass.h (TODO_discard_function): Define.
2370
2371 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2372
2373 * cfganal.c (inverted_post_order_compute): Remove conditional
2374 compilation, use flag_checking.
2375 * config.in: Regenerate.
2376 * configure: Regenerate.
2377 * configure.ac: Remove ENABLE_CHECKING.
2378 * genconditions.c: Do not #undef ENABLE_CHECKING.
2379 * sese.h (bb_in_region): Comment out broken check.
2380 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2381 conditional compilation, use flag_checking.
2382
2383 2015-11-04 Tom de Vries <tom@codesourcery.com>
2384
2385 PR tree-optimization/67742
2386 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2387 field.
2388 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2389 (create_variable_info_for_1): Add and handle handle_param parameter.
2390 Add restrict handling.
2391 (create_variable_info_for): Call create_variable_info_for_1 with extra
2392 arg.
2393 (make_param_constraints): Drop restrict_name parameter. Ignore
2394 vi->only_restrict_pointers.
2395 (intra_create_variable_infos): Call create_variable_info_for_1 with
2396 extra arg. Remove restrict handling. Call make_param_constraints with
2397 one fewer arg.
2398
2399 2015-11-04 Tom de Vries <tom@codesourcery.com>
2400
2401 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2402 variable.
2403
2404 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2405
2406 * config/arm/coff.h: Remove.
2407
2408 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2409
2410 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2411 check for aggregate types and beef up comment for mode check.
2412
2413 2015-11-03 Richard Biener <rguenther@suse.de>
2414
2415 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2416 data references here.
2417 * tree-vect-loop.c: Include cgraph.h.
2418 (vect_analyze_loop_2): Collect data references here.
2419 * tree-vect-slp.c (find_bb_location): Inline ...
2420 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2421 Factor in vect_slp_transform_bb.
2422 (vect_slp_transform_bb): Removed.
2423 (vect_slp_analyze_bb_1): Collect data references here.
2424 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2425 vect_slp_bb.
2426 * tree-vectorizer.h (vect_slp_bb): Declare.
2427 (vect_slp_analyze_bb): Remove.
2428 (vect_slp_transform_bb): Remove.
2429 (find_bb_location): Remove.
2430 (vect_analyze_data_refs): Remove stmt count reference parameter.
2431
2432 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2433
2434 * multiple_target.c (create_dispatcher_calls): Add target check
2435 on ifunc.
2436 (create_target_clone): Change assembler name for versioned declarations.
2437
2438 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2439 Chung-Lin Tang <cltang@codesourcery.com>
2440
2441 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2442 * omp-low.c (check_omp_nesting_restrictions): Allow
2443 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2444 contexts.
2445
2446 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2447
2448 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2449 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2450 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2451 builtin.
2452 (vmulxq_f32): Likewise.
2453 (vmulx_f64): New.
2454 (vmulxq_f64): Rewrite to call fmulx builtin.
2455 (vmulxs_f32): Likewise.
2456 (vmulxd_f64): Likewise.
2457 (vmulx_lane_f32): Remove.
2458 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2459
2460 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2461
2462 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2463 aarch64_reg_or_fp_zero for second operand.
2464
2465 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2466
2467 * gimple-expr.c: Include hash-set.h and rtl.h.
2468 (mark_addressable_queue): New var.
2469 (mark_addressable): Factor actual marking into...
2470 (mark_addressable_1): ... this. Queue it up during expand.
2471 (mark_addressable_2): New.
2472 (flush_mark_addressable_queue): New.
2473 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2474 * cfgexpand.c: Include gimple-expr.h.
2475 (pass_expand::execute): Flush mark_addressable queue.
2476
2477 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2478
2479 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2480 bb_no_side_effects_p tests...
2481 (tree_ssa_ifcombine_bb): ... here.
2482
2483 PR tree-optimization/68083
2484 * tree-ssa-ifcombine.c: Include tree-ssa.h.
2485 (bb_no_side_effects_p): Test for undefined uses too.
2486 * tree-ssa.c (gimple_uses_undefined_value_p): New.
2487 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2488
2489 2015-11-02 Jeff Law <law@redhat.com>
2490
2491 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2492 cases where the loop latch edge is in the middle of an FSM path.
2493
2494 2015-11-03 Tom de Vries <tom@codesourcery.com>
2495
2496 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2497 (make_param_constraints): ... this. Add and handle restrict_name
2498 parameter. Handle is_full_var case.
2499 (intra_create_variable_infos): Use make_param_constraints.
2500
2501 2015-11-03 Tom de Vries <tom@codesourcery.com>
2502
2503 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2504 make_copy_constraint call with make_constraint_from call.
2505
2506 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
2507
2508 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2509 PIE executables.
2510
2511 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
2512
2513 * builtins.h (fold_fma): Move to fold-const-call.h.
2514 * builtins.c: Include fold-const-call.h.
2515 (mathfn_built_in_2): New function, split out from...
2516 (mathfn_built_in_1): ...here.
2517 (do_real_to_int_conversion, fold_const_builtin_pow)
2518 (fold_const_builtin_logb, fold_const_builtin_significand)
2519 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2520 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2521 (fold_builtin_sincos): Use fold_const_call to handle constants.
2522 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2523 checks for ERROR_MARK. Use fold_const_call to handle constant
2524 folds for math functions.
2525 (fold_fma): Move to fold-const-call.c.
2526 * fold-const.c: Include fold-const-call.h.
2527 * Makefile.in (OBJS): Add fold-const-call.o.
2528 (PLUGIN_HEADERS): Add fold-const-call.h.
2529 * realmpfr.h (real_from_mpfr): Allow the format to be specified
2530 directly.
2531 * realmpfr.c (real_from_mpfr): Likewise.
2532 * fold-const-call.h, fold-const-call.c: New files.
2533
2534 2015-11-02 Julian Brown <julian@codesourcery.com>
2535
2536 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2537 brackets and semicolon.
2538
2539 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
2540
2541 Revert:
2542 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2543
2544 PR tree-optimization/65963
2545 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2546 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2547
2548 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
2549
2550 PR middle-end/68166
2551 * fold-const.c: Include "md5.h".
2552
2553 2015-11-01 Jeff Law <law@redhat.com>
2554
2555 * vmsdbgout.c: Revert unused header file reduction patch.
2556
2557 * config/mcore/mcore.c: Include regs.h.
2558
2559 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2560
2561 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2562
2563 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2564
2565 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2566 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2567 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2568
2569 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2570
2571 * ggc-common.c: Restore needed header for checking=release.
2572
2573 2015-10-31 Tom de Vries <tom@codesourcery.com>
2574
2575 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2576
2577 2015-10-31 Tom de Vries <tom@codesourcery.com>
2578
2579 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2580 existing varinfo for arguments.
2581
2582 2015-10-31 Tom de Vries <tom@codesourcery.com>
2583
2584 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2585 create_function_info_for. Dump constraints generated during
2586 create_function_info_for. Move intra_create_variable_infos call and
2587 function-return-values-escape bit to ...
2588 (create_function_info_for): ... here, and merge
2589 intra_create_variable_infos call with argument loop. Add and handle
2590 nonlocal_p parameter.
2591
2592 2015-10-31 Tom de Vries <tom@codesourcery.com>
2593
2594 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2595 updating is alap, and seperated from preceding code. Make sure
2596 insert_vi_for_tree is seperated from surrounding code.
2597
2598 2015-10-31 Tom de Vries <tom@codesourcery.com>
2599
2600 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2601
2602 2015-10-30 Jeff Law <law@redhat.com>
2603 Nathan Sidwell <nathan@acm.org>
2604
2605 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2606 args.
2607 (MOVE_MAX): Set to 8.
2608
2609 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
2610
2611 * cgraph.c: Include context.h for offloading.
2612 * varpool.c: Include context.h and omp-low.h.
2613
2614 2015-10-30 Anatoly Sokolov <aesok@post.ru>
2615
2616 * rtl.h (contains_symbol_ref_p): Declare.
2617 (SYMBOL_REF_P): Define.
2618 * rtlanal.c (contains_symbol_ref_p: New function.
2619 * lra-constraints.c (contains_symbol_ref_p): Remove.
2620 * var-tracking.c (contains_symbol_ref): Remove.
2621 (track_expr_p): Use contains_symbol_ref_p instead of
2622 contains_symbol_ref.
2623
2624 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2625
2626 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2627 * fold-const.c (get_array_ctor_element_at_index): New.
2628 (fold): Remove binary-search through CONSTRUCTOR, call previous.
2629
2630 * fold-const.h (get_array_ctor_element_at_index): New.
2631
2632 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2633
2634 * Makefile.in (OBJS): Add multiple_target.o.
2635 * attrib.c (make_attribute): Moved from config/i386/i386.c
2636 * config/i386/i386.c (make_attribute): Deleted.
2637 * multiple_target.c (create_dispatcher_calls): New.
2638 (get_attr_len): Ditto.
2639 (get_attr_str): Ditto.
2640 (separate_attrs): Ditto.
2641 (is_valid_asm_symbol): Ditto.
2642 (create_new_asm_name): Ditto.
2643 (create_target_clone): Ditto.
2644 (expand_target_clones): Ditto.
2645 (ipa_target_clone): Ditto.
2646 (ipa_dispatcher_calls): Ditto.
2647 * passes.def (pass_target_clone): Two new ipa passes.
2648 * tree-pass.h (make_pass_target_clone): Ditto.
2649 * doc/extend.texi (target_clones): New attribute description.
2650
2651 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
2652
2653 PR rtl-optimization/68106
2654 * lra-remat.c (input_regno_present_p): Process hard regs
2655 explicitly present in machine description insns.
2656 (call_used_input_regno_present_p): Ditto.
2657 (calculate_gen_cands): Ditto.
2658 (do_remat): Ditto.
2659
2660 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
2661
2662 * config/arm/neon-testgen.ml: Fix comment typo.
2663
2664 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2665
2666 * rtlanal.c (reg_set_p): Expand function comment.
2667
2668 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
2669
2670 * alias.c: Remove unused headers.
2671 * asan.c: Likewise.
2672 * attribs.c: Likewise.
2673 * auto-inc-dec.c: Likewise.
2674 * auto-profile.c: Likewise.
2675 * bb-reorder.c: Likewise.
2676 * bitmap.c: Likewise.
2677 * bt-load.c: Likewise.
2678 * builtins.c: Likewise.
2679 * caller-save.c: Likewise.
2680 * calls.c: Likewise.
2681 * ccmp.c: Likewise.
2682 * cfg.c: Likewise.
2683 * cfganal.c: Likewise.
2684 * cfgbuild.c: Likewise.
2685 * cfgcleanup.c: Likewise.
2686 * cfgexpand.c: Likewise.
2687 * cfghooks.c: Likewise.
2688 * cfgloop.c: Likewise.
2689 * cfgloopanal.c: Likewise.
2690 * cfgloopmanip.c: Likewise.
2691 * cfgrtl.c: Likewise.
2692 * cgraph.c: Likewise.
2693 * cgraphbuild.c: Likewise.
2694 * cgraphclones.c: Likewise.
2695 * cgraphunit.c: Likewise.
2696 * cilk-common.c: Likewise.
2697 * combine-stack-adj.c: Likewise.
2698 * combine.c: Likewise.
2699 * compare-elim.c: Likewise.
2700 * convert.c: Likewise.
2701 * coverage.c: Likewise.
2702 * cppbuiltin.c: Likewise.
2703 * cprop.c: Likewise.
2704 * cse.c: Likewise.
2705 * cselib.c: Likewise.
2706 * data-streamer-in.c: Likewise.
2707 * data-streamer-out.c: Likewise.
2708 * data-streamer.c: Likewise.
2709 * dbxout.c: Likewise.
2710 * dce.c: Likewise.
2711 * ddg.c: Likewise.
2712 * debug.c: Likewise.
2713 * df-core.c: Likewise.
2714 * df-problems.c: Likewise.
2715 * df-scan.c: Likewise.
2716 * dfp.c: Likewise.
2717 * dojump.c: Likewise.
2718 * dominance.c: Likewise.
2719 * domwalk.c: Likewise.
2720 * double-int.c: Likewise.
2721 * dse.c: Likewise.
2722 * dumpfile.c: Likewise.
2723 * dwarf2asm.c: Likewise.
2724 * dwarf2cfi.c: Likewise.
2725 * dwarf2out.c: Likewise.
2726 * emit-rtl.c: Likewise.
2727 * except.c: Likewise.
2728 * explow.c: Likewise.
2729 * expmed.c: Likewise.
2730 * expr.c: Likewise.
2731 * final.c: Likewise.
2732 * fixed-value.c: Likewise.
2733 * fold-const.c: Likewise.
2734 * function.c: Likewise.
2735 * fwprop.c: Likewise.
2736 * gcse.c: Likewise.
2737 * generic-match-head.c: Likewise.
2738 * ggc-common.c: Likewise.
2739 * gimple-builder.c: Likewise.
2740 * gimple-expr.c: Likewise.
2741 * gimple-fold.c: Likewise.
2742 * gimple-iterator.c: Likewise.
2743 * gimple-low.c: Likewise.
2744 * gimple-match-head.c: Likewise.
2745 * gimple-pretty-print.c: Likewise.
2746 * gimple-ssa-isolate-paths.c: Likewise.
2747 * gimple-ssa-strength-reduction.c: Likewise.
2748 * gimple-streamer-in.c: Likewise.
2749 * gimple-streamer-out.c: Likewise.
2750 * gimple-walk.c: Likewise.
2751 * gimple.c: Likewise.
2752 * gimplify-me.c: Likewise.
2753 * gimplify.c: Likewise.
2754 * godump.c: Likewise.
2755 * graph.c: Likewise.
2756 * graphds.c: Likewise.
2757 * haifa-sched.c: Likewise.
2758 * hw-doloop.c: Likewise.
2759 * ifcvt.c: Likewise.
2760 * init-regs.c: Likewise.
2761 * internal-fn.c: Likewise.
2762 * ipa-chkp.c: Likewise.
2763 * ipa-comdats.c: Likewise.
2764 * ipa-cp.c: Likewise.
2765 * ipa-devirt.c: Likewise.
2766 * ipa-icf-gimple.c: Likewise.
2767 * ipa-icf.c: Likewise.
2768 * ipa-inline-analysis.c: Likewise.
2769 * ipa-inline-transform.c: Likewise.
2770 * ipa-inline.c: Likewise.
2771 * ipa-polymorphic-call.c: Likewise.
2772 * ipa-profile.c: Likewise.
2773 * ipa-prop.c: Likewise.
2774 * ipa-pure-const.c: Likewise.
2775 * ipa-ref.c: Likewise.
2776 * ipa-reference.c: Likewise.
2777 * ipa-split.c: Likewise.
2778 * ipa-utils.c: Likewise.
2779 * ipa-visibility.c: Likewise.
2780 * ipa.c: Likewise.
2781 * ira-build.c: Likewise.
2782 * ira-color.c: Likewise.
2783 * ira-conflicts.c: Likewise.
2784 * ira-costs.c: Likewise.
2785 * ira-emit.c: Likewise.
2786 * ira-lives.c: Likewise.
2787 * ira.c: Likewise.
2788 * jump.c: Likewise.
2789 * langhooks.c: Likewise.
2790 * lcm.c: Likewise.
2791 * lists.c: Likewise.
2792 * loop-doloop.c: Likewise.
2793 * loop-init.c: Likewise.
2794 * loop-invariant.c: Likewise.
2795 * loop-iv.c: Likewise.
2796 * loop-unroll.c: Likewise.
2797 * lower-subreg.c: Likewise.
2798 * lra-assigns.c: Likewise.
2799 * lra-coalesce.c: Likewise.
2800 * lra-constraints.c: Likewise.
2801 * lra-eliminations.c: Likewise.
2802 * lra-lives.c: Likewise.
2803 * lra-remat.c: Likewise.
2804 * lra-spills.c: Likewise.
2805 * lra.c: Likewise.
2806 * lto-cgraph.c: Likewise.
2807 * lto-compress.c: Likewise.
2808 * lto-opts.c: Likewise.
2809 * lto-section-in.c: Likewise.
2810 * lto-section-out.c: Likewise.
2811 * lto-streamer-in.c: Likewise.
2812 * lto-streamer-out.c: Likewise.
2813 * lto-streamer.c: Likewise.
2814 * mcf.c: Likewise.
2815 * mode-switching.c: Likewise.
2816 * modulo-sched.c: Likewise.
2817 * optabs.c: Likewise.
2818 * opts-global.c: Likewise.
2819 * passes.c: Likewise.
2820 * plugin.c: Likewise.
2821 * postreload-gcse.c: Likewise.
2822 * postreload.c: Likewise.
2823 * predict.c: Likewise.
2824 * print-tree.c: Likewise.
2825 * profile.c: Likewise.
2826 * real.c: Likewise.
2827 * realmpfr.c: Likewise.
2828 * recog.c: Likewise.
2829 * ree.c: Likewise.
2830 * reg-stack.c: Likewise.
2831 * regcprop.c: Likewise.
2832 * reginfo.c: Likewise.
2833 * regrename.c: Likewise.
2834 * regstat.c: Likewise.
2835 * reload.c: Likewise.
2836 * reload1.c: Likewise.
2837 * reorg.c: Likewise.
2838 * resource.c: Likewise.
2839 * rtl-chkp.c: Likewise.
2840 * rtl-error.c: Likewise.
2841 * rtlanal.c: Likewise.
2842 * rtlhooks.c: Likewise.
2843 * sanopt.c: Likewise.
2844 * sched-deps.c: Likewise.
2845 * sched-ebb.c: Likewise.
2846 * sched-rgn.c: Likewise.
2847 * sdbout.c: Likewise.
2848 * sel-sched-dump.c: Likewise.
2849 * sel-sched-ir.c: Likewise.
2850 * sel-sched.c: Likewise.
2851 * sese.c: Likewise.
2852 * shrink-wrap.c: Likewise.
2853 * simplify-rtx.c: Likewise.
2854 * stack-ptr-mod.c: Likewise.
2855 * statistics.c: Likewise.
2856 * stmt.c: Likewise.
2857 * stor-layout.c: Likewise.
2858 * store-motion.c: Likewise.
2859 * stringpool.c: Likewise.
2860 * symtab.c: Likewise.
2861 * target-globals.c: Likewise.
2862 * targhooks.c: Likewise.
2863 * toplev.c: Likewise.
2864 * tracer.c: Likewise.
2865 * trans-mem.c: Likewise.
2866 * tree-affine.c: Likewise.
2867 * tree-call-cdce.c: Likewise.
2868 * tree-cfg.c: Likewise.
2869 * tree-cfgcleanup.c: Likewise.
2870 * tree-chkp-opt.c: Likewise.
2871 * tree-chkp.c: Likewise.
2872 * tree-chrec.c: Likewise.
2873 * tree-complex.c: Likewise.
2874 * tree-data-ref.c: Likewise.
2875 * tree-dfa.c: Likewise.
2876 * tree-diagnostic.c: Likewise.
2877 * tree-dump.c: Likewise.
2878 * tree-eh.c: Likewise.
2879 * tree-emutls.c: Likewise.
2880 * tree-if-conv.c: Likewise.
2881 * tree-inline.c: Likewise.
2882 * tree-into-ssa.c: Likewise.
2883 * tree-iterator.c: Likewise.
2884 * tree-loop-distribution.c: Likewise.
2885 * tree-nested.c: Likewise.
2886 * tree-nrv.c: Likewise.
2887 * tree-object-size.c: Likewise.
2888 * tree-outof-ssa.c: Likewise.
2889 * tree-parloops.c: Likewise.
2890 * tree-phinodes.c: Likewise.
2891 * tree-predcom.c: Likewise.
2892 * tree-pretty-print.c: Likewise.
2893 * tree-profile.c: Likewise.
2894 * tree-scalar-evolution.c: Likewise.
2895 * tree-sra.c: Likewise.
2896 * tree-ssa-address.c: Likewise.
2897 * tree-ssa-alias.c: Likewise.
2898 * tree-ssa-ccp.c: Likewise.
2899 * tree-ssa-coalesce.c: Likewise.
2900 * tree-ssa-copy.c: Likewise.
2901 * tree-ssa-dce.c: Likewise.
2902 * tree-ssa-dse.c: Likewise.
2903 * tree-ssa-forwprop.c: Likewise.
2904 * tree-ssa-ifcombine.c: Likewise.
2905 * tree-ssa-live.c: Likewise.
2906 * tree-ssa-loop-ch.c: Likewise.
2907 * tree-ssa-loop-im.c: Likewise.
2908 * tree-ssa-loop-ivcanon.c: Likewise.
2909 * tree-ssa-loop-ivopts.c: Likewise.
2910 * tree-ssa-loop-manip.c: Likewise.
2911 * tree-ssa-loop-niter.c: Likewise.
2912 * tree-ssa-loop-prefetch.c: Likewise.
2913 * tree-ssa-loop-unswitch.c: Likewise.
2914 * tree-ssa-loop.c: Likewise.
2915 * tree-ssa-math-opts.c: Likewise.
2916 * tree-ssa-operands.c: Likewise.
2917 * tree-ssa-phiopt.c: Likewise.
2918 * tree-ssa-phiprop.c: Likewise.
2919 * tree-ssa-pre.c: Likewise.
2920 * tree-ssa-propagate.c: Likewise.
2921 * tree-ssa-reassoc.c: Likewise.
2922 * tree-ssa-scopedtables.c: Likewise.
2923 * tree-ssa-sink.c: Likewise.
2924 * tree-ssa-strlen.c: Likewise.
2925 * tree-ssa-structalias.c: Likewise.
2926 * tree-ssa-tail-merge.c: Likewise.
2927 * tree-ssa-ter.c: Likewise.
2928 * tree-ssa-threadupdate.c: Likewise.
2929 * tree-ssa-uncprop.c: Likewise.
2930 * tree-ssa-uninit.c: Likewise.
2931 * tree-ssa.c: Likewise.
2932 * tree-ssanames.c: Likewise.
2933 * tree-stdarg.c: Likewise.
2934 * tree-streamer-in.c: Likewise.
2935 * tree-streamer-out.c: Likewise.
2936 * tree-streamer.c: Likewise.
2937 * tree-switch-conversion.c: Likewise.
2938 * tree-tailcall.c: Likewise.
2939 * tree-vect-data-refs.c: Likewise.
2940 * tree-vect-generic.c: Likewise.
2941 * tree-vect-loop-manip.c: Likewise.
2942 * tree-vect-loop.c: Likewise.
2943 * tree-vect-patterns.c: Likewise.
2944 * tree-vect-slp.c: Likewise.
2945 * tree-vect-stmts.c: Likewise.
2946 * tree-vectorizer.c: Likewise.
2947 * tree-vrp.c: Likewise.
2948 * tree.c: Likewise.
2949 * tsan.c: Likewise.
2950 * ubsan.c: Likewise.
2951 * value-prof.c: Likewise.
2952 * var-tracking.c: Likewise.
2953 * varasm.c: Likewise.
2954 * varpool.c: Likewise.
2955 * vmsdbgout.c: Likewise.
2956 * vtable-verify.c: Likewise.
2957 * web.c: Likewise.
2958 * wide-int-print.cc: Likewise.
2959 * wide-int.cc: Likewise.
2960 * xcoffout.c: Likewise.
2961
2962 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2963
2964 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2965 between pass numbering and execution order.
2966
2967 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2968
2969 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2970 check for dependencies.
2971
2972 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2973
2974 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2975 CDI_DOMINATORS.
2976
2977 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2978
2979 * real.h (format_helper): New.
2980 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2981 (real_from_target, real_nan, real_2expN, real_value_truncate)
2982 (significand_size, real_from_string2, exact_real_inverse)
2983 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2984 (real_round, real_isinteger, real_from_integer): Replace
2985 machine_mode arguments with format_helper arguments.
2986 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2987 (real_from_integer, real_nan, real_2expN, real_convert)
2988 (real_value_truncate, exact_real_truncate, real_to_target)
2989 (real_from_target, significand_size, real_powi, real_trunc)
2990 (real_floor, real_ceil, real_round, real_isinteger): Replace
2991 machine_mode arguments with format_helper arguments.
2992 (real_to_target_fmt, real_from_target_fmt): Delete.
2993 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2994 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2995 argument with real_format.
2996 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2997
2998 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2999
3000 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3001 (fixed_to_decimal, fixed_convert_from_real)
3002 (real_convert_from_fixed): Fix mode arguments to real_2expN.
3003
3004 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3005
3006 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3007 SCALAR_FLOAT_MODE_P.
3008
3009 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3010
3011 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3012 (completely_scalarize): Comment zero-length arrays.
3013 (get_access_replacement): Correct comment re. precondition.
3014
3015 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3016
3017 * config/i386/i386.c (get_builtin_code_for_version): Set priority
3018 for PROCESSOR_ZNVER1.
3019 (enum processor_model): Add M_AMDFAM17H_znver1.
3020 (struct arch_names_table): Likewise.
3021 * doc/extend.texi: ADD znver1.
3022
3023 2015-10-30 Richard Biener <rguenther@suse.de>
3024
3025 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3026 fold () on single RHSs. Allow CONSTRUCTORS with trailing
3027 zeros to be folded to VECTOR_CSTs.
3028 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3029 * fold-const.c (fold): Use build_vector_from_ctor.
3030
3031 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
3032
3033 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3034 "mov %0.h[0], %1.h[0] to "neon_move".
3035 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3036 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3037 "mov_imm".
3038 (*cmovsi_insn_uxtw): Likewise.
3039
3040 2015-10-30 Tom de Vries <tom@codesourcery.com>
3041
3042 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3043 unsigned, and initialize, and use initial value instead of hardcoded
3044 constant. Add generic constraints dumping section. Don't dump global
3045 initializers constraints dumping section if empty. Don't update
3046 variable from if unused.
3047
3048 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3049
3050 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3051 flag_checking and/or CHECKING_P to eliminate conditional compilation
3052 on ENABLE_CHECKING.
3053 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3054 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3055 * config/i386/i386.c (ix86_print_operand_address): Likewise.
3056 (output_387_binary_op): Likewise.
3057 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3058 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3059 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3060 Likewise.
3061 * config/rs6000/rs6000.h: Likewise.
3062 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3063
3064 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
3065
3066 * config/sh/sh.opt (mfdpic): Add missing period.
3067
3068 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3069
3070 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3071 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3072 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3073 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3074 mcore_base_register_rtx_p, mcore_legitimate_index_p,
3075 mcore_legitimate_address_p): New functions.
3076 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3077
3078 2015-10-29 Jeff Law <law@redhat.com>
3079
3080 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3081 method.
3082 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3083 * tree-ssa-threadedge.c
3084 (record_temporary_equivalences_from_stmts_at_dest): Remove
3085 backedge_seen argument and associated code which invalidated
3086 equivalences based on the value of that argument.
3087 (thread_through_normal_block): Corresponding changes.
3088
3089 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3090
3091 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3092 function earlier in the file.
3093 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3094 df_regs_ever_live_p.
3095
3096 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3097
3098 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3099 by ignoring it.
3100
3101 2015-10-29 Richard Henderson <rth@redhat.com>
3102
3103 PR target/68124
3104 PR rtl-opt/67609
3105 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3106 sse check to the exact conditions of PR 67609.
3107
3108 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3109
3110 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3111 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3112 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3113 of the traditional names that TFmode uses for handling IEEE
3114 extended double. If -mfloat128, add KFmode functions for all of
3115 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3116 make TFmode use the same emulation functions as KFmode.
3117 (init_float128_ibm): Likewise.
3118 (init_float128_ieee): Likewise.
3119 (rs6000_generate_compare): For IEEE 128-bit floating point
3120 comparisons, call the unordered comparison function instead of the
3121 ordered comparison function.
3122 (rs6000_expand_float128_convert): Deal with operands that are
3123 memory operands. Restructure the code to use a switch statement on
3124 the mode. Add support for TFmode defaulting to either IBM extended
3125 double or IEEE 128-bit floating point. If the underlying types are
3126 the same, use a move instead of a conversion function.
3127 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3128 use for IEEE 128-bit floating point constants with -mfloat128.
3129 (rs6000_c_mode_for_suffix): Likewise.
3130 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3131 128-bit floating point with IBM extended double floating point.
3132 (rs6000_invalid_binary_op): Likewise.
3133 (rs6000_gen_le_vsx_permute): On little endian systems generate a
3134 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3135 types that can go in vector registers.
3136 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3137 point types that can go in vector registers on little endian
3138 PowerPC systems.
3139 (mark_swaps_for_removal): Likewise.
3140 (rs6000_analyze_swaps): Likewise.
3141 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3142
3143 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3144 rework IEEE 128-bit floating point insns to deal with TFmode being
3145 either IBM extended double or IEEE 128-bit floating point.
3146 (IFKF): Likewise.
3147 (IBM128): Update iterator to add condition that the mode is IBM
3148 extended double.
3149 (IEEE128): New iterator for IEEE 128-bit floating point.
3150 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3151 (FLOAT128): Likewise.
3152 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3153 iterator.
3154 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3155 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3156 instead of hard coding TFmode or KFmode.
3157 (negtf2_internal): Likewise.
3158 (neg<mode>2_internal): Likewise.
3159 (abs<mode>2): Likewise.
3160 (abstf2_internal): Likewise.
3161 (abs<mode>2_internal): Likewise.
3162 (ieee_128bit_neg<mode>2): Likewise.
3163 (ieee_128bit_neg<mode>2_internal): Likewise.
3164 (ieee_128bit_abs<mode>2): Likewise.
3165 (ieee_128bit_abs<mode>2_internal): Likewise.
3166 (ieee_128bit_nabs<mode>2): Likewise.
3167 (ieee_128bit_nabs<mode>2_internal): Likewise.
3168 (extendiftf2): Add explicit conversions between 128-bit floating
3169 point types. Drop the old conversions that had become unwieldy.
3170 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3171 (extendifkf2): Likewise.
3172 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3173 (extendtfkf2): Likewise.
3174 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3175 (trunciftf2): Likewise.
3176 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3177 (truncifkf2): Likewise.
3178 (float<SDI:mode><IFKF:mode>2): Likewise.
3179 (trunckftf2): Likewise.
3180 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3181 (trunctfif2): Likewise.
3182 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3183 (extenddftf2): Rework 128-bit floating point conversions to
3184 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3185 KFmode expanders into one function.
3186 (extenddf<mode>2): Likewise.
3187 (extenddftf2_fprs): Likewise.
3188 (extenddf<mode>2_fprs): Likewise.
3189 (extenddftf2_vsx): Likewise.
3190 (extenddf<mode>2_vsx): Likewise.
3191 (extendsftf2): Likewise.
3192 (extendsf<mode>2): Likewise.
3193 (trunctfdf2): Likewise.
3194 (trunc<mode>df2): Likewise.
3195 (trunctfdf2_internal1): Likewise.
3196 (trunc<mode>df2_internal1): Likewise.
3197 (trunctfdf2_internal2): Likewise.
3198 (trunc<mode>df2_internal2): Likewise.
3199 (trunctfsf2): Likewise.
3200 (trunc<mode>sf2): Likewise.
3201 (trunctfsf2_fprs): Likewise.
3202 (trunc<mode>sf2_fprs): Likewise.
3203 (floatsit2f): Likewise.
3204 (floatsi<mode>2): Likewise.
3205 (fix_trunc_helper): Likewise.
3206 (fix_trunc_helper<mode>): Likewise.
3207 (fix_trunctfsi2): Likewise.
3208 (fix_trunc<mode>si2): Likewise.
3209 (fix_trunctfsi2_fprs): Likewise.
3210 (fix_trunc<mode>si2_fprs): Likewise.
3211 (fix_trunctfsi2_internal): Likewise.
3212 (fix_trunc<mode>si2_internal): Likewise.
3213 (fix_trunctfdi2): Likewise.
3214 (fix_trunc<mode>di2): Likewise.
3215 (fixuns_trunctf<mode>2): Likewise.
3216 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3217 (floatditf2): Likewise.
3218 (floatdi<mode>2): Likewise.
3219 (floatuns<mode>tf2): Likewise.
3220 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3221 (cmptf_internal1): Use a mode iterator to add support for both
3222 types (IFmode, TFmode) that support IBM extended double.
3223 (cmp<mode>_internal1): Likewise.
3224 (cmptf_internal2): Likewise.
3225 (cmp<mode>_internal2): Likewise.
3226
3227 * doc/extend.texi (Floating Types): Document __ibm128 and
3228 __float128 on PowerPC.
3229
3230 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3231 -mfloat128 and -mno-float128.
3232
3233 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3234
3235 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3236 floating point modes that can go in vector registers.
3237 (MODES_TIEABLE_P): Move tests for vector modes before tests for
3238 scalar floating point, so that IEEE 128-bit floating point that
3239 can go in vector registers bind with vectors and not FP.
3240 (struct rs6000_args): Add libcall field.
3241
3242 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3243 and -mfloat128-software switches. Replace them with a binary
3244 -mfloat128 switch.
3245 (-mfloat128): Likewise.
3246
3247 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3248 128-bit floating point types in GPRs, even if the appropriate
3249 option enabling the type was not used.
3250 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3251 debugging.
3252 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3253 pre-decrement on IEEE 128-bit floating point values.
3254 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3255 is IEEE 128-bit floating point.
3256 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3257 128-bit floating point types that can go in vector registers.
3258 (rs6000_option_override_internal): Change -mfloat128-none and
3259 -mfloat128-software to -mfloat128, and move code to be near other
3260 VSX option handling.
3261 (rs6000_option_override_internal): Disable -mfloat128 if we don't
3262 have the Altivec ABI.
3263 (rs6000_init_builtins): Don't make TFmode use either IFmode or
3264 KFmode floating point nodes. Instead, have three separate nodes.
3265 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3266 eventually moving the long double default to IEEE 128-bit floating
3267 point.
3268 (rs6000_opt_masks): Add -mfloat128.
3269 (struct rs6000_opt_var): Fix typo in comment.
3270 (init_cumulative_args): Initialize libcall field in
3271 CUMULATIVE_ARGS.
3272 (rs6000_function_arg): Treat library functions as if they had
3273 prototypes to prevent IEEE 128-bit support functions from passing
3274 arguments in both GPRs and vector registers.
3275 (rs6000_arg_partial_bytes): Likewise.
3276
3277 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3278 an option that can be turned on via -mcpu=<xxx>.
3279
3280 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3281 longer used.
3282
3283 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3284 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3285 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3286 double is IBM extended double.
3287
3288 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3289 SUBREGs.
3290
3291 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3292
3293 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3294 * genconditions.c: Define CHECKING_P in the generated code.
3295 * genextract.c: Use flag_checking in insn_extract.
3296 * gengtype.c (main): Remove conditional compilation.
3297 * gengtype.h: Likewise.
3298
3299 2015-10-29 Jeff Law <law@redhat.com>
3300
3301 PR tree-optimization/67892
3302 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3303 in comment.
3304 (thread_through_normal_block): If we have seen a backedge, then
3305 do nothing. No longer call find_jump_threads_backwards here.
3306 (thread_across_edge): Use find_jump_threads_backwards to find
3307 jump threads if the old style threader was not successful.
3308 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3309 gsi_last_nondebug_bb. Return NULL if the block does not end
3310 with a control statement.
3311 (find_jump_threads_backwards): Setup code moved here from
3312 tree-ssa-threadedge.c::thread_through_normal_block. Accept
3313 single edge argument instead of name & block.
3314 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3315 prototype.
3316
3317 2015-10-29 Tom de Vries <tom@codesourcery.com>
3318
3319 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3320 types.
3321
3322 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3323
3324 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3325 ifs.
3326
3327 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3328
3329 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3330
3331 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3332
3333 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3334 guard_bb0 and use guard_bb throughout.
3335
3336 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3337
3338 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3339 unnecessary label.
3340
3341 2015-10-29 Richard Biener <rguenther@suse.de>
3342
3343 PR middle-end/68142
3344 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3345 overflow.
3346
3347 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3348
3349 * alias.c: Reorder #include statements and remove duplicates.
3350 * asan.c: Likewise.
3351 * attribs.c: Likewise.
3352 * auto-inc-dec.c: Likewise.
3353 * auto-profile.c: Likewise.
3354 * bb-reorder.c: Likewise.
3355 * bt-load.c: Likewise.
3356 * builtins.c: Likewise.
3357 * caller-save.c: Likewise.
3358 * calls.c: Likewise.
3359 * ccmp.c: Likewise.
3360 * cfg.c: Likewise.
3361 * cfganal.c: Likewise.
3362 * cfgbuild.c: Likewise.
3363 * cfgcleanup.c: Likewise.
3364 * cfgexpand.c: Likewise.
3365 * cfghooks.c: Likewise.
3366 * cfgloop.c: Likewise.
3367 * cfgloopanal.c: Likewise.
3368 * cfgloopmanip.c: Likewise.
3369 * cfgrtl.c: Likewise.
3370 * cgraph.c: Likewise.
3371 * cgraphbuild.c: Likewise.
3372 * cgraphclones.c: Likewise.
3373 * cgraphunit.c: Likewise.
3374 * cilk-common.c: Likewise.
3375 * combine-stack-adj.c: Likewise.
3376 * combine.c: Likewise.
3377 * compare-elim.c: Likewise.
3378 * convert.c: Likewise.
3379 * coverage.c: Likewise.
3380 * cppbuiltin.c: Likewise.
3381 * cprop.c: Likewise.
3382 * cse.c: Likewise.
3383 * cselib.c: Likewise.
3384 * data-streamer-in.c: Likewise.
3385 * data-streamer-out.c: Likewise.
3386 * data-streamer.c: Likewise.
3387 * dbxout.c: Likewise.
3388 * dce.c: Likewise.
3389 * ddg.c: Likewise.
3390 * debug.c: Likewise.
3391 * df-core.c: Likewise.
3392 * df-problems.c: Likewise.
3393 * df-scan.c: Likewise.
3394 * dfp.c: Likewise.
3395 * dojump.c: Likewise.
3396 * dominance.c: Likewise.
3397 * double-int.c: Likewise.
3398 * dse.c: Likewise.
3399 * dumpfile.c: Likewise.
3400 * dwarf2asm.c: Likewise.
3401 * dwarf2cfi.c: Likewise.
3402 * dwarf2out.c: Likewise.
3403 * emit-rtl.c: Likewise.
3404 * except.c: Likewise.
3405 * explow.c: Likewise.
3406 * expmed.c: Likewise.
3407 * expr.c: Likewise.
3408 * final.c: Likewise.
3409 * fixed-value.c: Likewise.
3410 * fold-const.c: Likewise.
3411 * function.c: Likewise.
3412 * fwprop.c: Likewise.
3413 * gcse.c: Likewise.
3414 * generic-match-head.c: Likewise.
3415 * ggc-common.c: Likewise.
3416 * gimple-builder.c: Likewise.
3417 * gimple-expr.c: Likewise.
3418 * gimple-fold.c: Likewise.
3419 * gimple-iterator.c: Likewise.
3420 * gimple-low.c: Likewise.
3421 * gimple-match-head.c: Likewise.
3422 * gimple-pretty-print.c: Likewise.
3423 * gimple-ssa-isolate-paths.c: Likewise.
3424 * gimple-ssa-strength-reduction.c: Likewise.
3425 * gimple-streamer-in.c: Likewise.
3426 * gimple-streamer-out.c: Likewise.
3427 * gimple-walk.c: Likewise.
3428 * gimple.c: Likewise.
3429 * gimplify-me.c: Likewise.
3430 * gimplify.c: Likewise.
3431 * godump.c: Likewise.
3432 * graph.c: Likewise.
3433 * graphite-poly.c: Likewise.
3434 * haifa-sched.c: Likewise.
3435 * hw-doloop.c: Likewise.
3436 * ifcvt.c: Likewise.
3437 * incpath.c: Likewise.
3438 * init-regs.c: Likewise.
3439 * internal-fn.c: Likewise.
3440 * ipa-chkp.c: Likewise.
3441 * ipa-comdats.c: Likewise.
3442 * ipa-cp.c: Likewise.
3443 * ipa-devirt.c: Likewise.
3444 * ipa-icf-gimple.c: Likewise.
3445 * ipa-icf.c: Likewise.
3446 * ipa-inline-analysis.c: Likewise.
3447 * ipa-inline-transform.c: Likewise.
3448 * ipa-inline.c: Likewise.
3449 * ipa-polymorphic-call.c: Likewise.
3450 * ipa-profile.c: Likewise.
3451 * ipa-prop.c: Likewise.
3452 * ipa-pure-const.c: Likewise.
3453 * ipa-ref.c: Likewise.
3454 * ipa-reference.c: Likewise.
3455 * ipa-split.c: Likewise.
3456 * ipa-utils.c: Likewise.
3457 * ipa-visibility.c: Likewise.
3458 * ipa.c: Likewise.
3459 * ira-build.c: Likewise.
3460 * ira-color.c: Likewise.
3461 * ira-conflicts.c: Likewise.
3462 * ira-costs.c: Likewise.
3463 * ira-emit.c: Likewise.
3464 * ira-lives.c: Likewise.
3465 * ira.c: Likewise.
3466 * jump.c: Likewise.
3467 * langhooks.c: Likewise.
3468 * lcm.c: Likewise.
3469 * lists.c: Likewise.
3470 * loop-doloop.c: Likewise.
3471 * loop-init.c: Likewise.
3472 * loop-invariant.c: Likewise.
3473 * loop-iv.c: Likewise.
3474 * loop-unroll.c: Likewise.
3475 * lower-subreg.c: Likewise.
3476 * lra-assigns.c: Likewise.
3477 * lra-coalesce.c: Likewise.
3478 * lra-constraints.c: Likewise.
3479 * lra-eliminations.c: Likewise.
3480 * lra-lives.c: Likewise.
3481 * lra-remat.c: Likewise.
3482 * lra-spills.c: Likewise.
3483 * lra.c: Likewise.
3484 * lto-cgraph.c: Likewise.
3485 * lto-compress.c: Likewise.
3486 * lto-opts.c: Likewise.
3487 * lto-section-in.c: Likewise.
3488 * lto-section-out.c: Likewise.
3489 * lto-streamer-in.c: Likewise.
3490 * lto-streamer-out.c: Likewise.
3491 * lto-streamer.c: Likewise.
3492 * mode-switching.c: Likewise.
3493 * modulo-sched.c: Likewise.
3494 * omp-low.c: Likewise.
3495 * optabs.c: Likewise.
3496 * opts-global.c: Likewise.
3497 * passes.c: Likewise.
3498 * plugin.c: Likewise.
3499 * postreload-gcse.c: Likewise.
3500 * postreload.c: Likewise.
3501 * predict.c: Likewise.
3502 * print-tree.c: Likewise.
3503 * profile.c: Likewise.
3504 * real.c: Likewise.
3505 * realmpfr.c: Likewise.
3506 * recog.c: Likewise.
3507 * ree.c: Likewise.
3508 * reg-stack.c: Likewise.
3509 * regcprop.c: Likewise.
3510 * reginfo.c: Likewise.
3511 * regrename.c: Likewise.
3512 * regstat.c: Likewise.
3513 * reload.c: Likewise.
3514 * reload1.c: Likewise.
3515 * reorg.c: Likewise.
3516 * resource.c: Likewise.
3517 * rtl-chkp.c: Likewise.
3518 * rtl-error.c: Likewise.
3519 * rtlanal.c: Likewise.
3520 * rtlhooks.c: Likewise.
3521 * sanopt.c: Likewise.
3522 * sched-deps.c: Likewise.
3523 * sched-ebb.c: Likewise.
3524 * sched-rgn.c: Likewise.
3525 * sese.c: Likewise.
3526 * shrink-wrap.c: Likewise.
3527 * simplify-rtx.c: Likewise.
3528 * stack-ptr-mod.c: Likewise.
3529 * statistics.c: Likewise.
3530 * stmt.c: Likewise.
3531 * stor-layout.c: Likewise.
3532 * store-motion.c: Likewise.
3533 * stringpool.c: Likewise.
3534 * symtab.c: Likewise.
3535 * target-globals.c: Likewise.
3536 * targhooks.c: Likewise.
3537 * toplev.c: Likewise.
3538 * tracer.c: Likewise.
3539 * trans-mem.c: Likewise.
3540 * tree-affine.c: Likewise.
3541 * tree-call-cdce.c: Likewise.
3542 * tree-cfg.c: Likewise.
3543 * tree-cfgcleanup.c: Likewise.
3544 * tree-chkp-opt.c: Likewise.
3545 * tree-chkp.c: Likewise.
3546 * tree-chrec.c: Likewise.
3547 * tree-complex.c: Likewise.
3548 * tree-data-ref.c: Likewise.
3549 * tree-dfa.c: Likewise.
3550 * tree-diagnostic.c: Likewise.
3551 * tree-dump.c: Likewise.
3552 * tree-eh.c: Likewise.
3553 * tree-emutls.c: Likewise.
3554 * tree-if-conv.c: Likewise.
3555 * tree-inline.c: Likewise.
3556 * tree-into-ssa.c: Likewise.
3557 * tree-iterator.c: Likewise.
3558 * tree-loop-distribution.c: Likewise.
3559 * tree-nested.c: Likewise.
3560 * tree-nrv.c: Likewise.
3561 * tree-object-size.c: Likewise.
3562 * tree-outof-ssa.c: Likewise.
3563 * tree-parloops.c: Likewise.
3564 * tree-phinodes.c: Likewise.
3565 * tree-predcom.c: Likewise.
3566 * tree-pretty-print.c: Likewise.
3567 * tree-profile.c: Likewise.
3568 * tree-scalar-evolution.c: Likewise.
3569 * tree-sra.c: Likewise.
3570 * tree-ssa-address.c: Likewise.
3571 * tree-ssa-alias.c: Likewise.
3572 * tree-ssa-ccp.c: Likewise.
3573 * tree-ssa-coalesce.c: Likewise.
3574 * tree-ssa-copy.c: Likewise.
3575 * tree-ssa-dce.c: Likewise.
3576 * tree-ssa-dom.c: Likewise.
3577 * tree-ssa-dse.c: Likewise.
3578 * tree-ssa-forwprop.c: Likewise.
3579 * tree-ssa-ifcombine.c: Likewise.
3580 * tree-ssa-live.c: Likewise.
3581 * tree-ssa-loop-ch.c: Likewise.
3582 * tree-ssa-loop-im.c: Likewise.
3583 * tree-ssa-loop-ivcanon.c: Likewise.
3584 * tree-ssa-loop-ivopts.c: Likewise.
3585 * tree-ssa-loop-manip.c: Likewise.
3586 * tree-ssa-loop-niter.c: Likewise.
3587 * tree-ssa-loop-prefetch.c: Likewise.
3588 * tree-ssa-loop-unswitch.c: Likewise.
3589 * tree-ssa-loop.c: Likewise.
3590 * tree-ssa-math-opts.c: Likewise.
3591 * tree-ssa-operands.c: Likewise.
3592 * tree-ssa-phiopt.c: Likewise.
3593 * tree-ssa-phiprop.c: Likewise.
3594 * tree-ssa-pre.c: Likewise.
3595 * tree-ssa-propagate.c: Likewise.
3596 * tree-ssa-reassoc.c: Likewise.
3597 * tree-ssa-sccvn.c: Likewise.
3598 * tree-ssa-scopedtables.c: Likewise.
3599 * tree-ssa-sink.c: Likewise.
3600 * tree-ssa-strlen.c: Likewise.
3601 * tree-ssa-structalias.c: Likewise.
3602 * tree-ssa-tail-merge.c: Likewise.
3603 * tree-ssa-ter.c: Likewise.
3604 * tree-ssa-threadedge.c: Likewise.
3605 * tree-ssa-threadupdate.c: Likewise.
3606 * tree-ssa-uncprop.c: Likewise.
3607 * tree-ssa-uninit.c: Likewise.
3608 * tree-ssa.c: Likewise.
3609 * tree-ssanames.c: Likewise.
3610 * tree-stdarg.c: Likewise.
3611 * tree-streamer-in.c: Likewise.
3612 * tree-streamer-out.c: Likewise.
3613 * tree-streamer.c: Likewise.
3614 * tree-switch-conversion.c: Likewise.
3615 * tree-tailcall.c: Likewise.
3616 * tree-vect-data-refs.c: Likewise.
3617 * tree-vect-generic.c: Likewise.
3618 * tree-vect-loop-manip.c: Likewise.
3619 * tree-vect-loop.c: Likewise.
3620 * tree-vect-patterns.c: Likewise.
3621 * tree-vect-slp.c: Likewise.
3622 * tree-vect-stmts.c: Likewise.
3623 * tree-vectorizer.c: Likewise.
3624 * tree-vrp.c: Likewise.
3625 * tree.c: Likewise.
3626 * tsan.c: Likewise.
3627 * ubsan.c: Likewise.
3628 * value-prof.c: Likewise.
3629 * var-tracking.c: Likewise.
3630 * varasm.c: Likewise.
3631 * varpool.c: Likewise.
3632 * vtable-verify.c: Likewise.
3633 * web.c: Likewise.
3634 * wide-int-print.cc: Likewise.
3635 * wide-int.cc: Likewise.
3636 * xcoffout.c: Likewise.
3637
3638 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
3639
3640 * Makefile.in (NO_PIE_CFLAGS): New.
3641 (NO_PIE_FLAG): Likewise.
3642 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3643 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3644 (BUILD_NO_PIE_CFLAGS): Likewise.
3645 (BUILD_NO_PIE_FLAG): Likewise.
3646 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3647 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3648 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3649 $(BUILD_NO_PIE_CFLAGS).
3650 (BUILD_CXXFLAGS): Likewise.
3651 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3652 $(BUILD_NO_PIE_FLAG).
3653 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
3654 (BUILD_NO_PIE_FLAG): Likewise.
3655 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3656 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3657 * configure: Regenerated.
3658
3659 2015-10-29 Richard Biener <rguenther@suse.de>
3660
3661 PR middle-end/56956
3662 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3663 unsigned conditonal negation to ABS_EXPR.
3664
3665 2015-10-29 Richard Biener <rguenther@suse.de>
3666
3667 * gimple-match-head.c (gimple_simplify): Remove premature checking
3668 of builtin_decl_implicit of function calls we simplify.
3669
3670 2015-10-29 Bin Cheng <bin.cheng@arm.com>
3671
3672 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3673 (get_computation_cost_at): Ditto.
3674 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3675 and inv_expr_id.
3676
3677 2015-10-28 Tom de Vries <tom@codesourcery.com>
3678
3679 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3680 superfluous code.
3681
3682 2015-10-28 Jason Merrill <jason@redhat.com>
3683
3684 * Makefile.in (TAGS): Include libcpp and libiberty.
3685
3686 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3687
3688 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3689 (extract_omp_for_data): Remove OpenACC special handling of
3690 chunking.
3691
3692 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3693 (struct parallel): Update comment.
3694 (nvptx_reorg): Likewise.
3695 (nvptx_neuter): Cleanup whitespace.
3696
3697 2015-10-28 Richard Henderson <rth@redhat.com>
3698
3699 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3700
3701 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3702
3703 PR target/67839
3704 * config/avr/predicates.md (low_io_address_operand): Don't
3705 consider MODE when computing upper bound.
3706 (io_address_operand): Likewise.
3707
3708 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3709
3710 * fold-const.c (operand_equal_p): Do not verify that types are
3711 compatible for MEM_REFs.
3712
3713 2015-10-28 Richard Biener <rguenther@suse.de>
3714
3715 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3716 in simplifying VEC_COND_EXPR conditions.
3717
3718 2015-10-28 Tom de Vries <tom@codesourcery.com>
3719
3720 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3721 into vi_next of a full_var.
3722
3723 2015-10-28 Tom de Vries <tom@codesourcery.com>
3724
3725 * tree-ssa-structalias.c (new_var_info, make_heapvar)
3726 (make_constraint_from_restrict, make_constraint_from_global_restrict)
3727 (create_function_info_for, create_variable_info_for_1)
3728 (create_variable_info_for): Add and handle add_id parameter.
3729 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3730 (init_base_vars): Add extra argument to calls to new_var_info.
3731 (get_vi_for_tree): Add extra argument to call to
3732 create_variable_info_for.
3733 (process_constraint, do_deref, process_all_all_constraints): Add extra
3734 argument to calls to new_scalar_tmp_constraint_exp.
3735 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3736 argument to calls to make_heapvar.
3737 (make_restrict_var_constraints): Add extra argument to call to
3738 make_constraint_from_global_restrict.
3739 (intra_create_variable_infos): Add extra argument to call to
3740 create_variable_info_for_1.
3741 (ipa_pta_execute): Add extra argument to call to
3742 create_function_info_for.
3743
3744 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3745
3746 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3747 (sibcall_value): Likewise.
3748
3749 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3750
3751 * config/nvptx/nvptx.h (struct machine_function): Add
3752 axis_predicate.
3753 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3754 nvptx_expand_oacc_join): Declare.
3755 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3756 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3757 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3758 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3759 UNSPECV_JOINING, UNSPECV_JOIN): New.
3760 (BITS, BITD): New mode iterators.
3761 (br_true_uni, br_false_uni): New.
3762 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3763 (oacc_dim_size, oacc_dim_pos): New.
3764 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3765 (oacc_fork, oacc_join): New.
3766 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3767 (worker_load<mode>, worker_store<mode>): New.
3768 (nvptx_barsync): New.
3769 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3770 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3771 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3772 worker_bcast_sym): New.
3773 (nvptx_option_override): Initialize worker broadcast buffer.
3774 (nvptx_emit_forking, nvptx_emit_joining): New.
3775 (nvptx_init_axis_predicate): New.
3776 (nvptx_declare_function_name): Init axis predicates.
3777 (nvptx_expand_call): Add fork/join markers around routine call.
3778 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3779 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3780 (nvptx_gen_vcast): New.
3781 (struct wcast_data_t): New.
3782 (enum propagate_mask): New.
3783 (nvptx_gen_wcast): New.
3784 (nvptx_print_operand): Add 'S' case.
3785 (struct parallel): New.
3786 (parallel::parallel, parallel::~parallel): New.
3787 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3788 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3789 nvptx_find_par, nvptx_discover_pars): New.
3790 (nvptx_propagate): New.
3791 (vprop_gen, nvptx_vpropagate): New.
3792 (wprop_gen, nvptx_wpropagate): New.
3793 (nvptx_wsync): New.
3794 (nvptx_single, nvptx_skip_par): New.
3795 (nvptx_process_pars, nvptx_neuter_pars): New.
3796 (ntptx_reorg): Split blocks, generate parallel structure, apply
3797 neutering.
3798 (nvptx_cannot_copy_insn_p): New.
3799 (nvptx_file_end): Emit worker broadcast decl.
3800 (nvptx_goacc_fork_join): New.
3801 (TARGET_CANNOT_COPY_INSN_P): Override.
3802 (TARGET_GOACC_FORK_JOIN): Override.
3803
3804 2015-10-28 Richard Biener <rguenther@suse.de>
3805
3806 * fold-const.c (negate_expr_p): Adjust the division case to
3807 properly avoid introducing undefined overflow.
3808 (fold_negate_expr): Likewise.
3809
3810 2015-10-28 Richard Biener <rguenther@suse.de>
3811
3812 PR tree-optimization/65962
3813 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3814 Avoid creating loop carried dependences also for outer loops
3815 of the loop a use to replace is in.
3816
3817 2015-10-28 Richard Biener <rguenther@suse.de>
3818
3819 * common.opt (fchecking): New flag controlling flag_checking.
3820 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3821 * timevar.c (timer::print): Adjust output.
3822 * doc/invoke.texi (fchecking): Document.
3823
3824 2015-10-28 Richard Biener <rguenther@suse.de>
3825
3826 PR middle-end/68067
3827 * fold-const.c (negate_expr_p): We cannot negate plus or minus
3828 if overflow is not wrapping. Likewise multiplication unless
3829 one operand is constant and not power of two.
3830 (fold_negate_expr): Adjust accordingly.
3831
3832 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3833
3834 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3835 fields.
3836 (is_oacc_parallel, is_oacc_kernels): New.
3837 (enclosing_target_ctx): May return NULL.
3838 (ctx_in_oacc_kernels_region): New.
3839 (check_oacc_kernel_gwv): New.
3840 (oacc_loop_or_target_p): Delete.
3841 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
3842 operands. Strip reductions fro kernels.
3843 (scan_omp_target): Don't calculate gwv mask.
3844 (lower_oacc_head_mark, lower_oacc_loop_marker,
3845 lower_oacc_head_tail): New.
3846 (struct oacc_collapse): New.
3847 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3848 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3849 Remove OpenACC handling.
3850 (expand_oacc_for): New.
3851 (expand_omp_for): Call expand_oacc_for.
3852 (lower_omp_for): Call lower_oacc_head_tail.
3853
3854 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
3855
3856 * attribs.c (check_attribute_tables): New function, broken out from...
3857 (init_attributes): Use it.
3858 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3859 gcc_checking_assert and checking_* functions to eliminate
3860 ENABLE_CHECKING conditionals.
3861 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3862 (pass_expand::execute): Likewise.
3863 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3864 * cgraphunit.c (mark_functions_to_output): Likewise.
3865 (cgraph_node::expand_thunk): Likewise.
3866 (symbol_table::compile): Likewise.
3867 * ddg.c (add_cross_iteration_register_deps): Likewise.
3868 (create_ddg_all_sccs): Likewise.
3869 * df-core.c (df_finish_pass, df_analyze): Likewise.
3870 * diagnostic-core.h: Likewise.
3871 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3872 * dominance.c (calculate_dominance_info): Likewise.
3873 * dwarf2out.c (add_AT_die_ref): Likewise.
3874 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3875 (loc_list_from_tree, gen_lexical_block_die): Likewise.
3876 gen_type_die_with_usage, gen_type_die): Likewise.
3877 (dwarf2out_decl): Likewise.
3878 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3879 * except.c (duplicate_eh_regions): Likewise.
3880 * fwprop.c (register_active_defs, update_df_init): Likewise.
3881 (fwprop_init, fwprop_done): Likewise.
3882 (update_uses): Likewise.
3883 * ggc-page.c (ggc_grow): Likewise.
3884 * gimplify.c (gimplify_body): Likewise.
3885 (gimplify_hasher::equal): Likewise.
3886 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3887 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3888 Likewise.
3889 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3890 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3891 * hash-table.h (::find_empty_slot_for_expand): Likewise.
3892 * ifcvt.c (if_convert): Likewise.
3893 * ipa-cp.c (ipcp_propagate_stage): Likewise.
3894 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3895 (odr_type_p, odr_types_equivalent_p): Likewise.
3896 (add_type_duplicate, get_odr_type): Likewise.
3897 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3898 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3899 (sem_item_optimizer::verify_classes): Likewise.
3900 (sem_item_optimizer::traverse_congruence_split): Likewise.
3901 (sem_item_optimizer::checking_verify_classes): New.
3902 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3903 method.
3904 * cfgrtl.c (commit_edge_insertions): Likewise.
3905 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3906 (rtl_flow_call_edges_add): Likewise.
3907 * cgraph.c (symbol_table::create_edge): Likewise.
3908 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3909 * cgraph.h (symtab_node): Likewise.
3910 (symtab_node::checking_verify_symtab_nodes): Define.
3911 (cgraph_node::checking_verify_cgraph_nodes): Define.
3912 * cfghooks.h (checking_verify_flow_info): Define.
3913 * cfgloop.h (checking_verify_loop_structure): Define.
3914 * dominance.h (checking_verify_dominators): Define.
3915 * et-forest.c: Fix comment.
3916 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3917 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3918 ENABLE_CHECKING conditionals.
3919 * ipa-inline-transform.c (save_inline_function_body): Likewise.
3920 * ipa-inline.c (inline_small_functions): Likewise.
3921 (early_inliner): Likewise.
3922 * ipa-inline.h (estimate_edge_growth): Likewise.
3923 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3924 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3925 (ipa_single_use): Likewise.
3926 * ira-int.h: Likewise.
3927 * ira.c (ira): Likewise.
3928 * loop-doloop.c (doloop_optimize_loops): Likewise.
3929 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3930 * loop-invariant.c (move_loop_invariants): Likewise.
3931 * lra-assigns.c (lra_assign): Likewise.
3932 * lra-constraints.c (lra_constraints): Likewise.
3933 * lra-eliminations.c (lra_eliminate): Likewise.
3934 * lra-int.h (struct lra_reg): Likewise.
3935 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3936 (lra_create_live_ranges_1): Likewise.
3937 * lra-remat.c (create_remat_bb_data): Likewise.
3938 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3939 (lra): Likewise.
3940 (check_rtl): Always define. Remove incorrect guard around
3941 extract_constrain_insn call.
3942 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3943 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3944 ENABLE_CHECKING conditionals.
3945 * lto-streamer-out.c (DFS::DFS): Likewise.
3946 (lto_output): Likewise.
3947 * lto-streamer.c (lto_streamer_init): Likewise.
3948 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3949 expand_omp_target, execute_expand_omp): Likewise.
3950 (lower_omp_target): Likewise.
3951 * passes.c (execute_function_todo): Likewise.
3952 (execute_todo, execute_one_pass): Likewise.
3953 (verify_curr_properties): Always define.
3954 * predict.c (tree_estimate_probability: Use flag_checking,
3955 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3956 ENABLE_CHECKING conditionals.
3957 (propagate_freq): Likewise.
3958 * pretty-print.c (pp_format): Likewise.
3959 * real.c (real_to_decimal_for_mode): Likewise.
3960 * recog.c (split_all_insns): Likewise.
3961 * regcprop.c (kill_value_one_regno): Likewise.
3962 (copy_value): Likewise.
3963 (validate_value_data): Define unconditionally.
3964 * reload.c: Fix comment.
3965 * timevar.c: Include options.h
3966 * tree-ssa.h (checking_verify_ssa): Define.
3967 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3968 * sched-deps.c (CHECK): Remove unused macro.
3969 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3970 gcc_checking_assert and checking_* functions to eliminate
3971 ENABLE_CHECKING conditionals.
3972 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3973 * sel-sched.c (struct moveop_static_params): Likewise.
3974 (find_best_reg_for_expr, move_cond_jump): Likewise.
3975 (move_op_orig_expr_not_found): Likewise.
3976 (code_motion_process_successors, move_op): Likewise.
3977 * ssa-iterators.h (first_readonly_imm_use): Likewise.
3978 (next_readonly_imm_use): Likewise.
3979 * store-motion.c (compute_store_table): Likewise.
3980 * symbol-summary.h (function_summary::function_summary): Likewise.
3981 * target.h (cumulative_args_t): Likewise.
3982 (get_cumulative_args, pack_cumulative_args): Likewise.
3983 * timevar.c: (timer::print): Likewise.
3984 * trans-mem.c (ipa_tm_execute): Likewise.
3985 * tree-cfg.c (move_stmt_op): Likewise.
3986 (move_sese_region_to_fn): Likewise.
3987 (gimple_flow_call_edges_add): Likewise.
3988 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3989 Likewise.
3990 * tree-eh.c (remove_unreachable_handlers): Likewise.
3991 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3992 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3993 * tree-into-ssa.c (update_ssa): Likewise.
3994 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3995 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3996 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3997 * tree-predcom.c (suitable_component_p): Likewise.
3998 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3999 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4000 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4001 * tree-ssa-live.h (register_ssa_partition): Likewise.
4002 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4003 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4004 (tree_transform_and_unroll_loop): Likewise.
4005 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4006 * tree-ssa-operands.c (get_expr_operands): Likewise.
4007 * tree-ssa-propagate.c (replace_exp_1): Likewise.
4008 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4009 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4010 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4011 * tree-ssanames.c (release_ssa_name_fn): Likewise.
4012 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4013 * tree-vect-loop-manip.c
4014 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4015 (slpeel_checking_verify_cfg_after_peeling): Likewise.
4016 (vect_do_peeling_for_loop_bound): Likewise.
4017 (vect_do_peeling_for_alignment): Likewise.
4018 * tree-vrp.c (supports_overflow_infinity): Likewise.
4019 (set_value_range): Likewise.
4020 * tree.c (free_lang_data_in_cgraph): Likewise.
4021 * value-prof.c (gimple_remove_histogram_value): Likewise.
4022 (free_hist): Likewise.
4023 * var-tracking.c (canonicalize_values_star): Likewise.
4024 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4025
4026 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4027
4028 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4029 IFN_GOACC_LOOP): New.
4030 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4031 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4032 IFN_UNIQUE_OACC_TAIL_MARK.
4033 (enum ifn_goacc_loop_kind): New.
4034 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4035 IFN_UNIQUE_OACC_JOIN cases.
4036 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4037 (expand_GOACC_LOOP): New.
4038 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4039 * omp-low.c: Include gimple-pretty-print.h.
4040 (struct oacc_loop): New.
4041 (enum oacc_loop_flags): New.
4042 (oacc_thread_numbers): New.
4043 (oacc_xform_loop): New.
4044 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4045 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4046 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4047 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4048 oacc_loop_discovery): New.
4049 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4050 oacc_loop_process): New.
4051 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4052 (execute_oacc_device_lower): Discover & process loops. Process
4053 internal fns.
4054 * target.def (goacc.fork_join): Change sense of hook, clarify
4055 documentation.
4056 * doc/tm.texi: Regenerated.
4057
4058 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4059
4060 * target-insns.def (oacc_fork, oacc_join): Define.
4061 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4062 (goacc.fork_join): New GOACC hook.
4063 * targhooks.h (default_goacc_fork_join): Declare.
4064 * omp-low.c (default_goacc_forkjoin): New.
4065 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4066 * doc/tm.texi: Regenerate.
4067
4068 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4069
4070 * omp-low.c (oacc_init_rediction_array): New.
4071 (oacc_initialize_reduction_data): Initialize array.
4072
4073 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4074
4075 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4076
4077 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4078
4079 * internal-fn.c (expand_UNIQUE): New.
4080 * internal-fn.h (enum ifn_unique_kind): New.
4081 * internal-fn.def (IFN_UNIQUE): New.
4082 * target-insns.def (unique): Define.
4083 * gimple.h (gimple_call_internal_unique_p): New.
4084 * gimple.c (gimple_call_same_target_p): Check internal fn
4085 uniqueness.
4086 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4087 * tree-ssa-threadedge.c
4088 (record_temporary_equivalences_from_stmts): Likewise.
4089 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4090
4091 2015-10-27 Richard Henderson <rth@redhat.com>
4092
4093 PR rtl-opt/67609
4094 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4095 narrowing subregs on SSE and MMX registers.
4096 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4097 appear to be sub-words of multi-register pseudos must be rejected.
4098 * doc/tm.texi: Regenerate.
4099
4100 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4101
4102 PR target/68102
4103 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4104 operands[0] is a reg before taking its REGNO in split condition.
4105 (*movdi_aarch64): Likewise.
4106
4107 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4108
4109 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4110 Handle floating point inner modes properly.
4111
4112 2015-10-27 Alan Hayward <alan.hayward@arm.com>
4113
4114 * tree-vect-looop.c
4115 (vectorizable_live_operation): Change iterator.
4116
4117 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4118 Aditya Kumar <aditya.k7@samsung.com>
4119
4120 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4121 function to schedule based on isl_schedule_node.
4122 (get_schedule_map_st): New schedule optimizer based on
4123 isl_schedule_node.
4124 (scop_get_domains): New. Return the isl_union_set containing the
4125 domains of all the pbbs.
4126 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4127
4128 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
4129
4130 PR target/67215
4131 * calls.c (prepare_call_address): Don't handle -fno-plt here.
4132 * config/i386/i386.c (ix86_expand_call): Generate indirect call
4133 via GOT for -fno-plt. Support indirect call via GOT for x32.
4134 * config/i386/predicates.md (sibcall_memory_operand): Allow
4135 GOT memory operand.
4136
4137 2015-10-27 Richard Biener <rguenther@suse.de>
4138
4139 PR tree-optimization/68104
4140 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4141 strided access check ...
4142 (vect_compute_data_refs_alignment): ... here.
4143
4144 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
4145 Joseph Myers <joseph@codesourcery.com>
4146 Mark Shinwell <shinwell@codesourcery.com>
4147 Andrew Stubbs <ams@codesourcery.com>
4148 Rich Felker <dalias@libc.org>
4149
4150 * config.gcc: Handle --enable-fdpic.
4151 * config/sh/constraints.md (Ccl): New constraint.
4152 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4153 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4154 __SH_FDPIC__.
4155 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4156 library functions.
4157 * config/sh/sh-protos.h (function_symbol_result): New struct.
4158 (function_symbol): Return function_symbol_result.
4159 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4160 declarations.
4161 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4162 target hook.
4163 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4164 (sh_option_override): Force -fPIC if FDPIC is in effect.
4165 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4166 UNSPEC_GOTOFFFUNCDESC cases.
4167 (prepare_move_operands): Use FDPIC initial GOT register for
4168 TLS-related GOT access; inhibit cross-section address offset constants
4169 for FDPIC.
4170 (sh_assemble_integer): New function.
4171 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4172 PC-relative call sites.
4173 (expand_ashiftrt): Adapt invocation of function_symbol.
4174 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4175 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4176 UNSPEC_GOTOFFFUNCDESC.
4177 (legitimize_pic_address): Resolve function symbols to function
4178 descriptors for FDPIC. Do not use GOT-relative addressing for local
4179 data that may be read-only on FDPIC.
4180 (sh_emit_storesi, sh_emit_storehi): New functions.
4181 (sh_trampoline_init): Generate FDPIC trampolines.
4182 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4183 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4184 (sh_output_mi_thunk): Generate FDPIC call.
4185 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
4186 FDPIC, generate call site labels to use PC-relative addressing rather
4187 than GOT-relative addressing.
4188 (sh_conditional_register_usage): Make PIC register fixed and call used
4189 when FDPIC is in effect.
4190 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4191 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4192 sh_get_fdpic_reg_initial_val): New functions.
4193 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4194 Handle -mfdpic.
4195 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4196 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4197 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4198 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4199 FDPIC_SELF_SPECS.
4200 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4201 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4202 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4203 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4204 constants.
4205 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4206 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4207 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4208 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4209 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4210 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4211 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4212 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4213 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4214 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4215 block_move_real, block_lump_real, block_move_real_i4,
4216 block_lump_real_i4): Add support for FDPIC calls.
4217 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4218 call_value_pop): Adjust for new function_symbol signature.
4219 * config/sh/sh.opt (-mfdpic): New option.
4220 * doc/install.texi (Options specification): Document --enable-fdpic.
4221 * doc/invoke.texi (SH Options): Document -mfdpic.
4222
4223
4224 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4225
4226 PR tree-optimization/65963
4227 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4228 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4229
4230 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4231
4232 PR target/67929
4233 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4234 * config/arm/constraints.md (Dp): Update callsite.
4235 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4236
4237 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4238
4239 * builtins.c (fold_builtin_load_exponent): Rename to...
4240 (fold_const_builtin_load_exponent): ...this and only handle
4241 constant arguments.
4242 (fold_builtin_2): Update accordingly.
4243 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4244
4245 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4246
4247 * builtins.c (fold_builtin_logb): Rename to...
4248 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4249 (fold_builtin_significand): Rename to...
4250 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4251 (fold_builtin_1): Update accordingly.
4252
4253 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4254
4255 * builtins.c (fold_builtin_fmin_fmax): Delete.
4256 (fold_builtin_2): Handle constant fmin and fmax arguments here.
4257 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4258
4259 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
4260
4261 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4262 for register extension into sign and zero register extension.
4263 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4264 for sign and zero register extension.
4265 (cortexa57_addrcost_table): Likewise.
4266 (xgene1_addrcost_table): Likewise.
4267
4268 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4269
4270 * fold-const.c (fold_minmax): Delete.
4271 (fold_binary_loc): Don't call it.
4272 * match.pd: Add rules previously handled by fold_minmax.
4273
4274 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4275
4276 * builtins.c (fold_builtin_fma): Remove constant handling.
4277 (fold_builtin_3): Handle constant fma arguments here.
4278
4279 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4280
4281 * builtins.c (fold_builtin_fabs): Remove constant handling.
4282 (fold_builtin_abs): Likewise.
4283
4284 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4285
4286 * builtins.c (fold_builtin_copysign): Delete.
4287 (fold_builtin_2): Handle constant copysign arguments here.
4288 * match.pd: Add rules previously handled by fold_builtin_copysign.
4289
4290 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4291
4292 * builtins.c (fold_builtin_signbit): Delete.
4293 (fold_builtin_2): Handle constant signbit arguments here.
4294 * match.pd: Add rules previously handled by fold_builtin_signbit.
4295
4296 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4297
4298 * match.pd: Handle sqrt(x) cmp 0 specially.
4299
4300 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
4301
4302 * tree-vect-generic.c (expand_vector_operations_1): Check
4303 optab type before using it.
4304
4305 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4306
4307 * config/aarch64/aarch64-protos.h
4308 (struct tune_params): Add autoprefetcher_model field.
4309 * config/aarch64/aarch64.c: Include params.h
4310 (generic_tunings): Specify autoprefetcher_model value.
4311 (cortexa53_tunings): Likewise.
4312 (cortexa57_tunings): Likewise.
4313 (cortexa72_tunings): Likewise.
4314 (thunderx_tunings): Likewise.
4315 (xgene1_tunings): Likewise.
4316 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4317 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4318 (aarch64_override_options_internal): Set
4319 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4320
4321 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4322
4323 * builtins.c (fold_builtin_exponent): Delete.
4324 (fold_builtin_2): Handle constant expN arguments here.
4325 * match.pd: Fold expN(logN(x)) -> x.
4326
4327 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4328
4329 * builtins.c (fold_builtin_powi): Delete.
4330 (fold_builtin_2): Handle constant powi arguments here.
4331 * match.pd: Add rules previously handled by fold_builtin_powi.
4332
4333 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4334
4335 * builtins.c (fold_builtin_pow): Delete in favor of...
4336 (fold_const_builtin_pow): ...this new function. Only handle constant
4337 arguments.
4338 (fold_builtin_2): Update accordingly.
4339 * match.pd: Add rules previously handled by fold_builtin_pow.
4340
4341 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4342
4343 * builtins.c (fold_builtin_hypot): Delete.
4344 (fold_builtin_2): Handle constant hypot arguments here.
4345 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4346 hypot(x, x) to fabs(x)*sqrt(2).
4347
4348 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4349
4350 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4351 instead of make_ssa_name if not yet in SSA form.
4352
4353 2015-10-27 Richard Biener <rguenther@suse.de>
4354
4355 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4356 (clear_edges): Likewise.
4357 * cfg.h (clear_edges): Adjust prototype.
4358 * cfgexpand.c (pass_expand::execute): Adjust.
4359 * cfgloop.c (release_recorded_exits): Add function argument and use
4360 it instead of cfun.
4361 * cfgloop.h (release_recorded_exits): Adjust prototype.
4362 (loops_state_satisfies_p): Add overload with function argument.
4363 (loops_state_set): Likewise.
4364 (loops_state_clear): Likewise.
4365 (struct loop_iterator): Add function argument to constructor
4366 and iterator and use it instead of cfun.
4367 (FOR_EACH_LOOP_FN): New macro.
4368 (loop_optimizer_finalize): Add overload with function argument.
4369 * loop-init.c (loop_optimizer_init): Adjust.
4370 (fix_loop_structure): Likewise.
4371 (loop_optimizer_finaliz): Add function argument and use it
4372 instead of cfun.
4373 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4374 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4375 * cgraph.c (release_function_body): Do not push/pop cfun.
4376 * final.c (rest_of_clean_state): Adjust.
4377 * graphite.c (graphite_finalize): Likewise.
4378 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4379 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4380 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4381 (tree_unroll_loops_completely): Likewise.
4382 (pass_complete_unrolli::execute): Likewise.
4383 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4384 Add function argument and use it instead of cfun.
4385 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4386 Adjust prototype.
4387 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4388 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4389 instead of cfun.
4390 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4391 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4392 instead of cfun.
4393 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4394 * tree-vrp.c (execute_vrp): Adjust.
4395 * value-prof.c (free_histograms): Add function argument and use it
4396 instead of cfun.
4397 * value-prof.h (free_histograms): Adjust prototype.
4398
4399 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4400
4401 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4402 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4403 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4404
4405 2015-10-27 Tom de Vries <tom@codesourcery.com>
4406
4407 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4408 field_type.
4409
4410 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4411
4412 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4413 (inv_can_prop_to_addr_use): New function.
4414 (record_use): Call can_prop_to_addr_uses, set the new field.
4415 (get_inv_cost): Count cost if inv can't be propagated into its
4416 address uses.
4417
4418 2015-10-26 Doug Evans <dje@google.com>
4419
4420 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4421
4422 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4423
4424 * match.pd (fold_widened_comparison): Apply simplifications to all
4425 integral types.
4426
4427 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4428
4429 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4430 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4431 * doc/tm.texi: Regenerated.
4432 * reorg.c (dbr_schedule): Use new hook.
4433 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4434
4435 2015-10-26 Jeff Law <law@redhat.com>
4436
4437 PR tree-optimization/68013
4438 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4439 Make sure the first block in the path is in VISITED_BBs.
4440
4441 2015-10-26 Richard Biener <rguenther@suse.de>
4442 Dominik Vogt <vogt@linux.vnet.ibm.com>
4443
4444 PR middle-end/67443
4445 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4446 Properly prune ref->ref for accesses outside of ref.
4447
4448 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4449
4450 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4451 new statements to be inserted if inplace. Allow calls to have
4452 nonempty sequences.
4453
4454 2015-10-26 Richard Biener <rguenther@suse.de>
4455
4456 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4457 (do_valueize): New function.
4458 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4459 replace_uses_by.
4460 * tree-ssa-threadedge.c: Remove builtins.h include, include
4461 gimple-fold.h
4462 (fold_assignment_stmt): Remove.
4463 (threadedge_valueize): New function.
4464 (record_temporary_equivalences_from_stmts): Use
4465 gimple_fold_stmt_to_constant_1, note additional cleanup
4466 opportunities.
4467
4468 2015-10-26 Richard Biener <rguenther@suse.de>
4469
4470 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4471 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4472
4473 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4474
4475 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4476 VEC_COND_EXPR types.
4477
4478 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4479
4480 * auto-inc-dec.c (insert_move_insn_before): Delete.
4481 (attempt_change): Remember to cost the simple move in the
4482 FORM_PRE_ADD and FORM_POST_ADD cases.
4483
4484 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
4485
4486 PR target/68091
4487 * config/sh/sh.c (sh_vector_mode_supported_p): Use
4488 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4489
4490 2015-10-26 Tom de Vries <tom@codesourcery.com>
4491
4492 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4493 factored out of ...
4494 (intra_create_variable_infos): ... here.
4495
4496 2015-10-26 Tom de Vries <tom@codesourcery.com>
4497
4498 * tree-ssa-structalias.c (intra_create_variable_infos): Add
4499 restrict_pointer_p and recursive_restrict_p variables.
4500
4501 2015-10-26 Tom de Vries <tom@codesourcery.com>
4502
4503 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4504 get_vi_for_tree call.
4505
4506 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4507
4508 PR middle-end/67989
4509 * optabs.c (expand_atomic_compare_and_swap): Handle case when
4510 ptarget_oval or ptarget_bool are const0_rtx.
4511
4512 2015-10-26 Christian Bruel <christian.bruel@st.com>
4513
4514 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4515 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4516 * cp/method.c (implicitly_declare_fn): Likewise.
4517 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4518 * java/class.c (add_method_1): Likewise.
4519
4520 2015-10-26 Richard Biener <rguenther@suse.de>
4521
4522 * alloc-pool.h (base_pool_allocator): Use placement new.
4523 (base_pool_allocator::remove): Likewise. Compute size outside of
4524 flag_checking.
4525
4526 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4527
4528 * builtins.c (do_real_to_int_conversion): New function.
4529 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4530 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4531 arguments here.
4532 * match.pd: Add rules previously handled by fold_fixed_mathfn
4533 and fold_builtin_int_roundingfn.
4534
4535 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4536
4537 * match.pd: Use macros to define built-in operator lists.
4538
4539 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
4540 Richard Biener <rguenther@suse.de>
4541
4542 * genmatch.c (dt_simplify::gen): Skip captures that are
4543 part of the result.
4544 (parser::parse_expr): Allow captures in results too.
4545 * builtins.c (fold_builtin_cexp): Delete.
4546 (fold_builtin_1): Handle constant cexp arguments here.
4547 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4548
4549 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
4550
4551 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4552 conditional compilation.
4553 (base_pool_allocator::remove): Use flag_checking.
4554
4555 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
4556
4557 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4558
4559 PR middle-end/68079
4560 * dojump.c (do_compare_and_jump): Canonicalize both function and
4561 method types.
4562
4563 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
4564
4565 PR target/68084
4566 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4567 for =@ccae.
4568
4569 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4570
4571 PR ipa/pr67600
4572 * ipa-polymorphic-call.c
4573 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4574 instance offset with offset of outer type.
4575
4576 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4577
4578 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4579
4580 2015-10-23 Caroline Tice <cmtice@google.com>
4581
4582 (from Richard Biener
4583 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
4584 call to iterative_hash_host_wide_int.
4585
4586 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4587
4588 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4589 Define as yes.
4590
4591 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4592
4593 * tree-vect-generic.c (expand_vector_operations_1): Check
4594 optab exists before use it.
4595
4596 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4597
4598 * tree-vect-generic.c (expand_vector_condition): Avoid
4599 uninitialized variable warning.
4600
4601 2015-10-23 Jeff Law <law@redhat.com>
4602
4603 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4604 here. Instead...
4605 (execute_todo): Call it here.
4606 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4607 statistics
4608 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4609
4610 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4611 Szabolcs Nagy <szabolcs.nagy@arm.com>
4612
4613 * config.gcc (enable_secureplt): Add *-linux*-musl*.
4614
4615 2015-10-23 Jeff Law <law@redhat.com>
4616
4617 PR tree-optimization/67830
4618 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4619 Explicitly verify the mask has no bits outside the type of
4620 the innermost operands.
4621
4622 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4623 Szabolcs Nagy <szabolcs.nagy@arm.com>
4624
4625 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4626 (MUSL_DYNAMIC_LINKER64): Define.
4627 (GNU_USER_DYNAMIC_LINKER32): Update.
4628 (GNU_USER_DYNAMIC_LINKER64): Update.
4629 (CHOOSE_DYNAMIC_LINKER): Update.
4630
4631 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4632 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4633 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4634 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4635 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4636 (CHOOSE_DYNAMIC_LINKER): Update.
4637 (INCLUDE_DEFAULTS): Redefine.
4638
4639 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4640
4641 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4642
4643 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4644 comparing addresses.
4645
4646 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4647
4648 * fold-const.c (operand_equal_p): Handle matching of vector
4649 constructors.
4650
4651 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4652
4653 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4654
4655 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
4656 Andrew Pinski <apinski@cavium.com>
4657
4658 PR rtl-optimization/67736
4659 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4660 of gen_lowpart.
4661
4662 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4663
4664 PR middle-end/68066
4665 * tree.c (build_truth_vector_type): Support BLK mode
4666 returned for boolean vector.
4667
4668 2015-10-23 Alan Hayward <alan.hayward@arm.com>
4669
4670 PR tree-optimization/65947
4671 * tree-vect-loop.c
4672 (vect_is_simple_reduction_1): Find condition reductions.
4673 (vect_model_reduction_cost): Add condition reduction costs.
4674 (get_initial_def_for_reduction): Add condition reduction initial var.
4675 (vect_create_epilog_for_reduction): Add condition reduction epilog.
4676 (vectorizable_reduction): Condition reduction support.
4677 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4678 * doc/sourcebuild.texi (Vector-specific attributes): Document
4679 vect_max_reduc
4680
4681 2015-10-23 Richard Biener <rguenther@suse.de>
4682
4683 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4684 and builtins.def.
4685
4686 2015-10-23 Richard Biener <rguenther@suse.de>
4687 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4688
4689 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4690 into (A ^ B) - B to match.pd
4691 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4692
4693 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4694 New simplifier.
4695 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4696 New simplifier.
4697 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4698 New simplifier.
4699 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4700 New simplifier.
4701 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4702 INTEGER_CST@1)): New simplifier.
4703
4704 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
4705
4706 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4707 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4708 (fold_builtin_ceil, fold_builtin_round): Delete.
4709 (fold_builtin_1): Handle constant trunc, floor, ceil and round
4710 arguments here.
4711 * convert.c (convert_to_real): Remove narrowing of rounding
4712 functions.
4713 * fold-const.h (integer_valued_real_unary_p)
4714 (integer_valued_real_binary_p, integer_valued_real_call_p)
4715 (integer_valued_real_single_p, integer_valued_real_p): Declare.
4716 * fold-const.c (tree_single_nonnegative_warnv_p): Move
4717 name_registered_for_update_p check to SSA_NAME case statement.
4718 Don't call tree_simple_nonnegative_warnv_p for SSA names.
4719 (integer_valued_real_unary_p, integer_valued_real_binary_p)
4720 (integer_valued_real_call_p, integer_valued_real_single_p)
4721 (integer_valued_real_invalid_p): New functions.
4722 (integer_valued_real_p): Move from fold-const.c and rework
4723 to call the functions above. Handle SSA names.
4724 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4725 * gimple-fold.c (gimple_assign_integer_valued_real_p)
4726 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4727 (gimple_stmt_integer_valued_real_p): New functions.
4728 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4729 Fold f(x)->x for the same f if x is known to be integer-valued.
4730 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4731 the result. Canonicalize floor(x) as trunc(x) if x is
4732 nonnegative.
4733
4734 2015-10-23 Tom de Vries <tom@codesourcery.com>
4735
4736 * tree-ssa-structalias.c (intra_create_variable_infos): Use
4737 make_constraint_from.
4738
4739 2015-10-23 Tom de Vries <tom@codesourcery.com>
4740
4741 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4742 setting of is_full_var in case of a single field.
4743
4744 2015-10-22 Martin Sebor <msebor@redhat.com>
4745
4746 PR driver/68043
4747 * config/i386/i386.opt: Add missing periods to the ends of sentences.
4748 * config/msp430/msp430.opt: Same.
4749
4750 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4751
4752 * doc/extend.exp (Global Register Variables): Rewrite.
4753
4754 2015-10-22 Jeff Law <law@redhat.com>
4755
4756 * genattrtab.c (main): If we do not have any annul-true or annul-false
4757 slots, then write out a dummy eligible_for_annul_true or
4758 eligible_for_annul_false as needed.
4759
4760 2015-10-22 Nick Clifton <nickc@redhat.com>
4761
4762 * config/msp430/msp430.opt: Add -msilicon-errata and
4763 -msilicon-errata-warn.
4764 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4765 assembler.
4766 * doc/invoke.texi: Document new options.
4767
4768 2015-10-22 Richard Biener <rguenther@suse.de>
4769
4770 PR tree-optimization/58497
4771 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4772 (expand_vector_operations_1): Use it. Lower operations on
4773 all uniform vectors to scalar operations if the HW supports it.
4774
4775 2015-10-22 Richard Biener <rguenther@suse.de>
4776
4777 PR tree-optimization/19049
4778 PR tree-optimization/65962
4779 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4780 to strided accesses if single-element interleaving doesn't work.
4781
4782 2015-10-22 Richard Biener <rguenther@suse.de>
4783
4784 PR middle-end/68046
4785 PR middle-end/61893
4786 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4787 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4788 (expand_unop): Likewise.
4789
4790 2015-10-22 Richard Biener <rguenther@suse.de>
4791
4792 * fold-const.c (fold_addr_of_array_ref_difference): Properly
4793 convert operands before folding a MINUS_EXPR.
4794 (fold_binary_loc): Move simplification of MINUS_EXPR on
4795 converted POINTER_PLUS_EXPRs ...
4796 * match.pd: ... here.
4797
4798 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4799
4800 * builtins.c (fold_builtin_tan): Delete.
4801 (fold_builtin_1): Handle constant tan arguments here.
4802 * match.pd: Simplify (tan (atan x)) to x.
4803
4804 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4805
4806 * builtins.c (fold_builtin_cproj): Delete.
4807 (fold_builtin_1): Handle constant arguments here.
4808 (build_complex_cproj): Move and rename to...
4809 * tree.c: (build_complex_inf): ...this.
4810 * tree.h (build_complex_inf): Declare.
4811 * match.pd: Fold cproj(x)->x if x has no infinity.
4812 Use build_complex_inf for existing cproj rules.
4813
4814 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4815
4816 PR target/68015
4817 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4818 already have a comparison result.
4819
4820 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4821
4822 PR target/63304
4823 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4824 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4825 (aarch64_classify_address): Likewise.
4826 (aarch64_secondary_reload): Likewise.
4827 (aarch64_override_options_after_change_1): Adjust.
4828 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4829 Use aarch64_nopcrelative_literal_loads.
4830 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4831 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4832 Declare.
4833
4834 2015-10-21 Martin Sebor <msebor@redhat.com>
4835
4836 PR driver/68043
4837 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4838 (print_filtered_help): Reference aliased option's name and encourage
4839 readers to use it in preference to the alias if the former is not
4840 documented. Mention when using an option is diagnosed.
4841 * gcc.c (display_help): End each sentence with a period.
4842
4843 * common.opt: End each sentence that describes an option with
4844 a period.
4845 * config/aarch64/aarch64.opt: Same.
4846 * config/alpha/alpha.opt: Same.
4847 * config/arc/arc.opt: Same.
4848 * config/arm/arm.opt: Same.
4849 * config/avr/avr.opt: Same.
4850 * config/bfin/bfin.opt: Same.
4851 * config/c6x/c6x.opt: Same.
4852 * config/cr16/cr16.opt: Same.
4853 * config/cris/cris.opt: Same.
4854 * config/cris/linux.opt: Same.
4855 * config/darwin.opt: Same.
4856 * config/epiphany/epiphany.opt: Same.
4857 * config/fr30/fr30.opt: Same.
4858 * config/frv/frv.opt: Same.
4859 * config/ft32/ft32.opt: Same.
4860 * config/g.opt: Same.
4861 * config/h8300/h8300.opt: Same.
4862 * config/i386/cygming.opt: Same.
4863 * config/i386/djgpp.opt: Same.
4864 * config/i386/i386.opt: Same.
4865 * config/i386/interix.opt: Same.
4866 * config/i386/mingw-w64.opt: Same.
4867 * config/i386/mingw.opt: Same.
4868 * config/ia64/ia64.opt: Same.
4869 * config/ia64/ilp32.opt: Same.
4870 * config/iq2000/iq2000.opt: Same.
4871 * config/linux.opt: Same.
4872 * config/lm32/lm32.opt: Same.
4873 * config/lynx.opt: Same.
4874 * config/m32c/m32c.opt: Same.
4875 * config/m32r/m32r.opt: Same.
4876 * config/m68k/ieee.opt: Same.
4877 * config/m68k/m68k.opt: Same.
4878 * config/mcore/mcore.opt: Same.
4879 * config/mep/mep.opt: Same.
4880 * config/microblaze/microblaze.opt: Same.
4881 * config/mips/mips.opt: Same.
4882 * config/mmix/mmix.opt: Same.
4883 * config/mn10300/mn10300.opt: Same.
4884 * config/moxie/moxie.opt: Same.
4885 * config/msp430/msp430.opt: Same.
4886 * config/nios2/elf.opt: Same.
4887 * config/nios2/nios2.opt: Same.
4888 * config/nvptx/nvptx.opt: Same.
4889 * config/pa/pa-hpux.opt: Same.
4890 * config/pa/pa-hpux1010.opt: Same.
4891 * config/pa/pa-hpux1111.opt: Same.
4892 * config/pa/pa-hpux1131.opt: Same.
4893 * config/pa/pa.opt: Same.
4894 * config/pa/pa64-hpux.opt: Same.
4895 * config/pdp11/pdp11.opt: Same.
4896 * config/rl78/rl78.opt: Same.
4897 * config/rs6000/476.opt: Same.
4898 * config/rs6000/aix64.opt: Same.
4899 * config/rs6000/darwin.opt: Same.
4900 * config/rs6000/linux64.opt: Same.
4901 * config/rs6000/rs6000.opt: Same.
4902 * config/rs6000/sysv4.opt: Same.
4903 * config/s390/s390.opt: Same.
4904 * config/s390/tpf.opt: Same.
4905 * config/sh/sh.opt: Same.
4906 * config/sol2.opt: Same.
4907 * config/sparc/long-double-switch.opt: Same.
4908 * config/sparc/sparc.opt: Same.
4909 * config/spu/spu.opt: Same.
4910 * config/stormy16/stormy16.opt: Same.
4911 * config/tilegx/tilegx.opt: Same.
4912 * config/tilepro/tilepro.opt: Same.
4913 * config/v850/v850.opt: Same.
4914 * config/vax/vax.opt: Same.
4915 * config/visium/visium.opt: Same.
4916 * config/vms/vms.opt: Same.
4917 * config/vxworks.opt: Same.
4918 * config/xtensa/xtensa.opt: Same.
4919
4920 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4921 Sebastian Pop <s.pop@samsung.com>
4922
4923 * graphite-scop-detection.c (parameter_index_in_region): Update call to
4924 invariant_in_sese_p_rec.
4925 * graphite-sese-to-poly.c (extract_affine): Same.
4926 * sese.c (invariant_in_sese_p_rec): Pass in an extra
4927 parameter has_vdefs.
4928 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4929 variable depends on virtual definitions in the current region.
4930 * sese.h (invariant_in_sese_p_rec): Update declaration.
4931
4932 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4933 Sebastian Pop <s.pop@samsung.com>
4934
4935 * graphite-scop-detection.c (build_scops): Do not handle scops
4936 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4937 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4938
4939 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
4940
4941 * config.in: Regenerate.
4942 * configure: Regenerate.
4943 * configure.ac (CHECKING_P): Define.
4944 * system.h: Use CHECKING_P.
4945
4946 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4947
4948 PR ipa/67056
4949 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4950 is negative we don't know the type.
4951 (check_stmt_for_type_change): Skip constructors of non-polymorphic
4952 types as those won't help devirutalization.
4953
4954 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4955
4956 * fold-const.c (operand_equal_p): Add code matching empty constructors.
4957
4958 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
4959
4960 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4961 comments.
4962 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4963 Add comments on sign of the result.
4964 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4965 Recurse on operand #1 instead of operand #0.
4966 <CEIL_MOD_EXPR>: Do not recurse.
4967 <ROUND_MOD_EXPR>: Likewise.
4968
4969 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4970
4971 * cfgrtl.c (pass_free_cfg::execute): Adjust.
4972 * final.c (dbr_sequence_length): Always define.
4973 (shorten_branches): Adjust.
4974 * genattr-common.c (main): Always define DELAY_SLOTS.
4975 * genattr.c (main): Unconditionally declare functions and define
4976 macros related to delay slots.
4977 * genattrtab.c (write_eligible_delay): Adjust.
4978 (main): Always write out delay slot functions.
4979 * opts.c (default_options_table): Adjust.
4980 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4981 (redirect_with_delay_list_safe_p): Likewise.
4982 (fill_simple_delay_slots): Likewise.
4983 (fill_slots_from_thread): Likewise.
4984 (make_return_insns): Likewise.
4985 (dbr_schedule): Likewise.
4986 (rest_of_handle_delay_slots): Likewise.
4987 (pass_delay_slots::gate): Likewise.
4988 * toplev.c (process_options): Likewise.
4989
4990 2015-10-21 Richard Henderson <rth@redhat.com>
4991
4992 * targhooks.c (default_addr_space_pointer_mode): Remove check
4993 for generic address space.
4994 (default_addr_space_address_mode): Likewise.
4995 (default_addr_space_valid_pointer_mode): Likewise.
4996 (default_addr_space_legitimate_address_p): Likewise.
4997 (default_addr_space_legitimize_address): Likewise.
4998 * target.def (addr_space.pointer_mode): Update documentation
4999 of default behavior.
5000 (addr_space.address_mode): Likewise.
5001 * tm.texi: Update.
5002
5003 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5004 address spaces.
5005
5006 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5007
5008 * builtins.c (fold_builtin_cabs): Delete.
5009 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5010 * match.pd: Add rules previously handled by fold_builtin_cabs.
5011
5012 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5013
5014 * fold-const.h (fold_strip_sign_ops): Delete.
5015 * fold-const.c (fold_strip_sign_ops): Likewise.
5016 (fold_unary_loc, fold_binary_loc): Remove calls to it.
5017 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5018 (fold_builtin_ccos): Delete.
5019 (fold_builtin_pow): Don't call fold_strip_sign_ops.
5020 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5021 Remove fndecl argument.
5022 (fold_builtin_1): Update calls accordingly. Handle constant
5023 cos, cosh, ccos and ccosh here.
5024
5025 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5026
5027 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5028 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5029 * common.opt (fssa-backprop): New option.
5030 * fold-const.h (negate_mathfn_p): Declare.
5031 * fold-const.c (negate_mathfn_p): Make public.
5032 * timevar.def (TV_TREE_BACKPROP): New.
5033 * tree-pass.h (make_pass_backprop): Declare.
5034 * passes.def (pass_backprop): Add.
5035 * gimple-ssa-backprop.c: New file.
5036
5037 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5038 Sebastian Pop <s.pop@samsung.com>
5039
5040 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5041 Do not call create_empty_if_region_on_edge when cond_expr is true.
5042 (translate_isl_ast_node_for): Check whether a guard has been generated.
5043
5044 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5045
5046 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5047 (operator=): Removed.
5048 (dr_info): Make alias_set number the last argument with default
5049 value of invalid_alias_set.
5050 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5051 of dr_info.
5052 (rewrite_reductions_out_of_ssa): Iterate only through the
5053 basic blocks which are inside region.
5054 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5055 * sese.h (struct sese_l): Removed assignment operator.
5056 (split_region_for_bb): Removed dead code.
5057
5058 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5059
5060 * graphite-poly.h (struct dr_info): Removed conversion constructor.
5061 (struct scop): Renamed scop::region to scop::scop_info
5062 (scop_set_region): Same.
5063 (SCOP_REGION): Removed
5064 (SCOP_CONTEXT): Removed.
5065 (POLY_SCOP_P): Removed.
5066 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5067 Rename scop->region to scop->scop_info.
5068 (add_parameters_to_ivs_params): Same.
5069 (graphite_regenerate_ast_isl): Same.
5070 * graphite-poly.c (new_scop): Same.
5071 (free_scop): Same.
5072 (print_scop_params): Same.
5073 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5074 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5075 (dot_all_scops_1): Rename scop->region to scop->scop_info.
5076 (scop_detection::nb_pbbs_in_loops): Same.
5077 (find_scop_parameters): Same.
5078 (try_generate_gimple_bb): Same.
5079 (gather_bbs::before_dom_children): Same.
5080 (gather_bbs::after_dom_children): Same.
5081 (build_scops): Same.
5082 * graphite-sese-to-poly.c (build_scop_scattering): Same.
5083 (extract_affine_chrec): Same.
5084 (extract_affine): Same.
5085 (set_scop_parameter_dim): Same.
5086 (build_loop_iteration_domains): Same.
5087 (create_pw_aff_from_tree): Same.
5088 (add_param_constraints): Same.
5089 (build_scop_iteration_domain): Same.
5090 (build_scop_drs): Same.
5091 (analyze_drs_in_stmts): Same.
5092 (insert_out_of_ssa_copy_on_edge): Same.
5093 (rewrite_close_phi_out_of_ssa):Same.
5094 (rewrite_reductions_out_of_ssa):Same.
5095 (handle_scalar_deps_crossing_scop_limits):Same.
5096 (rewrite_cross_bb_scalar_deps):Same.
5097 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5098 (build_poly_scop):Same.
5099 (build_alias_set): Use pointer to dr_info.
5100 * graphite.c (print_graphite_scop_statistics):
5101 (graphite_transform_loops):
5102 * sese.h (struct sese_l): Remove conversion constructor.
5103
5104 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5105
5106 PR middle-end/67966
5107 * tree.c (verify_type): Verify that TYPE_MODE match
5108 between TYPE_CANONICAL and type.
5109 * expr.c (store_expr_with_bounds): Revert my previous change.
5110 * expmed.c (store_bit_field_1): Revert prevoius change.
5111 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5112 to match for all types.
5113
5114 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
5115
5116 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5117 nesting.
5118
5119 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5120
5121 * doc/tm.texi: Regenerated.
5122 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5123 * stor-layout.c (layout_type): Use mode to get vector mask size.
5124 * target.def (get_mask_mode): New.
5125 * targhooks.c (default_get_mask_mode): New.
5126 * targhooks.h (default_get_mask_mode): New.
5127 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5128 for boolean vector.
5129 * tree.c (MAX_BOOL_CACHED_PREC): New.
5130 (nonstandard_boolean_type_cache): New.
5131 (build_nonstandard_boolean_type): New.
5132 (make_vector_type): Vector mask has no canonical type.
5133 (build_truth_vector_type): New.
5134 (build_same_sized_truth_vector_type): New.
5135 (truth_type_for): Support vector masks.
5136 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5137 (build_truth_vector_type): New.
5138 (build_same_sized_truth_vector_type): New.
5139 (build_nonstandard_boolean_type): New.
5140 * tree-cfg.c (verify_gimple_comparison) Require boolean
5141 vector type for vector comparison.
5142 (verify_gimple_assign_ternary): Likewise.
5143 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5144 condition operand.
5145 * tree-vect-stmts.c (vectorizable_condition): Use boolean
5146 vector type for vector comparison.
5147 * tree-vect-generic.c (elem_op_func): Add new operand to hold
5148 vector type.
5149 (do_unop): Adjust to modified function type.
5150 (do_binop): Likewise.
5151 (do_plus_minus): Likewise.
5152 (do_negate); Likewise.
5153 (expand_vector_piecewise): Likewise.
5154 (do_cond): Likewise.
5155 (do_compare): Use comparison instead of condition.
5156 (expand_vector_divmod): Use boolean vector type for comparison.
5157 (expand_vector_operations_1): Skip scalar mask operations.
5158
5159 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5160
5161 * omp-low.c (simd_clone_create): Set in_other_partition
5162 for created clones.
5163
5164 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5165
5166 * doc/extend.exp (Local Register Variables): Rewrite.
5167
5168 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5169
5170 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5171 and x*x in cases where the operands are sign ops. Extend these
5172 rules to handle copysign as a sign op (including for cos, cosh
5173 and pow, which already treated negate and abs as sign ops).
5174
5175 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
5176
5177 PR target/68018
5178 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5179 for 64-bit MS_ABI targets also when default incoming stack boundary
5180 is overriden.
5181
5182 2015-10-21 Richard Biener <rguenther@suse.de>
5183
5184 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5185 cond stmts, enhanced and split out from ...
5186 (vn_phi_eq): ... here.
5187
5188 2015-10-21 Richard Biener <rguenther@suse.de>
5189
5190 PR middle-end/68031
5191 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5192 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5193 (tree_single_nonnegative_warnv_p): ... here. For SSA names
5194 make sure they are not registered for update.
5195
5196 2015-10-21 Richard Biener <rguenther@suse.de>
5197
5198 PR tree-optimization/68026
5199 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5200 unsigned VARYING values.
5201
5202 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
5203
5204 * asan.c (asan_emit_stack_protection): Don't pass local stack to
5205 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5206 NULL and use local stack than.
5207 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5208 in addition to __asan_init.
5209 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5210 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5211 * asan.h (asan_intercepted_p): Handle new string builtins.
5212 * ubsan.c (ubsan_use_new_style_p): New function.
5213 (ubsan_instrument_float_cast): If location is unknown, assign
5214 input_location to loc. Propagate loc to ubsan_create_data if
5215 ubsan_use_new_style_p returned true.
5216
5217 2015-10-21 Jeff Law <law@redhat.com>
5218
5219 * Makefile.in (OBJS): Remove sched-vis.c
5220 * sched-vis.c: Removed. Code moved into...
5221 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
5222 * rtl.h: Remove prototypes for functions now living in print-rtl.c
5223 * print-rtl.h Add prototypes for new functions in print-rtl.c.
5224 * auto-inc-dec.c: Include print-rtl.h
5225 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5226 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5227
5228 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5229 ATTRIBUTE_UNUSED.
5230
5231 2015-10-21 Richard Biener <rguenther@suse.de>
5232 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5233
5234 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5235 to match.pd.
5236 Move (a * (1 << b)) is (a << b) to match.pd.
5237 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5238 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5239 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5240
5241 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5242 New simplifier.
5243 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5244 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5245 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5246 : New simplifier.
5247 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5248 New simplifier.
5249 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5250
5251 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
5252 Szabolcs Nagy <szabolcs.nagy@arm.com>
5253 Alan Modra <amodra@gmail.com>
5254
5255 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5256 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5257 (LINK_SPEC): Add %(link_secure_plt).
5258 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5259 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5260
5261 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
5262 Szabolcs Nagy <szabolcs.nagy@arm.com>
5263
5264 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5265 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5266
5267 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5268
5269 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5270 New function.
5271 (fusion_load_store): Use it.
5272 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5273 ldp and stp in VD modes.
5274 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5275 (store_pair<mode>, VD): Likewise.
5276
5277 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
5278
5279 PR rtl-optimization/67609
5280 * lra-splill.c (lra_final_code_change): Don't remove all
5281 sub-registers.
5282
5283 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5284
5285 * simplify-rtx.c (simplify_binary_operation): If either operand was
5286 a constant pool reference use them if all other simplifications failed.
5287
5288 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5289
5290 * config/aarch64/aarch64.md
5291 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5292 * config/aarch64/aarch64-simd.md
5293 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5294 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5295 (aarch64_fpconst_pow_of_2): New function.
5296 (aarch64_vec_fpconst_pow_of_2): Likewise.
5297 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5298 prototype.
5299 (aarch64_vec_fpconst_pow_of_2): Likewise.
5300 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5301 (aarch64_fp_vec_pow2): Likewise.
5302
5303 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
5304
5305 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5306 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
5307 * config/alpha/alpha.c (alpha_function_arg_advance): Update
5308 ALPHA_ARG_SIZE usage.
5309 (alpha_arg_partial_bytes): Ditto.
5310
5311 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5312
5313 PR target/66810
5314 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5315 error_mark_node decls.
5316
5317 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5318
5319 PR target/67963
5320 PR target/67985
5321 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5322 OPT_miamcu handling.
5323 * config/i386/i386.c (PTA_NO_80387): New macro.
5324 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5325 (ix86_option_override_internal): Update MASK_80387 from
5326 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5327 SSE math only if 80387 is supported. Don't change
5328 MASK_FLOAT_RETURNS.
5329 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5330 80387 is supported.
5331 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5332 if TARGET_80387 is true and TARGET_IAMCU is false.
5333 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5334 is true and TARGET_IAMCU_P is false.
5335
5336 2015-10-20 Richard Biener <rguenther@suse.de>
5337
5338 PR tree-optimization/68017
5339 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5340
5341 2015-10-20 Martin Liska <mliska@suse.cz>
5342
5343 * cgraphclones.c (cgraph_node::create_virtual_clone):
5344 Verify cgraph_node.local.versionable instead of calling
5345 tree_versionable_function_p.
5346 * ipa-cp.c (determine_versionability): Save the information
5347 to ipa_node_params summary.
5348 (ipcp_versionable_function_p): Use it.
5349 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5350 (ipcp_generate_summary): Do not compute cgraph_node
5351 versionability.
5352 * ipa-inline-analysis.c (inline_generate_summary): Compute
5353 versionability for all cgraph nodes.
5354 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5355 ipa_node_params::versionability.
5356 * ipa-prop.h (struct ipa_node_params): Declare it.
5357
5358 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5359
5360 PR other/67868
5361 * varasm.c (assemble_variable): Move special vtv handling to..
5362 (handle_vtv_comdat_sections): .. here. New function.
5363 (output_object_block): Handle vtv sections.
5364
5365 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5366
5367 PR target/66912
5368 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5369
5370 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5371
5372 * doc/extend.texi: Update documentation WRT inline functions.
5373
5374 2015-10-20 Alan Modra <amodra@gmail.com>
5375
5376 PR go/66870
5377 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5378 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5379 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5380
5381 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5382
5383 PR rtl-optimization/66790
5384 * df.h (DF_MIR): New macro.
5385 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5386 (DF_MIR_INFO_BB): New macro.
5387 (DF_MIR_IN, DF_MIR_OUT): New macros.
5388 (struct df_mir_bb_info): New.
5389 (df_mir): New macro.
5390 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5391 declarations.
5392 (df_mir_get_bb_info): New.
5393 * df-problems.c (struct df_mir_problem_data): New.
5394 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5395 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5396 df_mir_confluence_0, df_mir_confluence_n,
5397 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5398 df_mir_bottom_dump, df_mir_verify_solution_start,
5399 df_mir_verify_solution_end): New.
5400 (problem_MIR): New.
5401 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5402 * timevar.def (TV_DF_MIR): New.
5403 * ree.c: Include bitmap.h
5404 (add_removable_extension): Add an INIT_REGS parameter. Use it
5405 to skip zero-extensions that may get an uninitialized register.
5406 (find_removable_extensions): Compute must-initialized registers
5407 using the MIR dataflow problem. Update the call to
5408 add_removable_extension.
5409 (find_and_remove_re): Call df_mir_add_problem.
5410
5411 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5412
5413 * common/config/mn10300/mn10300-common.c
5414 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5415 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5416
5417 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5418
5419 * doc/extend.texi (Explicit Register Variables): Simplify and
5420 avoid unnecessary and confusion abbreviations. Update cross
5421 references.
5422 doc/implement-c.tex: Update cross reference.
5423
5424 2015-10-19 Jeff Law <law@redhat.com>
5425
5426 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5427 that create irreducible loops unless the path elimiantes a multiway
5428 branch.
5429
5430 2015-10-19 Richard Biener <rguenther@suse.de>
5431
5432 PR tree-optimization/67975
5433 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5434 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5435 core worker from ...
5436 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5437 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5438 instead of block number for PHIs with two or one args.
5439 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5440 blocks.
5441
5442 2015-10-19 Richard Biener <rguenther@suse.de>
5443
5444 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5445 (gimple_stmt_nonnegative_warnv_p): Use it.
5446 * match.pd (CPROJ): New operator list.
5447 (cproj (complex ...)): Move simplifications from ...
5448 * builtins.c (fold_builtin_cproj): ... here.
5449
5450 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5451
5452 * config/i386/i386.c (ix86_expand_vector_move): Use
5453 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5454 alignment.
5455
5456 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5457
5458 * doc/invoke.texi: Replace @optindex with @opindex.
5459
5460 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5461
5462 PR target/67995
5463 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5464 arch= is set, clear all bits in x_ix86_isa_flags, except for
5465 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5466
5467 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5468
5469 PR middle-end/68002
5470 * common.opt (fkeep-static-functions): New option.
5471 * doc/invoke.texi: Document it.
5472 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5473
5474 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5475
5476 * sched-int.h (struct autopref_multipass_data_): Remove offset
5477 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5478 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5479 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5480 (autopref_rank_data): New function.
5481 (autopref_rank_for_schedule): Use it.
5482 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5483
5484 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
5485
5486 PR other/65800
5487 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5488
5489 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5490
5491 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5492 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
5493 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5494 (STANDARD_STARTFILE_PREFIX_1): New.
5495 (STANDARD_STARTFILE_PREFIX_2): New.
5496
5497 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5498
5499 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5500 (darwin_driver_init): Note a version-min when provided on the c/l.
5501 * config/darwin.h (%darwin_minversion): Remove.
5502 * config/i386/darwin.h: Likewise.
5503 * config/rs6000/darwin.h: Likewise.
5504 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5505 rather than an arbitrary constant.
5506
5507 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5508
5509 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5510 PPC, detect conflicts between -arch and multilib settings. Detect
5511 and warn about conflicts between multiple -arch definitions.
5512
5513 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5514
5515 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5516
5517 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5518
5519 * lra-constraints.c (add_next_usage_insn): Change argument type
5520 from rtx to rtx_insn *.
5521
5522 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
5523
5524 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5525 for Lakemont.
5526
5527 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
5528
5529 * config/tilepro/gen-mul-tables.cc: Adjust include files.
5530 * config/tilegx/mul-tables.c: Regenerate.
5531 * config/tilepro/mul-tables.c: Regenerate.
5532
5533 * config/tilegx/tilegx-c.c: Adjust include files.
5534 * config/tilegx/tilegx.c: Likewise.
5535 * config/tilepro/tilepro-c.c: Likewise.
5536 * config/tilepro/tilepro.c: Likewise.
5537 * config/aarch64/aarch64-builtins.c: Likewise.
5538 * config/aarch64/aarch64.c: Likewise.
5539 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5540 * config/alpha/alpha.c: Likewise.
5541 * config/arc/arc.c: Likewise.
5542 * config/arm/aarch-common.c: Likewise.
5543 * config/arm/arm-builtins.c: Likewise.
5544 * config/arm/arm-c.c: Likewise.
5545 * config/arm/arm.c: Likewise.
5546 * config/avr/avr-c.c: Likewise.
5547 * config/avr/avr-devices.c: Likewise.
5548 * config/avr/avr-log.c: Likewise.
5549 * config/avr/avr.c: Likewise.
5550 * config/bfin/bfin.c: Likewise.
5551 * config/c6x/c6x.c: Likewise.
5552 * config/cr16/cr16.c: Likewise.
5553 * config/cris/cris.c: Likewise.
5554 * config/darwin-c.c: Likewise.
5555 * config/darwin-driver.c: Likewise.
5556 * config/darwin.c: Likewise.
5557 * config/default-c.c: Likewise.
5558 * config/epiphany/epiphany.c: Likewise.
5559 * config/epiphany/mode-switch-use.c: Likewise.
5560 * config/epiphany/resolve-sw-modes.c: Likewise.
5561 * config/fr30/fr30.c: Likewise.
5562 * config/frv/frv.c: Likewise.
5563 * config/ft32/ft32.c: Likewise.
5564 * config/glibc-c.c: Likewise.
5565 * config/h8300/h8300.c: Likewise.
5566 * config/i386/host-cygwin.c: Likewise.
5567 * config/i386/host-mingw32.c: Likewise.
5568 * config/i386/i386-c.c: Likewise.
5569 * config/i386/i386.c: Likewise.
5570 * config/i386/msformat-c.c: Likewise.
5571 * config/i386/winnt-cxx.c: Likewise.
5572 * config/i386/winnt-stubs.c: Likewise.
5573 * config/i386/winnt.c: Likewise.
5574 * config/ia64/ia64-c.c: Likewise.
5575 * config/ia64/ia64.c: Likewise.
5576 * config/iq2000/iq2000.c: Likewise.
5577 * config/lm32/lm32.c: Likewise.
5578 * config/m32c/m32c-pragma.c: Likewise.
5579 * config/m32c/m32c.c: Likewise.
5580 * config/m32r/m32r.c: Likewise.
5581 * config/mcore/mcore.c: Likewise.
5582 * config/mep/mep-pragma.c: Likewise.
5583 * config/mep/mep.c: Likewise.
5584 * config/microblaze/microblaze-c.c: Likewise.
5585 * config/microblaze/microblaze.c: Likewise.
5586 * config/mips/mips-tables.opt
5587 * config/mips/mips.c: Likewise.
5588 * config/mmix/mmix.c: Likewise.
5589 * config/mn10300/mn10300.c: Likewise.
5590 * config/moxie/moxie.c: Likewise.
5591 * config/msp430/msp430-c.c: Likewise.
5592 * config/msp430/msp430.c: Likewise.
5593 * config/nds32/nds32-cost.c: Likewise.
5594 * config/nds32/nds32-fp-as-gp.c: Likewise.
5595 * config/nds32/nds32-intrinsic.c: Likewise.
5596 * config/nds32/nds32-isr.c: Likewise.
5597 * config/nds32/nds32-md-auxiliary.c: Likewise.
5598 * config/nds32/nds32-memory-manipulation.c: Likewise.
5599 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5600 * config/nds32/nds32-predicates.c: Likewise.
5601 * config/nds32/nds32.c: Likewise.
5602 * config/nios2/nios2.c: Likewise.
5603 * config/nvptx/mkoffload.c: Likewise.
5604 * config/nvptx/nvptx.c: Likewise.
5605 * config/pa/pa.c: Likewise.
5606 * config/pdp11/pdp11.c: Likewise.
5607 * config/rl78/rl78-c.c: Likewise.
5608 * config/rl78/rl78.c: Likewise.
5609 * config/rs6000/host-darwin.c: Likewise.
5610 * config/rs6000/rs6000-c.c: Likewise.
5611 * config/rs6000/rs6000-linux.c: Likewise.
5612 * config/rs6000/rs6000.c: Likewise.
5613 * config/rx/rx.c: Likewise.
5614 * config/s390/s390-c.c: Likewise.
5615 * config/s390/s390.c: Likewise.
5616 * config/sh/sh-c.c: Likewise.
5617 * config/sh/sh-mem.cc: Likewise.
5618 * config/sh/sh.c: Likewise.
5619 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5620 * config/sh/sh_treg_combine.cc: Likewise.
5621 * config/sol2-c.c: Likewise.
5622 * config/sol2-cxx.c: Likewise.
5623 * config/sol2-stubs.c: Likewise.
5624 * config/sol2.c: Likewise.
5625 * config/sparc/sparc-c.c: Likewise.
5626 * config/sparc/sparc.c: Likewise.
5627 * config/spu/spu-c.c: Likewise.
5628 * config/spu/spu.c: Likewise.
5629 * config/stormy16/stormy16.c: Likewise.
5630 * config/v850/v850-c.c: Likewise.
5631 * config/v850/v850.c: Likewise.
5632 * config/vax/vax.c: Likewise.
5633 * config/visium/visium.c: Likewise.
5634 * config/vms/vms-c.c: Likewise.
5635 * config/vms/vms.c: Likewise.
5636 * config/vxworks.c: Likewise.
5637 * config/winnt-c.c: Likewise.
5638 * config/xtensa/xtensa.c: Likewise.
5639
5640 2015-10-16 Christian Bruel <christian.bruel@st.com>
5641
5642 PR target/67745
5643 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5644 (FUNCTION_BOUNDARY_P): New macro:
5645 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5646 New hook.
5647 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5648 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5649 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5650 * function.c (allocate_struct_function): Call
5651 relayout_function hook.
5652 * passes.c (rest_of_decl_compilation): Likewise.
5653
5654 2015-10-16 Christian Bruel <christian.bruel@st.com>
5655
5656 PR target/67745
5657 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5658 * config/arm/arm.c (arm_option_override_internal): Call
5659 arm_override_options_after_change_1.
5660 (arm_override_options_after_change): New function.
5661 (arm_override_options_after_change_1): Likewise.
5662 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5663
5664 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5665
5666 Revert:
5667 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5668 empty constructors.
5669
5670 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
5671
5672 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5673 argument is an ADDR_EXPR.
5674
5675 2015-10-16 Richard Biener <rguenther@suse.de>
5676
5677 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5678 and get rid of force_gimple_operand_gsi.
5679 (gimple_fold_builtin_memory_chk): Likewise.
5680 (gimple_fold_builtin_stxcpy_chk): Likewise.
5681 (rewrite_to_defined_overflow): Likewise.
5682 (gimple_convert_to_ptrofftype): New function.
5683 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5684
5685 2015-10-16 Richard Biener <rguenther@suse.de>
5686
5687 * tree-nested.h (build_addr): Adjust prototype.
5688 * tree-nested.c (build_addr): Remove context argument and use
5689 mark_addressable.
5690 (get_static_chain): Adjust calls to build_addr.
5691 (convert_nl_goto_reference): Likewise.
5692 (convert_tramp_reference_op): Likewise.
5693 (finalize_nesting_tree_1): Likewise.
5694 * value-prof.c (gimple_ic): Likewise.
5695 * gimple-low.c (lower_builtin_setjmp): Likewise.
5696 * tree-parloops.c (take_address_of): Likewise.
5697 (create_call_for_reduction_1): Likewise.
5698 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5699 (gimple_gen_ic_func_profiler): Likewise.
5700
5701 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5702
5703 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5704 empty constructors.
5705
5706 2015-10-16 Michael Collison <michael.collison@linaro.org>
5707 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5708
5709 * match.pd ((x < y) && (x < z) -> x < min (y,z),
5710 (x > y) and (x > z) -> x > max (y,z))
5711
5712 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
5713 Szabolcs Nagy <szabolcs.nagy@arm.com>
5714
5715 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5716 (DYNAMIC_LINKER): Renamed to ...
5717 (GLIBC_DYNAMIC_LINKER): This.
5718 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5719
5720 2015-10-15 Marek Polacek <polacek@redhat.com>
5721
5722 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5723 gimple_call_builtin instead of is_gimple_call.
5724
5725 2015-10-15 Richard Biener <rguenther@suse.de>
5726
5727 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5728
5729 2015-10-15 Richard Biener <rguenther@suse.de>
5730
5731 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5732 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5733 * tree-vect-loop.c (get_initial_def_for_induction): Drop
5734 use of force_gimple_operand in favor of gimple_build.
5735 Use vect_get_new_ssa_name.
5736 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5737 (vectorizable_mask_load_store): Likewise.
5738 (vectorizable_call): Likewise.
5739 (vectorizable_store): Likewise.
5740 (vectorizable_load): Likewise.
5741 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5742
5743 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
5744
5745 PR tree-optimization/67945
5746 * tree-pass.h (PROP_gimple_opt_math): New property flag.
5747 * generic-match-head.c (canonicalize_math_p): New function.
5748 * gimple-match-head.c: Include tree-pass.h.
5749 (canonicalize_math_p): New function.
5750 * match.pd: Group math built-in rules into simplifications
5751 and canonicalizations. Guard the latter with canonicalize_math_p.
5752 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5753 PROP_gimple_opt_math property.
5754
5755 2015-10-15 Marek Polacek <polacek@redhat.com>
5756
5757 PR tree-optimization/67953
5758 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5759
5760 2015-10-15 Jiong Wang <jiong.wang@arm.com>
5761
5762 * config.gcc: Recognize "." in architecture base name for AArch64.
5763
5764 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5765
5766 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5767 ROUND_UP macro.
5768 * config/mips/mips.c (mips_setup_incoming_varargs): Use
5769 ROUND_DOWN to calculate off.
5770 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5771 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5772 rounded_size.
5773
5774 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
5775
5776 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5777
5778 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
5779 Torvald Riegel <triegel@redhat.com>
5780
5781 PR target/67281
5782 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5783 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5784 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5785 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5786 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
5787 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5788 trechkpt, treclaim, tsr, ttest): New define_expands.
5789 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5790 __TM_FENCE__ for htm.
5791 * doc/extend.texi: Update documentation for htm builtins.
5792
5793 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5794
5795 PR target/67967
5796 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5797 REG_CFA_EXPRESSION to aligned SSE stores.
5798
5799 2015-10-14 Jeff Law <law@redhat.com>
5800
5801 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5802 num_threaded_edges for successful FSM threads too.
5803
5804 2015-10-14 Richard Biener <rguenther@suse.de>
5805
5806 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5807 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
5808 (vect_get_vec_def_for_operand): Remove unused parameter.
5809 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5810 (vect_create_epilog_for_reduction): Likewise.
5811 (vectorizable_reduction): Likewise.
5812 (vectorizable_live_operation): Likewise.
5813 * tree-vect-patterns.c (type_conversion_p): Likewise.
5814 (vect_recog_vector_vector_shift_pattern): Likewise.
5815 (check_bool_pattern): Likewise.
5816 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5817 (vect_analyze_slp_cost_1): Likewise.
5818 * tree-vect-stmts.c (process_use): Likewise.
5819 (vect_get_vec_def_for_operand): Do not handle reductions.
5820 (vect_get_vec_defs): Adjust.
5821 (vectorizable_mask_load_store): Likewise.
5822 (vectorizable_call): Likewise.
5823 (vectorizable_simd_clone_call): Likewise.
5824 (vect_get_loop_based_defs): Likewise.
5825 (vectorizable_conversion): Likewise.
5826 (vectorizable_assignment): Likewise.
5827 (vectorizable_shift): Likewise.
5828 (vectorizable_operation): Likewise.
5829 (vectorizable_store): Likewise.
5830 (vectorizable_load): Likewise.
5831 (vect_is_simple_cond): Likewise.
5832 (vectorizable_condition): Likewise.
5833 (vect_is_simple_use): Remove unused parameters.
5834 (vect_is_simple_use_1): Adjust and rename.
5835
5836 2015-10-14 Richard Biener <rguenther@suse.de>
5837
5838 PR tree-optimization/67915
5839 * match.pd: Handle comparisons of addresses of STRING_CSTs.
5840 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5841 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5842 stmt folding in favor of GIMPLE one.
5843
5844 2015-10-14 Marek Polacek <polacek@redhat.com>
5845
5846 PR tree-optimization/67815
5847 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5848 (reassociate_bb): Call it.
5849
5850 2015-10-14 Richard Biener <rguenther@suse.de>
5851
5852 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5853 Reset info at start.
5854 (vect_analyze_group_access_1): Add debug print.
5855 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5856 (vect_compute_single_scalar_iteration_cost): ... to this.
5857 (vect_analyze_loop_2): Adjust.
5858 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5859 * tree-vectorizer.h: ... here.
5860 (add_stmt_info_to_vec): Remove.
5861 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5862
5863 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
5864
5865 * targhooks.c (default_target_option_pragma_parse): Do not warn if
5866 called on behalf of "#pragma GCC pop_options".
5867
5868 2015-10-14 Tom de Vries <tom@codesourcery.com>
5869
5870 * cfganal.c (verify_no_unreachable_blocks): New function.
5871 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5872 verify_no_unreachable_blocks.
5873 cfganal.h (verify_no_unreachable_blocks): Declare.
5874
5875 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
5876
5877 * common.opt: Add flag_checking.
5878 * system.h (CHECKING_P): Define.
5879
5880 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5881 Aldy Hernandez <aldyh@redhat.com>
5882 Ilya Verbin <ilya.verbin@intel.com>
5883
5884 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5885 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5886 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5887 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5888 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5889 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5890 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5891 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5892 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5893 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5894 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5895 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5896 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5897 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5898 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5899 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5900 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5901 (struct cgraph_simd_clone_arg): Adjust comment.
5902 * coretypes.h (struct gomp_ordered): New forward decl.
5903 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5904 set critical clauses to it.
5905 (gimple_build_omp_ordered): Return gomp_ordered * instead of
5906 gimple *. Add CLAUSES argument, set ordered clauses to it.
5907 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5908 GIMPLE_OMP_ORDERED.
5909 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5910 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5911 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
5912 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5913 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
5914 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5915 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
5916 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5917 renumber
5918 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5919 (gomp_critical): Add clauses field.
5920 (gomp_ordered): New struct.
5921 (is_a_helper <gomp_ordered *>::test): New inline.
5922 (gimple_build_omp_critical): Add CLAUSES argument.
5923 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
5924 instead of gimple *.
5925 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5926 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5927 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5928 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5929 inline functions.
5930 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5931 (dump_gimple_omp_target): Handle enter data and exit data.
5932 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5933 (dump_gimple_omp_critical): Print clauses.
5934 (dump_gimple_omp_ordered): New function.
5935 (dump_gimple_omp_task): Handle taskloop.
5936 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5937 GIMPLE_OMP_ORDERED.
5938 * gimple-walk.c (walk_gimple_op): Walk clauses on
5939 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5940 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5941 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5942 (struct gimplify_omp_ctx): Add loop_iter_var,
5943 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5944 and target_firstprivatize_array_bases fields.
5945 (delete_omp_context): Release loop_iter_var.
5946 (gimplify_bind_expr): Handle ORT_NONE.
5947 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5948 ORT_COMBINED_TARGET.
5949 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5950 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5951 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
5952 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
5953 ctx->target_map_scalars_firstprivate.
5954 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
5955 data sharing clauses. For data sharing clause with VLA decl
5956 on omp target/target data don't add firstprivate for the pointer.
5957 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5958 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5959 the addition of ORT_COMBINED_TARGET.
5960 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
5961 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
5962 pointers as zero length array sections and
5963 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5964 data sharing.
5965 (omp_check_private): Handle omp_member_access_dummy_var vars.
5966 (find_decl_expr): New function.
5967 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
5968 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5969 Handle OMP_CLAUSE_GANG separately. Handle
5970 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5971 clauses. Diagnose linear clause on combined
5972 distribute {, parallel for} simd construct, unless it is the loop
5973 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5974 Handle map clauses with COMPONENT_REF. Initialize
5975 ctx->target_map_scalars_firstprivate,
5976 ctx->target_firstprivatize_array_bases and
5977 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
5978 linear clause even to target region if combined. Remove
5979 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5980 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
5981 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5982 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
5983 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5984 For linear clause on worksharing loop combined with parallel add
5985 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
5986 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
5987 omp_member_access_dummy_var vars. Add lastprivate clause to outer
5988 taskloop if needed.
5989 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5990 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5991 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5992 GOMP_MAP_POINTER.
5993 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
5994 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5995 in target body. Handle removal of struct mapping if struct is not
5996 seen in target body. Remove GOMP_MAP_STRUCT map clause on
5997 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
5998 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
5999 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6000 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6001 clause appear together. Handle
6002 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
6003 clause if it has map-type-modifier always. Handle
6004 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6005 clauses.
6006 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6007 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6008 callers.
6009 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
6010 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
6011 iterators in doacross loops.
6012 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6013 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
6014 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
6015 for the addition of ORT_COMBINED_TARGET.
6016 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6017 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
6018 and OMP_TARGET_EXIT_DATA.
6019 (gimplify_omp_ordered): New function.
6020 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6021 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
6022 Gimplify clauses on OMP_CRITICAL.
6023 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6024 expand_GOMP_SIMD_ORDERED_END): New functions.
6025 * internal-fn.def (GOMP_SIMD_ORDERED_START,
6026 GOMP_SIMD_ORDERED_END): New internal functions.
6027 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6028 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6029 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6030 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6031 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6032 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6033 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6034 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6035 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6036 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6037 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6038 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6039 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6040 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6041 adjust type.
6042 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6043 GOMP_target_data_41, adjust type.
6044 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6045 GOMP_target_update_41, adjust type.
6046 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6047 field.
6048 (struct omp_for_data): Add ordered and simd_schedule fields.
6049 (omp_member_access_dummy_var, unshare_and_remap_1,
6050 unshare_and_remap, is_taskloop_ctx): New functions.
6051 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6052 (extract_omp_for_data): Handle taskloops and doacross loops
6053 and simd schedule modifier.
6054 (omp_adjust_chunk_size): New function.
6055 (get_ws_args_for): Use it.
6056 (lookup_sfield): Change first argument to splay_tree_key,
6057 add overload with first argument tree.
6058 (maybe_lookup_field): Likewise.
6059 (use_pointer_for_field): Handle omp_member_access_dummy_var.
6060 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6061 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6062 (build_outer_var_ref): Add LASTPRIVATE argument, handle
6063 taskloops and omp_member_access_dummy_var vars.
6064 (build_sender_ref): Change first argument to splay_tree_key,
6065 add overload with first argument tree.
6066 (install_var_field): For mask & 8 use &DECL_UID as key instead
6067 of the tree itself.
6068 (fixup_child_record_type): Const qualify *.omp_data_i.
6069 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6070 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6071 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6072 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6073 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6074 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6075 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6076 kinds.
6077 (add_taskreg_looptemp_clauses): New function.
6078 (scan_omp_parallel): Use it.
6079 (scan_omp_task): Likewise.
6080 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6081 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6082 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6083 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
6084 sandwiched taskloop constructs. Type check
6085 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
6086 region. Diagnose depend(source) or depend(sink:...) on
6087 target constructs or task/taskloop.
6088 (handle_simd_reference): Use get_name.
6089 (lower_rec_input_clauses): Likewise. Ignore all
6090 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6091 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
6092 before passing it to omp_clause_{default,copy}_ctor. Handle
6093 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
6094 lastprivate_firstprivate flag for linear that needs copyin and
6095 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6096 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6097 on taskloop lookup decl in outer context. Pass true to
6098 build_outer_var_ref lastprivate argument. Handle
6099 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6100 outside of outer taskloop for.
6101 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6102 OMP_CLAUSE_DECL.
6103 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6104 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
6105 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
6106 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
6107 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6108 abstract origin. Handle omp_member_access_dummy_var vars.
6109 (expand_parallel_call): Use expand_omp_build_assign.
6110 (expand_task_call): Handle taskloop construct expansion. Add
6111 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
6112 integers. Add priority argument to GOMP_task* calls. Or in
6113 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6114 GOMP_task call.
6115 (expand_omp_build_assign): Add prototype. Add AFTER
6116 argument, if true emit statements after *GSI_P and continue linking.
6117 (expand_omp_taskreg): Adjust expand_task_call caller.
6118 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6119 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6120 zero_iter2_bb and first_zero_iter2 arguments, handle computation
6121 of counts even for ordered loops.
6122 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6123 (expand_omp_ordered_source, expand_omp_ordered_sink,
6124 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6125 functions.
6126 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
6127 clauses on worksharing loop. Handle DOACROSS loop expansion.
6128 (expand_omp_for_static_nochunk): Handle linear clauses on
6129 worksharing loop. Adjust expand_omp_for_init_counts
6130 callers.
6131 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
6132 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
6133 expand_omp_for_init_counts callers.
6134 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6135 functions.
6136 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6137 Handle doacross loops.
6138 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6139 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
6140 GOMP_target_{41,update_41,enter_exit_data} libcalls.
6141 (expand_omp): Don't expand ordered depend constructs here, record
6142 ord_stmt instead for later expand_omp_for_generic.
6143 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6144 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6145 clause as stand-alone directive.
6146 (lower_omp_ordered_clauses): New function.
6147 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6148 don't lower anything.
6149 (lower_omp_for_lastprivate): Use last _looptemp_ clause
6150 on taskloop for comparison.
6151 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
6152 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6153 expansion for linear adjustments.
6154 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6155 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6156 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
6157 to tree * pointing to the stmt's clauses.
6158 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6159 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6160 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6161 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6162 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6163 clauses. Always use short kind and 8-bit align shift.
6164 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6165 (struct lower_omp_regimplify_operands_data): New type.
6166 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6167 New functions.
6168 (lower_omp_1): Use lower_omp_regimplify_operands instead of
6169 gimple_regimplify_operands.
6170 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6171 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6172 clause as stand-alone directive.
6173 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6174 (simd_clone_mangle): Mangle the various linear kinds
6175 per the new ABI.
6176 (simd_clone_adjust_argument_types): Handle
6177 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6178 (simd_clone_init_simd_arrays): Don't do anything for uval.
6179 (simd_clone_adjust): Handle
6180 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6181 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6182 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6183 * omp-low.h (omp_member_access_dummy_var): New prototype.
6184 * passes.def (pass_simduid_cleanup): Schedule another copy of the
6185 pass after all optimizations.
6186 * tree.c (omp_clause_code_name): Add entries for
6187 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6188 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6189 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
6190 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6191 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6192 OMP_CLAUSE_REDUCTION 5 arguments. Handle
6193 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6194 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6195 clauses.
6196 * tree-core.h (enum omp_clause_linear_kind): New.
6197 (struct tree_omp_clause): Change type of map_kind
6198 from unsigned char to unsigned int. Add subcode.if_modifier
6199 and subcode.linear_kind fields.
6200 (enum omp_clause_code): Add
6201 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6202 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6203 (OMP_CLAUSE_REDUCTION): Document
6204 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6205 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6206 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6207 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
6208 operand.
6209 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
6210 operand.
6211 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6212 codes.
6213 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6214 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6215 char.
6216 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6217 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6218 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6219 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6220 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6221 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6222 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6223 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6224 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6225 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6226 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6227 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6228 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6229 * tree-inline.c (remap_gimple_stmt): Handle clauses on
6230 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
6231 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6232 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6233 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6234 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6235 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6236 (convert_local_omp_clauses): Likewise.
6237 * tree-pretty-print.c (dump_omp_clause): Handle
6238 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6239 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6240 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6241 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6242 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
6243 GOMP_MAP_FORCE_DEALLOC. Handle
6244 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6245 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6246 and clauses on OMP_ORDERED and OMP_CRITICAL.
6247 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6248 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6249 (vectorize_loops): Adjust comments.
6250 (pass_simduid_cleanup::execute): Likewise.
6251 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6252 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6253 * wide-int.h (wi::gcd): New.
6254
6255 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6256
6257 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6258 (ix86_function_arg_advance): Ditto.
6259 (ix86_function_arg): Ditto.
6260 (ix86_gimplify_va_arg): Ditto.
6261 (ix86_class_max_nregs): Ditto.
6262 (inline_memory_move_cost): Ditto.
6263 (ix86_set_reg_reg_cost): Ditto.
6264 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6265
6266 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
6267
6268 PR middle-end/67912
6269 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6270
6271 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6272
6273 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6274 ROUND_UP macro and UNITS_PER_WORD * 2.
6275 * config/sparc/sparc.c (sparc_compute_frame_size):
6276 Use ROUND_UP and ROUND_DOWN macros where applicable.
6277 (function_arg_record_value, function_arg_record_value_1)
6278 (function_arg_record_value_1): Ditto.
6279 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6280 alignment to double-word.
6281 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6282 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6283 rounded_size.
6284
6285 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
6286
6287 * rtl.h (print_insn): Fix prototype.
6288
6289 2015-10-13 Tom de Vries <tom@codesourcery.com>
6290
6291 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6292 -1. Add assert that returned entry matches phi argument.
6293 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6294 free_stmt_vec_info_vec ...
6295 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
6296 with -1.
6297
6298 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
6299
6300 PR tree-optimization/67909, 67947
6301 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6302 really skip the inner loop.
6303
6304 2015-10-13 Jeff Law <law@redhat.com>
6305
6306 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6307 Allow single block jump threading paths.
6308
6309 2015-10-13 Tom de Vries <tom@codesourcery.com>
6310
6311 PR tree-optimization/67476
6312 * doc/invoke.texi (@item parloops-schedule): New item.
6313 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6314 * tree-parloops.c: Include params-enum.h.
6315 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6316
6317 2015-10-13 Tom de Vries <tom@codesourcery.com>
6318
6319 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6320 * params-enum.h: New file.
6321 * opts.c (handle_param): Handle case that param arg is a string.
6322 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6323 * params.c (find_param): New function, factored out of ...
6324 (set_param_value): ... here.
6325 (param_string_value_p): New function.
6326 * params.h (struct param_info): Add value_names field.
6327 (find_param, param_string_value_p): Declare.
6328
6329 2015-10-13 Tom de Vries <tom@codesourcery.com>
6330
6331 PR tree-optimization/67476
6332 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6333
6334 2015-10-13 Richard Biener <rguenther@suse.de>
6335
6336 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6337 the data dependence vector.
6338 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6339 (vect_peeling_hash_get_lowest_cost): Likewise.
6340 (vect_enhance_data_refs_alignment): Adjust.
6341 (struct _vect_peel_info, struct _vect_peel_extended_info,
6342 struct peel_info_hasher): Move from ...
6343 * tree-vectorizer.h: ... here.
6344 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6345 (LOOP_VINFO_PEELING_HTAB): Likewise.
6346 (struct _loop_vec_info): Remove min_profitable_iters and
6347 peeling_htab members.
6348 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6349 here.
6350 (destroy_loop_vec_info): Adjust.
6351 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6352 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6353 to estimate alias versioning cost.
6354 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6355
6356 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6357
6358 * real.h (real_isinteger): Declare.
6359 * real.c (real_isinteger): New function.
6360 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6361 if y is an even integer.
6362
6363 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6364
6365 revert:
6366 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6367 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6368 counts when these are more informative.
6369
6370 2015-10-12 Jeff Law <law@redhat.com>
6371
6372 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6373 (fsm_find_control_stmt_paths): Change name of first argument to
6374 more accurately relfect what it really is. Handle simplification
6375 of GIMPLE_COND after finding a thread path for NAME.
6376 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6377 nontrivial conditions to be handled by FSM threader.
6378 (thread_through_normal_block): Extract the name to looup via
6379 FSM threader from COND_EXPR.
6380
6381 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6382 restriction that traced SSA_NAME is a user variable.
6383
6384 2015-10-12 Tom de Vries <tom@codesourcery.com>
6385
6386 PR tree-optimization/67476
6387 * omp-low.c (expand_omp_for_generic): Add missing phis.
6388
6389 2015-10-12 Tom de Vries <tom@codesourcery.com>
6390
6391 PR tree-optimization/67476
6392 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6393
6394 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6395
6396 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6397 tables: add tbl3 and tbx4.
6398 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6399 (aarch64_tbx4v8qi): New.
6400 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6401 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6402 Rewrite using builtin functions.
6403 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6404
6405 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6406
6407 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6408 ROUND_UP macro.
6409 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6410 Use ROUND_UP and ROUND_DOWN macros where applicable.
6411 (rs6000_darwin64_record_arg_flush): Ditto.
6412 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6413 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6414 rounded_size.
6415
6416 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6417
6418 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6419 (AARCH64_ROUND_DOWN): Ditto.
6420 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6421
6422 2015-10-12 Richard Biener <rguenther@suse.de>
6423
6424 PR ipa/67783
6425 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6426 code that analyzes IVs on each stmt but in a cheaper way avoiding
6427 quadratic behavior.
6428
6429 2015-10-12 Nick Clifton <nickc@redhat.com>
6430
6431 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6432 msp430_mcu_data, add fields for ISA and hardware multiply
6433 support. Import latest data from the devices.csv file.
6434 (msp430_override_option): Use the data from the new array.
6435 (msp430_use_f5_series_hwmult): Likewise.
6436 (use_32bit_hwmult): Likewise.
6437 (msp430_no_hwmult): Likewise.
6438 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6439 MCU names.
6440 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6441 not recognised then no hardware multiply support is assumed and
6442 that only the MSP430 ISA is allowed.
6443
6444 2015-10-12 Richard Biener <rguenther@suse.de>
6445
6446 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6447 related code ...
6448 (vect_analyze_loop_2): ... here.
6449
6450 2015-10-11 Jason Merrill <jason@redhat.com>
6451
6452 PR c++/67557
6453 * expr.c (store_field): Call store_constructor directly when
6454 storing a CONSTRUCTOR into a target smaller than its type.
6455 Guard against unsafe bitwise copy.
6456
6457 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6458
6459 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6460 counts when these are more informative.
6461
6462 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6463
6464 * tree-profile.c (tree_profiling): Do not clear
6465 pure/const when not instrumenting.
6466 (pass tree_profile): Add dump of symtab.
6467
6468 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6469
6470 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6471 addresses.
6472 (fold_addr_of_array_ref_difference): Likewise.
6473
6474 2015-10-11 Jeff Law <law@redhat.com>
6475
6476 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6477 tree-ssa-threadbackward.c.
6478 (fsm_find_control_statement_thread_paths): Likewise.
6479 (thread_through_normal_block): Break out FSM bits and move them
6480 into a new function in tree-ssa-threadbackward.c. Call new function
6481 instead.
6482 Minimize header file usage.
6483 * tree-ssa-threadbackward.h: New file.
6484 * tree-ssa-threadbackward.c: Likewise.
6485 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6486
6487 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
6488
6489 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6490
6491 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
6492
6493 PR rtl-optimization/67864
6494 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6495 fallthrough edges for conditional jumps. Don't sort candidate
6496 edges if not optimizing for speed.
6497
6498 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6499
6500 * defaults.h (REVERSE_CONDITION): New default definition.
6501 * jump.c (reversed_comparison_code_parts): Adjust.
6502
6503 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6504
6505 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6506 check HARD_FRAME_POINTER_IS_ARG_POINTER.
6507
6508 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6509
6510 * defaults.h (FRAME_ADDR_RTX): New default definition.
6511 * builtins.c (expand_builtin_return_addr): Adjust.
6512
6513 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6514
6515 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6516 * builtins.c (expand_builtin_return_addr): Adjust.
6517
6518 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6519
6520 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6521 * builtins.c (expand_builtin_return_addr): Adjust.
6522 * doc/tm.texi: Likewise.
6523 * doc/tm.texi.in: Likewise.
6524 * except.c (expand_builtin_unwind_init): Likewise.
6525
6526 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6527
6528 * builtins.c (expand_builtin_return_addr): Adjust.
6529 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6530
6531 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6532
6533 * tree.c (type_with_interoperable_signedness): New.
6534 (gimple_canonical_types_compatible_p): Use it.
6535 * tree.h (type_with_interoperable_signedness): Declare
6536
6537 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6538
6539 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6540 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6541 when OEP_ADDRESS_OF is se.
6542
6543 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6544 Sebastian Pop <s.pop@samsung.com>
6545
6546 * graphite-dependences.c (scop_get_dependences): Add dump of the
6547 data dependence graph.
6548 * graphite-poly.c (print_isl_union_map): New.
6549 (debug_isl_union_map): New.
6550 * graphite-poly.h (print_isl_union_map): Declare.
6551 (debug_isl_union_map): Declare.
6552
6553 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6554 Sebastian Pop <s.pop@samsung.com>
6555
6556 * graphite-poly.c (print_iteration_domain): Remove verbosity.
6557 Remove OpenScop formatting.
6558 (print_iteration_domains): Same.
6559 (debug_iteration_domain): Same.
6560 (debug_iteration_domains): Same.
6561 (print_pdr): Same.
6562 (debug_pdr): Same.
6563 (dump_gbb_cases): Same.
6564 (dump_gbb_conditions): Same.
6565 (print_pdrs): Same.
6566 (debug_pdrs): Same.
6567 (print_pbb_body): Same.
6568 (print_pbb): Same.
6569 (print_scop_params): Same.
6570 (print_scop_context): Same.
6571 (print_scop): Same.
6572 (debug_pbb_domain): Same.
6573 (debug_pbb): Same.
6574 (debug_scop_context): Same.
6575 (debug_scop): Same.
6576 (debug_scop_params): Same.
6577 * graphite-poly.h: Same.
6578 * graphite.c (graphite_transform_loops): Same.
6579
6580 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6581
6582 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6583 call that isn't needed.
6584
6585 2015-10-09 Jeff Law <law@redhat.com>
6586
6587 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6588 rather than moving each name to the freelist individually.
6589
6590 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
6591
6592 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6593 * frame-header-opt.c: New file.
6594 * config/mips/mips-proto.h (mips_register_frame_header_opt):
6595 Add prototype.
6596 * config/mips/mips.c (mips_compute_frame_info): Check
6597 optimize_call_stack flag.
6598 (mips_option_override): Register new frame_header_opt pass.
6599 (mips_frame_info, mips_int_mask, mips_shadow_set,
6600 machine_function): Move these types to...
6601 * config/mips/mips.h: here.
6602 (machine_function): Add does_not_use_frame_header and
6603 optimize_call_stack fields.
6604 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6605 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6606 Document new flags.
6607 * config/mips/mips.opt (mframe-header-opt): Add new option.
6608
6609 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
6610
6611 * config/i386/i386.c
6612 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6613 ROUND_DOWN where applicable.
6614
6615 2015-10-09 Jeff Law <law@redhat.com>
6616
6617 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6618 correct statement.
6619
6620 2015-10-09 Renlin Li <renlin.li@arm.com>
6621
6622 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6623 operands[0] and operands[2].
6624 (neon_vtrn<mode>_insn): Likewise.
6625 (neon_vzip<mode>_insn): Likewise.
6626
6627 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
6628
6629 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6630 ((X & C2) << C1): Expand to...
6631 (X {&,^,|} C2 << C1): ...This.
6632 ((X & C2) >> C1): Expand to...
6633 (X {&,^,|} C2 >> C1): ...This.
6634
6635 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
6636
6637 PR target/67895
6638 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6639 Adjust embedded rounding/SAE specifier position.
6640 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6641 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6642 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6643 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6644 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6645 Likewise.
6646 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6647
6648 2015-10-09 Martin Jambor <mjambor@suse.cz>
6649
6650 tree-optimization/67794
6651 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6652 between types of state,ents but accept original definitions as a
6653 parameter.
6654 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6655 iterate over definitions.
6656
6657 2015-10-09 James Norris <jnorris@codesourcery.com>
6658
6659 * config/rs6000/rs6000.c (rs6000_offload_options): New.
6660 (TARGET_OFFLOAD_OPTIONS): New.
6661
6662 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
6663
6664 PR middle-end/67891
6665 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6666
6667 PR middle-end/67766
6668 * function.c (expand_function_end): Move return value
6669 promotion past the handling of PARALLELs and CONCATs.
6670
6671 PR rtl-optimization/67828
6672 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6673 (tree_may_unswitch_on): Don't unswitch on expressions
6674 involving undefined values.
6675
6676 2015-10-09 Richard Biener <rguenther@suse.de>
6677
6678 * genmatch.c (print_operand): Fix formatting.
6679 (dt_node::append_simplify): Warn for multiple simplifiers
6680 that match the same pattern.
6681 * match.pd (log (exp @0)): Remove duplicates.
6682
6683 2015-10-09 Richard Biener <rguenth@suse.de>
6684
6685 PR target/67366
6686 * gimple-fold.c (optabs-query.h): Include
6687 (gimple_fold_builtin_memory_op): Allow unaligned stores
6688 when movmisalign_optabs are available.
6689
6690 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6691
6692 PR target/67366
6693 * config/arm/arm.md (movmisalign<mode>): New.
6694 * config/arm/iterators.md (HSI): New.
6695
6696 2015-10-09 Richard Biener <rguenther@suse.de>
6697
6698 PR tree-optimization/67891
6699 * gimple-match.h (gimple_simplified_result_is_gimple_val):
6700 New helper.
6701 (gimple_resimplify1): Declare.
6702 (gimple_resimplify2): Likewise.
6703 (gimple_resimplify3): Likewise.
6704 * gimple-match-head.c (gimple_resimplify1): Export.
6705 (gimple_resimplify2): Likewise.
6706 (gimple_resimplify3): Likewise.
6707 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6708 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6709 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6710 to avoid creating stmts without VN info.
6711
6712 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
6713
6714 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6715 of availability.
6716
6717 2015-10-08 Jeff Law <law@redhat.com>
6718
6719 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6720 and release_ssa_name in two places.
6721 (gimple_stringop_fixed_value): Similarly.
6722
6723 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6724 release_defs.
6725
6726 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6727 unlink_stmt_vdef and release_ssa_name_fn.
6728
6729 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6730 release_defs.
6731
6732 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
6733
6734 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6735 SSE register save area to 16 bytes only if the incoming stack
6736 boundary is no less than 16 bytes.
6737
6738 2015-10-08 Jeff Law <law@redhat.com>
6739
6740 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6741 release_ssa_name. Fix typo in comment.
6742
6743 2015-10-08 Nathan Sidwell <nathan@acm.org>
6744
6745 * config/nvptx/nvptx.h (struct machine_function): Add comment.
6746 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6747 may return pointer as well as in memory.
6748 (nvptx_output_return): Likewise.
6749
6750 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6751
6752 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6753 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6754 * match.pd: Add rules previously handled by fold_builtin_sqrt
6755 and fold_builtin_cbrt.
6756
6757 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6758
6759 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6760 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6761 * fold-const.h (tree_unary_nonnegative_warnv_p)
6762 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6763 (tree_expr_nonnegative_warnv_p): Add depth parameters.
6764 * fold-const.c: Include gimple-fold.h and params.h.
6765 (tree_ssa_name_nonnegative_warnv_p): New function.
6766 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6767 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6768 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6769 Add a depth parameter and increment it for recursive calls to
6770 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
6771 to handle SSA names.
6772 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6773 (gimple_stmt_nonnegative_warnv_p): Declare.
6774 * tree-vrp.c (remove_range_assertions): Remove assert that condition
6775 cannot be proven false.
6776 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6777 (gimple_stmt_nonnegative_warnv_p): Move to...
6778 * gimple-fold.c: ...here. Add depth parameters and pass them
6779 down to the tree routines. Accept statements that aren't
6780 assignments or calls but just return false for them.
6781 (gimple_val_nonnegative_real_p): Delete.
6782 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6783 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6784 Check HONOR_NANs first.
6785
6786 2015-10-08 Martin Jambor <mjambor@suse.cz>
6787
6788 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
6789 unnecessary MIN.
6790
6791 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6792
6793 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6794 in the tail of outer-loop.
6795
6796 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
6797
6798 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6799 return UI_NONE.
6800
6801 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6802
6803 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6804 "cfghooks.h", add prototypes for introduced new functions.
6805 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6806 checks on ability of loop unswitching to tree_unswitch_single_loop;
6807 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6808 on innermost loop check.
6809 (tree_unswitch_single_loop): Add all required checks on ability of
6810 loop unswitching under zero recursive level guard.
6811 (tree_unswitch_outer_loop): New function.
6812 (find_loop_guard): Likewise.
6813 (empty_bb_without_guard_p): Likewise.
6814 (used_outside_loop_p): Likewise.
6815 (get_vop_from_header): Likewise.
6816 (hoist_guard): Likewise.
6817 (check_exit_phi): Likewise.
6818
6819 2015-10-08 Marek Polacek <polacek@redhat.com>
6820
6821 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6822 ops element.
6823
6824 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6825
6826 PR c/65345
6827 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6828 create_tmp_var_raw instead of create_tmp_var.
6829
6830 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
6831
6832 * expr.c (store_expr_with_bounds): Handle aggregate moves from
6833 BLKmode.
6834 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6835 to define gimple type system; compare aggregates only by size.
6836
6837 2015-10-07 Jeff Law <law@redhat.com>
6838
6839 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6840 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6841 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
6842 unnecessarily.
6843
6844 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6845 Sebastian Pop <s.pop@samsung.com>
6846
6847 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6848 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6849 (generate_isl_schedule): Same.
6850 * graphite-optimize-isl.c (scop_get_domains): Same.
6851 (apply_schedule_map_to_scop): Same.
6852 * graphite-poly.c (print_iteration_domains): Same.
6853 (remove_gbbs_in_scop): Same.
6854 (new_scop): Same.
6855 (free_scop): Same.
6856 (print_scop): Same.
6857 * graphite-poly.h (struct scop): Rename bbs to pbbs.
6858 (SCOP_BBS): Remove.
6859 * graphite-scop-detection.c (compare_bb_depths): Remove.
6860 (graphite_sort_dominated_info): Remove.
6861 (try_generate_gimple_bb): Move out of scop_detection.
6862 (all_non_dominated_preds_marked_p): Remove.
6863 (build_scop_bbs_1): Remove.
6864 (build_scop_bbs): Remove.
6865 (nb_pbbs_in_loops): Do not use SCOP_BBS.
6866 (find_scop_parameters): Same.
6867 (sese_dom_walker): Rename gather_bbs.
6868 (before_dom_children): Call try_generate_gimple_bb and collect gbb
6869 and pbb.
6870 (build_scops): Call gather_bbs.
6871 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6872 (add_conditions_to_constraints): Same.
6873 (build_scop_iteration_domain): Same.
6874 (build_scop_drs): Same.
6875 (new_pbb_from_pbb): Same.
6876 * sese.c (new_sese_info): Create bbs.
6877 * sese.h (struct sese_info_t): Add bbs.
6878
6879 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
6880
6881 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6882 encoding in 64-bit mode.
6883
6884 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
6885
6886 PR target/66697
6887 * config/i386/i386.c (ix86_option_override_internal): Always use
6888 8-byte minimum stack boundary in 64-bit mode.
6889 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6890 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6891 Add a REG_CFA_EXPRESSION note if needed.
6892 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6893 (ix86_handle_force_align_arg_pointer_attribute): New.
6894 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6895 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6896 with ix86_handle_force_align_arg_pointer_attribute.
6897 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6898
6899 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6900 Sebastian Pop <s.pop@samsung.com>
6901
6902 * graphite-scop-detection.c (parameter_index_in_region): Remove
6903 use of SESE_ADD_PARAMS.
6904 (find_scop_parameters): Same.
6905 * sese.c (new_sese_info): Same.
6906 * sese.h (struct sese_info_t): Remove add_params.
6907 (SESE_ADD_PARAMS): Remove.
6908
6909 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6910 Sebastian Pop <s.pop@samsung.com>
6911
6912 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6913 an sese_info_p.
6914 (copy_def): Same.
6915 (copy_internal_parameters): Same.
6916 (translate_isl_ast_to_gimple): Use an sese_l.
6917 (build_iv_mapping): Same.
6918 * graphite-poly.c (new_sese): Rename new_sese_info.
6919 (free_sese): Rename free_sese_info.
6920 * graphite-poly.h (struct scop): Use an sese_info_p.
6921 (scop_set_region): Same.
6922 * graphite-scop-detection.c (struct sese_l): Moved...
6923 (get_entry_bb): Moved...
6924 (get_exit_bb): Moved...
6925 (parameter_index_in_region_1): Use an sese_info_p.
6926 (parameter_index_in_region): Same.
6927 (scan_tree_for_params): Same.
6928 (find_params_in_bb): Same.
6929 (sese_dom_walker): Use an sese_l.
6930 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6931 (reduction_phi_p): Same.
6932 (parameter_index_in_region_1): Use an sese_info_p.
6933 (propagate_expr_outside_region): Use an sese_l.
6934 * graphite.c: Replace uses of SCOP_REGION.
6935 * sese.c (sese_record_loop): Use an sese_info_p.
6936 (build_sese_loop_nests): Same.
6937 (sese_build_liveouts_use): Same.
6938 (sese_build_liveouts_bb): Same.
6939 (sese_build_liveouts_bb): Same.
6940 (sese_bad_liveouts_use): Same.
6941 (sese_reset_debug_liveouts_bb): Same.
6942 (sese_build_liveouts): Same.
6943 (new_sese): Renamed new_sese_info.
6944 (free_sese): Renamed free_sese_info.
6945 (set_rename): Use an sese_info_p.
6946 (graphite_copy_stmts_from_block): Same.
6947 (copy_bb_and_scalar_dependences): Same.
6948 (outermost_loop_in_sese_1): Use an sese_l.
6949 (outermost_loop_in_sese): Same.
6950 (if_region_set_false_region): Use an sese_info_p.
6951 (move_sese_in_condition): Same.
6952 (scalar_evolution_in_region): Use an sese_l.
6953 * sese.h (struct sese_l): ... here.
6954 (SESE_ENTRY): Remove.
6955 (SESE_ENTRY_BB): Remove.
6956 (SESE_EXIT): Remove.
6957 (SESE_EXIT_BB): Remove.
6958 (sese_contains_loop): Use an sese_info_p.
6959 (sese_nb_params): Same.
6960 (bb_in_sese_p): Use an sese_l.
6961 (stmt_in_sese_p): Same.
6962 (defined_in_sese_p): Same.
6963 (loop_in_sese_p): Same.
6964 (sese_loop_depth): Same.
6965 (struct ifsese_s): Use an sese_info_p.
6966 (gbb_loop_at_index): Use an sese_l.
6967 (nb_common_loops): Same.
6968 (scev_analyzable_p): Same.
6969
6970 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6971
6972 * config/i386/i386.c (ix86_conditional_register_usage): Use
6973 CALL_USED_REGISTERS_MASK.
6974 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6975
6976 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6977
6978 PR bootstrap/67385
6979 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6980 * configure: Regenerated.
6981
6982 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6983
6984 PR target/67850
6985 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6986 (ix86_set_current_function): This.
6987 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6988
6989 2015-10-07 Richard Biener <rguenther@suse.de>
6990
6991 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6992 (vinfo_for_stmt): Adjust.
6993 (set_vinfo_for_stmt): Likewise.
6994 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6995 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6996 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6997 of inner loop.
6998 (vect_analyze_loop_1): Remove.
6999 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7000 inner loop when vectorizing an outer loop by splitting out from ...
7001 (vect_analyze_loop_form): ... here.
7002
7003 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7004
7005 PR c/65345
7006 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7007 Use create_tmp_var_raw instead of create_tmp_var.
7008
7009 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
7010
7011 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7012 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7013 * real.c (CACHED_FRACTION): New helper macro.
7014 (dconst_third_ptr): Use it.
7015 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7016 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7017 dconst_sixth.
7018 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7019
7020 2015-10-06 Jeff Law <law@redhat.com>
7021
7022 PR tree-optimization/67816
7023 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7024 from remove_jump_threads_starting_at. Accept an edge rather than
7025 a basic block.
7026 * tree-ssa-threadupdate.c (removed_edges): New hash table.
7027 (remove_jump_threads_including): Note edges that get removed from
7028 the CFG for later pruning of jump threading paths including them.
7029 (thread_through_all_blocks): Remove paths which include edges that
7030 have been removed.
7031 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7032 on each outgoing edges when optimizing away a control statement.
7033
7034 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7035
7036 * reorg.c (emit_delay_sequence): Store list of delay slot insns
7037 in a vector instead of rtx_insn_list.
7038 (add_to_delay_list): Likewise.
7039 (delete_from_delay_slot): Likewise.
7040 (optimize_skip): Likewise.
7041 (redirect_with_delay_list_safe_p): Likewise.
7042 (check_annul_list_true_false): Likewise.
7043 (steal_delay_list_from_target): Likewise.
7044 (steal_delay_list_from_fallthrough): Likewise.
7045 (redundant_insn): Likewise.
7046 (fill_simple_delay_slots): Likewise.
7047 (fill_slots_from_thread): Likewise.
7048 (fill_eager_delay_slots): Likewise.
7049 (relax_delay_slots): Likewise.
7050
7051 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
7052
7053 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7054 For -mgpopt=local, also exclude unintialized common symbols.
7055 * doc/invoke.texi (Nios II Options): Document the change.
7056
7057 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7058
7059 * config/aarch64/iterators.md (vwcore): Add missing cases for
7060 V4HF/V8HF modes.
7061
7062 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7063 Sebastian Pop <s.pop@samsung.com>
7064
7065 * graphite-poly.c (new_scop): Initialize drs.
7066 * graphite-poly.h (struct dr_info): New.
7067 (struct scop): Add drs.
7068 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7069 (pdr_add_memory_accesses): Same.
7070 (build_poly_dr): Same.
7071 (build_alias_set): Same.
7072 (build_scop_drs): Same.
7073 (build_pbb_drs): Remove.
7074 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7075 * tree-data-ref.h (data_reference): Remove alias_set.
7076
7077 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7078 Sebastian Pop <s.pop@samsung.com>
7079
7080 * graphite-poly.c (free_data_refs_aux): Remove.
7081 (free_gimple_poly_bb): Do not call free_data_refs_aux.
7082 * graphite-poly.h (struct base_alias_pair): Remove.
7083 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7084 base_alias_pair and dr->aux.
7085 (build_alias_set): Same.
7086 * tree-data-ref.c (create_data_ref): Initialize alias_set.
7087 * tree-data-ref.h (data_reference): Add alias_set.
7088
7089 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7090 Sebastian Pop <s.pop@samsung.com>
7091
7092 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7093 Do not set PDR_BASE_OBJECT_SET.
7094 * graphite-poly.h (poly_dr): Same.
7095 (PDR_BASE_OBJECT_SET): Remove.
7096 (new_poly_dr): Update decl.
7097 * graphite-sese-to-poly.c (build_poly_dr): Update call to
7098 new_poly_dr.
7099 (write_alias_graph_to_ascii_dimacs): Remove.
7100 (write_alias_graph_to_ascii_dot): Remove.
7101 (write_alias_graph_to_ascii_ecc): Remove.
7102 (dr_same_base_object_p): Remove.
7103 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
7104 code.
7105 (build_base_obj_set_for_drs): Remove.
7106 (dump_alias_graphs): Remove.
7107 (build_scop_drs): Remove dead code.
7108
7109 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7110 Peter Bergner <bergner@vnet.ibm.com>
7111
7112 PR target/67808
7113 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7114 allow registers, but provide insns for the combiner to create for
7115 loads from memory. Separate VSX code from non-VSX code. For
7116 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7117 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7118 so that registers come before memory operations. Drop support from
7119 converting DFmode to TFmode, if the DFmode value is in a GPR
7120 register.
7121 (extenddftf2_fprs): Likewise.
7122 (extenddftf2_internal): Likewise.
7123 (extenddftf2_vsx): Likewise.
7124 (extendsftf2): In the expander, only allow registers, but provide
7125 insns for the combiner to create for stores and loads.
7126
7127 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7128
7129 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7130 from the decl parameter.
7131
7132 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
7133
7134 PR 67861
7135 * gimple-fold.c (gimple_fold_builtin): Add break after
7136 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7137
7138 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
7139
7140 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7141 to scop->isl_context.
7142
7143 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7144
7145 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7146 (output_probe_stack_range): Rotate the loop and simplify.
7147 (thumb1_expand_prologue): Tweak sorry message.
7148 * config/arm/arm.md (probe_stack): Use bare string.
7149
7150 2015-10-06 Nick Clifton <nickc@redhat.com>
7151
7152 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7153
7154 2015-10-06 Nick Clifton <nickc@redhat.com>
7155
7156 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7157 (ATTR_PERSIST): New constant.
7158 (msp430_data_attr): New function - verifies an attribute that only
7159 applies to variables.
7160 (msp430_attributes): Add noinit and persistent attributes.
7161 (noinit_section): New variable.
7162 (presis_section): New variable.
7163 (TARGET_ASM_INIT_SECTIONS): Define.
7164 (msp430_init_sections): New function - initialises the noinit and
7165 persist section variables.
7166 (msp430_select_section): Add support for noinit and persist
7167 attributes.
7168 (msp430_section_type_flags): Likewise.
7169 * doc/extend.texi: Document the reent, critical, wakeup, noinit
7170 and persistent attributes.
7171
7172 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7173 Sebastian Pop <s.pop@samsung.com>
7174
7175 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7176 (no_violations): Remove.
7177 (subtract_commutative_associative_deps): Remove.
7178 (compute_deps): Do not call subtract_commutative_associative_deps.
7179 (transform_is_safe): Remove.
7180 (graphite_legal_transform): Remove.
7181 * graphite-poly.h (graphite_legal_transform): Remove.
7182
7183 2015-10-05 Aditya Kumar <hiraditya@msn.com>
7184
7185 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7186 which are in this region are passed so gcc_assert and remove redundant
7187 computation.
7188 * sese.c (sese_build_liveouts): Pass only those bbs which are not
7189 in region.
7190 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7191 gcc_assert on that and remove unnecessary computation.
7192 (sese_build_liveouts_use): Same.
7193
7194 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7195
7196 * graphite-dependences.c (scop_get_reads): Renamed scop->context
7197 to scop->param_context.
7198 (scop_get_must_writes): Same.
7199 (scop_get_may_writes): Same.
7200 (scop_get_original_schedule): Same.
7201 (scop_get_transformed_schedule): Same.
7202 (subtract_commutative_associative_deps): Same.
7203 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7204 (generate_isl_context): Same.
7205 (generate_isl_schedule): Same.
7206 (scop_to_isl_ast): Same.
7207 (graphite_regenerate_ast_isl): Same.
7208 * graphite-optimize-isl.c (scop_get_domains): Same.
7209 (optimize_isl): Renamed scop->context to scop->param_context.
7210 * graphite-poly.c (new_poly_bb): Change the type of argument to
7211 gimple_poly_bb_p.
7212 (new_scop): Renamed scop->context to scop->param_context.
7213 (free_scop): Same.
7214 (print_scop_context): Same.
7215 * graphite-poly.h (new_poly_dr): Change the type of argument from
7216 void* to data_reference_p.
7217 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7218 (new_poly_bb): Change the type of argument from void* to
7219 gimple_poly_bb_p.
7220 (pbb_set_black_box): Same.
7221 (struct scop): Rename context to param_context, ctx to isl_context.
7222 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7223 Move declarations closer to assignment.
7224 (find_params_in_bb): Same.
7225 (find_scop_parameters): Same.
7226 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7227 Global to be used for statement IDs.
7228 (isl_id_for_pbb): Use ssa_name_version_typesize.
7229 (simple_copy_phi_p): Move declarations closer to assignment.
7230 (build_pbb_scattering_polyhedrons): Same.
7231 (build_scop_scattering): Same.
7232 (isl_id_for_ssa_name): Same.
7233 (extract_affine_name): Same.
7234 (extract_affine_int): Same.
7235 (extract_affine): Same.
7236 (set_scop_parameter_dim): Use renamed member.
7237 (build_loop_iteration_domains): Same.
7238 (add_param_constraints): Same.
7239 (build_scop_iteration_domain): Same.
7240 (pdr_add_data_dimensions): Same.
7241 (build_poly_dr): Same.
7242 (build_scop_drs): Move declarations closer to assignment.
7243 (analyze_drs_in_stmts): Same.
7244 (insert_out_of_ssa_copy): Same.
7245 (insert_out_of_ssa_copy_on_edge): Same.
7246 (propagate_expr_outside_region): Same.
7247 (rewrite_phi_out_of_ssa): Same.
7248 (rewrite_degenerate_phi): Same.
7249 (rewrite_reductions_out_of_ssa): Same.
7250 (rewrite_cross_bb_scalar_dependence): Same.
7251 (handle_scalar_deps_crossing_scop_limits): Same.
7252 (rewrite_cross_bb_scalar_deps): Same.
7253 * graphite.c (graphite_transform_loops): Use renamed member.
7254
7255 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
7256
7257 PR c/65345
7258 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7259 create_tmp_var_raw instead of create_tmp_var.
7260
7261 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7262
7263 PR c/65345
7264 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7265 Use create_tmp_var_raw instead of create_tmp_var.
7266
7267 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
7268
7269 PR target/67849
7270 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7271 split for upper-bank registers when target does not support
7272 AVX512VL.
7273 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7274 split when target does not support AVX512VL.
7275
7276 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
7277
7278 PR c/65345
7279 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7280 Adjust to use create_tmp_var_raw instead of create_tmp_var.
7281
7282 2015-10-06 Nick Clifton <nickc@redhat.com>
7283
7284 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7285 multiplication.
7286
7287 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7288
7289 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7290 (case ${target}): Add znver1.
7291 * config/i386/cpuid.h(bit_CLZERO): Define.
7292 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7293 -march=native recognize znver1 processors.
7294 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7295 znver1, clzero def_and_undef.
7296 * config/i386/i386.c (struct processor_costs znver1_cost): New.
7297 (m_znver1): New definition.
7298 (m_AMD_MULTIPLE): Includes m_znver1.
7299 (processor_target_table): Add znver1 entry.
7300 (ix86_target_string) : Add clzero entry.
7301 (static const char *const cpu_names): Add znver1 entry.
7302 (ix86_option_override_internal): Add znver1 instruction sets.
7303 (PTA_CLZERO) : New definition.
7304 (ix86_option_override_internal): Handle new clzerooption.
7305 (ix86_issue_rate): Add znver1.
7306 (ix86_adjust_cost): Add znver1.
7307 (ia32_multipass_dfa_lookahead): Add znver1.
7308 (has_dispatch): Add znver1.
7309 * config/i386/i386.h (TARGET_znver1): New definition.
7310 (TARGET_CLZERO): Define.
7311 (TARGET_CLZERO_P): Define.
7312 (struct ix86_size_cost): Add TARGET_ZNVER1.
7313 (enum processor_type): Add PROCESSOR_znver1.
7314 * config/i386/i386.md (define_attr "cpu"): Add znver1.
7315 (set_attr znver1_decode): New definitions for znver1.
7316 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7317 (mclzero): New.
7318 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7319 for znver1.
7320 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7321 * config/i386/x86-tune.def: Add znver1 tunings.
7322 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7323 * doc/invoke.texi: Add details about znver1
7324
7325 2015-10-06 Richard Biener <rguenther@suse.de>
7326
7327 PR tree-optimization/67859
7328 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7329 discard not inserted stmts.
7330
7331 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7332
7333 * doc/extend.texi (Template Instantiation): Reorder options and
7334 de-emphasize -frepo.
7335 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7336 example instead of -frepo.
7337
7338 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7339
7340 PR c/65345
7341 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7342 use create_tmp_var_raw rather than create_tmp_var.
7343
7344 2015-10-06 Richard Biener <rguenther@suse.de>
7345
7346 * tree-vectorizer.h (vec_info): New base class for...
7347 (_loop_vec_info): ... this and ...
7348 (_bb_vec_info): ... this.
7349 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7350 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7351 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7352 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7353 vect_destroy_datarefs): Adjust interface to take a vec_info *
7354 rather than both a loop_vec_info and a bb_vec_info argument.
7355 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7356 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7357 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7358 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7359 accordingly.
7360 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7361 (destroy_loop_vec_info, vect_analyze_loop_2,
7362 vect_is_simple_reduction_1, get_initial_def_for_induction,
7363 vect_create_epilog_for_reduction, vectorizable_reduction,
7364 vectorizable_live_operation, vect_transform_loop): Adjust.
7365 * tree-vect-patterns.c (type_conversion_p,
7366 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7367 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7368 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7369 check_bool_pattern, vect_recog_bool_pattern,
7370 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7371 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7372 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7373 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7374 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7375 (new_bb_vec_info): Initialize base classs.
7376 * tree-vect-stmts.c (record_stmt_cost, process_use,
7377 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7378 vectorizable_mask_load_store, vectorizable_call,
7379 vectorizable_simd_clone_call, vectorizable_conversion,
7380 vectorizable_assignment, vectorizable_shift,
7381 vectorizable_operation, vectorizable_store,
7382 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7383 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7384 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7385
7386 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7387
7388 PR c/65345
7389 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7390 create_tmp_var_raw rather than create_tmp_var.
7391
7392 2015-10-05 Marek Polacek <polacek@redhat.com>
7393
7394 * tree-ssa-loop-im.c
7395 (move_computations_dom_walker::before_dom_children): Don't set
7396 SSA_NAME_ANTI_RANGE_P.
7397 * tree-ssa-phiopt.c (value_replacement): Likewise.
7398
7399 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7400 Sebastian Pop <s.pop@samsung.com>
7401
7402 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7403
7404 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7405 Sebastian Pop <s.pop@samsung.com>
7406
7407 * graphite-poly.c (new_gimple_poly_bb): ... here.
7408 (free_data_refs_aux): ... here.
7409 (free_gimple_poly_bb): ... here.
7410 (remove_gbbs_in_scop): ... here.
7411 (new_scop): Call new_sese.
7412 (free_scop): Call remove_gbbs_in_scop and free_sese.
7413 * graphite-poly.h (base_alias_pair): ... here.
7414 (new_gimple_poly_bb): Declare.
7415 (free_gimple_poly_bb): Declare.
7416 * graphite-scop-detection.c (parameter_index_in_region_1):
7417 (parameter_index_in_region): ... here.
7418 (scan_tree_for_params): ... here.
7419 (find_params_in_bb): ... here.
7420 (find_scop_parameters): ... here.
7421 (build_scops): Call find_scop_parameters.
7422 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7423 (free_scops): Move...
7424 (single_pred_cond_non_loop_exit): Move...
7425 (sese_dom_walker::before_dom_children): Move...
7426 (sese_dom_walker::after_dom_children): Move...
7427 (build_poly_scop): Move...
7428 * graphite-sese-to-poly.h (base_alias_pair): Move...
7429 * graphite.c (free_scops): ... here.
7430
7431 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7432 Sebastian Pop <s.pop@samsung.com>
7433
7434 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7435 (trivially_empty_bb_p): Move...
7436 (same_close_phi_node): Move...
7437 (new_gimple_poly_bb): Move...
7438 (compare_bb_depths): Move...
7439 (graphite_sort_dominated_info): Move...
7440 (remove_duplicate_close_phi): Move...
7441 (make_close_phi_nodes_unique): Move...
7442 (canonicalize_loop_closed_ssa): Move...
7443 (canonicalize_loop_closed_ssa_form): Move...
7444 (loop_ivs_can_be_represented): Move...
7445 (single_pred_cond_non_loop_exit): Move...
7446 (graphite_can_represent_init): Move...
7447 (graphite_can_represent_scev): Move...
7448 (stmt_has_simple_data_refs_p): Move...
7449 (stmt_has_side_effects): Move...
7450 (graphite_can_represent_stmt): Move...
7451 (scop_detection): ... here.
7452 (sese_dom_walker): ... and here.
7453 (build_scops): Call all moved functions.
7454 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7455 (all_non_dominated_preds_marked_p): Move...
7456 (build_scop_bbs_1): Move...
7457 (build_scop_bbs): Move...
7458 (set_scop_parameter_dim): Move...
7459 (nb_pbbs_in_loops): Move...
7460 (build_poly_scop): Do not call all the moved functions.
7461
7462 2015-10-05 Martin Jambor <mjambor@suse.cz>
7463 Jan Hubicka <hubicka@ucw.cz>
7464
7465 * ipa-cp.c (ipcp_alignment_lattice): New type.
7466 (ipcp_param_lattices): Use the above to represent alignment.
7467 (ipcp_alignment_lattice::print): New function.
7468 (print_all_lattices): Use it to print alignment information.
7469 (ipcp_alignment_lattice::top_p): New function.
7470 (ipcp_alignment_lattice::bottom_p): Likewise.
7471 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7472 (ipcp_alignment_lattice::meet_with_1): Likewise.
7473 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7474 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7475 (initialize_node_lattices): Likewise.
7476 (propagate_alignment_accross_jump_function): Work with the new class
7477 for alignment lattices.
7478 (propagate_constants_accross_call): Pass only the alignment lattice to
7479 propagate_alignment_accross_jump_function.
7480 (ipcp_store_alignment_results): Work with the new class for alignment
7481 lattices.
7482
7483 2015-10-05 Marek Polacek <polacek@redhat.com>
7484
7485 PR tree-optimization/67821
7486 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7487
7488 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
7489
7490 PR other/65021
7491 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7492 function to...
7493 (mkoffload_cleanup): ... this. Adjust all users.
7494 (maybe_unlink): Look at save_temps and verbose flags instead of
7495 debug flag.
7496 (main): Parse "-save-temps" flag.
7497 (generate_target_descr_file, generate_target_offloadend_file)
7498 (generate_host_descr_file, prepare_target_image): Pass it on.
7499 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7500 (mkoffload_cleanup): New function.
7501 (maybe_unlink): Look at save_temps and verbose flags instead of
7502 debug flag.
7503 (main): Instead of calling utils_cleanup, register atexit handler
7504 for mkoffload_cleanup.
7505 (main): Parse "-save-temps" flag.
7506 (compile_native, main): Pass it on.
7507 * lto-wrapper.c (compile_offload_image): Likewise.
7508
7509 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7510
7511 * gimple.h (gimple_op_ptr): Require a non const gimple *.
7512 (gimple_assign_lhs_ptr): Likewise.
7513 (gimple_assign_rhs1_ptr): Likewise.
7514 (gimple_assign_rhs2_ptr): Likewise.
7515 (gimple_assign_rhs3_ptr): Likewise.
7516 (gimple_call_lhs_ptr): Likewise.
7517 (gimple_call_fn_ptr): Likewise.
7518 (gimple_call_chain_ptr): Likewise.
7519 (gimple_call_arg_ptr): Likewise.
7520 (gimple_cond_lhs_ptr): Likewise.
7521 (gimple_cond_rhs_ptr): Likewise.
7522 (gimple_switch_index_ptr): Likewise.
7523 (gimple_return_retval_ptr): Likewise.
7524
7525 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7526
7527 * gimple.h (gimple_asm_input_op_ptr): Remove.
7528 (gimple_asm_output_op_ptr): Likewise.
7529
7530 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7531
7532 * gimple.h (gimple_location_ptr): Remove.
7533 * tree-vrp.c (check_all_array_refs): Adjust.
7534
7535 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7536
7537 * tree-ssa-operands.c (build_uses): store tree * instead of
7538 tree.
7539 (finalize_ssa_uses): Adjust.
7540 (append_use): Likewise.
7541 (verify_ssa_operands): Likewise.
7542
7543 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7544
7545 * real.h (build_real_truncate): Declare.
7546 * tree.c (build_real_truncate): New function.
7547 (strip_float_extensions): Use it.
7548 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7549 (fold_builtin_hypot, fold_builtin_pow): Likewise.
7550 * match.pd: Likewise.
7551
7552 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7553 Jiong Wang <jiong.wang@arm.com>
7554
7555 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7556
7557 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7558
7559 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7560 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7561 (aarch64_print_operand, aarch64_float_const_representable_p)
7562 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7563 instead of REAL_VALUE_FROM_CONST_DOUBLE.
7564 * config/arc/arc.c (arc_print_operand): Likewise.
7565 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7566 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7567 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7568 Likewise.
7569 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7570 (consttable_16): Likewise.
7571 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7572 * config/avr/avr.c (avr_print_operand): Likewise.
7573 * config/bfin/bfin.md: Likewise (in a define_split).
7574 * config/c6x/c6x.md: Likewise (in a define_split).
7575 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7576 (cr16_print_operand): Likewise.
7577 * config/cris/cris.c (cris_print_operand): Likewise.
7578 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7579 * config/fr30/fr30.c (fr30_print_operand): Likewise.
7580 (fr30_const_double_is_zero): Likewise.
7581 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7582 * config/frv/frv.md: Likewise (in a define_split).
7583 * config/frv/predicates.md (int_2word_operand): Likewise.
7584 * config/h8300/h8300.c (h8300_print_operand): Likewise.
7585 * config/i386/i386.c (standard_80387_constant_p): Likewise.
7586 (ix86_print_operand, ix86_split_to_parts): Likewise.
7587 * config/i386/i386.md: Likewise (in a define_split).
7588 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7589 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7590 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7591 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7592 (print_operand): Likewise.
7593 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7594 * config/mep/mep.md: Likewise (in define_split).
7595 * config/microblaze/microblaze.c (microblaze_const_double_ok)
7596 (print_operand): Likewise.
7597 * config/mips/mips.md (consttable_float): Likewise.
7598 * config/mmix/mmix.c (mmix_intval): Likewise.
7599 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7600 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7601 * config/pa/pa.c (pa_singlemove_string): Likewise.
7602 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7603 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7604 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7605 (output_toc): Likewise.
7606 * config/rs6000/rs6000.md: Likewise (in define_splits).
7607 * config/rx/rx.c (rx_print_operand): Likewise.
7608 * config/s390/s390.c (s390_output_pool_entry): Likewise.
7609 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7610 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7611 (and also in define_splits).
7612 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7613 (fp_high_losum_p): Likewise.
7614 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7615 (*movsf_high): Likewise.
7616 * config/spu/spu.c (const_double_to_hwint): Likewise.
7617 * config/v850/v850.c (const_double_split): Likewise.
7618 * config/vax/vax.c (vax_float_literal): Likewise.
7619 * config/visium/visium.c (visium_expand_copysign): Likewise.
7620 * config/visium/visium.md: Likewise (in define_split).
7621 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7622 * config/xtensa/xtensa.c (print_operand): Likewise.
7623 (xtensa_output_literal): Likewise.
7624 * cprop.c (implicit_set_cond_p): Likewise.
7625 * dwarf2out.c (insert_float): Likewise.
7626 * expmed.c (expand_mult, make_tree): Likewise.
7627 * expr.c (compress_float_constant): Likewise.
7628 * rtlanal.c (split_double): Likewise.
7629 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7630 (simplify_const_unary_operation, simplify_binary_operation_1)
7631 (simplify_const_binary_operation): Likewise.
7632 (simplify_const_relational_operation): Likewise.
7633 * varasm.c (output_constant_pool_2): Likewise.
7634
7635 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7636
7637 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7638 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7639 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7640 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7641 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7642 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7643 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7644 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7645 (ix86_emit_swsqrtsf): Likewise.
7646 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7647 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7648 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7649 * config/pa/pa.c (pa_expand_builtin): Likewise.
7650 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7651 (rs6000_scale_v2df): Likewise.
7652 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7653 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7654 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7655 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7656 (vec_ctul): Likewise.
7657 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7658 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7659 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7660 * cse.c (fold_rtx): Likewise.
7661 * emit-rtl.c (immed_double_const): Likewise (in comments).
7662 (init_emit_once): Likewise.
7663 * expr.c (compress_float_constant, expand_expr_real_1)
7664 (const_vector_from_tree): Likewise.
7665 * optabs.c (expand_float, expand_fix): Likewise.
7666 * reg-stack.c (reg_to_stack): Likewise.
7667 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7668 (simplify_const_unary_operation, simplify_binary_operation_1)
7669 (simplify_const_binary_operation, simplify_relational_operation)
7670 (simplify_immed_subreg): Likewise.
7671
7672 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7673
7674 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7675 * doc/tm.texi: Regenerate.
7676 * real.h (REAL_ARITHMETIC): Delete.
7677 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7678 (ix86_expand_round_sse4): Use real_arithmetic instead of
7679 REAL_ARITHMETIC.
7680 * config/i386/sse.md (round<mode>2): Likewise.
7681 * rtl.h (rtx_to_tree_code): Likewise (in comment).
7682 * explow.c (rtx_to_tree_code): Likewise (in comment).
7683 * match.pd: Likewise.
7684 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7685 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7686 (expand_pow_as_sqrts): Likewise.
7687 * tree-pretty-print.c (dump_generic_node): Remove code that
7688 was conditional on REAL_ARITHMETIC being undefined.
7689
7690 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7691
7692 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7693 * doc/tm.texi: Regenerate.
7694 * real.h (real_less): Declare.
7695 (REAL_VALUES_LESS): Delete.
7696 * real.c (real_less): New function.
7697 (real_compare): Use it.
7698 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7699 of REAL_VALUES_LESS.
7700 * config/microblaze/microblaze.c (microblaze_const_double_ok):
7701 Likewise.
7702 * fold-const.c (fold_convert_const_int_from_real): Likewise.
7703 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7704 (simplify_const_relational_operation): Likewise.
7705 * tree-call-cdce.c (check_pow): Likewise.
7706 (gen_conditions_for_pow_cst_base): Likewise.
7707
7708 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7709
7710 * real.h (REAL_VALUES_IDENTICAL): Delete.
7711 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7712 instead of REAL_VALUES_IDENTICAL.
7713 * fold-const.c (operand_equal_p): Likewise.
7714 * ipa-icf.c (sem_variable::equals): Likewise.
7715 * tree-complex.c (some_nonzerop): Likewise.
7716 (expand_complex_multiplication): Likewise.
7717 * tree.c (simple_cst_equal): Likewise.
7718 * varasm.c (compare_constant): Likewise.
7719
7720 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7721
7722 * real.h (real_equal): Declare.
7723 (REAL_VALUES_EQUAL): Delete.
7724 * real.c (real_equal): New function.
7725 (real_compare): Use it.
7726 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7727 * doc/tm.texi: Regenerate.
7728 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7729 real_equal instead of REAL_VALUES_EQUAL.
7730 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7731 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7732 (fp_const_from_val): Likewise.
7733 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7734 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7735 (floating_exact_log2): Likewise.
7736 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7737 * config/vax/vax.c (vax_float_literal): Likewise.
7738 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7739 * cprop.c (implicit_set_cond_p): Likewise.
7740 * expmed.c (expand_mult): Likewise.
7741 * fold-const.c (const_binop): Likewise.
7742 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7743 (simplify_const_binary_operation): Likewise.
7744 (simplify_const_relational_operation): Likewise.
7745 * tree-call-cdce.c (check_pow): Likewise.
7746 (gen_conditions_for_pow_cst_base): Likewise.
7747 * tree-inline.c (estimate_num_insns): Likewise.
7748 * tree-ssa-dom.c (record_equality): Likewise.
7749 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7750 (gimple_expand_builtin_pow): Likewise.
7751 (pass_optimize_widening_mul::execute): Likewise.
7752 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7753 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7754 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7755
7756 2015-10-05 Richard Biener <rguenther@suse.de>
7757
7758 PR ipa/67783
7759 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7760 consider loop header PHI defs as IVs.
7761
7762 2015-10-05 Richard Biener <rguenther@suse.de>
7763
7764 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7765 call handling ...
7766 (create_expression_by_pieces): ... here and build GIMPLE
7767 calls directly. Use gimple_build API and avoid force_gimple_operand.
7768 (insert_into_preds_of_block): Simplify.
7769 (do_regular_insertion): Add comment.
7770
7771 2015-10-04 Jason Merrill <jason@redhat.com>
7772
7773 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7774
7775 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
7776
7777 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7778 check for general register.
7779 (ix86_emit_save_regs): Ditto.
7780 (ix86_emit_save_regs_using_mov): Ditto.
7781 (ix86_emit_restore_regs_using_pop): Ditto.
7782 (ix86_emit_restore_regs_using_mov): Ditto.
7783
7784 2015-10-03 Marek Polacek <polacek@redhat.com>
7785
7786 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7787 (insn-dfatab.o): Likewise.
7788
7789 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
7790
7791 * config.gcc (xtensa*-*-uclinux*): New configuration.
7792 * config/xtensa/uclinux.h: New file.
7793 * config/xtensa/uclinux.opt: New file.
7794
7795 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
7796
7797 * doc/cpp.texi (Standard Predefined Macros): Document value of
7798 __cplusplus for C++14.
7799
7800 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
7801
7802 * gcc.c (process_command): Use spec_machine rather than
7803 spec_host_machine to build tooldir_prefix2.
7804
7805 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7806 Bernd Schmidt <bernds@codesourcery.com>
7807
7808 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7809 (Token, Stmt): Remove structs.
7810 (decls, vars, fns): Remove variables.
7811 (alloc_comment, append_stmt, is_keyword): Remove macros.
7812 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7813 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7814 (parse_init, parse_file): Remove functions.
7815 (read_file): Accept a pointer to a length and store into it.
7816 (process): Don't try to parse the input file, just write it out as
7817 a string, but looking for maps. Also write out the length.
7818 (main): Don't use "-S" to compile PTX code.
7819
7820 2015-10-02 Jeff Law <law@redhat.com>
7821
7822 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7823 fixups.
7824
7825 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7826
7827 PR target/67822
7828 * config/nvptx/mkoffload.c (main): Scan the argument vector for
7829 -fopenmp, and skip generating an offloading image if specified.
7830
7831 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
7832
7833 * system.h (ROUND_UP): New macro definition.
7834 (ROUND_DOWN): Ditto.
7835 * ggc-page.c (ROUND_UP): Remove local macro definition.
7836 (PAGE_ALIGN): Implement using ROUND_UP macro.
7837
7838 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7839 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7840 to align values.
7841 (ix86_compute_frame_layout): Ditto.
7842 (ix86_expand_prologue): Ditto.
7843 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7844 to round down values.
7845 (expand_set_or_movmem_via_rep): Ditto.
7846
7847 2015-10-02 Marek Polacek <polacek@redhat.com>
7848
7849 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7850
7851 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
7852
7853 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7854 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7855 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7856 (free_gimple_bb): Renamed free_gimple_poly_bb.
7857 (try_generate_gimple_bb): Hoist loop invariant code.
7858 (analyze_drs_in_stmts): Same.
7859 (build_scop_drs): Call renamed functions.
7860 (new_pbb_from_pbb): Same.
7861 (scop_ivs_can_be_represented): Delete as functionality now moved to
7862 graphite-scop-detection.c
7863 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7864
7865 2015-10-02 Aditya Kumar <hiraditya@msn.com>
7866
7867 * graphite-scop-detection.c (stmt_has_side_effects): New function
7868 outlined from stmt_simple_for_scop_p.
7869 (graphite_can_represent_stmt): Same.
7870 (stmt_simple_for_scop_p): Moved code out of this function for better
7871 readability.
7872
7873 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7874
7875 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7876 F_AVX512IFMA.
7877 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7878
7879 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7880
7881 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7882
7883 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
7884
7885 PR rtl-optimization/67756
7886 * lra-constraints.c (match_reload): Add a new parameter. Use it
7887 for creating a pseudo with the same value.
7888 (curr_insn_transform): Pass a new argument to match_reload.
7889
7890 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7891
7892 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7893 (expand_vec_perm_even_odd_1): Handle V64QImode.
7894 (ix86_expand_vec_perm_const_1): Try expansion with
7895 expand_vec_perm_even_odd_trunc as well.
7896 * config/i386/sse.md (VI124_AVX512F): Rename to ...
7897 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7898 to V54QI.
7899 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7900 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7901 to V32HI and V16SI.
7902 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7903 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7904 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7905 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7906 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7907 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7908
7909 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7910
7911 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7912 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7913
7914 2015-10-02 Jason Merrill <jason@redhat.com>
7915
7916 PR c/59218
7917 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7918 (diagnose_tm_1_op): Also diagnose volatile accesses in
7919 transaction_safe function.
7920
7921 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
7922
7923 * system.h (malloc.h): Don't include obsolete header.
7924
7925 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7926
7927 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7928 (TLS_SECTION_ASM_FLAG): Delete.
7929
7930 2015-10-02 Marek Polacek <polacek@redhat.com>
7931
7932 PR c/64249
7933 * doc/invoke.texi: Document -Wduplicated-cond.
7934 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7935 (insn-dfatab.o): Likewise.
7936 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7937 warning.
7938
7939 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
7940
7941 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7942 sequences.
7943
7944 2015-10-02 Renlin Li <renlin.li@arm.com>
7945
7946 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7947
7948 2015-10-02 Renlin Li <renlin.li@arm.com>
7949
7950 PR target/66776
7951 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7952
7953 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7954
7955 PR rtl-optimization/67786
7956 PR rtl-optimization/67787
7957 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7958 it modifies a reg used in the condition calculation.
7959
7960 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
7961
7962 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7963 alternatives for reads from memory and moves from general-purpose
7964 registers.
7965 (*aarch64_combinez_be<mode>): Likewise.
7966
7967 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
7968
7969 PR target/51726
7970 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7971 selectany within this function without need to keep attribute.
7972 (i386_pe_encode_section_info): Remove selectany-code.
7973
7974 2015-10-02 Richard Biener <rguenther@suse.de>
7975
7976 * tree-ssa-sccvn.c (has_VN_INFO): New function.
7977 (free_scc_vn): Use it.
7978 (visit_use): Remove dead code and refactor to use gassign
7979 and use less indentation.
7980
7981 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7982
7983 PR target/67788
7984 PR target/67789
7985 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7986 (rs6000_cannot_copy_insn_p): New function.
7987 * config/rs6000/rs6000.md (cannot_copy): New attribute.
7988 (load_toc_v4_PIC_1_normal): Set cannot_copy.
7989 (load_toc_v4_PIC_1_476): Ditto.
7990
7991 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7992
7993 * graphite-scop-detection.c (struct sese_l): New conversion constructor
7994 so that this type can be pushed into a vec.
7995 (class scop_builder): use sese_l to collect scops.
7996 (get_scops): New getter function.
7997 (remove_intersecting_scops): Use sese_l instead of scops_p.
7998 (intersects): Same.
7999 (add_scop): Same.
8000 (subsumes): Same.
8001 (remove_subscops): Same.
8002 (build_scops): Add scops to vec<scops_p> once all the scops have been
8003 detected.
8004
8005 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8006
8007 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8008 Renamed type from gimple_bb_p to gimple_poly_bb_p.
8009 (translate_isl_ast_node_user): Same.
8010 * graphite-poly.c (new_poly_bb): Same.
8011 * graphite-poly.h (gbb_from_bb): Same.
8012 * sese.h: Same.
8013 * graphite-sese-to-poly.c (new_gimple_bb):
8014 gimple_bb_p -> gimple_poly_bb_p
8015 (build_scop_scattering): Same.
8016 (find_params_in_bb): Same.
8017 (add_conditions_to_domain): Same.
8018 (sese_dom_walker::before_dom_children): Same.
8019 (analyze_drs_in_stmts): Same.
8020 (new_pbb_from_pbb): Same.
8021 (free_data_refs_aux): New pointer to type base_alias_pair.
8022 * graphite-sese-to-poly.h: Same.
8023 * sese.c (if_region_set_false_region): Fixed Indentation.
8024 (move_sese_in_condition): Same.
8025
8026 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8027 Aditya Kumar <aditya.k7@samsung.com>
8028
8029 PR tree-optimization/66980
8030 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8031 when data reference analysis has failed.
8032
8033 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8034 Aditya Kumar <aditya.k7@samsung.com>
8035
8036 PR tree-optimization/67754
8037 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8038 scev analysis on the same loop nest as analyze_drs_in_stmts.
8039 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8040 renamed...
8041 (try_generate_gimple_bb): Call outermost_loop_in_sese.
8042 (analyze_drs_in_stmts): Same.
8043 * sese.c (outermost_loop_in_sese): ...here.
8044
8045 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8046 Aditya Kumar <aditya.k7@samsung.com>
8047
8048 PR tree-optimization/67754
8049 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8050 recursion on the inner loops.
8051
8052 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8053
8054 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8055 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8056 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8057 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8058 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8059
8060 2015-10-01 Marek Polacek <polacek@redhat.com>
8061
8062 PR c/65345
8063 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8064 create_tmp_var_raw rather than create_tmp_var.
8065
8066 2015-10-01 Marek Polacek <polacek@redhat.com>
8067
8068 PR tree-optimization/67769
8069 * tree-ssa-phiopt.c (conditional_replacement): Call
8070 reset_flow_sensitive_info_in_bb.
8071 (minmax_replacement): Likewise.
8072 (abs_replacement): Likewise.
8073
8074 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
8075
8076 * builtins.c: Don't include gomp-constants.h.
8077 (fold_builtin_1): Don't fold acc_on_device here.
8078 * gimple-fold.c: Include gomp-constants.h.
8079 (gimple_fold_builtin_acc_on_device): New.
8080 (gimple_fold_builtin): Call it.
8081
8082 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8085 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8086
8087 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
8088
8089 * config/arm/aarch-common-protos.h
8090 (aarch_accumulator_forwarding): New.
8091 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8092 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8093 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8094 * config/arm/cortex-a53.md: Rewrite.
8095
8096 2015-10-01 Richard Biener <rguenther@suse.de>
8097
8098 * gimple-match.h (mprts_hook): Declare.
8099 * gimple-match.head.c (mprts_hook): Define.
8100 (maybe_push_res_to_seq): Use new hook.
8101 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8102 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8103 (vn_ssa_aux::has_constants): Remove.
8104 * tree-ssa-sccvn.c: Include gimple-match.h.
8105 (VN_INFO_GET): Assert we don't re-use SSA names.
8106 (vn_get_expr_for): Remove.
8107 (expr_has_constants): Likewise.
8108 (stmt_has_constants): Likewise.
8109 (simplify_binary_expression): Likewise.
8110 (simplify_unary_expression): Likewise.
8111 (vn_lookup_simplify_result): New hook.
8112 (visit_copy): Adjust.
8113 (visit_reference_op_call): Likewise.
8114 (visit_phi): Likewise.
8115 (visit_use): Likewise.
8116 (process_scc): Likewise.
8117 (init_scc_vn): Likewise.
8118 (visit_reference_op_load): Likewise. Use match-and-simplify and
8119 a gimple seq for inserted expressions.
8120 (try_to_simplify): Remove GENERIC stmt combining code.
8121 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8122 * tree-ssa-pre.c (eliminate_insert): Adjust.
8123 (eliminate_dom_walker::before_dom_children): Likewise.
8124
8125 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8126
8127 * doc/invoke.texi (Optimization Options): Add
8128 -freorder-blocks-algorithm=.
8129 (Optimize Options) <-O>: Add -freorder-blocks.
8130 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
8131 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8132 <-freorder-blocks>: Also enabled at levels -O and -Os.
8133 <-freorder-blocks-algorithm=>: Document new option.
8134
8135 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8136
8137 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8138 with flag_reorder_blocks_algorithm.
8139 * common.opt (freorder-blocks-algorithm=): New flag.
8140 (reorder_blocks_algorithm): New enum.
8141 * flag-types.h (reorder_blocks_algorithm): New enum.
8142 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8143 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8144
8145 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8146
8147 * bb-reorder.c: Add intro comment.
8148 (reorder_basic_blocks_software_trace_cache): Print a header to
8149 the dump file.
8150 (edge_order): New function.
8151 (reorder_basic_blocks_simple): New function.
8152 (reorder_basic_blocks): Choose between the STC and the simple
8153 algorithms (always choose the former).
8154
8155 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8156
8157 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8158 function, factored out from ...
8159 (reorder_basic_blocks): ... here.
8160
8161 2015-10-01 Tom de Vries <tom@codesourcery.com>
8162
8163 * tree-cfg.c (dump_function_to_file): Dump function attributes using
8164 __attribute__(()) string. Move dumping of function attributes to before
8165 function name.
8166
8167 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
8168
8169 PR target/66870
8170 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8171 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8172 based on gold linker version.
8173 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8174 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8175 * configure, config.in: Regenerate.
8176
8177 2015-10-01 Alan Modra <amodra@gmail.com>
8178
8179 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8180 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8181 (rs6000_output_mi_thunk): Likewise.
8182
8183 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8184
8185 * config/nvptx/mkoffload.c (process): Change offload data format.
8186
8187 2015-09-30 Jeff Law <law@redhat.com>
8188
8189 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8190 with constant conditions.
8191 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8192 (remove_ctrl_stmt_and_useless_edges): No longer static.
8193 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8194 (remove_ctrl_stmt_and_useless_edges): Likewise.
8195
8196 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8197 Cesar Philippidis <cesar@codesourcery.com>
8198
8199 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8200 (TARGET_GOACC_VALIDATE_DIMS): Override.
8201 * target.def (TARGET_GOACC): New target hook prefix.
8202 (validate_dims): New hook.
8203 * targhooks.h (default_goacc_validate_dims): New.
8204 * omp-low.c (oacc_validate_dims): New.
8205 (execute_oacc_device_lower): New.
8206 (default_goacc_validate_dims): New.
8207 (pass_data_oacc_device_lower): New.
8208 (pass_oacc_device_lower): New pass.
8209 (make_pass_oacc_device_lower): New.
8210 * tree-pass.h (make_pass_oacc_device_lower): Declare.
8211 * passes.def (pass_oacc_device_lower): Add it.
8212 * doc/tm.texi: Rebuilt.
8213 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8214 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8215
8216 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8217
8218 PR rtl-optimization/67037
8219 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8220
8221 2015-09-30 Bernd Schmidt <bernds@redhat.com>
8222
8223 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8224 * passes.c: Include tree-ssanames.h.
8225 (execute_function_todo): Flush the pending free SSA_NAMEs after
8226 eliminating unreachable basic blocks.
8227 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8228 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8229 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8230 (flush_ssanames_freelist): New function.
8231 (release_ssaname_fn): Put released names on the queue.
8232 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8233 * tree-ssanames.h (flush_ssanames_freelist): Declare.
8234
8235 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8236
8237 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8238 (generate_target_descr_file, generate_target_offloadend_file)
8239 (generate_host_descr_file, prepare_target_image): Pass it on.
8240 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8241 (compile_native, main): Pass it on.
8242 * lto-wrapper.c (compile_offload_image): Likewise.
8243
8244 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8245 Ilya Verbin <ilya.verbin@intel.com>
8246 Andrey Turetskiy <andrey.turetskiy@intel.com>
8247
8248 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8249 (prepare_target_image, main): Refactor argv building to use
8250 obstacks.
8251
8252 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8253
8254 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8255 * config/spu/spu.c (spu_expand_atomic_op): New function.
8256 * config/spu/spu.md (AINT): New mode iterator.
8257 (ATOMIC): New code iterator.
8258 (atomic_name, atomic_pred): New code predicates.
8259 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8260 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8261 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8262 "atomic_<atomic_name>_fetch<mode>"): Likewise.
8263
8264 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
8265
8266 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8267 debug insns.
8268 (scalar_chain::convert_reg): Likewise.
8269
8270 2015-09-30 Richard Biener <rguenther@suse.de>
8271
8272 * builtins.c: Add comment that no new simplifications should
8273 be added here.
8274
8275 2015-09-30 Marek Polacek <polacek@redhat.com>
8276
8277 PR tree-optimization/67690
8278 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8279 reset_flow_sensitive_info_in_bb.
8280 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8281 * tree-ssanames.c: Include "gimple-iterator.h".
8282 (reset_flow_sensitive_info_in_bb): New function.
8283 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8284
8285 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8286
8287 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8288 variable, replacing it with...
8289 (offload_abi): ... this new variable. Adjust all users.
8290 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8291
8292 2015-09-30 Matthias Klose <doko@ubuntu.com>
8293
8294 * configure.ac: Remove extraneous ;;.
8295 * configure: Regenerate.
8296
8297 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8298
8299 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8300 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8301 predicate, disallow register for operand 2.
8302
8303 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
8304
8305 * graphite-dependences.c (scop_get_dependences): Moved in down
8306 in order to be visible to its caller.
8307 * graphite-poly.h: Removed compute_deps, and extend_schedule.
8308
8309 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8310 Aditya Kumar <aditya.k7@samsung.com>
8311
8312 PR tree-optimization/67754
8313 * graphite-optimize-isl.c (optimize_isl): Call
8314 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8315
8316 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8317
8318 * builtins.c (expand_builtin_acc_on_device): Delete.
8319 (expand_builtin): Don't call it.
8320 (fold_builtin_1): Fold acc_on_device.
8321
8322 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8323
8324 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8325 (ix86_nsaved_sseregs): Likewise.
8326
8327 2015-09-29 Jeff Law <law@redhat.com>
8328
8329 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8330 computation of unused value.
8331
8332 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8333 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8334 inline macro expansion.
8335
8336 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8337
8338 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8339 (gen_shl_sext): Likewise.
8340 * config/sh/sh.md (divsi3): Likewise.
8341 (imm->ext_dest_operand splitter): Likewise.
8342
8343 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8344 Aditya Kumar <aditya.k7@samsung.com>
8345
8346 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8347 (nb_data_writes_in_bb): Remove.
8348 (split_pbb): Remove.
8349 (split_reduction_stmt): Remove.
8350 (is_reduction_operation_p): Remove.
8351 (phi_contains_arg): Remove.
8352 (follow_ssa_with_commutative_ops): Remove.
8353 (detect_commutative_reduction_arg): Remove.
8354 (detect_commutative_reduction_assign): Remove.
8355 (follow_inital_value_to_phi): Remove.
8356 (edge_initial_value_for_loop_phi): Remove.
8357 (initial_value_for_loop_phi): Remove.
8358 (used_outside_reduction): Remove.
8359 (detect_commutative_reduction): Remove.
8360 (translate_scalar_reduction_to_array_for_stmt): Remove.
8361 (remove_phi): Remove.
8362 (dr_indices_valid_in_loop): Remove.
8363 (close_phi_written_to_memory): Remove.
8364 (translate_scalar_reduction_to_array): Remove.
8365 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8366 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8367 (rewrite_commutative_reductions_out_of_ssa): Remove.
8368 (build_poly_scop): Remove call to
8369 rewrite_commutative_reductions_out_of_ssa.
8370
8371 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8372
8373 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8374 Add new insn types for vector load and store pairs.
8375 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8376 types "neon_ldp{,_q}".
8377 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8378 "neon_ldp{,_q}".
8379 (neon_store_complex): Add insn types "neon_stp{,_q}".
8380 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8381 "neon_{ldp,stp}_q".
8382
8383 2015-09-29 Jeff Law <law@redhat.com>
8384
8385 * config/rx/constraints.md (Int08): Fix undefined left shift
8386 behaviour.
8387 (Sint08, Sint16, Sint24): Likewise.
8388 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8389
8390 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8391 behaviour.
8392
8393 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8394 left shift behaviour.
8395 * config/msp430/constraints.md ('L' constraint): Similarly.
8396 ('Ys' constraint): Similarly.
8397
8398 2015-09-29 Richard Biener <rguenther@suse.de>
8399
8400 PR tree-optimization/67170
8401 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8402 the translate function pointer parameter to get the
8403 bool whether to disambiguate only by reference.
8404 (walk_non_aliased_vuses): Likewise.
8405 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8406 (get_continuation_for_phi_1): Likewise.
8407 (get_continuation_for_phi): Likewise.
8408 (walk_non_aliased_vuses): Likewise.
8409 * tree-ssa-sccvn.c (const_parms): New bitmap.
8410 (vn_reference_lookup_3): Adjust for interface change.
8411 Disambiguate parameters pointing to readonly memory.
8412 (free_scc_vn): Free const_parms.
8413 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8414
8415 2015-09-29 Richard Biener <rguenther@suse.de>
8416
8417 PR tree-optimization/67741
8418 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8419 builtin calls with correct signature.
8420
8421 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8422
8423 PR target/65105
8424 * config/i386/i386.c: Include dbgcnt.h.
8425 (has_non_address_hard_reg): New.
8426 (convertible_comparison_p): New.
8427 (scalar_to_vector_candidate_p): New.
8428 (remove_non_convertible_regs): New.
8429 (scalar_chain): New.
8430 (scalar_chain::scalar_chain): New.
8431 (scalar_chain::~scalar_chain): New.
8432 (scalar_chain::add_to_queue): New.
8433 (scalar_chain::mark_dual_mode_def): New.
8434 (scalar_chain::analyze_register_chain): New.
8435 (scalar_chain::add_insn): New.
8436 (scalar_chain::build): New.
8437 (scalar_chain::compute_convert_gain): New.
8438 (scalar_chain::replace_with_subreg): New.
8439 (scalar_chain::replace_with_subreg_in_insn): New.
8440 (scalar_chain::emit_conversion_insns): New.
8441 (scalar_chain::make_vector_copies): New.
8442 (scalar_chain::convert_reg): New.
8443 (scalar_chain::convert_op): New.
8444 (scalar_chain::convert_insn): New.
8445 (scalar_chain::convert): New.
8446 (convert_scalars_to_vector): New.
8447 (pass_data_stv): New.
8448 (pass_stv): New.
8449 (make_pass_stv): New.
8450 (ix86_option_override): Created and register stv pass.
8451 (flag_opts): Add -mstv.
8452 (ix86_option_override_internal): Likewise.
8453 * config/i386/i386.md (SWIM1248x): New.
8454 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8455 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8456 (*anddi3_doubleword): New.
8457 (*zext<mode>_doubleword): New.
8458 (*zextsi_doubleword): New.
8459 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8460 (*<code>di3_doubleword): New.
8461 * config/i386/i386.opt (mstv): New.
8462 * dbgcnt.def (stv_conversion): New.
8463
8464 2015-09-29 Tom de Vries <tom@codesourcery.com>
8465
8466 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8467
8468 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8469
8470 PR target/67716
8471 * config/sh/sh.c (sh_override_options_after_change): New.
8472 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8473 (sh_option_override): Move align_loops, align_jumps and
8474 align_functions handling into sh_override_options_after_change.
8475
8476 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8477
8478 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8479 (nvptx_record_offload_symbol): Record function execution geometry.
8480 * config/nvptx/mkoffload.c (process): Include launch geometry in
8481 function data.
8482 * omp-low.c (oacc_launch_pack): New.
8483 (replace_oacc_fn_attrib): New.
8484 (set_oacc_fn_attrib): New.
8485 (get_oacc_fn_attrib): New.
8486 (expand_omp_target): Create keyed varargs for GOACC_parallel call
8487 generation.
8488 * omp-low.h (get_oacc_fn_attrib): Declare.
8489 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8490 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8491 * tree.h (OMP_CLAUSE_EXPR): New.
8492 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8493
8494 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8495 Sebastian Pop <s.pop@samsung.com>
8496
8497 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8498
8499 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8500 Sebastian Pop <s.pop@samsung.com>
8501
8502 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8503 * graphite-scop-detection.c (struct sese_l): New type.
8504 (get_entry_bb): API for getting entry bb of SESE.
8505 (get_exit_bb): API for getting exit bb of SESE.
8506 (class debug_printer): New type. Simple printer in debug mode.
8507 (trivially_empty_bb_p): New. Return true when BB is empty or
8508 contains only debug instructions.
8509 (graphite_can_represent_expr): Call scalar_evoution_in_region
8510 instead of analyze_scalar_evolution. Pass in scop instead of only
8511 the scop entry.
8512 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8513 scop entry.
8514 (stmt_simple_for_scop_p): Same.
8515 (harmful_stmt_in_bb): Same.
8516 (graphite_can_represent_loop): Deleted.
8517 (struct scopdet_info): Deleted.
8518 (scopdet_basic_block_info): Deleted.
8519 (build_scops_1): Deleted.
8520 (bb_in_sd_region): Deleted.
8521 (find_single_entry_edge): Deleted.
8522 (find_single_exit_edge): Deleted.
8523 (create_single_entry_edge): Deleted.
8524 (sd_region_without_exit): Deleted.
8525 (create_single_exit_edge): Deleted.
8526 (unmark_exit_edges): Deleted.
8527 (mark_exit_edges): Deleted.
8528 (create_sese_edges): Deleted.
8529 (build_graphite_scops): Deleted.
8530 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8531 (build_scops): Use the new scop_builder to build scops.
8532 (dot_all_scops_1): Use the new pretty printer. Print loop father
8533 as well.
8534 (loop_body_is_valid_scop): New. Return true if loop body is a
8535 valid scop.
8536 (class scop_builder): New. Builds SCoPs for polyhedral
8537 optimizations.
8538 (scop_builder): New constructor.
8539 (static sese_l invalid_sese): sese_l with invalid edges.
8540 (get_sese): Get an sese (from a loop) if possible, invalid_sese
8541 otherwise.
8542 (get_nearest_dom_with_single_entry): Get nearest dominator of a
8543 basic_block with single entry. Return NULL if we get to the
8544 beginning of a function.
8545 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8546 a basic_block with single exit. Return NULL if we get to the
8547 beginning of a function.
8548 (print_sese): Pretty-print SESE.
8549 (merge_sese): Merge two SESEs if possible and return the new SESE.
8550 (build_scop_depth): Start building the SCoP within a loop nest.
8551 (build_scop_breadth): Start building the SCoP at a single loop
8552 depth. Merge adjacent SESEs if valid.
8553 (can_represent_loop_1): Returns true if Graphite can represent
8554 loop inside SCoP. Helper for can_represent_loop.
8555 (can_represent_loop): Returns true if Graphite can represent LOOP
8556 and all its nested loops in SCoP.
8557 (loop_is_valid_scop): Returns true if LOOP and all its nests
8558 constitute a valid SCoP.
8559 (region_has_one_loop): Returns true of a region has only one loop.
8560 (add_scop): Add SCoP to the list of valid scops. Removes an
8561 already existing scop if it intersects with or subsumed by this one.
8562 (harmful_stmt_in_region): Returns true if SCoP has any statment
8563 which cannot be represented by Graphite.
8564 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8565 (remove_subscops): Remove any SCoP from the list of already found
8566 SCoPs, if subsumed by S1.
8567 (intersects): Return true if region bounded by SCoPs S1 and S2
8568 intersect.
8569 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8570 * graphite.c (print_graphite_scop_statistics):
8571 (print_graphite_statistics): Print SCoP info while debugging.
8572 (graphite_initialize): Early exit in case number of loops in a
8573 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8574 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8575 (graphite_finalize):
8576 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8577 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8578 (recompute_all_dominators): Recalculate POST_DOMINATORS.
8579 * tree-cfg.c (print_loops): Print the function name while printing
8580 loops.
8581
8582 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8583 Sebastian Pop <s.pop@samsung.com>
8584
8585 PR tree-optimization/67700
8586 * graphite-sese-to-poly.c (parameter_index_in_region): Call
8587 invariant_in_sese_p_rec.
8588 (extract_affine): Same.
8589 (rewrite_cross_bb_scalar_deps): Call update_ssa.
8590 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
8591 * sese.h (invariant_in_sese_p_rec): Declare.
8592
8593 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
8594
8595 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8596
8597 2015-09-28 Jiong Wang <jiong.wang@arm.com>
8598
8599 Revert:
8600 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8601 Jiong Wang <jiong.wang@arm.com>
8602
8603 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8604 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8605 (REG_CLASS_NAMES): Likewise.
8606 (REG_CLASS_CONTENTS): Likewise.
8607 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8608 (aarch64_register_move_cost): Likewise.
8609 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8610 possible.
8611 * config/aarch64/constraints.md (Uc0): New constraint.
8612
8613 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
8614
8615 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8616
8617 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
8618
8619 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8620 SECTION_EXCLUDE in XO mapping class.
8621
8622 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8623
8624 PR target/54236
8625 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8626 and handle ne and eq codes.
8627 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8628 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
8629 CONST_INT_P. Use reverse_condition.
8630 (sh_split_treg_set_expr): Likewise.
8631
8632 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
8633
8634 * config/arm/types.md (type): Add rotate_imm.
8635 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8636 ROR immediate case.
8637 (*rorsi3_insn_uxtw): Likewise.
8638 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8639 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8640 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8641
8642 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8643
8644 PR rtl-optimization/67481
8645 * ifcvt.c (contains_ccmode_rtx_p): New function.
8646 (insn_valid_noce_process_p): Use it.
8647
8648 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8649
8650 PR rtl-optimization/67456
8651 PR rtl-optimization/67464
8652 PR rtl-optimization/67465
8653 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8654 move in the mode of x. Handle combination of complex and simple
8655 block pairs as well as the case when one is empty.
8656
8657 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8658
8659 * doc/gimple.texi: Update references to gimple_statement_base.
8660 * gdbhooks.py: Likewise.
8661 * gimple.h: Likewise.
8662
8663 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8664
8665 * config/sparc/driver-sparc.c: map LEON to leon3
8666
8667 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8668
8669 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8670 and make it inverse to change default
8671 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8672 supervisor mode
8673 * doc/invoke.texi: Document change of default
8674
8675 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8676
8677 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8678 true on %f0 for a target without FPU.
8679 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8680 without FPU.
8681 (untyped_return): Do not load %f0 for a target without FPU.
8682
8683 2015-09-28 Andrew Pinski <apinski@cavium.com>
8684
8685 * config/aarch64/aarch64.md (prefetch):
8686 Change the predicate of operand 0 to register_operand.
8687
8688 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
8689
8690 * config/i386/predicates.md (register_sse4nonimm_operand): New
8691 predicate.
8692 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8693 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8694 Use register_sse4nonimm_operand as operand 0 predicate.
8695 (*vec_extractv8hi_sse2): Remove insn pattern.
8696 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8697 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8698
8699 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8700 Kaz Kojima <kkojima@gcc.gnu.org>
8701
8702 PR target/67391
8703 * config/sh/sh-protos.h (sh_lra_p): Declare.
8704 * config/sh/sh.c (sh_lra_p): Make non-static.
8705 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8706 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
8707 Expand into addsi3_scr if operands[2] if needed.
8708 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
8709 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
8710 (addsi3_scr, *addsi3): New insn_and_split patterns.
8711
8712 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
8713
8714 PR rtl-optimization/64164
8715 PR tree-optimization/67312
8716 PR middle-end/67340
8717 PR middle-end/67490
8718 PR bootstrap/67597
8719 * cfgexpand.c (parm_in_stack_slot_p): Remove.
8720 (ssa_default_def_partition): Remove.
8721 (get_rtl_for_parm_ssa_default_def): Remove.
8722 (set_rtl): Check that RTL assignments match expectations.
8723 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
8724 default def location for params and results. Record SSA names
8725 or types in REG and MEM attrs, respectively.
8726 (set_parm_rtl): New.
8727 (expand_one_ssa_partition): Drop logic that assigned MEMs with
8728 unassigned addresses.
8729 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8730 deferred stack alloc vars.
8731 (expand_used_vars): Skip partitions holding parm default defs.
8732 Move adjust_one_expanded_partition_var loop...
8733 (pass_expand::execute): ... here. Drop redundant assert.
8734 Adjust comments before the final loop over all ssa names.
8735 Require assigned rtl of parms and results to match exactly.
8736 Reset its attributes to match them, not any other variables in
8737 the same partition.
8738 (expand_debug_expr): Use entry value for PARM's default defs
8739 only iff they have zero nondebug uses.
8740 * cfgexpand.h (parm_in_stack_slot_p): Remove.
8741 (get_rtl_for_parm_ssa_default_def): Remove.
8742 (set_parm_rtl): Declare.
8743 * doc/invoke.texi: Improve wording.
8744 * explow.c (promote_decl_mode): Fix promote_function_mode for
8745 result decls not by reference.
8746 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8747 bypass TYPE_MODE to get the actual vector mode.
8748 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
8749 2015-08-19's changes as follows. Drop include of
8750 basic-block.h and df.h.
8751 (rtl_for_parm): Remove.
8752 (maybe_reset_rtl_for_parm): Remove.
8753 (parm_in_unassigned_mem_p): Remove.
8754 (use_register_for_decl): Add logic for RESULT_DECLs matching
8755 assign_parms' behavior.
8756 (split_complex_args): Revert.
8757 (assign_parms_augmented_arg_list): Revert. Add comment
8758 referencing the logic above.
8759 (assign_parm_adjust_stack_rtl): Revert.
8760 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
8761 of SET_DECL_RTL. Set up a REG if the parm demands so.
8762 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
8763 calls into a single set_parm_rtl. Set up a temporary RTL
8764 temporarily for expand_assignment.
8765 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
8766 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
8767 (assign_bounds): Revert.
8768 (assign_parms): Revert. Use set_parm_rtl.
8769 (allocate_struct_function): Relayout result and parms of
8770 non-abstruct functions.
8771 (expand_function_start): Revert. Use set_parm_rtl. If the
8772 result is not a hard reg, create a pseudo from the promoted
8773 mode of the default def. Promote static chain mode.
8774 * tree-outof-ssa.c (remove_ssa_form): Drop unused
8775 partition_has_default_def. Set up
8776 partitions_for_parm_default_defs.
8777 (finish_out_of_ssa): Remove partition_has_default_def.
8778 Release partitions_for_parm_default_defs.
8779 * tree-outof-ssa.h (struct ssaexpand): Remove
8780 partition_has_default_def. Add
8781 partitions_for_parm_default_defs.
8782 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8783 stor-layout.h.
8784 (build_ssa_conflict_graph): Fix conflict-detection of default
8785 defs of even unused default defs of params and results.
8786 (for_all_parms): New.
8787 (create_default_def): New.
8788 (register_default_def): New.
8789 (coalesce_with_default): New.
8790 (create_outofssa_var_map): Create default defs for all parms
8791 and results, and register their partitions. Add GIMPLE_RETURN
8792 operands as coalesce candidates with results. Add default
8793 defs of each parm or result as coalesce candidates with its
8794 other defs. Mark each result def, and each default def of
8795 parms, as used_in_copy.
8796 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
8797 with the ssa names, even anonymous ones. Drop
8798 parm_in_stack_slot_p calls. Require same signedness and
8799 alignment.
8800 (coalesce_ssa_name): Add coalesce candidates for all defs of
8801 each parm and result, even unused ones.
8802 (parm_default_def_partition_arg): New type.
8803 (set_parm_default_def_partition): New.
8804 (get_parm_default_def_partitions): New.
8805 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8806 * tree-ssa-live.c (partition_view_init): Regard unused defs of
8807 parms and results as used.
8808 (verify_live_on_entry): Don't error out just because they're
8809 not live.
8810
8811 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
8812
8813 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8814 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8815 (output_fde): Don't output length for debug_frame on AIX.
8816 (output_call_frame_info): Don't output length for debug_frame on AIX.
8817 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8818 HAVE_XCOFF_DWARF_EXTRAS.
8819 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8820 HAVE_XCOFF_DWARF_EXTRAS.
8821 (output_compilation_unit_header): Don't output length on AIX.
8822 (output_pubnames): Don't output length on AIX.
8823 (output_aranges): Delete argument. Compute length locally. Don't
8824 output length on AIX.
8825 (output_line_info): Don't output length on AIX.
8826 (dwarf2out_finish): Don't compute aranges_length.
8827 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8828 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8829 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8830 symbol decoration for AIX.
8831 (rs6000_xcoff_debug_unwind_info): New.
8832 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8833 for SECTION_DEBUG.
8834 (rs6000_xcoff_declare_function_name): Emit different
8835 .function pseudo-op when DWARF2_DEBUG. Don't call
8836 xcoffout_declare_function for DWARF2_DEBUG.
8837 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8838 Redefine.
8839 * config/rs6000/aix71.h: New.
8840 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8841 locations support.
8842 * configure: Regenerate.
8843 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8844 DWARF support.
8845
8846 2015-09-26 Jeff Law <law@redhat.com>
8847
8848 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8849 behaviour.
8850 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8851 behaviour.
8852
8853 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8854 behaviour
8855
8856 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8857 undefined behaviour.
8858
8859 * config/cris/cris.md (asrandb): Fix left shift undefined
8860 behaviour.
8861 (asrandw): Likewise.
8862
8863 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
8864
8865 PR target/61578
8866 * lra-constarints.c (match_reload): Check presence of the input pseudo
8867 in the output operand.
8868
8869 2015-09-25 Tobias Burnus <burnus@net-b.de>
8870
8871 * doc/invoke.texi (-fsanitize): Minor wording tweak.
8872
8873 2015-09-25 Tobias Burnus <burnus@net-b.de>
8874
8875 * doc/invoke.texi (-fsanitize): Update URLs.
8876
8877 2015-09-25 Teresa Johnson <tejohnson@google.com>
8878
8879 * opts.c (finish_options): Unset -freorder-blocks-and-partition
8880 if not using profile.
8881
8882 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8883
8884 PR pretty-print/67567
8885 * pretty-print.c (pp_string): Add gcc_checking_assert.
8886 * pretty-print.h (output_buffer_append_r): Likewise.
8887
8888 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8889
8890 PR target/67675
8891 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8892 addr2 individually. Don't emit logical or insn if one is known to
8893 be aligned approriately.
8894 (sh_expand_cmpnstr): Likewise.
8895
8896 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
8897
8898 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8899 __builtin_aarch64_fp[sc]r arguments into a register.
8900
8901 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
8902
8903 * config.gcc (x86_archs): Replace lakemount with lakemont.
8904 (with_cpu): Likewise.
8905 (with_arch): Likewise.
8906 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8907 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
8908 __tune_lakemount__ with __tune_lakemont__.
8909 * config/i386/i386.c (lakemount_cost): Renamed to ...
8910 (lakemont_cost): This.
8911 (m_LAKEMOUNT): Renamed to ...
8912 (m_LAKEMONT): This.
8913 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8914 (processor_target_table): Replace "lakemount" with "lakemont".
8915 (processor_alias_table): Likewise.
8916 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8917 PROCESSOR_LAKEMONT.
8918 (ix86_adjust_cost): Likewise.
8919 (ia32_multipass_dfa_lookahead): Likewise.
8920 * config/i386/i386.h (processor_type): Likewise.
8921 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8922 * doc/invoke.texi: Replace lakemount with lakemont. Replace
8923 Lakemount with Lakemont.
8924
8925 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
8926
8927 * config.gcc (x86_archs): Replace iamcu with lakemount.
8928 (with_cpu): Likewise.
8929 (with_arch): Likewise.
8930 * doc/invoke.texi: Likewise.
8931 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8932 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
8933 __tune_iamcu__ with __tune_lakemount__.
8934 * config/i386/i386.c (iamcu_cost): Renamed to ...
8935 (lakemount_cost): This.
8936 (m_IAMCU): Renamed to ...
8937 (m_LAKEMOUNT): This.
8938 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8939 (processor_target_table): Replace "iamcu" with "lakemount".
8940 (processor_alias_table): Likewise.
8941 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8942 PROCESSOR_LAKEMOUNT.
8943 (ix86_adjust_cost): Likewise.
8944 (ia32_multipass_dfa_lookahead): Likewise.
8945 * config/i386/i386.h (processor_type): Likewise.
8946 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8947
8948 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
8949
8950 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8951 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8952 Declare.
8953 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8954 (pa_expand_compare_and_swap_loop): New.
8955 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8956 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8957 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8958 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8959 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8960 Revise.
8961
8962 2015-09-24 Michael Collison <michael.collison@linaro.org>
8963
8964 PR other/57195
8965 * read-md.c (read_name): Allow mode iterators inside angle
8966 brackets in rtl expressions.
8967
8968 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
8969
8970 PR target/61578
8971 * ira-color.c (update_allocno_cost): Add parameter.
8972 (update_costs_from_allocno): Decrease conflict cost. Pass the new
8973 parameter.
8974
8975 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8976
8977 PR driver/67640
8978 * opts-common.c (prune_options): Discard all -fdiagnostics-color
8979 but the last one, which is moved to the front to be processed
8980 first.
8981 * opts.c (enable_warning_as_error): Reject options that do not
8982 control warnings.
8983
8984 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8985
8986 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8987
8988 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8989
8990 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8991 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8992 (aarch64_cannot_force_const_mem): Likewise.
8993 (aarch64_classify_address): Likewise.
8994 (aarch64_classify_symbolic_expression): Likewise.
8995 (aarch64_print_operand): Likewise.
8996 (aarch64_classify_symbol): Likewise.
8997 (aarch64_mov_operand_p): Likewise.
8998 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8999 (aarch64_mov_operand): Likewise.
9000
9001 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
9002
9003 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9004 for info->spe_gp_size.
9005
9006 2015-09-24 Richard Biener <rguenther@suse.de>
9007
9008 PR lto/67699
9009 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9010 abstract origins.
9011
9012 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
9013
9014 * tree-object-size.c (plus_stmt_object_size)
9015 (cond_expr_object_size): Change the formal parameters from gimple
9016 to gimple *.
9017 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9018 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9019 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9020
9021 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9022
9023 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9024 Check for ld -type pie on Solaris 11.x and 12.
9025 * configure: Regenerate.
9026 * config.in: Regenerate.
9027
9028 * gcc.c (LD_PIE_SPEC): Allow redefinition.
9029
9030 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9031 (STARTFILE_SPEC): Use it.
9032 (ENDFILE_CRTEND_SPEC): Define.
9033 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9034 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9035 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9036 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9037 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9038 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9039 (ENDFILE_ARCH_SPEC): Define.
9040 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9041
9042 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9043
9044 * configure.ac (gcc_cv_solaris_crts): New test.
9045 * configure. Regenerate.
9046 * config.in: Regenerate.
9047 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9048 HAVE_SOLARIS_CRTS variant.
9049
9050 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9051
9052 * tree-inline.h (count_insns_seq): Delete prototype.
9053 (estimate_num_insns_seq): Define prototype.
9054 * tree-inline.c (count_insns_seq): Delete.
9055 (estimate_num_insns_seq): Remove static qualifier.
9056 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9057 with estimate_num_insns_seq.
9058
9059 2015-09-24 Richard Biener <rguenther@suse.de>
9060
9061 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9062 members.
9063 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9064 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
9065 offset.
9066 (ao_ref_init_from_vn_reference): Record clique and base in the
9067 built base.
9068 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9069
9070 2015-09-24 Richard Biener <rguenther@suse.de>
9071
9072 PR tree-optimization/48885
9073 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9074 as not including any restrict tags from other pointers.
9075
9076 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9077
9078 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9079 character when appending to offload_targets.
9080
9081 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9082 offload targets by commas, not colons.
9083 * config.in: Regenerate.
9084 * configure: Likewise.
9085 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9086 instead of setting up the default offload targets here...
9087 (process_command): ..., do it here.
9088 libgomp/
9089 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9090 targets are separated by commas.
9091 * config.h.in: Regenerate.
9092
9093 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9094 Nathan Sidwell <nathan@codesourcery.com>
9095
9096 * omp-low.h (omp_reduction_init_op): Declare.
9097 * omp-low.c (omp_reduction_init_op): New, broken out of ...
9098 (omp_reduction_init): ... here. Call it.
9099 * tree-parloops.c (initialize_reductions): Use
9100 omp_reduction_init_op.
9101
9102 2015-09-23 Richard Biener <rguenther@suse.de>
9103
9104 PR middle-end/67662
9105 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9106 undefined overflow unless they will cancel out.
9107
9108 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9109
9110 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9111 insn emit.
9112
9113 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9114
9115 PR c/49655
9116 * opts.h (write_langs): Declare.
9117 * opts-global.c (write_langs): Make it extern.
9118
9119 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
9120
9121 PR target/67391
9122 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9123 overlapping regs when matching the pattern.
9124
9125 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9126
9127 * config/aarch64/aarch64-simd.md
9128 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9129 (aarch64_float_truncate_hi_v4sf_le): New.
9130 (aarch64_float_truncate_hi_v4sf_be): Likewise.
9131
9132 2015-09-23 Richard Biener <rguenther@suse.de>
9133
9134 * tree-ssa-structalias.c (intra_create_variable_infos): Build
9135 representatives for all restrict qualified pointer destinations.
9136
9137 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9138
9139 * config/i386/i386.md (define_code_attr mshift): New.
9140 (define_mode_iterator SWI1248_AVX512BW): Rename ...
9141 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9142 only.
9143 (define_insn "*k<logic><mode>"): Use new iterator name.
9144 (define_insn "*<mshift><mode>3"): New.
9145
9146 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
9147
9148 PR middle-end/67649
9149 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9150 mark the block as accessible.
9151
9152 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9153
9154 * function.c (thread_prologue_and_epilogue_insns): Delete
9155 orig_entry_edge argument to try_shrink_wrapping.
9156 * shrink-wrap.c (can_get_prologue): New function.
9157 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9158 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
9159 can_get_prologue where needed. Remove code that finds a single
9160 edge for the prologue. Remove code that tests if any reg clobbered
9161 by the prologue is live on the prologue edge. Remove code that finds
9162 the new prologue edge after duplicating blocks. Make a new prologue
9163 block and edge.
9164 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9165
9166 2015-09-22 Jeff Law <law@redhat.com>
9167
9168 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9169 behavior.
9170
9171 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
9172
9173 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
9174 -Wtemplates, -Wnamespaces): Document.
9175
9176 2015-09-22 Tom de Vries <tom@codesourcery.com>
9177
9178 PR tree-optimization/67671
9179 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9180 pointer references as restrict.
9181
9182 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9183
9184 * config/nios2/nios2.c (nios2_legitimize_address): When handling
9185 'reg + reloc' cases, allow first operand to be non-REG, and use
9186 force_reg() to enforce address pattern.
9187
9188 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
9189
9190 PR target/67480
9191 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9192 (define_mode_iterator VI12_AVX_AVX512F): New.
9193 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9194 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9195 (define_insn "*<code><mode>3"): ... Into new pattern using
9196 VI12_AVX_AVX512F iterators without masking.
9197
9198 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9199
9200 * config.gcc: Support "skylake-avx512".
9201 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9202 PROCESSOR_SKYLAKE_AVX512.
9203 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9204 (processor_target_table): Add "skylake-avx512".
9205 (PTA_SKYLAKE_AVX512): Define.
9206 (ix86_option_override_internal): Add "skylake_avx512".
9207 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9208 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9209 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9210 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9211 * doc/invoke.texi (skylake-avx512): New.
9212
9213 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9214
9215 * config/i386/i386.md (define_insn "kunpckhi"): Fix
9216 operand in pattern.
9217 (define_insn "kunpcksi"): Ditto.
9218 (define_insn "kunpckdi"): Ditto.
9219
9220 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9221
9222 * config/i386/i386.md (define_split not/xor SWI1248x): Use
9223 iterator instead of fixed modes.
9224
9225 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9226
9227 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9228 Adjust declaration.
9229 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9230 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
9231 out_result. Update to support update-fetch operations.
9232 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9233 Adjust for change to aarch64_gen_atomic_ldop.
9234 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9235 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9236 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9237 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9238 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9239
9240 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9241
9242 * config/aarch64/aarch64-protos.h
9243 (aarch64_atomic_ldop_supported_p): Declare.
9244 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9245 (enum aarch64_atomic_load_op_code): New.
9246 (aarch64_emit_atomic_load_op): New.
9247 (aarch64_gen_atomic_ldop): Update to support load-operate
9248 patterns.
9249 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9250 to an expander.
9251 (aarch64_atomic_<atomic_optab><mode>): New.
9252 (aarch64_atomic_<atomic_optab><mode>_lse): New.
9253 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9254 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9255 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9256
9257 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9258
9259 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9260 (UNSPECV_ATOMIC_LDOP_OR): New.
9261 (UNSPECV_ATOMIC_LDOP_BIC): New.
9262 (UNSPECV_ATOMIC_LDOP_XOR): New.
9263 (UNSPECV_ATOMIC_LDOP_PLUS): New.
9264 (ATOMIC_LDOP): New.
9265 (atomic_ldop): New.
9266 (aarch64_atomic_load<atomic_ldop><mode>): New.
9267
9268 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9269
9270 * config/aarch64/aarch64.md
9271 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9272 pattern.
9273
9274 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9275
9276 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9277 Declare.
9278 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9279 (aarch64_gen_atomic_ldop): New.
9280 (aarch64_split_atomic_op): Fix whitespace and add a comment.
9281 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9282 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9283 (atomic_exchange<mode>): Replace with an expander.
9284 (aarch64_atomic_exchange<mode>): New.
9285 (aarch64_atomic_exchange<mode>_lse): New.
9286 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9287 (aarch64_atomic_swp<mode>): New.
9288
9289 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9290
9291 * tree-inline.c (expand_call_inline): Use inform for extra note.
9292 Do not give a note with UNKNOWN_LOCATION.
9293 Replace input_location with gimple_location (stmt).
9294 Use true/false instead of TRUE/FALSE.
9295
9296 2015-09-22 Tom de Vries <tom@codesourcery.com>
9297
9298 PR tree-optimization/67666
9299 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9300 with single field non-conservative.
9301
9302 2015-09-21 David S. Miller <davem@davemloft.net>
9303
9304 PR/67622
9305 Revert:
9306 2015-09-11 David S. Miller <davem@davemloft.net>
9307
9308 * config/sparc/constraints.md: Make "U" constraint a real register
9309 constraint.
9310 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9311 (D_MODES, DF_MODES): Add missing cast.
9312 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9313 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9314 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9315 cost to 8.
9316 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9317 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9318 provide these insn when flag_pic.
9319
9320 2015-09-17 David S. Miller <davem@davemloft.net>
9321
9322 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9323 Declare.
9324 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9325 function.
9326 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9327 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9328 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9329 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9330 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9331 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9332 provide when flag_pic.
9333
9334 2015-09-21 Jeff Law <law@redhat.com>
9335
9336 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9337 behavior.
9338
9339 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9340
9341 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9342
9343 2015-09-21 Richard Biener <rguenther@suse.de>
9344
9345 * passes.c (rest_of_decl_compilation): Do not call
9346 dwarf2out_early_global_decl for aliases.
9347
9348 2015-09-21 Richard Biener <rguenther@suse.de>
9349
9350 PR debug/67664
9351 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9352 attribute parameter. Early exit if either DW_AT_const_value
9353 or DW_AT_location are present already.
9354 (gen_variable_die): Adjust caller.
9355 (dwarf2out_late_global_decl): Likewise.
9356
9357 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9358
9359 PR target/67657
9360 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9361 sh_peephole_emit_move_insn): Add new functions.
9362 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9363 sh_peephole_emit_move_insn): Declere them.
9364 * config/sh/sh.md: Use them in various peephole2 patterns.
9365
9366 2015-09-21 Richard Biener <rguenther@suse.de>
9367
9368 PR middle-end/67651
9369 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9370 address with -fno-delete-null-pointer-checks.
9371
9372 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9373
9374 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9375 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9376 (reduc_uplus_v16qi): Remove.
9377
9378 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9379 (reduc_<VEC_reduc_name>_v2df): Remove.
9380 (reduc_<VEC_reduc_name>_v4sf): Remove.
9381 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9382
9383 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9384 gen_ function by removing * prefix.
9385 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9386
9387 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9388
9389 PR middle-end/60832
9390 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9391 Print i_bound without converting it to a tree.
9392
9393 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9394
9395 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9396 operands[4] operands[5] swap with std::swap, removed tmp variable.
9397 (arm_evpc_neon_vzip): Replaced in0/in1 and
9398 out0/out1 swaps with std::swap, removed x variable.
9399 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9400 out0/out1 swaos with std::swap, removed x variable.
9401 (arm_expand_vec_perm_const_1): Replaced
9402 d->op0/d->op1 swap with std::swap, removed x variable.
9403 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9404 out0/out1 swaps with std::swap, removed x variable.
9405
9406 2015-09-21 Jonathan Yong <10walls@gmail.com>
9407
9408 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9409 sysroot/usr/lib/32api for additional win32 libraries,
9410 fixes failing Cygwin bootstrapping.
9411
9412 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9413
9414 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9415
9416 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9417
9418 PR target/67126
9419 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9420 (*mov_t_msb_neg): Rewrite negc pattern.
9421
9422 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9423
9424 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9425 immediate generation code.
9426
9427 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9428
9429 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9430 redundant immediate generation code.
9431
9432 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9433
9434 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9435 (AARCH64_NUM_BITMASKS): Remove.
9436 (aarch64_bitmasks_cmp): Remove.
9437 (aarch64_build_bitmask_table): Remove.
9438
9439 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9440
9441 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9442 slow immediate matching loops with a faster algorithm.
9443
9444 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9445
9446 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9447 faster algorithm.
9448
9449 2015-09-20 Jeff Law <law@redhat.com>
9450
9451 PR tree-optimization/47679
9452 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9453 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9454 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9455 (thread_through_normal_block): Use record_temporary_equivalences.
9456
9457 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9458
9459 * coretypes.h (gimple): Change typedef to be a forward declaration.
9460 * gimple.h (gimple_statement_base): rename to gimple.
9461 * (all functions and types using gimple): Adjust.
9462 * *.[ch]: Likewise.
9463
9464 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9465 David Edelsohn <dje.gcc@gmail.com>
9466
9467 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9468 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9469 (EH_FRAME_THROUGH_COLLECT2): Define.
9470 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9471 (ASM_OUTPUT_DWARF_PCREL): Define.
9472 (ASM_OUTPUT_DWARF_DATAREL): Define.
9473
9474 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9475
9476 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9477 of TARGET_ELF32.
9478
9479 2015-09-18 Jeff Law <law@redhat.com>
9480
9481 PR tree-optimization/47679
9482 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
9483 it here ...
9484 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9485 object. Update constructor.
9486 (pass_dominator::execute): Corresponding chagnes to declaration
9487 and initialization of avail_exprs_stack. Update constructor call
9488 for dom_opt_dom_walker object.
9489 (lookup_avail_expr, record_cond): Accept additional argument. Pass
9490 it down to children as needed.
9491 (record_equivalences_from_incoming_edge): Likewise.
9492 (eliminate_redundant_computations): Likewise.
9493 (record_equivalences_from_stmt): Likewise.
9494 (simplify_stmt_for_jump_threading): Likewise.
9495 (record_temporary_equivalences): Likewise.
9496 (optimize_stmt): Likewise.
9497 (dom_opt_dom_walker::thread_across_edge): Update access to
9498 avail_exprs_stack object and pass it to children as needed.
9499 (dom_opt_dom_walker::before_dom_children): Similarly.
9500 (dom_opt_dom_walker::after_dom_children): Similarly.
9501 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9502 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9503 Add avail_expr_stack argument. Pass it to children as needed.
9504 (dummy_simplify): Likewise.
9505 (simplify_control_stmt_condition): Likewise.
9506 (thread_around_empty_blocks): Likewise.
9507 (thread_through_normal_block): Likewise.
9508 (thread_across_edge): Likewise.
9509 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9510 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9511
9512 PR tree-optimization/47679
9513 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
9514 it here ...
9515 (dom_opt_dom_walker): New private member holding the const_and_copies
9516 object. Update constructor.
9517 (pass_dominator::execute): Corresponding changes to declaration
9518 and initialization of const_and_copies. Update constructor call
9519 for the dom_opt_dom_walker object.
9520 (record_temporary_equivalences): Accept const_and_copies argument
9521 pass it down to children as needed.
9522 (record_equality): Likewise.
9523 (record_equivalences_from_incoming_edge): Likewise.
9524 (cprop_into_successor_phis, optimize_stmt): Likewise.
9525 (eliminate_redundant_computations): Likewise.
9526 (dom_opt_dom_walker::thread_across_edge): Update access to
9527 const_and_copies object and pass it to children as needed.
9528 (dom_opt_dom_walker::before_dom_children): Similarly.
9529 (dom_opt_dom_walker::after_dom_children): Similarly.
9530
9531 PR tree-optimization/47679
9532 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
9533 it into the avail_exprs_stack class.
9534 (pass_dominator::execute): Corresponding changes to declaration
9535 and initialization of avail_exprs. Pass avail_exprs to
9536 dump_dominator_optimization_stats.
9537 (record_cond): Extract avail_exprs from avail_exprs_stack.
9538 (lookup_avail_expr): Similarly.
9539 (htab_staticstics): Remove unnecessary prototype. Move to earlier
9540 position in file.
9541 (dump_dominator_optimization_stats): Make static and prototype.
9542 Add argument for the hash table to dump.
9543 (debug_dominator_optimization_stats): Remove.
9544 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9545 prototype.
9546 (debug_dominator_optimization_stats): Similarly.
9547 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9548 "void" in prototype for pop_to_marker method. Add accessor method
9549 for the underlying avail_exprs table.
9550
9551 * tree-ssa-threadedge.c: Remove trailing whitespace.
9552
9553 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
9554
9555 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9556 unsigned.
9557 (pa_ldil_cint_p): Likewise.
9558 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9559 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9560 Update callers.
9561 * config/pa/pa.md: Likewise.
9562
9563 2015-09-18 David Malcolm <dmalcolm@redhat.com>
9564
9565 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9566 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9567 (diagnostic_show_locus): Likewise.
9568 (diagnostic_print_caret_line): Likewise.
9569 * diagnostic-show-locus.c: New file.
9570
9571 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
9572
9573 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9574 "back" parameter. Declare label in #if block.
9575
9576 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
9577
9578 PR middle-end/67619
9579 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9580 the address to a register.
9581
9582 2015-09-18 Jeff Law <law@redhat.com>
9583
9584 PR tree-optimization/47679
9585 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9586 * tree-ssa-dom.c: Remove unnecessary header includes.
9587 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9588 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9589 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9590 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9591 (pass_phi_only_cprop::execute): Likewise.
9592 (make_pass_phi_only_cprop): Likewise.
9593 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
9594 uses of file scoped statics by passing the required objects
9595 as parameters wherever needed.
9596
9597 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
9598 David Edelsohn <dje.gcc@gmail.com>
9599
9600 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9601 EH_FRAME_THROUGH_COLLECT2.
9602 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9603 DW_EH_PE_datarel.
9604 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9605 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
9606 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9607 * except.c (switch_to_exception_section): Use a read-only section
9608 even if EH_FRAME_SECTION_NAME is undefined.
9609 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9610 * collect2.c (write_c_file_stat): Provide dbase on AIX.
9611 (scan_prog_file): Don't export __dso_handle nor
9612 __gcc_unwind_dbase.
9613 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9614 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9615 (ASM_OUTPUT_DWARF_PCREL): Define.
9616 (ASM_OUTPUT_DWARF_DATAREL): Define.
9617 (EH_FRAME_THROUGH_COLLECT2): Define.
9618 (EH_FRAME_IN_DATA_SECTION): Delete.
9619 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9620 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9621 Declare.
9622 (rs6000_asm_output_dwarf_datarel): Declare.
9623 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9624 (rs6000_aix_asm_output_dwarf_datarel): New.
9625 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9626 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9627 (EH_FRAME_THROUGH_COLLECT2): Define.
9628 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9629 (EH_FRAME_THROUGH_COLLECT2): Define.
9630 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9631 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9632 (EH_FRAME_THROUGH_COLLECT2): New.
9633 (ASM_OUTPUT_DWARF_DATAREL): New.
9634 * doc/tm.texi: Regenerate.
9635
9636 2015-09-18 Richard Biener <rguenther@suse.de>
9637
9638 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9639 we're in early phase.
9640 (schedule_generic_params_dies_gen): Likewise.
9641 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9642 work as possible, retaining unhandled cases.
9643 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9644 clear out generic_type_instances at the end.
9645 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9646 (dwarf2out_early_finish): ... here. Do most of
9647 gen_remaining_tmpl_value_param_die_attribute here.
9648
9649 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
9650
9651 PR tree-optimization/67283
9652 * tree-sra.c (type_consists_of_records_p): Rename to...
9653 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9654 (completely_scalarize_record): Rename to...
9655 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9656 (scalarize_elem): New.
9657 (analyze_all_variable_accesses): Follow renamings.
9658
9659 2015-09-18 Richard Biener <rguenther@suse.de>
9660
9661 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9662 in early-dwarf.
9663
9664 2015-09-18 Richard Biener <rguenther@suse.de>
9665
9666 PR tree-optimization/66142
9667 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9668 treat MEM[&x] and x the same.
9669 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9670 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9671 when we simplified sth.
9672 (vn_reference_maybe_forwprop_address): Likewise.
9673 (valueize_refs_1): When we simplified through
9674 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9675 set valueized_anything to true.
9676 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9677 one ref kills the other instead of just a offset-based test.
9678 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9679 for the operand_equal_p test to compare bases and also compare
9680 sizes.
9681
9682 2015-09-17 Christian Bruel <christian.bruel@st.com>
9683
9684 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9685
9686 2015-09-17 Richard Henderson <rth@redhat.com>
9687
9688 PR libstdc++/65913
9689 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9690 pointers that encode the alignment of the object.
9691
9692 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9693
9694 PR rtl-optimization/66790
9695 * df-problems.c (LIVE): Amend documentation.
9696
9697 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
9698
9699 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9700 and optabs-tree.o.
9701 (GTFILES): Replace optabs.c with optabs-libfunc.c.
9702 * genopinit.c (main): Add an include guard to insn-opinit.h.
9703 Protect the rtx_code parts with NUM_RTX_CODE.
9704 * optabs.h: Split parts out to...
9705 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9706 * optabs.c: Split parts out to...
9707 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9708 * cilk-common.c: Include optabs-query.h rather than optabs.h.
9709 * fold-const.c: Likewise.
9710 * target-globals.c: Likewise.
9711 * tree-if-conv.c: Likewise.
9712 * tree-ssa-forwprop.c: Likewise.
9713 * tree-ssa-loop-prefetch.c: Likewise.
9714 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9715 Remove unncessary include files.
9716 * tree-ssa-phiopt.c: Likewise.
9717 * tree-ssa-reassoc.c: Likewise.
9718 * tree-switch-conversion.c: Likewise.
9719 * tree-vect-data-refs.c: Likewise.
9720 * tree-vect-generic.c: Likewise.
9721 * tree-vect-loop.c: Likewise.
9722 * tree-vect-patterns.c: Likewise.
9723 * tree-vect-slp.c: Likewise.
9724 * tree-vect-stmts.c: Likewise.
9725 * tree-vrp.c: Likewise.
9726 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9727 rather than optabs.h.
9728 * expr.c: Include optabs-tree.h.
9729 * function.c: Likewise.
9730
9731 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9732
9733 PR middle-end/65958
9734 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9735 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9736 * config/arm/arm.c: Include common/common-target.h.
9737 (use_return_insn): Return 0 if the static chain register was saved
9738 above a non-APCS frame.
9739 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9740 (struct scratch_reg): New.
9741 (get_scratch_register_on_entry): New function.
9742 (release_scratch_register_on_entry): Likewise.
9743 (arm_emit_probe_stack_range): Likewise.
9744 (output_probe_stack_range): Likewise.
9745 (arm_expand_prologue): Factor out code dealing with the IP register
9746 for nested function and adjust it for stack checking.
9747 Invoke arm_emit_probe_stack_range if static builtin stack checking
9748 is enabled.
9749 (thumb1_expand_prologue): Sorry out if static builtin stack checking
9750 is enabled.
9751 (arm_expand_epilogue): Add the saved static chain register, if any, to
9752 the amount of pre-pushed registers to pop.
9753 (arm_frame_pointer_required): Return true if static stack checking is
9754 enabled and we want to catch the exception with the EABI unwinder.
9755 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9756 (UNSPEC_PROBE_STACK_RANGE): Likewise.
9757 * config/arm/arm.md (probe_stack): New insn.
9758 (probe_stack_range): Likewise.
9759
9760 2015-09-17 Richard Biener <rguenther@suse.de>
9761
9762 * genmatch.c (parser::parse_expr): Improve error message
9763 for mis-placed flags.
9764
9765 2015-09-17 Richard Biener <rguenther@suse.de>
9766
9767 * passes.c (rest_of_decl_compilation): Always call early_global_decl
9768 debug hook when we created a varpool node.
9769 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9770 dwarf2out_early_global_decl, when not just add location or
9771 value attributes to existing DIEs.
9772
9773 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
9774
9775 * config/aarch64/aarch64.md (copysigndf3): New.
9776 (copysignsf3): Likewise.
9777
9778 2015-09-17 David S. Miller <davem@davemloft.net>
9779
9780 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9781 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9782 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9783 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9784 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9785 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9786 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9787 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9788 provide when flag_pic.
9789
9790 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
9791
9792 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9793 object_allocator change.
9794
9795 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9796
9797 PR tree-optimization/66388
9798 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9799 (dump_iv): Dump no_overflow information.
9800 (alloc_iv): Initialize new field for struct iv.
9801 (mark_bivs): Count number of no_overflow bivs.
9802 (find_deriving_biv_for_expr, record_biv_for_address_use): New
9803 functions.
9804 (idx_find_step): Call new functions above.
9805 (add_candidate_1, add_candidate): New paramter.
9806 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9807 (get_computation_aff): Simplify convertion of cand for BIV.
9808 (get_computation_cost_at): Step cand's base if necessary.
9809
9810 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9811
9812 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9813 parameter.
9814 (tree_simplify_using_condition): Ditto.
9815 (simplify_using_initial_conditions): Ditto.
9816 (loop_exits_before_overflow): Pass new argument to function
9817 simplify_using_initial_conditions. Remove case for type conversions
9818 simplification.
9819 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9820 parameter.
9821 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9822 in iv base using loop initial conditions.
9823
9824 2015-09-16 Jeff Law <law@redhat.com>
9825
9826 PR tree-optimization/47679
9827 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9828 (free_all_edge_infos): Use it.
9829 (allocate_edge_info): Free preexisting edge info data.
9830 (pass_dominator::execute): Set up initial edge info structures.
9831 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9832 thread_across_edge.
9833 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9834 If non-null, then push/pop markers appropriately.
9835 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9836 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9837 thread-across_edge.
9838
9839 2015-09-16 James Bowman <james.bowman@ftdichip.com>
9840
9841 * config/ft32/ft32.c: Fix the memory address space predicate.
9842
9843 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9844
9845 PR target/67573
9846 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9847 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9848
9849 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9850
9851 * toplev.h (check_global_declaration): Remove declaration.
9852 * toplev.c (check_global_declaration): Move to ...
9853 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9854 (analyze_functions): Update call.
9855
9856 2015-09-16 David S. Miller <davem@davemloft.net>
9857
9858 * lra-constraints.c (simplify_operand_subreg): Do not assume that
9859 lowpart of a SUBREG has offset zero.
9860
9861 2015-09-16 Jeff Law <law@redhat.com>
9862
9863 PR tree-optimization/47679
9864 * tree-ssa-dom.c (enum expr_kind): Moved from here to
9865 tree-ssa-scopedtables.h.
9866 (struct hashable_expr, class expr_hash_elt): Likewise.
9867 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9868 Move associated methods into tree-ssa-scopedtables.c.
9869 (avail_expr_hash, initialize_expr_from_cond): Similarly.
9870 (hashable_expr_equal_p, add_expr_commutative): Likewise.
9871 (add_hashable_expr): Likewise.
9872 (record_cond): Delete element directly.
9873 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9874 private copy ctor and assignment operator methods.
9875 (expr_elt_hasher): Inline trivial methods.
9876 (initialize_expr_from_cond): Prototype.
9877 * tree-ssa-scopedtables.c: Add necessary includes, functions and
9878 methods that were previously in tree-ssa-dom.c. Improve various
9879 comments.
9880
9881 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
9882
9883 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9884
9885 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
9886
9887 PR bootstrap/67587
9888 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9889 fixup_partitions.
9890
9891 2015-09-16 Richard Biener <rguenther@suse.de>
9892
9893 PR middle-end/67253
9894 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9895 location of possibly shared trees.
9896
9897 2015-09-16 Richard Biener <rguenther@suse.de>
9898
9899 PR middle-end/67271
9900 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9901
9902 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
9903
9904 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9905 offset and size computations instead of HOST_WIDE_INT.
9906
9907 2015-09-16 Richard Biener <rguenther@suse.de>
9908
9909 PR middle-end/67442
9910 * fold-const.c (extract_muldiv_1): Properly extend multiplication
9911 result before builting a tree via wide_int_to_tree.
9912
9913 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
9914
9915 * Makefile.in: Add memory-block.cc
9916 (pool_allocator::initialize): Use fixed block size.
9917 (pool_allocator::release): Use memory_block_pool.
9918 (pool_allocator::allocate): Likewise.
9919 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9920 object pools.
9921 * cfg.c (initialize_original_copy_tables): Likewise.
9922 * cselib.c (elt_list_pool, elt_loc_list_pool,
9923 cselib_val_pool): Likewise.
9924 * df-problems.c (df_chain_alloc): Likewise.
9925 * df-scan.c (df_scan_alloc): Likewise.
9926 * dse.c (cse_store_info_pool, rtx_store_info_pool,
9927 read_info_type_pool, insn_info_type_pool, bb_info_pool,
9928 group_info_pool, deferred_change_pool): Likewise.
9929 * et-forest.c (et_nodes, et_occurrences): Likewise.
9930 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9931 ipcp_agg_lattice_pool): Likewise.
9932 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9933 * ipa-profile.c (histogram_pool): Likewise.
9934 * ipa-prop.c (ipa_refdesc_pool): Likewise.
9935 * ira-build.c (live_range_pool, allocno_pool, object_pool,
9936 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9937 * ira-color.c (update_cost_record_pool): Likewise.
9938 * lra-lives.c (lra_live_range_pool): Likewise.
9939 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9940 * memory-block.cc: New file.
9941 * memory-block.h: New file.
9942 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9943 * sched-deps.c (sched_deps_init): Likewise.
9944 * sel-sched-ir.c (sched_lists_pool): Likewise.
9945 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9946 * tree-sra.c (access_pool): Likewise.
9947 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9948 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9949 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9950 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9951 * tree-ssa-strlen.c (strinfo_pool): Likewise.
9952 * tree-ssa-structalias.c (variable_info_pool): Likewise.
9953 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9954 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9955
9956 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9957
9958 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9959 definition.
9960 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9961 call0 ABI.
9962
9963 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9964
9965 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9966 to pass TLS call argument, according to current ABI.
9967 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9968 callx0 for TLS call, according to current ABI.
9969
9970 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9971
9972 * tree-eh.c (lower_try_finally_dup_block): Clear location information
9973 on stack restore statements.
9974 (decide_copy_try_finally): Do not consider a stack restore statement as
9975 coming from sources.
9976
9977 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
9978
9979 * config/alpha/alpha.c (alpha_expand_block_clear): Use
9980 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9981
9982 2015-09-15 Jeff Law <law@redhat.com>
9983
9984 PR tree-optimization/47679
9985 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9986 methods and private members.
9987 (avail_exprs_stack): Similarly. Change type of global
9988 from a pair of expr_hash_elt_t to the new class.
9989 (expr_elt_hasher::hash): Corresponding changes.
9990 (expr_elt_hasher::equal): Similarly.
9991 (avail_expr_hash): Similarly.
9992 (pass_dominator::execute): Similarly.
9993 (dom_opt_dom_walker::thread_across_edge): Similarly.
9994 (record_cond): Similarly.
9995 (dom_opt_dom_walker::before_dom_children): Similarly.
9996 (dom_opt_dom_walker::after_dom_children): Similarly.
9997 (lookup_avail_expr): Likewise.
9998 (initialize_hash_element): Now a expr_hash_elt constructor.
9999 (initialize_hash_element_from_expr): Similarly.
10000 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10001 (free_expr_hash_elt): Call dtor for the element.
10002 (remove_local_expressions_from_table): Now the "pop_to_marker"
10003 method in the available_exprs_stack class.
10004 (avail_expr_stack::record_expr): Method factored out.
10005 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10006 Fix formatting.
10007 (hashable_expr_equal_p): Fix formatting.
10008
10009 2015-09-15 David Malcolm <dmalcolm@redhat.com>
10010
10011 * input.h (location_get_source_line): Drop "expanded_location"
10012 param in favor of a file and line number.
10013 * input.c (location_get_source_line): Likewise.
10014 (dump_location_info): Update for change in signature of
10015 location_get_source_line.
10016 * diagnostic.c (diagnostic_print_caret_line): Likewise.
10017
10018 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10019
10020 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10021 Bump to 4KB for SJLJ exceptions.
10022 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
10023 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10024 * doc/tm.texi: Regenerate.
10025
10026 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10027
10028 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10029 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
10030 Update prototype.
10031
10032 2015-09-15 Richard Biener <rguenther@suse.de>
10033
10034 PR tree-optimization/67470
10035 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10036 structure for PHI hoisting by inserting a forwarder block
10037 if appropriate.
10038
10039 2015-09-15 Christian Bruel <christian.bruel@st.com>
10040
10041 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10042 (arm_option_print): New function.
10043
10044 2015-09-15 Christian Bruel <christian.bruel@st.com>
10045
10046 PR target/52144
10047 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10048 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10049 Remove flags parameter.
10050 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10051 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10052 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10053 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10054 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10055 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10056 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10057 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10058
10059 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10060
10061 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10062
10063 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10064 AARCH64_VALID_SIMD_DREG_MODE.
10065
10066 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10067
10068 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10069 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10070 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10071 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10072 aarch64_ld4_lane<mode>): Combine together, making...
10073 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10074 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10075 aarch64_st4_lane<mode>): Combine together, making...
10076 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10077 * config/aarch64/iterators.md (nregs): Add comment.
10078
10079 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10080
10081 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10082 Change operand mode from <V_TWO_ELEM> to BLK.
10083 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10084 (aarch64_vec_store_lanesoi_lane<mode): Likewise
10085 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10086 (aarch64_ld2_lane<mode>): Likewise.
10087 (aarch64_st2_lane<VQ:mode>): Likewise.
10088 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10089
10090 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10091
10092 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10093 Change operand mode from <V_FOUR_ELEM> to BLK.
10094 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10095 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10096 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10097 (aarch64_ld4_lane<mode>): Likewise.
10098 (aarch64_st4_lane<mode>): Likewise.
10099 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10100
10101 2015-09-15 Richard Biener <rguenther@suse.de>
10102
10103 PR middle-end/67563
10104 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10105 transfer EH info from old to new stmt.
10106 (replace_call_with_value): Likewise.
10107 (replace_call_with_call_and_fold): Likewise.
10108 (gimple_fold_builtin_memory_op): Likewise.
10109 (gimple_fold_builtin_memset): Likewise.
10110 (gimple_fold_builtin_stpcpy): Likewise.
10111 (gimple_fold_call): Likewise.
10112
10113 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10114
10115 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10116 comment.
10117 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10118 (aarch64_simd_intEI_type_node): Likewise.
10119 (aarch64_simd_builtin_std_type): Remove EImode case.
10120 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10121 * config/aarch64/aarch64-modes.def: Remove EImode.
10122
10123 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10124
10125 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10126 Change operand mode from <V_THREE_ELEM> to BLK.
10127 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10128 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10129 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10130 (aarch64_ld3_lane<mode>): Likewise.
10131 (aarch64_st3_lane<mode>): Likewise.
10132 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10133
10134 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10135
10136 * config/aarch64/aarch64-simd.md
10137 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10138 Change all TImode operands to BLKmode.
10139 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10140 Change all EImode operands to BLKmode.
10141 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10142 Change all OImode operands to BLKmode.
10143
10144 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10145 and call set_mem_size.
10146 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10147
10148 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10149
10150 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10151
10152 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10153 to...
10154 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10155
10156 (vec_store_lanesci_lane<mode>): Rename to...
10157 (aarch64_vec_store_lanesci_lane<mode>): ...this.
10158
10159 (vec_store_lanesxi_lane<mode>): Rename to...
10160 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10161
10162 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10163 aarch64_st4_lane<mode>): Follow renaming.
10164
10165 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10166
10167 * config/s390/s390.c (s390_const_operand_ok): Add missing
10168 brackets.
10169
10170 2015-09-15 Richard Biener <rguenther@suse.de>
10171
10172 PR lto/67568
10173 * lto-streamer.h (lto_location_cache::current_sysp): Properly
10174 initialize.
10175 * lto-streamer-out.c (clear_line_info): Likewise.
10176
10177 2015-09-15 Richard Biener <rguenther@suse.de>
10178
10179 * doc/match-and-simplify.texi: Fix wording.
10180
10181 2015-09-15 Bin Cheng <bin.cheng@arm.com>
10182
10183 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10184 unnecessary type conversion in op1.
10185
10186 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10187
10188 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10189 (dup_block_and_redirect): Delete function.
10190 (can_dup_for_shrink_wrapping): New function.
10191 (fix_fake_fallthrough_edge): New function.
10192 (try_shrink_wrapping): Rewrite function.
10193 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10194
10195 2015-09-14 Rich Felker <dalias@libc.org>
10196
10197 * configure.ac: Change target pattern for sh TLS support
10198 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10199 * configure: Regenerate.
10200
10201 2015-09-14 Jeff Law <law@redhat.com>
10202
10203 PR tree-optimization/47679
10204 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10205 type rather than void *.
10206
10207 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10208
10209 PR fortran/67460
10210 * diagnostic.c (diagnostic_initialize): Do not set
10211 some_warnings_are_errors.
10212 (diagnostic_finish): Use DK_WERROR count instead.
10213 (diagnostic_report_diagnostic): Do not set
10214 some_warnings_are_errors.
10215 * diagnostic.h (struct diagnostic_context): Remove
10216 some_warnings_are_errors.
10217
10218 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
10219
10220 * config/sparc/predicates.md (const_all_ones_operand): Use
10221 CONSTM1_RTX to simplify definition.
10222
10223 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
10224
10225 PR target/67061
10226 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10227 Handle call insns.
10228
10229 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
10230
10231 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10232 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10233 OPT_fshow_column to handled saved option cases.
10234 (append_compiler_options): Do not skip the above added options.
10235
10236 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10237
10238 PR target/63304
10239 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10240 nopcrelative_literal_loads.
10241 (aarch64_classify_address): Likewise.
10242 (aarch64_constant_pool_reload_icode): Define.
10243 (aarch64_secondary_reload): Handle secondary reloads for
10244 literal pools.
10245 (aarch64_override_options): Handle nopcrelative_literal_loads.
10246 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10247 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10248 Define.
10249 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10250 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10251 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10252 predicate.
10253 * doc/invoke.texi (mpc-relative-literal-loads): Document.
10254
10255 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
10256
10257 PR middle-end/67401
10258 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10259 sync_compare_and_swap_optab libcall to target_oval.
10260
10261 2015-09-14 Marek Polacek <polacek@redhat.com>
10262
10263 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10264 value.
10265 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10266
10267 2015-09-11 Mark Wielaard <mjw@redhat.com>
10268
10269 PR c/28901
10270 * toplev.c (check_global_declaration): Check and use
10271 warn_unused_const_variable.
10272 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10273 (-Wunused-variable): Remove non-constant. For C implies
10274 -Wunused-const-variable.
10275 (-Wunused-const-variable): New.
10276
10277 2015-09-14 Richard Biener <rguenther@suse.de>
10278
10279 * doc/match-and-simplify.texi: Update for changed syntax
10280 of inner ifs and the new switch expression.
10281
10282 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10283
10284 * config/i386/haswell.md: New file describing Haswell pipeline.
10285 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10286 haswell-like processors.
10287 (ix86_reassociation_width): Increase reassociation width for 64-bit
10288 Haswell processor family.
10289 * config/i386/i386.md: Introduce haswell cpu and include new md file.
10290
10291 2015-09-14 Richard Biener <rguenther@suse.de>
10292
10293 * doc/match-and-simplify.texi: Fixup some formatting issues
10294 and document the 's' flag.
10295
10296 2015-09-13 Olivier Hainque <hainque@adacore.com>
10297 Eric Botcazou <ebotcazou@adacore.com>
10298
10299 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10300 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
10301 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10302 (TARGET_CPU_gr5): Likewise.
10303 (TARGET_CPU_gr6): Likewise.
10304 (MULTILIB_DEFAULTS): Likewise.
10305 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10306 for mcpu=gr5 and mcpu=gr6.
10307 (MULTILIB_DIRNAMES): Adjust accordingly.
10308
10309 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10310
10311 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10312 (mem_ref_p): Likewise.
10313 (outermost_indep_loop): Adjust.
10314 (mem_ref_in_stmt): Likewise.
10315 (determine_max_movement): Likewise.
10316 (mem_ref_alloc): Likewise.
10317 (record_mem_ref_loc): Likewise.
10318 (set_ref_stored_in_loop): Likewise.
10319 (mark_ref_stored): Likewise.
10320 (gather_mem_refs_stmt): Likewise.
10321 (mem_refs_may_alias_p): Likewise.
10322 (for_all_locs_in_loop): Likewise.
10323 (struct rewrite_mem_ref_loc): Likewise.
10324 (rewrite_mem_refs): Likewise.
10325 (struct first_mem_ref_loc_1): Likewise.
10326 (first_mem_ref_loc): Likewise.
10327 (struct sm_set_flag_if_changed): Likewise.
10328 (execute_sm_if_changed_flag_set): Likewise.
10329 (execute_sm): Likewise.
10330 (hoist_memory_references):
10331 (struct ref_always_accessed): Likewise.
10332 (ref_always_accessed_p): Likewise.
10333 (refs_independent_p): Likewise.
10334 (record_dep_loop): Likewise.
10335 (ref_indep_loop_p_1): Likewise.
10336 (ref_indep_loop_p_2): Likewise.
10337 (ref_indep_loop_p): Likewise.
10338 (can_sm_ref_p): Likewise.
10339 (find_refs_for_sm): Likewise.
10340 (tree_ssa_lim_finalize): Likewise.
10341
10342 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10343
10344 * dwarf2out.c (dw_attr_ref): Remove typedef.
10345 (dw_line_info_ref): Likewise.
10346 (pubname_ref): Likewise.
10347 (dw_ranges_ref): Likewise.
10348 (dw_ranges_by_label_ref): Likewise.
10349 (comdat_type_node_ref): Likewise.
10350 (get_AT): Adjust.
10351 (get_AT_low_pc): Likewise.
10352 (get_AT_hi_pc): Likewise.
10353 (get_AT_string): Likewise.
10354 (get_AT_flag): Likewise.
10355 (get_AT_unsigned): Likewise.
10356 (get_AT_ref): Likewise.
10357 (get_AT_file): Likewise.
10358 (remove_AT): Likewise.
10359 (print_die): Likewise.
10360 (check_die): Likewise.
10361 (die_checksum): Likewise.
10362 (attr_checksum_ordered): Likewise.
10363 (struct checksum_attributes): Likewise.
10364 (collect_checksum_attributes): Likewise.
10365 (die_checksum_ordered): Likewise.
10366 (same_die_p): Likewise.
10367 (is_declaration_die): Likewise.
10368 (clone_die): Likewise.
10369 (clone_as_declaration): Likewise.
10370 (copy_declaration_context): Likewise.
10371 (break_out_comdat_types): Likewise.
10372 (copy_decls_walk): Likewise.
10373 (output_location_lists): Likewise.
10374 (external_ref_hasher::hash): Likewise.
10375 (optimize_external_refs_1): Likewise.
10376 (build_abbrev_table): Likewise.
10377 (size_of_die): Likewise.
10378 (unmark_all_dies): Likewise.
10379 (size_of_pubnames): Likewise.
10380 (output_die_abbrevs): Likewise.
10381 (output_die): Likewise.
10382 (output_pubnames): Likewise.
10383 (add_ranges_num): Likewise.
10384 (add_ranges_by_labels): Likewise.
10385 (add_high_low_attributes): Likewise.
10386 (gen_producer_string): Likewise.
10387 (dwarf2out_set_name): Likewise.
10388 (new_line_info_table): Likewise.
10389 (prune_unused_types_walk_attribs): Likewise.
10390 (prune_unused_types_update_strings): Likewise.
10391 (prune_unused_types): Likewise.
10392 (resolve_addr): Likewise.
10393 (optimize_location_lists_1): Likewise.
10394 (index_location_lists): Likewise.
10395 (dwarf2out_finish): Likewise.
10396
10397 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10398
10399 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10400
10401 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10402
10403 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10404 (dump_asserts_for): Adjust.
10405 (register_new_assert_for): Likewise.
10406 (process_assert_insertions): Likewise.
10407 (insert_range_assertions): Likewise.
10408
10409 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10410
10411 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10412 and remove typedef.
10413 (new_temp_expr_table): Adjust.
10414 (free_temp_expr_table): Likewise.
10415 (version_to_be_replaced_p): Likewise.
10416 (make_dependent_on_partition): Likewise.
10417 (add_to_partition_kill_list): Likewise.
10418 (remove_from_partition_kill_list): Likewise.
10419 (add_dependence): Likewise.
10420 (finished_with_expr): Likewise.
10421 (process_replaceable): Likewise.
10422 (kill_expr): Likewise.
10423 (kill_virtual_exprs): Likewise.
10424 (mark_replaceable): Likewise.
10425 (find_replaceable_in_bb): Likewise.
10426 (find_replaceable_exprs): Likewise.
10427 (debug_ter): Likewise.
10428
10429 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10430
10431 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10432 (struct btr_user): Rename from btr_user_s.
10433 (struct btr_def): Rename from btr_def_s.
10434 (find_btr_def_group): Adjust.
10435 (add_btr_def): Likewise.
10436 (new_btr_user): Likewise.
10437 (note_other_use_this_block): Likewise.
10438 (compute_defs_uses_and_gen): Likewise.
10439 (link_btr_uses): Likewise.
10440 (build_btr_def_use_webs): Likewise.
10441 (block_at_edge_of_live_range_p): Likewise.
10442 (btr_def_live_range): Likewise.
10443 (combine_btr_defs): Likewise.
10444 (move_btr_def): Likewise.
10445 (migrate_btr_def): Likewise.
10446 (migrate_btr_defs): Likewise.
10447
10448 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10449
10450 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10451 (shared_hash): Remove typedef.
10452 (struct dataflow_set): Adjust.
10453 (shared_hash_unshare): Likewise.
10454 (dataflow_set_merge): Likewise.
10455 (vt_initialize): Likewise.
10456 (vt_finalize): Likewise.
10457
10458 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10459
10460 * var-tracking.c (struct location_chain): Rename from
10461 location_chain_def.
10462 (struct variable_part): Adjust.
10463 (variable_htab_free): Likewise.
10464 (unshare_variable): Likewise.
10465 (get_init_value): Likewise.
10466 (get_addr_from_local_cache): Likewise.
10467 (drop_overlapping_mem_locs): Likewise.
10468 (val_reset): Likewise.
10469 (struct variable_union_info): Likewise.
10470 (variable_union): Likewise.
10471 (find_loc_in_1pdv): Likewise.
10472 (insert_into_intersection): Likewise.
10473 (intersect_loc_chains): Likewise.
10474 (canonicalize_loc_order_check): Likewise.
10475 (canonicalize_values_mark): Likewise.
10476 (canonicalize_values_star): Likewise.
10477 (canonicalize_vars_star): Likewise.
10478 (variable_merge_over_cur): Likewise.
10479 (remove_duplicate_values): Likewise.
10480 (variable_post_merge_new_vals): Likewise.
10481 (variable_post_merge_perm_vals): Likewise.
10482 (find_mem_expr_in_1pdv): Likewise.
10483 (dataflow_set_preserve_mem_locs): Likewise.
10484 (dataflow_set_remove_mem_locs): Likewise.
10485 (variable_part_different_p): Likewise.
10486 (onepart_variable_different_p): Likewise.
10487 (find_src_set_src): Likewise.
10488 (dump_var): Likewise.
10489 (set_slot_part): Likewise.
10490 (clobber_slot_part): Likewise.
10491 (delete_slot_part): Likewise.
10492 (vt_expand_var_loc_chain): Likewise.
10493 (emit_note_insn_var_location): Likewise.
10494 (vt_finalize): Likewise.
10495
10496 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10497
10498 * dse.c (store_info_t): Remove typedef.
10499 (group_info_t): Likewise.
10500 (const_group_info_t): Likewise.
10501 (deferred_change_t): Likewise.
10502 (get_group_info): Adjust.
10503 (free_store_info): Likewise.
10504 (canon_address): Likewise.
10505 (clear_rhs_from_active_local_stores): Likewise.
10506 (record_store): Likewise.
10507 (replace_read): Likewise.
10508 (check_mem_read_rtx): Likewise.
10509 (scan_insn): Likewise.
10510 (remove_useless_values): Likewise.
10511 (dse_step1): Likewise.
10512 (dse_step2_init): Likewise.
10513 (dse_step2_nospill): Likewise.
10514 (scan_stores_nospill): Likewise.
10515 (scan_reads_nospill): Likewise.
10516 (dse_step3_exit_block_scan): Likewise.
10517 (dse_step3): Likewise.
10518 (dse_step5_nospill): Likewise.
10519 (dse_step6): Likewise.
10520
10521 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10522
10523 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10524 (alias_set_entry): Remove typedef.
10525 (alias_set_subset_of): Adjust.
10526 (alias_sets_conflict_p): Likewise.
10527 (init_alias_set_entry): Likewise.
10528 (get_alias_set): Likewise.
10529 (new_alias_set): Likewise.
10530 (record_alias_subset): Likewise.
10531
10532 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
10533
10534 * doc/install.texi (Downloading the source): Mark up
10535 contrib/download_prerequisites properly and drop leading "./".
10536
10537 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10538
10539 * config/arc/arc.h: Remove define of STRUCT_VALUE.
10540 * config/lm32/lm32.h: Likewise.
10541 * config/mep/mep.h: Likewise.
10542 * config/visium/visium.h: Likewise.
10543 * system.h: Poison STRUCT_VALUE macro.
10544
10545 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
10546
10547 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10548 CONSTANT_P operands.
10549
10550 2015-09-11 David S. Miller <davem@davemloft.net>
10551
10552 * config/sparc/constraints.md: Make "U" constraint a real register
10553 constraint.
10554 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10555 (D_MODES, DF_MODES): Add missing cast.
10556 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10557 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10558 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10559 cost to 8.
10560 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10561 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10562 provide these insn when flag_pic.
10563
10564 2015-09-11 Jeff Law <law@redhat.com>
10565
10566 PR tree-optimization/47679
10567 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10568 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10569 member with m_. Update inline member functions as necessary. Add
10570 toplevel comment.
10571 * tree-ssa-scopedtables.c: Update const_and_copies's member
10572 functions to use m_ prefix to access the stack.
10573
10574 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10575
10576 * graphite-optimize-isl.c (disable_tiling): Remove.
10577 (get_schedule_for_band): Do not use disable_tiling.
10578 (get_prevector_map): Delete function.
10579 (enable_polly_vector): Remove.
10580 (get_schedule_for_band_list): Remove dead code.
10581
10582 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10583
10584 * graphite-optimize-isl.c (get_tile_map): Refactor.
10585 (get_schedule_for_band): Same.
10586 (getScheduleForBand): Same.
10587 (get_prevector_map): Same.
10588 (get_schedule_for_band_list): Same.
10589 (get_schedule_map): Same.
10590 (get_single_map): Same.
10591 (apply_schedule_map_to_scop): Same.
10592 (optimize_isl): Same.
10593
10594 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10595
10596 PR target/63304
10597 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10598 (movtf): Delete.
10599 * config/aarch64/iterators.md (GPF_TF_F16): New.
10600 (GPF_F16): Delete.
10601
10602 2015-09-10 Nathan Sidwell <nathan@acm.org>
10603
10604 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10605 (nvptx_reorg): Adjust comments.
10606
10607 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
10608
10609 PR bootstrap/67363
10610 * configure.ac: Check if setenv and unsetenv are declared.
10611 * configure: Rebuild.
10612 * config.in: Rebuild.
10613 * system.h: Declare setenv and unsetenv if not declared.
10614
10615 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10616
10617 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10618 commentary to simplify permute mask adjustment equation.
10619 (special_handling_values): Add SH_VPERM.
10620 (const_load_sequence_p): New function.
10621 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10622 the mask loaded from the constant pool.
10623 (adjust_vperm): New function.
10624 (handle_special_swappables): Call adjust_vperm.
10625 (dump_swap_insn_table): Handle SH_VPERM.
10626
10627 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
10628
10629 * shrink-wrap.c (requires_stack_frame_p): Remove static.
10630 * shrink-wrap.h (requires_stack_frame_p): Put back.
10631
10632 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
10633
10634 * reload1.c (elimination_costs_in_insn): Locally turn
10635 -Wmaybe-uninitialized into a warning.
10636
10637 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
10638
10639 * shrink-wrap.c (requires_stack_frame_p): Make static.
10640 (prepare_shrink_wrap): Likewise.
10641 (dup_block_and_redirect): Likewise.
10642 * shrink-wrap.h: Remove declarations of those functions.
10643
10644 2015-09-10 Mark Wielaard <mjw@redhat.com>
10645
10646 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10647
10648 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
10649
10650 PR target/67506
10651 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10652 missing simplify_gen_subreg.
10653
10654 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10655
10656 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10657 the vector element is bigger than 64 bit.
10658
10659 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10660
10661 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10662 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10663
10664 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10665
10666 * config/s390/s390.c: Add V1TImode to constant pool modes.
10667
10668 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10669
10670 PR target/67439
10671 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10672 predicate. Set predicable_short_it attr to "no".
10673
10674 2015-09-10 Jiong Wang <jiong.wang@arm.com>
10675
10676 PR rtl-optimization/67421
10677 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10678 left wide shift tranformation.
10679
10680 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10681
10682 * common/config/arc/arc-common.c: Remove references to A5.
10683 * config/arc/arc-opts.h: Likewise.
10684 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10685 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10686 * config/arc/t-arc-newlib: Likewise.
10687
10688 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10689
10690 * config/arc/arc.md (length): Fix attribute length for conditional
10691 executed instructions with long immediate.
10692
10693 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10694
10695 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10696 type for second alternative.
10697
10698 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
10699
10700 * doc/invoke.texi (Downloading GCC): Mention
10701 contrib/download_prerequisites script.
10702
10703 2015-09-10 Jakub Jelinek <jakub@redhat.com>
10704
10705 PR c++/67523
10706 * gimplify.c (gimplify_omp_for): If inner stmt is not found
10707 for combined loop, assert seen_error () and return GS_ERROR.
10708
10709 PR middle-end/67521
10710 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10711 if decl is already in outer->variables.
10712
10713 PR middle-end/67517
10714 * gimplify.c (gimplify_scan_omp_clauses): Instead of
10715 asserting that decl is not specified in octx->variables,
10716 break out of the loop if it is.
10717
10718 PR c++/67514
10719 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10720 iterator is not explicitly determined, but is defined inside
10721 of the combined workshare region, handle it like if it has
10722 DECL_EXPR in OMP_FOR_PRE_BODY.
10723
10724 2015-09-09 Nathan Sidwell <nathan@acm.org>
10725
10726 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10727 (*cmp<mode>): Add assembler spacing.
10728 (setcc_int<mode>, set_cc_float<mode>): Likewise.
10729 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10730 level.
10731 (write_func_decl_from_insn): Refactor argument loops & comma emission.
10732 (nvptx_expand_call): Likewise.
10733 (nvptx_output_call_insn): Likewise.
10734 (nvptx_reorg_subreg): Add spacing.
10735
10736 2015-09-09 Marek Polacek <polacek@redhat.com>
10737
10738 PR middle-end/67512
10739 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10740 for comparisons.
10741
10742 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10743
10744 PR c++/53184
10745 * doc/invoke.texi ([Wsubobject-linkage]): Document.
10746
10747 2015-09-09 Tom de Vries <tom@codesourcery.com>
10748
10749 * params-list.h: Add missing copyright notice.
10750
10751 2015-09-09 Nathan Sidwell <nathan@acm.org>
10752
10753 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10754 sel_truesi, not andsi.
10755
10756 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10757
10758 * config/arm/arm.md (*subsi3_compare0): Rename to...
10759 (subsi3_compare0): ... This.
10760 (modsi3): New define_expand.
10761 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10762 when operand is power of 2.
10763
10764 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10765
10766 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10767 (*neg<mode>2_compare0): Rename to...
10768 (neg<mode>2_compare0): ... This.
10769 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10770 Move check for speed inside the if-then-elses. Reflect
10771 CSNEG sequence in MOD by power of 2 case.
10772
10773 2015-09-09 Alan Modra <amodra@gmail.com>
10774
10775 PR target/67378
10776 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10777 reload replacement for PRE_MODIFY address reg.
10778
10779 2015-09-09 Sebastian Pop <s.pop@samsung.com>
10780
10781 PR tree-optimization/53852
10782 * config.in: Regenerate.
10783 * configure: Regenerate.
10784 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10785 * graphite-optimize-isl.c (optimize_isl): Stop computation when
10786 PARAM_MAX_ISL_OPERATIONS is reached.
10787 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10788 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10789 result equal to isl_stat_ok as the status now can be isl_error_quota.
10790 (subtract_commutative_associative_deps): Same.
10791 (compute_deps): Same.
10792
10793 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10794 Sebastian Pop <s.pop@samsung.com>
10795
10796 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10797 Return the parameter if it was saved in corresponding
10798 parameter_rename_map of the region.
10799 (copy_def): Copy def from sese region to the newly created region.
10800 (copy_internal_parameters): Copy all the internal parameters defined
10801 within a region to the newly created region.
10802 (graphite_regenerate_ast_isl): Copy parameters to the new region before
10803 translating isl to gimple.
10804 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10805 the loop-nest does not have any data-references.
10806 (build_graphite_scops): Create a scop only when there is at least one
10807 loop inside it.
10808 (contains_only_close_phi_nodes): Deleted.
10809 (print_graphite_scop_statistics): Deleted
10810 (print_graphite_statistics): Deleted
10811 (limit_scops): Deleted.
10812 (build_scops): Removed call to limit_scops.
10813 * sese.c (new_sese): Construct.
10814 (free_sese): Destruct.
10815 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10816 added.
10817 (set_rename): Pass sese region so that parameters inside the region can
10818 be added to its parameter_rename_map.
10819 (rename_uses): Pass sese region.
10820 (graphite_copy_stmts_from_block): Do not copy parameters that have been
10821 generated in the header of the scop. For each SSA_NAME in the
10822 parameter_rename_map rename its usage.
10823 (invariant_in_sese_p_rec): Return false if tree t is defined outside
10824 sese region.
10825 (scalar_evolution_in_region): If the tree t is invariant just return t.
10826 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10827 struct sese to keep track of all the parameters which need renaming.
10828 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10829 any data-refs.
10830 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10831
10832 2015-09-08 Tom de Vries <tom@codesourcery.com>
10833
10834 * Makefile.in (generated_files): Add params.list.
10835 (params.list, s-params.list): Add rule.
10836 * params.h (enum compiler_param): Include params-list.h. Move define
10837 DEFPARAM, include params.def and undef DEFPARAM ...
10838 * params-list.h: ... here. New file.
10839
10840 2015-09-08 David Malcolm <dmalcolm@redhat.com>
10841
10842 * pretty-print.h (printer_fn): Fix typo in comment.
10843
10844 2015-09-07 Jeff Law <law@redhat.com>
10845
10846 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10847
10848 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10849
10850 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10851 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10852 (arm_neon_fp16_hw): New.
10853
10854 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10855
10856 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10857 UNITS_PER_WORD >= 4.
10858
10859 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10860
10861 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10862 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10863 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10864 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10865 (aarch64_float_extend_lo_v2df): Rename to...
10866 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10867
10868 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10869 (float_extend_lo): Add v4sf.
10870
10871 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10872 * config/aarch64/iterators.md (VQ_HSF): New iterator.
10873 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10874 (Vwide): New mode_attr.
10875
10876 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10877
10878 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10879 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10880 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10881 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10882 V4HF and V8HF variants to iterator.
10883
10884 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10885
10886 * config/aarch64/iterators.md (VDQF_F16): New.
10887 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10888
10889 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10890
10891 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10892 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10893 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10894 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10895 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10896 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10897 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10898 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10899 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10900 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10901 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10902 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10903 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10904 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10905 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10906 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10907 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10908 vld1q_dup_f16): New.
10909
10910 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10911
10912 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10913 Reparameterize to...
10914 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10915 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10916 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10917
10918 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10919 v8hf variant.
10920 (float_truncate_lo_): Use BUILTIN_VDF iterator.
10921
10922 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10923
10924 * config/aarch64/iterators.md (VDF, Vdtype): New.
10925 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10926
10927 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10928
10929 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10930 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10931 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10932 Add __builtin_aarch64_simd_hf.
10933 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10934 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10935 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10936 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10937 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10938 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10939 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10940 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10941 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10942
10943 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10944 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10945 (VDC, Vdbl): Add V4HF.
10946
10947 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10948
10949 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10950 V4HFmode and V8HFmode.
10951 (aarch64_split_simd_move): Add case for V8HFmode.
10952 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10953 (aarch64_simd_builtin_std_type): Handle HFmode.
10954 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10955
10956 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10957 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10958 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10959
10960 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10961 Float16x8_t.
10962
10963 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10964 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10965 New typedefs.
10966 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10967 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10968 vst1q_lane_f16): New.
10969 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10970 (VALLDI_F16, VALL_F16): New.
10971 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10972 Add cases for V4HF and V8HF.
10973 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10974
10975 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10976
10977 * config/arm/arm-builtins.c (VAR11, VAR12): New.
10978 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10979 vld4_dup): Add v4hf variant.
10980 (vget_high, vget_low): Add v8hf variant.
10981 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10982 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10983 v4hf and v8hf variants.
10984
10985 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10986 (VDX): Add V4HF.
10987 (V_DOUBLE): Add case for V4HF.
10988 (VQX): Add V8HF.
10989 (V_HALF): Add case for V8HF.
10990 (VDQX): Add V4HF, V8HF.
10991 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10992 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10993
10994 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10995 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10996 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10997 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10998 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10999 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11000 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11001 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11002 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11003
11004 (neon_vcreate, neon_vreinterpretv8qi<mode>,
11005 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11006 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11007 Change VDX to VD_RE.
11008
11009 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11010 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11011 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11012
11013 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11014 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11015 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11016 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11017 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11018 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11019 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11020 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11021 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11022
11023 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11024
11025 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11026 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11027 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11028 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11029 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11030 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11031 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11032 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11033 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11034 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11035 New.
11036
11037 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11038
11039 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11040
11041 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11042
11043 * config/arm/arm-builtins.c (v8hf_UP): New.
11044 (arm_init_simd_builtin_types): Initialise Float16x8_t.
11045
11046 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11047
11048 * config/arm/arm_neon.h (float16x8_t): New typedef.
11049
11050 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11051
11052 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11053 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11054 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11055 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11056 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11057 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11058 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11059 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11060 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11061 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11062
11063 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
11064
11065 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11066 non-alphanumeric characters in the symbol name.
11067
11068 2015-09-07 Marek Polacek <polacek@redhat.com>
11069
11070 PR inline-asm/67448
11071 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11072 a memory input.
11073
11074 2015-09-07 Marek Polacek <polacek@redhat.com>
11075
11076 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11077
11078 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
11079
11080 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11081 not warn.
11082
11083 2015-09-04 Jakub Jelinek <jakub@redhat.com>
11084
11085 PR middle-end/67452
11086 * tree-ssa-live.c: Include cfgloop.h.
11087 (remove_unused_locals): Clear loop->simduid if simduid is about
11088 to be removed from cfun->local_decls.
11089
11090 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11091
11092 PR target/65210
11093 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11094 attribute as well.
11095
11096 2015-09-04 Tom de Vries <tom@codesourcery.com>
11097
11098 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11099
11100 2015-09-04 Jeff Law <law@redhat.com>
11101
11102 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11103 unnecessary constructor. It's now trivial and implemented inside...
11104 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11105 constructor. Add comments to various methods. Remove unused
11106 private fields.
11107 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11108 * tree-vrp.c (identify_jump_threads): Likewise.
11109 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11110 indentation issues.
11111 (thread_across_edge): Similarly.
11112 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11113 arguments in constructor call.
11114
11115 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11116
11117 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11118 temp path contains a '-'.
11119
11120 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11121 Petr Murzin <petr.murzin@intel.com>
11122 Kirill Yukhin <kirill.yukhin@intel.com>
11123
11124 * config/i386/i386-builtin-types.def
11125 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11126 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11127 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11128 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11129 * config/i386/i386.c
11130 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11131 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11132 IX86_BUILTIN_SCATTERALTDIV16SI.
11133 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11134 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11135 __builtin_ia32_scatteraltdiv8si.
11136 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11137 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11138 IX86_BUILTIN_SCATTERALTDIV16SI.
11139 (ix86_vectorize_builtin_scatter): New.
11140 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11141 ix86_vectorize_builtin_scatter.
11142
11143 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11144 Petr Murzin <petr.murzin@intel.com>
11145 Kirill Yukhin <kirill.yukhin@intel.com>
11146
11147 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11148 * doc/tm.texi: Regenerate.
11149 * target.def: Add scatter builtin.
11150 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11151 for loads/stores in case of gather/scatter accordingly.
11152 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11153 STMT_VINFO_GATHER_P(S).
11154 (vect_check_gather): Rename to ...
11155 (vect_check_gather_scatter): this.
11156 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11157 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11158 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11159 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11160 variable and new checkings for it accordingly.
11161 * tree-vect-stmts.c
11162 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11163 STMT_VINFO_GATHER_P(S).
11164 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11165 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11166
11167 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11168
11169 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11170 define_insn.
11171 (mulv16qi3): New define_expand.
11172
11173 2015-09-03 Martin Sebor <msebor@redhat.com>
11174
11175 PR c/66516
11176 * doc/extend.texi (Other Builtins): Document when the address
11177 of a built-in function can be taken.
11178
11179 2015-09-03 Richard Biener <rguenther@suse.de>
11180
11181 * dwarf2out.c (flush_limbo_die_list): Split out from ...
11182 (dwarf2out_early_finish): ... here.
11183 (dwarf2out_finish): Do not call dwarf2out_early_finish but
11184 flush_limbo_die_list. Assert we have no deferred asm names.
11185
11186 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11187
11188 * optabs.c (expand_binop): Don't create a broadcast vector with a
11189 source element wider than the inner mode.
11190
11191 2015-09-03 Richard Biener <rguenther@suse.de>
11192
11193 * varasm.c (output_constant): Use fold_convert instead of
11194 wide_int_to_tree.
11195
11196 2015-09-03 Tom de Vries <tom@codesourcery.com>
11197
11198 PR tree-optimization/65637
11199 * omp-low.c (expand_omp_for_static_chunk): Handle case that
11200 fin_bb has 2 predecessors.
11201
11202 2015-09-03 Tom de Vries <tom@codesourcery.com>
11203
11204 PR tree-optimization/65637
11205 * omp-low.c (find_phi_with_arg_on_edge): New function.
11206 (expand_omp_for_static_chunk): Fix inner loop phi.
11207
11208 2015-09-03 Tom de Vries <tom@codesourcery.com>
11209
11210 PR tree-optimization/65637
11211 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11212 that head is NULL.
11213
11214 2015-09-03 Tom de Vries <tom@codesourcery.com>
11215
11216 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11217
11218 2015-09-03 Tom de Vries <tom@codesourcery.com>
11219
11220 * doc/invoke.texi (parloops-chunk-size): Add item.
11221 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11222 * tree-parloops.c: Include params.h.
11223 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11224 param parloops-chunk-size is used.
11225
11226 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11227
11228 PR middle-end/67351
11229 * fold-const.c (fold_binary_loc) : Move
11230 Transform (x >> c) << c into x & (-1<<c) or
11231 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11232 types using simplify and match.
11233 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11234 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11235
11236 2015-09-03 Richard Biener <rguenther@suse.de>
11237
11238 PR ipa/66705
11239 * tree-ssa-structalias.c (ctor_for_analysis): New function.
11240 (create_variable_info_for_1): Use ctor_for_analysis instead
11241 of get_constructor.
11242 (create_variable_info_for): Likewise.
11243
11244 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
11245
11246 PR ipa/67280
11247 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11248 in new callgraph edge.
11249
11250 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
11251
11252 PR target/59810
11253 PR target/63652
11254 PR target/63653
11255 * config/aarch64/aarch64-simd.md
11256 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11257 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11258 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11259 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11260
11261 2015-09-02 Alan Modra <amodra@gmail.com>
11262
11263 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11264 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11265 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11266
11267 2015-09-02 Alan Modra <amodra@gmail.com>
11268
11269 PR target/67417
11270 * config/rs6000/predicates.md (current_file_function_operand): Don't
11271 return true for weak symbols.
11272 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11273
11274 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
11275 Andrew Bennett <andrew.bennett@imgtec.com>
11276
11277 * config/mips/mips-opts.h (mips_cb_setting): New enum.
11278 * config/mips/mips-protos.h: Add definitions for
11279 mips_output_jump and mips_output_equal_conditional_branch
11280 * config/mips/mips.c (MIPS_JR): Change to support the
11281 JIC instruction.
11282 (mips_emit_compare): Add support for the MIPS R6 conditional
11283 compact branches.
11284 (mips_process_sync_loop): Likewise.
11285 (mips_output_order_conditional_branch): Likewise.
11286 (mips16_build_call_stub): Change MIPS_CALL to
11287 mips_output_jump.
11288 (mips_print_operand_punctuation): Update 's' case to only
11289 apply to micromips r2.
11290 (mips_adjust_insn_length): Add support for forbidden slot
11291 hazards.
11292 (mips_avoid_hazard): Likewise.
11293 (mips_reorg_process_insns): Likewise.
11294 (mips_output_jump): New function.
11295 (mips_output_equal_conditional_branch): Likewise.
11296 (mips_output_conditional_branch): Use jrc/bc if compact
11297 branch support is enabled. Ensure the forbidden slots
11298 between the two branch instructions is filled with a nop.
11299 (mips_option_override): Add support to process the compact
11300 branch option and set the correct defaults. Prevent
11301 non-explict relocs being using for MIPS R6.
11302 (mips_trampoline_init): Add compact branch support.
11303 (mips_mult_zero_zero_cost): Allow zero initialisation of
11304 accumulators with TARGET_DSP.
11305 * config/mips/mips.h (TARGET_CB_NEVER): New define.
11306 (TARGET_CB_MAYBE): New define.
11307 (TARGET_CB_ALWAYS): New define.
11308 (ISA_HAS_DELAY_SLOTS): New define.
11309 (ISA_HAS_COMPACT_BRANCHES): New define.
11310 (ISA_HAS_JRC): New define.
11311 (MIPS_BRANCH_C): New define.
11312 (MIPS_CALL): Removed.
11313 (MICROMIPS_J): Removed.
11314 * config/mips/mips.md (compact_form): New attr.
11315 (hazard): Add support for forbidden slots.
11316 (define_delay): Add support for compact branches.
11317 (*branch_order<mode>): Likewise.
11318 (*branch_order<mode>_inverted): Likewise.
11319 (*branch_equality<mode>): Likewise.
11320 (*branch_equality<mode>_inverted): Likewise.
11321 (*jump_absolute): Likewise.
11322 (*jump_pic): Likewise.
11323 (indirect_jump): Use mips_output_jump to produce assembly output.
11324 (tablejump_<mode>"): Likewise.
11325 (*<optab>"): Likewise.
11326 (<optab>_internal): Likewise.
11327 (sibcall_internal): Likewise.
11328 (sibcall_value_internal): Likewise.
11329 (sibcall_value_multiple_internal): Likewise.
11330 (call_internal): Likewise.
11331 (call_split): Likewise.
11332 (call_internal_direct): Likewise.
11333 (call_direct_split): Likewise.
11334 (call_value_internal): Likewise.
11335 (call_value_split): Likewise.
11336 (call_value_internal_direct): Likewise.
11337 (call_value_direct_split): Likewise.
11338 (call_value_multiple_internal): Likewise.
11339 (call_value_multiple_split): Likewise.
11340 (mips_get_fcsr_mips16_<mode>): Likewise.
11341 (mips_set_fcsr_mips16_<mode>): Likewise.
11342 (tls_get_tp_mips16_<mode>): Likewise.
11343 * config/mips/mips.opt: Add -mcompact-branches option.
11344 * config/mips/predicates.md (order_operator): Ensure the
11345 conditional compact branches are only used if the ISA them.
11346 * doc/invoke.texi: Document -mcompact-branches option.
11347
11348 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11349
11350 PR target/61578
11351 * lra-lives.c (process_bb_lives): Process move pseudos with the
11352 same value for copies and preferences
11353 * lra-constraints.c (match_reload): Create match reload pseudo
11354 with the same value from single dying input pseudo.
11355
11356 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11357
11358 PR target/67405
11359 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11360
11361 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11362
11363 * trans-mem.c: Add contributed-by.
11364 * trans-mem.h: Same.
11365
11366 2015-09-01 Richard Biener <rguenther@suse.de>
11367
11368 * expr.c (expand_expr_real_1): For expanding TERed defs
11369 set the current location to that of the def if not UNKNOWN.
11370
11371 2015-09-01 David Sherwood <david.sherwood@arm.com>
11372
11373 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11374
11375 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11376
11377 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11378 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11379 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11380 Include rtl-iter.h.
11381 (noce_simple_bbs): New function.
11382 (noce_try_move): Bail if basic blocks are not simple.
11383 (noce_try_store_flag): Likewise.
11384 (noce_try_store_flag_constants): Likewise.
11385 (noce_try_addcc): Likewise.
11386 (noce_try_store_flag_mask): Likewise.
11387 (noce_try_cmove): Likewise.
11388 (noce_try_minmax): Likewise.
11389 (noce_try_abs): Likewise.
11390 (noce_try_sign_mask): Likewise.
11391 (noce_try_bitop): Likewise.
11392 (bbs_ok_for_cmove_arith): New function.
11393 (noce_emit_all_but_last): Likewise.
11394 (noce_emit_insn): Likewise.
11395 (noce_emit_bb): Likewise.
11396 (noce_try_cmove_arith): Handle non-simple basic blocks.
11397 (insn_valid_noce_process_p): New function.
11398 (contains_mem_rtx_p): Likewise.
11399 (bb_valid_for_noce_process_p): Likewise.
11400 (noce_process_if_block): Allow non-simple basic blocks
11401 where appropriate.
11402
11403 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11404
11405 * tree-ssa-dom.c (record_equivalences_from_phis,
11406 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11407 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11408
11409 2015-09-01 Nick Clifton <nickc@redhat.com>
11410
11411 * config/msp430/msp430.opt (mcpu): Fix typo.
11412
11413 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11414
11415 * config/aarch64/aarch64.c (aarch64_set_current_function):
11416 Re-layout any vector parameters have non-simd layout.
11417 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11418 Delete.
11419 (aarch64_simd_expand_args): Delete call to the above.
11420
11421 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11422
11423 * doc/invoke.texi (asan-stack): Add space before option.
11424
11425 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11426
11427 * tree.h (zerop): New function.
11428 * tree.c (zerop): Likewise.
11429 (element_precision): Handle expressions.
11430 * match.pd (define_predicates): Add zerop.
11431 (x <= +Inf): Fix comment.
11432 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11433 * fold-const.c (fold_binary_loc): ... here. Remove.
11434
11435 2015-08-31 Richard Biener <rguenther@suse.de>
11436
11437 PR middle-end/67381
11438 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11439
11440 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11441
11442 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11443 (CEXPI): New operator list.
11444 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11445 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11446 Converted from ...
11447 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11448
11449 2015-08-31 Tom de Vries <tom@codesourcery.com>
11450
11451 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11452 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11453 parameter.
11454 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11455 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11456 (rewrite_into_loop_closed_ssa): ... here.
11457 (replace_uses_in_dominated_bbs): Remove function.
11458 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11459 rewrite_into_loop_closed_ssa_1.
11460
11461 2015-08-31 Michael Matz <matz@suse.de>
11462
11463 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11464 enter entry and exit blocks for reverse post order.
11465
11466 2015-08-31 Richard Biener <rguenther@suse.de>
11467
11468 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11469 (lto_location_cache::current_sysp): Likewise.
11470 (output_block::current_sysp): Likewise.
11471 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11472 (lto_location_cache::apply_location_cache): Properly record
11473 system header locations.
11474 (lto_location_cache::input_location): Input whether a file
11475 is a system header.
11476 * lto-streamer-out.c (lto_output_location): Stream whether a file
11477 is a system header.
11478
11479 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11480
11481 PR bootstrap/67363
11482 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11483
11484 2015-08-31 Tom de Vries <tom@codesourcery.com>
11485
11486 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11487 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11488 Improve function header comments.
11489
11490 2015-08-30 Michael Collison <michael.collison@linaro.org>
11491
11492 PR other/67320
11493 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11494 standard names
11495
11496 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11497
11498 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11499 special_handling bitfield.
11500 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11501 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11502 that represents a general xxpermdi.
11503 (insn_is_swappable_p): Add handling for vec_concat of two
11504 doublewords, which maps to a specific xxpermdi.
11505 (adjust_xxpermdi): New function.
11506 (adjust_concat): Likewise.
11507 (handle_special_swappables): Call adjust_xxpermdi and
11508 adjust_concat.
11509 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11510
11511 2015-08-30 Rich Felker <dalias@libc.org>
11512
11513 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11514 case instead of sh[123456ble]-*-*.
11515
11516 2015-08-29 Anatoly Sokolov <aesok@post.ru>
11517
11518 * ira.c (print_unform_and_important_classes,
11519 print_translated_classes): Remove reg_class_names static array.
11520 (print_unform_and_important_classes): Rename to ...
11521 (print_uniform_and_important_classes): ... this.
11522 (ira_debug_allocno_classes): Update accordingly.
11523
11524 2015-08-29 Tom de Vries <tom@codesourcery.com>
11525
11526 PR tree-optimization/46193
11527 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11528 clause.
11529
11530 2015-08-28 Jeff Law <law@redhat.com>
11531
11532 PR lto/66752
11533 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11534 unable to find X NE 0 in the tables, return X as the simplified
11535 condition.
11536 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11537 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11538 to VISISTED_BBS.
11539 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11540 after removing the control flow statement and unnecessary edges.
11541
11542 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
11543
11544 Revert:
11545 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11546
11547 PR tree-optimization/67283
11548 * tree-sra.c (type_consists_of_records_p): Rename to...
11549 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11550
11551 (completely_scalarize_record): Rename to...
11552 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11553 code to:
11554 (scalarize_elem): New.
11555
11556 2015-08-28 Jiong Wang <jiong.wang@arm.com>
11557
11558 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11559 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11560 (aarch64_symbol_type): Likewise.
11561 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11562 Likewise.
11563 (aarch64_expand_mov_immediate): Likewise.
11564 (aarch64_print_operand): Likewise.
11565 (aarch64_classify_tls_symbol): Likewise.
11566
11567 2015-08-28 Richard Biener <rguenther@suse.de>
11568
11569 * cgraphunit.c (symbol_table::compile): Move early debug generation
11570 and finish...
11571 (symbol_table::finalize_compilation_unit): ... back here and
11572 add a !seen_error () guard.
11573
11574 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11575
11576 * toplev.c (process_options): Do not use flag_loop_block,
11577 flag_loop_interchange, and flag_loop_strip_mine. Add check for
11578 flag_loop_optimize_isl.
11579
11580 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11581
11582 * Makefile.in (OBJS): Remove graphite-blocking.o and
11583 graphite-interchange.o.
11584 * common.opt (floop-strip-mine, floop-interchange, floop-block):
11585 Alias of floop-nest-optimize.
11586 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11587 Document as alias of -floop-nest-optimize.
11588 * graphite-blocking.c: Remove.
11589 * graphite-interchange.c: Remove.
11590 * graphite-optimize-isl.c: Include dumpfile.h.
11591 (getScheduleForBand): Add dump for tiled loops. Use
11592 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11593 * graphite-poly.c (scop_max_loop_depth): Remove.
11594 (print_scattering_function_1): Remove.
11595 (print_scattering_function): Remove.
11596 (print_scattering_functions): Remove.
11597 (debug_scattering_function): Remove.
11598 (debug_scattering_functions): Remove.
11599 (apply_poly_transforms): Remove use of flag_loop_block,
11600 flag_loop_strip_mine, and flag_loop_interchange.
11601 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11602 PBB_ORIGINAL.
11603 (print_pdr_access_layout): Remove.
11604 (print_pdr): Print ISL representation.
11605 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11606 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11607 (free_scop): Same.
11608 (openscop_print_pbb_domain): Remove.
11609 (print_pbb): Remove call to print_scattering_function.
11610 (openscop_print_scop_context): Remove.
11611 (print_scop_context): Do not print matrices anymore.
11612 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11613 SCOP_TRANSFORMED_SCHEDULE.
11614 (print_isl_set): Add printing of a new line.
11615 (print_isl_map): Same.
11616 (print_isl_aff): Same.
11617 (print_isl_constraint): Same.
11618 (loop_to_lst): Remove.
11619 (scop_to_lst): Remove.
11620 (lst_indent_to): Remove.
11621 (print_lst): Remove.
11622 (debug_lst): Remove.
11623 (dot_lst_1): Remove.
11624 (dot_lst): Remove.
11625 (reverse_loop_at_level): Remove.
11626 (reverse_loop_for_pbbs): Remove.
11627 * graphite-poly.h (pdr_dim_iter_domain): Remove.
11628 (pdr_nb_params): Remove.
11629 (pdr_alias_set_dim): Remove.
11630 (pdr_subscript_dim): Remove.
11631 (pdr_iterator_dim): Remove.
11632 (pdr_parameter_dim): Remove.
11633 (same_pdr_p): Remove.
11634 (struct poly_scattering): Remove.
11635 (struct poly_bb): Remove _original, _transformed, _saved.
11636 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11637 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11638 (PBB_NB_LOCAL_VARIABLES): Remove.
11639 (PBB_NB_SCATTERING_TRANSFORM): Remove.
11640 (schedule_to_scattering): Remove.
11641 (number_of_write_pdrs): Remove.
11642 (pbb_dim_iter_domain): Remove.
11643 (pbb_nb_params): Remove.
11644 (pbb_nb_scattering_orig): Remove.
11645 (pbb_nb_scattering_transform): Remove.
11646 (pbb_nb_dynamic_scattering_transform): Remove.
11647 (pbb_nb_local_vars): Remove.
11648 (pbb_iterator_dim): Remove.
11649 (pbb_parameter_dim): Remove.
11650 (psco_scattering_dim): Remove.
11651 (psct_scattering_dim): Remove.
11652 (psct_local_var_dim): Remove.
11653 (psco_iterator_dim): Remove.
11654 (psct_iterator_dim): Remove.
11655 (psco_parameter_dim): Remove.
11656 (psct_parameter_dim): Remove.
11657 (psct_dynamic_dim): Remove.
11658 (psct_static_dim): Remove.
11659 (psct_add_local_variable): Remove.
11660 (new_lst_loop): Remove.
11661 (new_lst_stmt): Remove.
11662 (free_lst): Remove.
11663 (copy_lst): Remove.
11664 (lst_add_loop_under_loop): Remove.
11665 (lst_depth): Remove.
11666 (lst_dewey_number): Remove.
11667 (lst_dewey_number_at_depth): Remove.
11668 (lst_pred): Remove.
11669 (lst_succ): Remove.
11670 (lst_find_pbb): Remove.
11671 (find_lst_loop): Remove.
11672 (lst_find_first_pbb): Remove.
11673 (lst_empty_p): Remove.
11674 (lst_find_last_pbb): Remove.
11675 (lst_contains_p): Remove.
11676 (lst_contains_pbb): Remove.
11677 (lst_create_nest): Remove.
11678 (lst_remove_from_sequence): Remove.
11679 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11680 (lst_niter_for_loop): Remove.
11681 (pbb_update_scattering): Remove.
11682 (lst_update_scattering_under): Remove.
11683 (lst_update_scattering): Remove.
11684 (lst_insert_in_sequence): Remove.
11685 (lst_replace): Remove.
11686 (lst_substitute_3): Remove.
11687 (lst_distribute_lst): Remove.
11688 (lst_remove_all_before_including_pbb): Remove.
11689 (lst_remove_all_before_excluding_pbb): Remove.
11690 (struct scop): Remove original_schedule, transformed_schedule, and
11691 saved_schedule.
11692 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11693 (SCOP_SAVED_SCHEDULE): Remove.
11694 (poly_scattering_new): Remove.
11695 (poly_scattering_free): Remove.
11696 (poly_scattering_copy): Remove.
11697 (store_scattering_pbb): Remove.
11698 (store_lst_schedule): Remove.
11699 (restore_lst_schedule): Remove.
11700 (store_scattering): Remove.
11701 (restore_scattering_pbb): Remove.
11702 (restore_scattering): Remove.
11703 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11704 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
11705 compute the scattering polyhedron dimension from the dimension of
11706 pbb->domain.
11707 (build_scop_scattering): Update call to
11708 build_pbb_scattering_polyhedrons.
11709 (build_poly_scop): Remove call to scop_to_lst.
11710 * graphite.c (graphite_transform_loops): Add call to print_scop.
11711 (gate_graphite_transforms): Remove use of flag_loop_block,
11712 flag_loop_interchange, and flag_loop_strip_mine.
11713
11714 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11715
11716 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11717 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11718 -floop-nest-optimize.
11719 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11720 (generate_luj_sepclass): Remove.
11721 (generate_luj_options): Remove.
11722 (set_options): Remove opt_luj.
11723 (scop_to_isl_ast): Remove opt_luj.
11724 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11725 flag_loop_unroll_jam.
11726 (getPrevectorMap_full): Remove.
11727 (getScheduleForBandList): Remove map_sepcl.
11728 (getScheduleMap): Same.
11729 (apply_schedule_map_to_scop): Remove sepcl.
11730 (optimize_isl): Same.
11731 * graphite-poly.c (apply_poly_transforms): Remove check for
11732 flag_loop_unroll_jam.
11733 (new_poly_bb): Remove map_sepclass.
11734 * graphite-poly.h (struct poly_bb): Same.
11735 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11736 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11737 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11738 * toplev.c (process_options): Remove flag_loop_unroll_jam.
11739
11740 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
11741
11742 PR target/67317
11743 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11744 (addqi3_cc): Ditto.
11745 (UNSPEC_ADD_CARRY): Remove.
11746 (addqi3_cconly_overflow): New expander.
11747 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11748 Adjust for changed add<mode>3_carry.
11749 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11750 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11751 (<plusminus_insn><mode>3_carry): Remove expander.
11752 (*<plusminus_insn><mode>3_carry): Split insn pattern to
11753 add<mode>3_carry and sub<mode>3_carry.
11754 (plusminus_carry_mnemonic): Remove code attribute.
11755 (add<mode>3_carry): Canonicalize insn pattern.
11756 (*addsi3_carry_zext): Ditto.
11757 (sub<mode>3_carry): Ditto.
11758 (*subsi3_carry_zext): Ditto.
11759 (adcx<mode>3): Remove insn pattern.
11760 (addcarry<mode>): New insn pattern.
11761 (subborrow<mode>): Ditto.
11762 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11763 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11764 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11765 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11766 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11767 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11768 Rewrite expander to not clobber carry flag chains.
11769
11770 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
11771
11772 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11773 instead of a rotate.
11774
11775 2015-08-27 Marek Polacek <polacek@redhat.com>
11776
11777 PR middle-end/67005
11778 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11779 an entry into an irreducible region.
11780
11781 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11782
11783 * configure: Regenerate.
11784
11785 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11786
11787 PR tree-optimization/67283
11788 * tree-sra.c (type_consists_of_records_p): Rename to...
11789 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11790
11791 (completely_scalarize_record): Rename to...
11792 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11793 (scalarize_elem): New.
11794
11795 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11796
11797 * tree-sra.c (completely_scalarize_var): Rename to...
11798 (create_total_scalarization_access): ... Here. Drop call to
11799 completely_scalarize_record.
11800
11801 (analyze_all_variable_accesses): Replace completely_scalarize_var
11802 with create_total_scalarization_access and completely_scalarize_record.
11803
11804 2015-08-27 Alan Modra <amodra@gmail.com>
11805
11806 PR target/67356
11807 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11808 for operand 1.
11809
11810 2015-08-27 Richard Biener <rguenther@suse.de>
11811
11812 * passes.c (rest_of_decl_compilation): Guard early_global_decl
11813 call with !seen_error ().
11814 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11815 early debug generation and finish...
11816 (symbol_table::compile): ... here to put it after a !seen_error ()
11817 guard.
11818
11819 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11820
11821 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11822 Solaris 12+.
11823
11824 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11825 Andre Vieira <andre.simoesdiasvieira@arm.com>
11826
11827 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11828 (*cb<optab><mode>1): Likewise.
11829 (*tb<optab><mode>1): Likewise.
11830 (*cb<optab><mode>1): Likewise.
11831 * config/aarch64/iterators.md (inv_cb): New code attribute.
11832 (inv_tb): Likewise.
11833 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11834 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11835
11836 2015-08-27 Richard Biener <rguenther@suse.de>
11837
11838 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11839
11840 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11841
11842 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11843 trap to fix ICE.
11844
11845 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11846
11847 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11848 Add declaration.
11849
11850 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11851 comment.
11852 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11853 floating point in VSX registers.
11854 (rs6000_output_move_128bit): Always print out the set insn if we
11855 can't generate an appropriate 128-bit move.
11856 (rs6000_generate_compare): Add support for IEEE 128-bit floating
11857 point in VSX registers comparisons.
11858 (rs6000_expand_float128_convert): Likewise.
11859
11860 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11861 predicate for only GPR hard registers.
11862
11863 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11864 modes to iterators. Add new iterators for moving 128-bit values in
11865 scalar FPR registers and VSX registers.
11866 (FMOVE128): Likewise.
11867 (FMOVE128_FPR): Likewise.
11868 (FMOVE128_GPR): Likewise.
11869 (FMOVE128_VSX): Likewise.
11870 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11871 in VSX registers.
11872 (IFKF): Likewise.
11873 (IBM128): Likewise.
11874 (TFIFKF): Likewise.
11875 (RELOAD): Add IEEE 128-bit floating point modes.
11876 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11877 floating point in VSX registers modes.
11878 (signbit<mode>2, IBM128 iterator): Likewise.
11879 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11880 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11881 (negtf2): Likewise.
11882 (neg<mode>2, TFIFKF iterator): Likewise.
11883 (negtf2_internal): Likewise.
11884 (abstf2): Likewise.
11885 (abs<mode>2, TFIFKF iterator): Likewise.
11886 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11887 VSX insn support for negate, absolute value, and negative absolute
11888 value.
11889 (ieee_128bit_vsx_neg<mode>2): Likewise.
11890 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11891 (ieee_128bit_vsx_abs<mode>2): Likewise.
11892 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11893 (ieee_128bit_vsx_nabs<mode>2): Likewise.
11894 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11895 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11896 floating point in VSX registers.
11897 (unpack<mode>_dm): Likewise.
11898 (unpack<mode>_nodm): Likewise.
11899 (pack<mode>): Likewise.
11900 (unpackv1ti): Likewise.
11901 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11902 (packv1ti): Likewise.
11903 (pack<mode>, FMOVE128_VSX iterator): Likewise.
11904 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11905 registers.
11906 (extenddftf2_internal): Likewise.
11907 (trunctfdf2): Likewise.
11908 (trunctfdf2_internal2): Likewise.
11909 (fix_trunc_helper): Likewise.
11910 (fix_trunctfdi2"): Likewise.
11911 (floatditf2): Likewise.
11912 (floatuns<mode>tf2): Likewise.
11913 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11914 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11915 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11916 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11917 (float<SDI:mode><IFKF:mode>2): Likewise.
11918 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11919
11920 2015-08-26 Renlin Li <renlin.li@arm.com>
11921
11922 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11923
11924 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11925 Jiong Wang <jiong.wang@arm.com>
11926
11927 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11928 (tlsie_tiny_<mode>): New define_insn.
11929 (tlsie_tiny_sidi): Likewise.
11930 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11931 SYMBOL_TINY_TLSIE.
11932 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11933 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11934 SYMBOL_TINY_TLSIE.
11935 (aarch64_expand_mov_immediate): Likewise.
11936 (aarch64_print_operand): Likewise.
11937 (arch64_classify_tls_symbol): Likewise.
11938
11939 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11940
11941 * config/arm/arm-arches.def: Replace single value flags with
11942 an initializer built from ARM_FSET_MAKE_CPU1.
11943 * config/arm/arm-cores.def: Likewise.
11944 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11945 derivation from the ARM_CORE macro definition, use the given value
11946 instead.
11947 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11948 ARM_ARCH macro definition, use the given value instead.
11949
11950 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11951
11952 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11953 feature set.
11954 (struct builtin_description): Replace field mask with field
11955 features.
11956 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11957 (IWMMXT2_BUILTIN): Likewise.
11958 (IWMMXT2_BUILTIN2): Likewise.
11959 (FP_BUILTIN): Likewise.
11960 (CRC32_BUILTIN): Likewise.
11961 (CRYPTO_BUILTIN): Likewise.
11962 (iwmmx_mbuiltin): Likewise.
11963 (iwmmx2_mbuiltin): Likewise.
11964 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11965 struct builtin_description.
11966
11967 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11968
11969 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11970 (struct builtin_description): Change type of mask to unsigned
11971 long.
11972 * config/arm/arm-protos.h (insn_flags): Declare as type
11973 arm_feature_set.
11974 (tune_flags): Likewise.
11975 * config/arm/arm.c (feature_count): New.
11976 (insn_flags): Define as type arm_feature_set.
11977 (tune_flags): Likewise.
11978 (struct processors): Define field flags as type arm_feature_set.
11979 (all_cores): Update for change to struct processors.
11980 (all_architectures): Likewise.
11981 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11982 macros.
11983 (arm_option_override_internal): Likewise.
11984 (arm_option_override): Likewise.
11985
11986 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11987 Jiong Wang <jiong.wang@arm.com>
11988
11989 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11990 tls size for tiny, small, large memory model.
11991 (aarch64_load_symref_appropriately): Support new symbol types.
11992 (aarch64_expand_mov_immediate): Likewise.
11993 (aarch64_print_operand): Likewise.
11994 (aarch64_classify_tls_symbol): Likewise.
11995 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11996 (aarch64_symbol_type): Likewise.
11997 * config/aarch64/aarch64.md (tlsle): Deleted.
11998 (tlsle12_<mode>): New define_insn.
11999 (tlsle24_<mode>): Likewise.
12000 (tlsle32_<mode>): Likewise.
12001 (tlsle48_<mode>): Likewise.
12002 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12003 "aarch64_tlsle32".
12004
12005 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12006
12007 * config/arm/arm-protos.h (FL_NONE): New.
12008 (FL_ANY): New.
12009 (arm_feature_set): New.
12010 (ARM_FSET_MAKE): New.
12011 (ARM_FSET_MAKE_CPU1): New.
12012 (ARM_FSET_MAKE_CPU2): New.
12013 (ARM_FSET_CPU1): New.
12014 (ARM_FSET_CPU2): New.
12015 (ARM_FSET_EMPTY): New.
12016 (ARM_FSET_ANY): New.
12017 (ARM_FSET_HAS_CPU1): New.
12018 (ARM_FSET_HAS_CPU2): New.
12019 (ARM_FSET_HAS_CPU): New.
12020 (ARM_FSET_ADD_CPU1): New.
12021 (ARM_FSET_ADD_CPU2): New.
12022 (ARM_FSET_DEL_CPU1): New.
12023 (ARM_FSET_DEL_CPU2): New.
12024 (ARM_FSET_UNION): New.
12025 (ARM_FSET_INTER): New.
12026 (ARM_FSET_XOR): New.
12027 (ARM_FSET_EXCLUDE): New.
12028 (AFM_FSET_IS_EMPTY): New.
12029 (ARM_FSET_CPU_SUBSET): New.
12030
12031 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12032
12033 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12034 SYMBOL_TLSLE to SYMBOL_TLSLE24.
12035 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12036 Likewise.
12037 (aarch64_expand_mov_immediate): Likewise.
12038 (aarch64_print_operand): Likewise.
12039 (aarch64_classify_symbol): Likewise.
12040
12041 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12042
12043 * config/aarch64/aarch64.opt (mtls-size): New entry.
12044 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12045 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12046 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12047
12048 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12049
12050 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12051 ARM_CORE entry. Fix some white-space.
12052 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12053 ARM_CORE definition.
12054
12055 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12056
12057 * fold-const.c (fold_binary_loc) : Move Optimize
12058 root(x)*root(y) as root(x*y) to match.pd.
12059 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12060 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12061 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12062 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12063 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12064 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12065 (mult (exps:s @0) (exps:s @1)) : New simplifier.
12066 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12067 (rdiv @0 (exps:s @1)) : New simplifier.
12068
12069 2015-08-25 Joseph Myers <joseph@codesourcery.com>
12070
12071 * gcc.c (driver::finalize): Only assign to extra_specs if
12072 [EXTRA_SPECS].
12073
12074 2015-08-25 Marek Polacek <polacek@redhat.com>
12075
12076 PR middle-end/67330
12077 * varasm.c (declare_weak): Return after giving an error.
12078
12079 2015-08-25 David Malcolm <dmalcolm@redhat.com>
12080
12081 * gcc-main.c (main): Add params to driver ctor.
12082 * gcc.c (class env_manager): New.
12083 (env): New global.
12084 (env_manager::init): New.
12085 (env_manager::get): New.
12086 (env_manager::xput): New.
12087 (env_manager::restore): New.
12088 Poison getenv and putenv.
12089 (DEFAULT_TARGET_SYSTEM_ROOT): New.
12090 (target_system_root): Update initialization to use
12091 DEFAULT_TARGET_SYSTEM_ROOT.
12092 (struct spec_list): Add field "default_ptr".
12093 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12094 (init_spec): Likewise.
12095 (set_spec): Clear field "default_ptr".
12096 (read_specs): Free "spec" and "buffer".
12097 (xputenv): Reimplement in terms of env_manager.
12098 (process_command): Replace ::getenv calls with calls to the
12099 env_manager singleton.
12100 (process_brace_body): Free string in three places.
12101 (driver::driver): New.
12102 (driver::~driver): New.
12103 (used_arg): Convert from a function to...
12104 (class used_arg_t): ...this class, and...
12105 (used_arg): ...this new global instance.
12106 (used_arg_t::finalize): New function.
12107 (getenv_spec_function): Add "const" to local "value". Replace
12108 ::getenv call with call to the env_manager singleton.
12109 (path_prefix_reset): New function.
12110 (driver::finalize): New function.
12111 * gcc.h (driver::driver): New.
12112 (driver::~driver): New.
12113 (driver::finalize): New.
12114
12115 2015-08-25 Nathan Sidwell <nathan@acm.org>
12116
12117 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12118 target doesn't have one.
12119
12120 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12121
12122 PR target/67346
12123 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12124
12125 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12126
12127 PR target/67344
12128 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12129 a define_insn, remove second alternative.
12130
12131 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
12132 Joseph Myers <joseph@codesourcery.com>
12133
12134 * gcc.c (struct switchstr): Expand comment.
12135
12136 2015-08-25 Nathan Sidwell <nathan@acm.org>
12137
12138 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12139 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12140
12141 2015-08-25 Richard Biener <rguenther@suse.de>
12142
12143 PR middle-end/67306
12144 * genmatch.c (expr::gen_transform): Verify the result of
12145 builtin_decl_implicit.
12146 (dt_simplify::gen_1): Likewise.
12147
12148 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
12149
12150 * config/arm/constraints.md: Also list Cs and US ARM-specific
12151 constraints as used.
12152
12153 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
12154
12155 PR target/66609
12156 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12157 UNSPEC_PCREL.
12158 (nonpic_symbol_mentioned_p): Likewise.
12159 (sh_delegitimize_address): Likewise.
12160 (sh_function_ok_for_sibcall): Take into account weak symbols.
12161 (sh_expand_sym_label2reg): New.
12162 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12163 * config/sh/sh.md (UNSPEC_PCREL): New enum.
12164 (call_pcrel): Use sh_expand_sym_label2reg.
12165 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12166 (symPCREL_label2reg) New expand.
12167
12168 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12169
12170 * graphite-poly.c: Change type of region from void* to sese.
12171 * graphite-poly.h (struct scop): Changing the type of scop::region
12172 from void* to sese. Change accessor macro accordingly.
12173 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12174
12175 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12176
12177 * graphite-scop-detection.c (stmt_simple_for_scop_p):
12178 Constrain only on INTEGER_TYPE.
12179
12180 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12181
12182 PR target/67211
12183 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12184 -mefficient-unaligned-vsx on ISA 2.7.
12185
12186 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12187 option to a masked option.
12188
12189 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12190 logic for -mefficient-unaligned-vsx so that it is set via an arch
12191 ISA option, instead of being set if -mtune=power8 is set. Move
12192 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12193 near other default option handling.
12194
12195 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12196
12197 * genflags.c (gen_macro): Delete.
12198 (gen_proto): Don't create GEN.*CALL.* macros.
12199 * gensupport.h (get_file_location): Declare.
12200 * gensupport.c (rtx_locs): New variable.
12201 (read_md_rtx): Record rtx locations.
12202 (get_file_location): New function.
12203 * target-insns.def (call, call_pop, call_value, call_value_pop)
12204 (sibcall, sibcall_value): New patterns.
12205 * gentarget-def.c (parse_argument): New function.
12206 (def_target_insn): Use it. Handle optional operands. Raise an
12207 error if an .md pattern has the wrong number of operands for the
12208 pattern name. Remove the names of unused operands from the prototype.
12209 * builtins.c (expand_builtin_apply): Use targetm functions
12210 instead of HAVE_call_value and GEN_CALL_VALUE.
12211 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
12212 and sibcall_value_pop.
12213 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12214 of GEN_CALL.
12215 * config/alpha/alpha.md (untyped_call): Likewise.
12216 * config/iq2000/iq2000.md (untyped_call): Likewise.
12217 * config/m68k/m68k.md (untyped_call): Likewise.
12218 * config/mips/mips.md (untyped_call): Likewise.
12219 * config/pa/pa.md (untyped_call): Likewise.
12220 * config/rs6000/rs6000.md (untyped_call): Likewise.
12221 * config/sparc/sparc.md (untyped_call): Likewise.
12222 * config/tilegx/tilegx.md (untyped_call): Likewise.
12223 * config/tilepro/tilepro.md (untyped_call): Likewise.
12224 * config/visium/visium.md (untyped_call): Likewise.
12225 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12226 gen_call_value instead of GEN_CALL_VALUE.
12227 * config/arm/arm.md (untyped_call): Likewise.
12228 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12229 GEN_CALL.
12230
12231 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12232
12233 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12234 (have_cbranchcc4): New variable.
12235 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12236 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12237 (if_convert): Initialize have_cbranchcc4.
12238
12239 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12240
12241 * builtins.c (expand_cmpstrn): Rename to...
12242 (expand_cmpstrn_or_cmpmem): ...this.
12243 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12244 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12245 Remove mode argument.
12246 (expand_builtin): Update accordingly.
12247
12248 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12249
12250 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12251 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
12252 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12253 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12254 Add predicates for operands 0 and 3.
12255 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12256 operand.
12257 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12258 immediate_operand to nonmemory_operand.
12259
12260 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12261
12262 * df-scan.c (df_insn_info_init_fields): New function, split out
12263 from...
12264 (df_insn_create_insn_record): ...here.
12265 (df_insn_info_free_fields): New function, split out from...
12266 (df_insn_info_delete): ...here.
12267 (df_insn_rescan): Use the new functions instead of freeing and
12268 reallocating the df_insn_info.
12269
12270 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12271
12272 * doc/install.texi (Binaries): Remove links no longer valid.
12273
12274 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12275
12276 * config/nvptx/mkoffload.c (process): Replace
12277 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12278
12279 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
12280
12281 PR target/67329
12282 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12283
12284 2015-08-24 Renlin Li <renlin.li@arm.com>
12285
12286 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12287 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12288 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12289 * config/arm/constraints.md ("j"): Add check for high code.
12290
12291 2015-08-24 Tom de Vries <tom@codesourcery.com>
12292
12293 PR tree-optimization/65468
12294 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12295 chunk_size is one.
12296
12297 2015-08-24 Nathan Sidwell <nathan@acm.org>
12298
12299 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12300 change to nvptx_type_from_mode call. Use arg_promotion for both
12301 split and non-split args.
12302
12303 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12304
12305 * target-insns.def (movstr): New pattern.
12306 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12307 (expand_movstr): Use targetm rather than HAVE_movstr/
12308 CODE_FOR_movstr.
12309
12310 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12311
12312 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12313 cast syntax.
12314
12315 2015-08-24 Andrew Pinski <apinski@cavium.com>
12316
12317 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12318 AARCH64_EXTRA_TUNING_OPTION.
12319 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12320 New enum.
12321 (aarch64_extra_tuning_flags): Base the shifted value on the index
12322 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12323 * config/aarch64/aarch64.c: Remove the last argument to
12324 AARCH64_EXTRA_TUNING_OPTION.
12325
12326 2015-08-23 Nathan Sidwell <nathan@acm.org>
12327
12328 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12329 decls.
12330 (nvptx_declare_function_name): Insert formatting tabs for
12331 consistency.
12332
12333 2015-08-23 Tom de Vries <tom@codesourcery.com>
12334
12335 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12336 parm_decl, rather than generating a dummy default def in cfun.
12337 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12338 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12339 (move_stmt_op): Handle PARM_DECl.
12340 (gather_ssa_name_hash_map_from): New function.
12341 (move_sese_region_to_fn): Add default defs for function params, and add
12342 them to vars_map. Release copied ssa names.
12343 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12344
12345 2015-08-23 Tom de Vries <tom@codesourcery.com>
12346
12347 * doc/sourcebuild.texi: Rename vect_no_int_max with
12348 vect_no_int_min_max. Update description.
12349
12350 2015-08-22 Andrew Pinski <apinski@cavium.com>
12351
12352 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12353 * config/aarch64/aarch64-protos.h
12354 (aarch64_fusion_pairs_index): New enum.
12355 (aarch64_fusion_pairs): Base the shifted value on the index instead
12356 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12357 of the argument to AARCH64_FUSION_PAIR.
12358 * config/aarch64/aarch64.c: Remove the last argument to
12359 AARCH64_FUSION_PAIR.
12360
12361 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12362
12363 * dominance.c (new_zero_array): Define.
12364 (dom_info): Redefine as class with proper encapsulation.
12365 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12366 Add new members.
12367 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12368 allocations/deallocations. Pass function as parameter (instead of
12369 using cfun).
12370 (dom_info::get_idom): Define accessor method.
12371 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12372 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12373 (calculate_dominance_info): Adjust to use dom_info class.
12374 (verify_dominators): Likewise.
12375
12376 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12377
12378 * print-rtl.c (print_rtx): Check the correct range for
12379 flag_dump_unnumbered_links to behave as documented.
12380
12381 PR rtl-optimization/67227
12382 PR rtl-optimization/64164
12383 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12384 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12385 identical gimple_reg exprs.
12386
12387 2015-08-21 Nathan Sidwell <nathan@acm.org>
12388
12389 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12390 expansion.
12391 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12392 crtl->stack_alignment_needed to determine alignment.
12393 (nvptx_get_drap_rtx): New.
12394 (TARGET_GET_DRAP_RTX): Override.
12395 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12396
12397 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12398
12399 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12400
12401 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12402
12403 * configure.ac: Remove uwin* cases.
12404 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12405 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12406 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12407 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12408 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12409 i[34567]86-*-uwin*, powerpc-*-beos*.
12410
12411 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12412
12413 * gencodes.c (gencodes): Print the comma for the preceding
12414 enum value rather than the current one. Use aliased enum values
12415 rather than #defines for compiled-out patterns.
12416 (main): Update accordingly. Replace LAST_INSN_CODE with
12417 NUM_INSN_CODES.
12418 * lra.c (insn_code_data): Update accordingly.
12419 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12420 * recog.h (target_recog): Likewise.
12421 (preprocess_insn_constraints): Change parameter to unsigned int.
12422 * recog.c (preprocess_insn_constraints): Likewise.
12423 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12424 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12425
12426 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12427
12428 PR rtl-optimization/61657
12429 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12430 unsigned. Remove superflous uint64_t cast.
12431
12432 2014-08-21 Felix Yang <felix.yang@huawei.com>
12433 Jiji Jiang <jiangjiji@huawei.com>
12434
12435 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12436 argument and get builtin function code directly from CALL.
12437 (gimple_stringop_fixed_value): Modified accordingly.
12438 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12439 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12440
12441 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12442
12443 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12444
12445 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12446
12447 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12448 to match.pd.
12449 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12450 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12451 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12452 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12453 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12454 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12455 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12456 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12457 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12458 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12459
12460 * match.pd (SIN ) : New Operator.
12461 (TAN) : New Operator.
12462 (mult (SQRT@1 @0) @1) : New simplifier.
12463 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12464 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12465 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12466 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12467 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12468 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12469 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12470 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12471 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12472 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12473
12474 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12475
12476 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12477 loop if EXPR is simplified to const value.
12478
12479 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12480
12481 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12482 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12483
12484 2015-08-21 Richard Biener <rguenther@suse.de>
12485
12486 PR middle-end/67285
12487 * gimple-fold.c (replace_stmt_with_simplification): Assert
12488 seq is empty when replacing a call with itself but different
12489 arguments.
12490 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12491 a call require that it is const.
12492
12493 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12494
12495 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12496 * builtins.c (get_object_alignment_2): Adjust.
12497 * varasm.c (align_variable): Likewise.
12498 (get_variable_align): Likewise.
12499 (build_constant_desc): Likewise.
12500 (force_const_mem): Likewise.
12501 * doc/tm.texi.in: Likewise.
12502 * doc/tm.texi: Regenerate.
12503
12504 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12505
12506 * genconfig.c (main): Always define HAVE_cc0.
12507 * recog.c (rest_of_handle_peephole2): Adjust.
12508
12509 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12510
12511 * reorg.c (relax_delay_slots): Don't use #if to check value of
12512 HAVE_cc0.
12513
12514 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12515
12516 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12517 * targhooks.c (default_have_conditional_execution): Adjust.
12518
12519 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12520
12521 * rtl.h (rtvec_all_equal_p): Declare.
12522 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12523 * rtl.c (rtvec_all_equal_p): New function.
12524 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12525 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12526 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12527 * config/arm/arm.c (neon_vdup_constant): Likewise.
12528 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12529 * config/tilegx/constraints.md (W, Y): Likewise.
12530 * config/tilepro/constraints.md (W, Y): Likewise.
12531 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12532 (classify_immediate): Use unwrap_const_vec_duplicate.
12533 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12534 (reg_or_v2s8bit_operand): Likewise.
12535 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12536 (reg_or_v4s8bit_operand): Likewise.
12537
12538 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12539
12540 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12541 (vec_shasigma_be): New #define.
12542 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12543 (VPMSUMH): Likewise.
12544 (VPMSUMW): Likewise.
12545 (VPMSUMD): Likewise.
12546 (VPMSUM): New BU_P8V_OVERLOAD_2.
12547 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12548 entries for VEC_MADD and VEC_VPMSUM.
12549
12550 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
12551
12552 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12553 Multiply argument avr_n_flash by 64 to match unit of "KiB".
12554 (avr_pgm_check_var_decl): Same.
12555
12556 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
12557
12558 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12559 initialization of HFmode scalar type (float16_t) to...
12560 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12561 code.
12562
12563 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12564
12565 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12566 having an -mfp16-format.
12567
12568 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12569
12570 * config/i386/predicates.md (vector_all_ones_operand): Use
12571 CONSTM1_RTX to simplify definition.
12572
12573 2015-08-20 Richard Biener <rguenther@suse.de>
12574
12575 * toplev.c (compile_file): Remove loop calling late_global_decl
12576 on all symbols.
12577 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12578 on decls we assembled.
12579
12580 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
12581
12582 * common/config/aarch64/aarch64-common.c
12583 (AARCH64_CPU_NAME_LENGTH): Delete.
12584 (aarch64_option_extension): New.
12585 (all_extensions): Likewise.
12586 (processor_name_to_arch): Likewise.
12587 (arch_to_arch_name): Likewise.
12588 (all_cores): New.
12589 (all_architectures): Likewise.
12590 (aarch64_get_extension_string_for_isa_flags): Likewise.
12591 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12592 architecture names.
12593 * config/aarch64/aarch64-protos.h
12594 (aarch64_get_extension_string_for_isa_flags): New.
12595 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12596 (aarch64_option_print): Get the string to print from
12597 aarch64_get_extension_string_for_isa_flags.
12598 (aarch64_declare_function_name): Likewise.
12599 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12600 (MCPU_TO_MARCH_SPEC): This.
12601 (ASM_CPU_SPEC): Use it.
12602 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12603 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12604 (EXTRA_SPEC_FUNCTIONS): Use it.
12605
12606 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
12607
12608 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12609 expansion when !ISA_HAS_LWL_LWR.
12610 (mips_block_move_straight): Update the size of elements copied to
12611 account for alignment when !ISA_HAS_LWL_LWR.
12612 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12613
12614 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12615
12616 * expr.c (expand_expr_real_2): Check gimple statement during
12617 LSHIFT_EXPR expand.
12618
12619 2015-08-19 Magnus Granberg <zorry@gentoo.org>
12620
12621 * common.opt (fstack-protector): Initialize to -1.
12622 (fstack-protector-all): Likewise.
12623 (fstack-protector-strong): Likewise.
12624 (fstack-protector-explicit): Likewise.
12625 * configure.ac: Add --enable-default-ssp.
12626 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
12627 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12628 -1.
12629 * doc/install.texi: Document --enable-default-ssp.
12630 * config.in: Regenerated.
12631 * configure: Likewise.
12632
12633 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
12634
12635 PR rtl-optimization/64164
12636 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12637 (parm_in_stack_slot_p): ... this. Disregard mode, what
12638 matters is whether the parm will live in a pseudo or a stack
12639 slot.
12640 (expand_one_ssa_partition): Deal with params without a default
12641 def. Disregard mode.
12642 * cfgexpand.h: Renamed function declaration.
12643 * tree-ssa-coalesce.c: Adjust.
12644 * function.c (split_complex_args): Allocate stack slot for
12645 unassigned parms before splitting.
12646 (parm_in_unassigned_mem_p): New. Use it instead of
12647 parm_maybe_byref_p throughout this file.
12648 (assign_parm_setup_block): Use it. Accept pseudos in the
12649 expand-assigned rtl.
12650 (assign_parm_setup_reg): Drop BLKmode requirement.
12651 (assign_parm_setup_stack): Allocate and fill in the address of
12652 unassigned MEM parms.
12653
12654 2015-08-19 David Sherwood <david.sherwood@arm.com>
12655
12656 * genmodes.c (emit_mode_unit_size_inline): New function.
12657 (emit_mode_unit_precision_inline): New function.
12658 (emit_insn_modes_h): Emit new #define. Emit new functions.
12659 (emit_mode_unit_size): New function.
12660 (emit_mode_unit_precision): New function.
12661 (emit_mode_adjustments): Add mode_unit_size adjustments.
12662 (emit_insn_modes_c): Emit new arrays.
12663 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12664 use new inline methods.
12665
12666 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12667
12668 * config/aarch64/aarch64.c (bit_count): Delete prototype
12669 and definition.
12670 (aarch64_print_operand): Use popcount_hwi instead of the above.
12671
12672 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12673
12674 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12675 comment.
12676
12677 2015-08-19 Marek Polacek <polacek@redhat.com>
12678
12679 PR middle-end/67133
12680 * gimple-ssa-isolate-paths.c
12681 (insert_trap_and_remove_trailing_statements): Rename to ...
12682 (insert_trap): ... this. Don't remove trailing statements; split
12683 block instead.
12684 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12685
12686 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
12687
12688 PR other/67042
12689 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12690 conditionalize the whole on __GNUC__. Add fallback code
12691 depending neither on undefined nor implementation-defined behaviour.
12692
12693 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12694
12695 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12696 whitespaces with tab.
12697
12698 2015-08-19 Florian Weimer <fweimer@redhat.com>
12699
12700 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12701 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12702 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12703 Move Name_Ids instantiation to the Prj.Proc package, to avoid
12704 trampolines.
12705
12706 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12707
12708 * config/arm/arm.c (bounds_check): Use %wd print format
12709 for HOST_WIDE_INT arguments.
12710
12711 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
12712
12713 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12714 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12715 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12716 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12717 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12718 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12719 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12720 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12721 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12722 typedefs.
12723
12724 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
12725
12726 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12727 function.c, graphite-scop-detection.c, haifa-sched.c,
12728 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12729 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12730 varasm.c: Remove typedefs of structs.
12731
12732 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12733
12734 * config/rs6000/altivec.h (vec_adde): New define.
12735 (vec_addec): Likewise.
12736 (vec_double): Likewise.
12737 (vec_bperm): Likewise.
12738 (vec_gb): Likewise.
12739 * config/rs6000/rs6000-builtin.def (ADDE): New
12740 BU_ALTIVEC_OVERLOAD_3.
12741 (ADDEC): Likewise.
12742 (DOUBLE): New BU_VSX_OVERLOAD_1.
12743 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12744 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12745 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12746 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12747 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12748 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12749 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12750 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12751 and P8V_BUILTIN_VEC_VBPERMQ.
12752
12753 2015-08-18 Jason Merrill <jason@redhat.com>
12754
12755 * print-tree.c (print_node): Handle TREE_BINFO.
12756
12757 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12758
12759 PR middle-end/36757
12760 * builtins.c (expand_builtin_signbit): Add asserts to make sure
12761 we can expand BUILT_IN_SIGNBIT inline.
12762 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12763 * doc/extend.texi: Document the type-generic __builtin_signbit.
12764
12765 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
12766
12767 PR rtl-optimization/67218
12768 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12769 (simplify_unary_operation_1): Use it.
12770
12771 2015-08-18 Marek Polacek <polacek@redhat.com>
12772
12773 PR middle-end/67222
12774 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12775 if the call isn't valid.
12776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12777 gimple_call_builtin_p.
12778 (call_may_clobber_ref_p_1): Likewise.
12779 (stmt_kills_ref_p): Likewise.
12780
12781 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
12782
12783 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12784 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12785 (mips_hard_regno_scratch_ok): Likewise.
12786 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12787 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12788
12789 2015-08-18 Bin Cheng <bin.cheng@arm.com>
12790
12791 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12792 (determine_value_range): Call refine_value_range_using_guard for
12793 each loop initial condition to improve value range.
12794
12795 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
12796
12797 * config/i386/i386.c: Remove include of fibheap.h.
12798
12799 2015-08-17 Richard Biener <rguenther@suse.de>
12800
12801 PR tree-optimization/67221
12802 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12803 (sccvn_dom_walker::before_dom_children): Mark backedges of
12804 non-executable blocks as not executable.
12805
12806 2015-08-17 David Sherwood <david.sherwood@arm.com>
12807
12808 * config/arm/arm.c (neon_element_bits): Replace call to
12809 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12810 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12811 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12812 (neon_vdup_lane<mode>): Likewise.
12813 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12814 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12815 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12816 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12817 * config/spu/spu.c (arith_immediate_p): Likewise.
12818 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12819 * expr.c (expand_expr_real_2): Likewise.
12820 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12821 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12822 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12823 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12824 New variable.
12825 * fold-const.c (fold_binary_loc): Replace call to
12826 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12827 GET_MODE_UNIT_PRECISION (m).
12828
12829 2015-08-17 Mike Stump <mikestump@comcast.net>
12830
12831 * config/arm/arm.c (arm_block_move_unaligned_straight):
12832 Emit normal move instead of unaligned load when source or destination
12833 are appropriately aligned.
12834
12835 2015-08-17 Richard Biener <rguenther@suse.de>
12836 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12837
12838 PR middle-end/16107
12839 * match.pd (div (coss (op @0) : New simplifier.
12840
12841 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
12842
12843 PR rtl-optimization/64164
12844 PR bootstrap/66978
12845 PR middle-end/66983
12846 PR rtl-optimization/67000
12847 PR middle-end/67034
12848 PR middle-end/67035
12849 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12850 * tree-ssa-copyrename.c: Removed.
12851 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12852 -ftree-coalesce-vars.
12853 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12854 * common.opt (ftree-copyrename): Ignore.
12855 (ftree-coalesce-inlined-vars): Likewise.
12856 * doc/invoke.texi: Remove the ignored options above.
12857 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12858 * tree-ssa-coalesce.h: ... here.
12859 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12860 headers required by it.
12861 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12862 across variables when flag_tree_coalesce_vars. Check register
12863 use and promoted modes to allow coalescing. Do not coalesce
12864 maybe-byref parms with SSA_NAMEs of other variables, or
12865 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
12866 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12867 with its member functions to tree-ssa-coalesce.c.
12868 (var_map_base_init): Likewise. Renamed to
12869 compute_samebase_partition_bases.
12870 (partition_view_normal): Drop want_bases parameter.
12871 (partition_view_bitmap): Likewise.
12872 * tree-ssa-live.h: Adjust declarations.
12873 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12874 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12875 default defs at the entry point.
12876 (dump_part_var_map): New.
12877 (compute_optimized_partition_bases): New, called by...
12878 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12879 of compute_samebase_partition_bases. Adjust.
12880 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12881 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12882 (ssa_default_def_partition): New.
12883 (get_rtl_for_parm_ssa_default_def): New.
12884 (align_local_variable, add_stack_var): Support anonymous SSA
12885 names.
12886 (defer_stack_allocation): Likewise. Declare earlier.
12887 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12888 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12889 Do no record deferred-allocation marker in
12890 SA.partition_to_pseudo.
12891 (expand_stack_vars): Adjust check for the marker in it.
12892 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12893 redundant MEM attr setting.
12894 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12895 from...
12896 (expand_one_stack_var): ... this. New wrapper to check and
12897 skip already expanded SSA partitions.
12898 (record_alignment_for_reg_var): New, factored out of...
12899 (expand_one_var): ... this.
12900 (expand_one_ssa_partition): New.
12901 (adjust_one_expanded_partition_var): New.
12902 (expand_one_register_var): Check and skip already expanded SSA
12903 partitions.
12904 (expand_used_vars): Don't create DECLs for anonymous SSA
12905 names. Expand all SSA partitions, then adjust all SSA names.
12906 (pass::execute): Replace the loops that set
12907 SA.partition_to_pseudo from partition leaders and cleared
12908 DECL_RTL for multi-location variables, and that which used to
12909 rename vars and set attrs, with one that clears DECL_RTL and
12910 checks that PARMs and RESULTs default_defs match DECL_RTL.
12911 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12912 * emit-rtl.c: Include stor-layout.h.
12913 (set_reg_attrs_for_parm): Handle NULL decl.
12914 (set_reg_attrs_for_decl_rtl): Take mode from expression if
12915 it's not a DECL.
12916 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12917 rather than its possibly-NULL DECL.
12918 * explow.c (promote_ssa_mode): New.
12919 * explow.h (promote_ssa_mode): Declare.
12920 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12921 (read_complex_part): Export.
12922 * expr.h (read_complex_part): Declare.
12923 * cfgexpand.h (parm_maybe_byref_p): Declare.
12924 * function.c: Include cfgexpand.h.
12925 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12926 (use_register_for_parm_decl): Wrapper for the above to
12927 special-case the result_ptr.
12928 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12929 (split_complex_args): Take assign_parm_data_all argument.
12930 Pass it to rtl_for_parm. Set up rtl and context for split
12931 args. Reset complex parm before fetching its default decl
12932 rtl.
12933 (assign_parms_unsplit_complex): Use the default-def complex
12934 parm rtl if it matches the components.
12935 (assign_parms_augmented_arg_list): Adjust.
12936 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12937 multiple locations. Recognize split complex args.
12938 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12939 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12940 (assign_parm_setup_block): Prefer SSA-assigned location, and
12941 fill in its address if the memory location of a maybe-byref
12942 parm was not assigned by cfgexpand.
12943 (assign_parm_setup_reg): Likewise. Adjust its mode as
12944 needed. Use entry_parm for equiv if stack_parm is NULL. Make
12945 sure passed_pointer parms don't need conversion. Copy address
12946 or value as needed.
12947 (assign_parm_setup_stack): Prefer SSA-assigned location.
12948 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12949 rtl before testing for pointer bounds. Special-case result_ptr.
12950 (expand_function_start): Maybe reset DECL_RTL of result.
12951 Prefer SSA-assigned location for result and static chain.
12952 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
12953 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
12954 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12955 anonymous SSA names. Use promote_ssa_mode.
12956 (get_temp_reg): Likewise.
12957 (remove_ssa_form): Adjust.
12958 * stor-layout.c (layout_decl): Don't set mem attributes of
12959 non-MEMs.
12960 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12961 and get its reg_usage for reg invalidation.
12962 (compute_bb_dataflow): Pass it insn.
12963 (emit_notes_in_bb): Likewise.
12964
12965 2015-08-14 Marek Polacek <polacek@redhat.com>
12966
12967 * tree-core.h (tree_base): Fix typo.
12968
12969 2015-08-14 Marek Polacek <polacek@redhat.com>
12970
12971 PR middle-end/67133
12972 * gimple.c (infer_nonnull_range_by_attribute): Check that the
12973 nonnull argument position is not outside function arguments.
12974
12975 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
12976
12977 PR target/67143
12978 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12979 'lconst_atomic' with 'const_atomic'.
12980 (atomic_fetch_<optab><mode>): Likewise.
12981 (atomic_<optab>_fetch<mode>): Likewise.
12982 * config/aarch64/iterators.md (lconst-atomic): Move below
12983 'const_atomic'.
12984 (const_atomic): New.
12985
12986 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
12987 Bernd Schmidt <bernds@codesourcery.com>
12988
12989 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12990 debug options.
12991 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12992 (DWARF2_DEBUGGING_INFO): Don't define.
12993 * debug.h (dwarf2_lineno_debug_hooks): Declare.
12994 * toplev.c (process_options): Add a case for it.
12995 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12996 (dwarf2out_init): Skip most initializations if
12997 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12998 case.
12999 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13000 DWARF2_LINENO_DEBUGGING_INFO.
13001 * opts.c (set_debug_level): Likewise.
13002
13003 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
13004
13005 * config/arm/types.md (is_neon_type): Add missing types.
13006
13007 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13008
13009 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13010 for skylake.
13011 * config/i386/i386.c (PTA_SKYLAKE): New macros.
13012 (processor_alias_table): Add skylake description.
13013 (enum processor_model): Add skylake processor.
13014 (arch_names_table): Add skylake record.
13015 * doc/invoke.texi: Add skylake item.
13016
13017 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
13018
13019 * ira-int.h: Include recog.h.
13020 * ira-build.c: Don't include recog.h.
13021 * ira-color.c: Likewise.
13022 * ira-conflicts.c: Likewise.
13023 * ira-costs.c: Likewise.
13024 * ira-emit.c: Likewise.
13025 * ira-lives.c: Likewise.
13026 * ira.c: Likewise.
13027 * sched-deps.c: Likewise.
13028 * sel-sched.c: Likewise.
13029 * target-globals.c: Likewise.
13030
13031 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
13032
13033 PR bootstrap/55035
13034 * reload1.c (elimination_costs_in_insn): Make it obvious to the
13035 compiler that the n_dups and n_operands loop bounds are invariant.
13036
13037 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13038
13039 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13040 expressions in A and B.
13041
13042 2015-08-13 Richard Biener <rguenther@suse.de>
13043
13044 * tree.c (nonnull_arg_p): Move from ...
13045 * tree-vrp.c (nonnull_arg_p): ... here.
13046 * tree.h (nonnull_arg_p): Declare.
13047 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13048 here, register ptr != 0 for nonnull_arg_p pointer arguments.
13049 Properly initialize static chain and by-reference result pointer.
13050 (run_scc_vn): Adjust.
13051
13052 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13053
13054 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13055 TUNE_I6400.
13056
13057 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13058
13059 * config/aarch64/aarch64-protos.h
13060 (aarch64_gen_atomic_cas): Declare.
13061 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13062 Choose appropriate instruction pattern for the target.
13063 (aarch64_gen_atomic_cas): New.
13064 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13065 (atomic_compare_and_swap<mode>_1): Rename to
13066 aarch64_compare_and_swap<mode>. Fix some indentation.
13067 (aarch64_compare_and_swap<mode>_lse): New.
13068 (aarch64_atomic_cas<mode>): New.
13069
13070 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13071
13072 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13073 (TARGET_LSE): New.
13074
13075 2015-08-13 Richard Biener <rguenther@suse.de>
13076
13077 PR tree-optimization/67191
13078 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13079 assert we value-numbered last stmts operand because it can validly
13080 trigger for unreachable code.
13081
13082 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13083
13084 PR rtl-optimization/67103
13085 * ifcvt.c (noce_try_store_flag_constants): Move
13086 x = (-(test != 0) & (b - a)) + a transformation to...
13087 (noce_try_cmove): ... Here. Try it if normal conditional
13088 move fails.
13089
13090 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13091
13092 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13093 pseudo-processors.
13094 * config/mips/mips.md (processor): Remove w32 and w64.
13095
13096 2015-08-13 Richard Biener <rguenther@suse.de>
13097
13098 PR tree-optimization/66502
13099 PR tree-optimization/67167
13100 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13101 backedge arguments.
13102 (vn_phi_lookup): Adjust.
13103 (vn_phi_insert): Likewise.
13104 (visit_phi): Prefer to value-number to another PHI node
13105 over value-numbering to a PHI argument.
13106 (init_scc_vn): Mark DFS back edges.
13107
13108 2015-08-13 Richard Biener <rguenther@suse.de>
13109
13110 * gimple.h (gcall::code_): New constant static member.
13111 (gcond::code_): Likewise.
13112 * gimple.c (gcall::code_): Define.
13113 (gcond::code_): Likewise.
13114 (is_a_helper <const gcond *>): Add.
13115 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13116 and forward to a new gcall overload with less checking and a
13117 cheaper way to access the operand.
13118 (gimple_call_lhs_ptr): Likewise.
13119 (gimple_call_set_lhs): Likewise.
13120 (gimple_call_internal_p): Likewise.
13121 (gimple_call_with_bounds_p): Likewise.
13122 (gimple_call_set_with_bounds): Likewise.
13123 (gimple_call_internal_fn): Likewise.
13124 (gimple_call_set_ctrl_altering): Likewise.
13125 (gimple_call_ctrl_altering_p): Likewise.
13126 (gimple_call_fntype): Likewise.
13127 (gimple_call_fn): Likewise.
13128 (gimple_call_fn_ptr): Likewise.
13129 (gimple_call_set_fndecl): Likewise.
13130 (gimple_call_fndecl): Likewise.
13131 (gimple_call_chain): Likewise.
13132 (gimple_call_num_args): Likewise.
13133 (gimple_call_arg): Likewise.
13134 (gimple_call_arg_ptr): Likewise.
13135 (gimple_call_set_arg): Likewise.
13136 (gimple_call_noreturn_p): Likewise.
13137 (gimple_cond_code): Likewise.
13138 (gimple_cond_lhs): Likewise.
13139 (gimple_cond_rhs): Likewise.
13140 (gimple_has_lhs): Reduce checking.
13141
13142 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13143
13144 PR middle-end/25529
13145 * match.pd (div (mult @0 @1) @1) : New simplifier.
13146
13147 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13148
13149 PR target/67071
13150 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13151 predicate to allow construction of vector constants using the
13152 VSLDOI vector shift instruction.
13153
13154 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13155 declaration.
13156
13157 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13158 the number of bytes to be shifted left and filled in with either
13159 all zero or all one bits.
13160 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13161 methods exist.
13162 (output_vec_const_move): On power8, generate XXLORC to generate
13163 a vector constant with all 1's. Do a split if we need to use a
13164 VSLDOI instruction.
13165
13166 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13167 properly test for the MSB.
13168
13169 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13170 vector constants that can be created with VSLDOI.
13171
13172 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13173
13174 revert:
13175 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13176 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13177 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13178 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13179 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13180 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13181 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13182 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13183 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13184
13185 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
13186
13187 * config/xtensa/constraints.md (define_constraint "Y"): New
13188 constraint.
13189 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13190 * config/xtensa/linux.h (ASM_SPEC): Likewise.
13191 * config/xtensa/predicates.md (move_operand): Match constants
13192 and symbols in the presence of TARGET_AUTO_LITPOOLS.
13193 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13194 immediate references to TLS data.
13195 (xtensa_emit_move_sequence): Don't force constants to memory in
13196 the presence of TARGET_AUTO_LITPOOLS.
13197 (print_operand): Add 'y' format, same as default, but capable of
13198 printing SF mode constants as well.
13199 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13200 (movsf_internal): Add movi pattern that loads literal.
13201 (movsf, movdf): Don't force constants to memory in the presence
13202 of TARGET_AUTO_LITPOOLS.
13203 (movdf_internal): Add 'Y' constraint.
13204 * config/xtensa/xtensa.opt (mauto-litpools): New option.
13205 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13206
13207 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13208
13209 * config/arm/arm-fpus.def: Replace booleans with feature flags.
13210 Update comment.
13211 * config/arm/arm.c (ARM_FPU): Update macro.
13212 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13213 (TARGET_FP16): Likewise.
13214 (TARGET_CRYPTO): Likewise.
13215 (TARGET_NEON): Likewise.
13216 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
13217 field features.
13218
13219 2015-08-12 Tom de Vries <tom@codesourcery.com>
13220
13221 PR other/67092
13222 PR other/67098
13223 * doc/install.texi: Remove --with_host_libstdcxx item. Update
13224 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13225 accordingly. Mention default for --with-stage1-ldflags.
13226
13227 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13228
13229 * config/arm/arm.h (arm_fpu_feature_set): New.
13230 (ARM_FPU_FSET_HAS): New.
13231 (FPU_FL_NONE): New.
13232 (FPU_FL_NEON): New.
13233 (FPU_FL_FP16): New.
13234 (FPU_FL_CRYPTO): New.
13235
13236 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13237
13238 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13239 after -mcmodel=large -fPIC sorry.
13240
13241 2015-08-12 Richard Biener <rguenther@suse.de>
13242
13243 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13244 comparison operand order and commutative ternary op operand order.
13245 (sccvn_dom_walker::cond_stack): New state to track temporary
13246 expressions.
13247 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13248 no longer valid.
13249 (sccvn_dom_walker::record_cond): Add a single temporary conditional
13250 expression.
13251 (sccvn_dom_walker::record_conds): Add a temporary conditional
13252 expressions and all related expressions also true/false.
13253 (sccvn_dom_walker::before_dom_children): Record temporary
13254 expressions based on the controlling condition of a single
13255 predecessor. When trying to simplify a conditional statement
13256 lookup expressions we might have inserted earlier.
13257
13258 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
13259
13260 PR target/67127
13261 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13262 to ARM core registers.
13263
13264 2015-08-12 Nathan Sidwell <nathan@acm.org>
13265
13266 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13267 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13268
13269 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
13270
13271 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13272 line with comments.
13273 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13274
13275 2015-08-12 Richard Biener <rguenther@suse.de>
13276
13277 * gimple.h (remove_pointer): New trait.
13278 (GIMPLE_CHECK2): New inline template function.
13279 (gassign::code_): New constant static member.
13280 (is_a_helper<const gassign *>): Add.
13281 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13282 and forward to a new gassign overload with less checking and a
13283 cheaper way to access the operand.
13284 (gimple_assign_lhs_ptr): Likewise.
13285 (gimple_assign_set_lhs): Likewise.
13286 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13287 Likewise.
13288 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13289 Likewise.
13290 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13291 Likewise.
13292 (gimple_assign_rhs_code): Likewise.
13293 * gimple.c (gassign::code_): Define.
13294
13295 2015-08-12 Richard Biener <rguenther@suse.de>
13296
13297 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13298 Eliminate edges marked as not executable by SCCVN.
13299 * tree-ssa-sccvn.c: Include gimple-iterator.h.
13300 (cond_dom_walker): Rename to sccvn_dom_walker.
13301 (sccvn_dom_walker::before_dom_children): Value-number defs
13302 of all stmts.
13303 (run_scc_vn): Remove loop value-numbering all SSA names.
13304 Drop not visited SSA names to varying.
13305
13306 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13307
13308 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13309 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13310 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13311 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13312 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13313 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13314 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13315 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13316 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13317
13318 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13319
13320 PR target/66954
13321 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13322 to enum feature_priority and feature_list.
13323 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13324 and isa_names_table.
13325
13326 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13327
13328 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13329 vect_induction_def.
13330
13331 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13332
13333 PR c/66098
13334 PR c/66711
13335 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13336 account when deciding what was the command-line status.
13337
13338 2015-08-11 Nathan Sidwell <nathan@acm.org>
13339
13340 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13341
13342 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13343 we're not the only contributor to target phi.
13344
13345 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13346
13347 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13348 FIXED_REG0.
13349
13350 2015-08-11 Tom de Vries <tom@codesourcery.com>
13351
13352 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13353
13354 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13355
13356 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13357 with CPU_SLM.
13358 * config/i386/i386.md (cpu): Remove knl.
13359
13360 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13361
13362 PR libgomp/65742
13363 PR middle-end/66332
13364 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13365 open-coded sequence.
13366 * omp-low.c (oacc_process_reduction_data): Remove handline of
13367 GOMP_DEVICE_HOST_NONSHM.
13368
13369 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13370 GET_MODE_INNER changes.
13371
13372 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13373 Ilya Verbin <ilya.verbin@intel.com>
13374
13375 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13376
13377 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13378
13379 * doc/options.texi (EnabledBy): Document that the argument must be
13380 a Common option.
13381 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13382 Not enabled by -Wall.
13383 * optc-gen.awk: Give nicer error messages. Detect if the argument
13384 of EnabledBy is not a Common option.
13385 * common.opt (Wnull-dereference): Not enabled by -Wall.
13386 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13387
13388 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13389
13390 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13391 model == 0x4f as Broadwell.
13392
13393 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13394
13395 PR rtl-optimization/67028
13396 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13397 Add test to see if a const_int fits in the new mode.
13398
13399 2015-08-07 DJ Delorie <dj@redhat.com>
13400
13401 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13402
13403 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13404
13405 PR rtl-optimization/67029
13406 * ira-color.c: Include "recog.h" before including "ira-int.h".
13407 * target-globals.c: Likewise.
13408 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13409 adds an alternative_mask argument and use it instead of
13410 preferred_alternatives.
13411 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13412 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13413 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13414 (sched_analyze_insn): Update call to
13415 ira_implicitly_set_insn_hard_regs.
13416 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13417 (implicit_clobber_conflict_p): Update call to
13418 ira_implicitly_set_insn_hard_regs.
13419
13420 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13421
13422 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13423
13424 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13425
13426 PR target/67002
13427 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13428 currently_expanding_to_rtl is set.
13429
13430 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13431
13432 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13433 * configure: Regenerate.
13434
13435 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13436 Jiong Wang <jiong.wang@arm.com>
13437
13438 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13439 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13440 (REG_CLASS_NAMES): Likewise.
13441 (REG_CLASS_CONTENTS): Likewise.
13442 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13443 (aarch64_register_move_cost): Likewise.
13444 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13445 possible.
13446 * config/aarch64/constraints.md (Uc0): New constraint.
13447
13448 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13449
13450 * config/aarch64/constraints.md (Usf): Add the test of
13451 aarch64_is_noplt_call_p.
13452
13453 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13454
13455 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13456 declaration.
13457 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13458 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13459 (call_symbol): Likewise.
13460
13461 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13462
13463 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13464 for vectorizing multiplication patterns.
13465 * tree-vectorizer.h: Adjust the number of patterns.
13466
13467 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13468
13469 * config/i386/sse.md (*vec_concatv2df): Declare added
13470 alternatives as sselog type.
13471
13472 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13473
13474 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13475 all GPRs.
13476
13477 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13478
13479 * config/s390/s390.c (s390_expand_tbegin): Expand either
13480 tbegin_1_z13 or tbegin_1 depending on VX flag.
13481 * config/s390/s390.md ("tbegin_1_z13"): New expander.
13482
13483 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13484
13485 * config/s390/s390.opt: Clarify description for -mzvector
13486 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13487 -mzvector.
13488
13489 2015-08-06 Richard Biener <rguenther@suse.de>
13490
13491 * gimple.h (gimple_call_set_fn): Access op member directly.
13492 (gimple_call_chain_ptr): Likewise.
13493 (gimple_call_set_chain): Likewise.
13494 (gimple_cond_lhs_ptr): Likewise.
13495 (gimple_cond_set_lhs): Likewise.
13496 (gimple_cond_rhs_ptr): Likewise.
13497 (gimple_cond_set_rhs): Likewise.
13498 (gimple_cond_true_label): Likewise.
13499 (gimple_cond_set_true_label): Likewise.
13500 (gimple_cond_set_false_label): Likewise.
13501 (gimple_cond_false_label): Likewise.
13502 (gimple_label_label): Likewise.
13503 (gimple_label_set_label): Likewise.
13504 (gimple_goto_set_dest): Likewise.
13505 (gimple_asm_input_op): Likewise.
13506 (gimple_asm_input_op_ptr): Likewise.
13507 (gimple_asm_set_input_op): Likewise.
13508 (gimple_asm_output_op): Likewise.
13509 (gimple_asm_output_op_ptr): Likewise.
13510 (gimple_asm_set_output_op): Likewise.
13511 (gimple_asm_clobber_op): Likewise.
13512 (gimple_asm_set_clobber_op): Likewise.
13513 (gimple_asm_label_op): Likewise.
13514 (gimple_asm_set_label_op): Likewise.
13515 (gimple_switch_index): Likewise.
13516 (gimple_switch_index_ptr): Likewise.
13517 (gimple_return_retval_ptr): Likewise.
13518 (gimple_return_retval): Likewise.
13519 (gimple_return_set_retval): Likewise.
13520 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
13521 (gimple_switch_label): Likewise.
13522 (gimple_switch_set_label): Likewise.
13523
13524 2015-08-06 Richard Biener <rguenther@suse.de>
13525
13526 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13527 bool comparison canonicalization and restrict to integers.
13528
13529 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
13530
13531 * coretypes.h (enum symbol_visibility): Relocate here.
13532 * flag-types.h (enum symbol_visibility): Remove.
13533 * tree-core.h (enum symbol_visibility): Remove.
13534
13535 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
13536
13537 PR target/66870
13538 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13539 for no_split_stack function attribute along with
13540 flag_split_stack.
13541 (rs6000_expand_split_stack_prologue): Likewise.
13542
13543 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
13544 Jeff Law <law@redhat.com>
13545
13546 PR c/16351
13547 * doc/invoke.texi (Wnull-dereference): New.
13548 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13549 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13550 Warn for potential NULL dereferences.
13551 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13552 * ubsan.c (instrument_nonnull_arg): Call
13553 infer_nonnull_range_by_attribute.
13554 (instrument_nonnull_return): Likewise.
13555 * common.opt (Wnull-dereference); New.
13556 * gimple.c (infer_nonnull_range): Remove bool arguments.
13557 (infer_nonnull_range_by_dereference): New.
13558 (infer_nonnull_range_by_attribute): New.
13559 * gimple.h: Update declarations.
13560
13561 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13562
13563 * gensupport.c (sequence_num): Replace with...
13564 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13565 ...these new variables.
13566 (init_rtx_reader_args_cb): Update accordingly.
13567 (get_num_code_insns): Likewise.
13568 (read_md_rtx): Rework to use a while loop and get_c_test.
13569 Use the new counters. Remove redundant DEFINE_SUBST case.
13570 * genoutput.c (gen_split): Delete.
13571 (main): Don't call it.
13572
13573 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13574
13575 * gensupport.h (get_c_test): Declare.
13576 * gensupport.c (get_c_test): New function.
13577 * genconditions.c (main): Use it.
13578 * genrecog.c (validate_pattern): Likewise.
13579 (match_pattern_1): Likewise. Remove c_test argument.
13580 (match_pattern): Update accordingly and remove c_test argument.
13581 (main): Update accordingly.
13582
13583 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13584
13585 * gensupport.h (get_num_insn_codes): Declare.
13586 * gensupport.c (get_num_insn_codes): New function.
13587 * genattrtab.c (optimize_attrs): Rename max_insn_code to
13588 num_insn_codes.
13589 (main): Likewise. Use get_num_insn_codes.
13590 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13591
13592 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13593
13594 PR middle-end/66311
13595 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13596 is zero- rather than sign-extended.
13597
13598 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13599
13600 * target-insns.def (can_extend): Delete.
13601
13602 2015-08-05 Richard Biener <rguenther@suse.de>
13603
13604 PR tree-optimization/67121
13605 * tree-if-conv.c (combine_blocks): Clear range-info produced
13606 by stmts no longer executed conditionally.
13607
13608 2015-08-05 Nick Clifton <nickc@redhat.com>
13609
13610 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13611 to allow identical far pointers to remain.
13612
13613 2015-08-05 Richard Biener <rguenther@suse.de>
13614
13615 PR middle-end/67120
13616 * match.pd: Compare address bases with == if they are decls
13617 or SSA names, not operand_equal_p. Otherwise fail.
13618
13619 2015-08-05 Richard Biener <rguenther@suse.de>
13620
13621 PR tree-optimization/67055
13622 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13623 NULL gimple_block.
13624
13625 * g++.dg/torture/pr67055.C: New testcase.
13626
13627 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13628
13629 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13630 noavx512vl.
13631 (define_attr "enabled"): Handle avx521vl and noavx512vl.
13632 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13633 AVX-512 alternative out of SSE.
13634 (define_insn "*vec_concatv2df"): Ditto.
13635
13636 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13637
13638 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13639 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13640 CODE_FOR_avx_ptestv4di.
13641 * config/i386/sse.md (define_mode_iterator V_AVX): New.
13642 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13643 (define_insn "avx_ptest256"): Merge this ...
13644 (define_insn "sse4_1_ptest"): And this ...
13645 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13646
13647 2015-08-05 Richard Biener <rguenther@suse.de>
13648
13649 PR tree-optimization/67109
13650 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13651 against too big groups. Print whether this is a load or store
13652 group. Rename from ...
13653 (vect_analyze_group_access): ... this which is now a wrapper
13654 dissolving an invalid group.
13655 (vect_analyze_data_ref_accesses): Print whether this is a load
13656 or store group.
13657
13658 2015-08-05 Richard Biener <rguenther@suse.de>
13659
13660 PR middle-end/67107
13661 * match.pd: Guard const_binop result checking against NULL_TREE
13662 result.
13663
13664 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
13665
13666 * cse.c (cse_insn): Restoring old behaviour for src_eqv
13667 when dest and value in the REG_EQUAL are same and dest
13668 is STRICT_LOW_PART.
13669
13670 2015-08-04 Anatoly Sokolov <aesok@post.ru>
13671
13672 * config/moxie/moxie.h (PRINT_OPERAND,
13673 PRINT_OPERAND_ADDRESS): Remove macros.
13674 * config/moxie/moxie-protos.h (moxie_print_operand,
13675 moxie_print_operand_address): Remove declaration.
13676 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13677 TARGET_PRINT_OPERAND_ADDRESS): Define.
13678 (moxie_print_operand, moxie_print_operand_address): Make static.
13679
13680 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
13681
13682 PR target/66731
13683 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13684 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13685
13686 2015-08-04 Richard Biener <rguenther@suse.de>
13687
13688 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13689 generated code.
13690 (dt_operand::gen_gimple_expr): Adjust.
13691
13692 2015-08-04 Richard Biener <rguenther@suse.de>
13693
13694 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13695 bool compares on RHS.
13696 * match.pd: Add X ==/!= !X is false/true pattern.
13697
13698 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
13699
13700 * config/aarch64/aarch64.c: Change inner loop statement cost
13701 to be consistent with other targets.
13702
13703 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
13704
13705 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13706 targets.
13707
13708 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
13709
13710 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13711 (machine_function): Remove pseudos field.
13712
13713 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13714
13715 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13716 Exit early and use target_option_current_node if processing current
13717 pragma.
13718
13719 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13720
13721 * doc/extend.texi (AArch64 Function Attributes): New node.
13722 (AArch64 Pragmas): Likewise.
13723
13724 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13725
13726 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13727 Initialize simd builtins if TARGET_SIMD.
13728 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13729 Make sure that the builtins are initialized only once no matter how
13730 many times the function is called.
13731 (aarch64_init_builtins): Unconditionally initialize crc builtins.
13732 (aarch64_relayout_simd_param): New function.
13733 (aarch64_simd_expand_args): Use above during argument expansion.
13734 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13735 simd builtins if TARGET_SIMD.
13736 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13737 prototype.
13738 (aarch64_relayout_simd_types): Likewise.
13739
13740 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13741
13742 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13743 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13744 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13745 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13746 static keyword.
13747 (aarch64_reset_previous_fndecl): New function.
13748 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13749 the string.
13750 * config/aarch64/aarch64-c.c: New file.
13751 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13752 Push and pop options at beginning and end. Remove ifdef
13753 __ARM_FEATURE_CRC32.
13754 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13755 Add pragma +nothing+simd and +nothing+crypto where appropriate.
13756 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13757 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13758 Define prototype.
13759 (aarch64_register_pragmas): Likewise.
13760 (aarch64_reset_previous_fndecl): Likewise.
13761 (aarch64_process_target_attr): Likewise.
13762 (aarch64_override_options_internal): Likewise.
13763
13764 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13765
13766 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13767 New function.
13768 (aarch64_can_inline_p): Likewise.
13769 (TARGET_CAN_INLINE_P): Define.
13770
13771 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13772
13773 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13774 Remove static. Handle OPT_mgeneral_regs_only,
13775 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13776 OPT_momit_leaf_frame_pointer.
13777 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13778 (aarch64_attr_opt_type): New enum.
13779 (aarch64_attribute_info): New struct.
13780 (aarch64_handle_attr_arch): New function.
13781 (aarch64_handle_attr_cpu): Likewise.
13782 (aarch64_handle_attr_tune): Likewise.
13783 (aarch64_handle_attr_isa_flags): Likewise.
13784 (aarch64_attributes): New table.
13785 (aarch64_process_one_target_attr): New function.
13786 (num_occurences_in_str): Likewise.
13787 (aarch64_process_target_attr): Likewise.
13788 (aarch64_option_valid_attribute_p): Likewise.
13789 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13790 * config/aarch64/aarch64-protos.h: Include input.h
13791 (aarch64_handle_option): Declare prototype.
13792
13793 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13794
13795 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13796 * config/aarch64/aarch64.c: Include target-globals.h
13797 (aarch64_previous_fndecl): New variable.
13798 (aarch64_set_current_function): New function.
13799 (TARGET_SET_CURRENT_FUNCTION): Define.
13800
13801 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13802
13803 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13804 (explicit_arch): Likewise.
13805 (x_aarch64_isa_flags): Likewise.
13806 (mgeneral-regs-only): Mark as Save.
13807 (mfix-cortex-a53-835769): Likewise.
13808 (mcmodel=): Likewise.
13809 (mstrict-align): Likewise.
13810 (momit-leaf-frame-pointer): Likewise.
13811 (mtls-dialect): Likewise.
13812 (master=): Likewise.
13813 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13814 (aarch64_isa_flags): Remove extern declaration.
13815 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13816 to indicate success or failure.
13817 (aarch64_validate_march): Likewise.
13818 (aarch64_validate_mtune): Likewise.
13819 (aarch64_isa_flags): Delete.
13820 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13821 instead of aarch64_isa_flags.
13822 (aarch64_get_tune_cpu): New function.
13823 (aarch64_get_arch): Likewise.
13824 (aarch64_override_options): Use above and set up explicit_tune_core
13825 and explicit_arch.
13826 (aarch64_print_extension): Move earlier in file. Add isa_flags
13827 argument and use that instead of the global aarch64_isa_flags.
13828 (aarch64_option_save): New function.
13829 (aarch64_option_restore): Likewise.
13830 (aarch64_option_print): Likewise.
13831 (aarch64_declare_function_name): Likewise.
13832 (aarch64_start_file): Delete.
13833 (TARGET_ASM_FILE_START): Do not define.
13834 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13835 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13836 Declare prototype.
13837
13838 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13839
13840 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13841 flag_omit_leaf_frame_pointer to 2.
13842
13843 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13844
13845 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13846 define to 0 or 1.
13847 (TARGET_FIX_ERR_A53_835769): New macro.
13848 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13849 handling of opts->x_aarch64_fix_a53_err835769.
13850 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13851 than aarch64_fix_a53_err835769.
13852 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13853 * config/aarch64/aarch64-linux.h: Likewise.
13854
13855 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
13856
13857 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13858 ix86_expand_int_movcc as boolean.
13859
13860 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13861
13862 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13863 (aarch64_cpu_string): Likewise.
13864 (aarch64_tune_string): Likewise.
13865 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13866 (aarch64_parse_extension): Return aarch64_parse_opt_result.
13867 Add extra argument to put result into.
13868 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
13869 (aarch64_parse_cpu): Add arguments to put results into. Return
13870 aarch64_parse_opt_result.
13871 (aarch64_parse_tune): Likewise.
13872 (aarch64_override_options_after_change_1): New function.
13873 (aarch64_override_options_internal): New function.
13874 (aarch64_validate_mcpu): Likewise.
13875 (aarch64_validate_march): Likewise.
13876 (aarch64_validate_mtune): Likewise.
13877 (aarch64_override_options): Update to reflect above changes.
13878 Move some logic into aarch64_override_options_internal.
13879 Initialize target_option_default_node and target_option_current_node.
13880 (aarch64_override_options_after_change): Move logic into
13881 aarch64_override_options_after_change_1 and call it with global_options.
13882 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13883 flag values from that.
13884
13885 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13886
13887 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13888 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13889 * config/aarch64/aarch64.c (struct processor): Add arch field.
13890 (all_architectures): Handle above, move above all_cores.
13891 (all_cores): Handle above.
13892 (aarch64_parse_arch): Handle above changes.
13893 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13894 above. Update comments.
13895 (armv8.1-a): Likewise.
13896 * config/aarch64/aarch64-cores.def: Update according to above.
13897 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13898 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13899 aarch64_arch_driver_info.
13900
13901 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13902
13903 * config/aarch64/aarch64.c (struct processor): Add ident field.
13904 Rename core sched_core.
13905 (all_cores): Handle above changes.
13906 (all_architectures): Likewise.
13907 (aarch64_parse_arch): Likewise.
13908 (aarch64_override_options): Likewise.
13909
13910 2015-08-04 Richard Biener <rguenther@suse.de>
13911
13912 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13913 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13914 comparisons embedded in [VEC_]COND_EXPRs.
13915
13916 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
13917
13918 * tree-if-conv.c: Fix various typos in comments.
13919 * tree-vect-stmts.c: Likewise.
13920
13921 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13922
13923 PR tree-optimization/67043
13924 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13925 preheader after hoisting invariant in it.
13926 (find_defs): Force recomputation of all luids.
13927
13928 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
13929
13930 * config/rs6000/htm.md (tabort.): Restrict the source operand to
13931 using a base register.
13932
13933 2015-08-03 David Malcolm <dmalcolm@redhat.com>
13934
13935 * main.c (main): Pass in NULL for toplev's external_timer.
13936 * timevar.c: Include coretypes.h.
13937 (class timer::named_items): New.
13938 (timer::named_items::named_items): New.
13939 (timer::named_items::~named_items): New.
13940 (timer::named_items::push): New.
13941 (timer::named_items::pop): New.
13942 (timer::named_items::print): New.
13943 (timer::timer): Initialize field "m_jit_client_items".
13944 (timer::~timer): New.
13945 (timer::push): Move bulk of implementation to...
13946 (timer::push_internal): ...here. New function.
13947 (timer::pop): Move bulk of implementation to...
13948 (timer::pop_internal): ...here. New function.
13949 (timer::push_client_item): New.
13950 (timer::pop_client_item): New.
13951 (timer::print_row): New function, taken from timer::print.
13952 (timer::print): Print "GCC items" header if we also have client
13953 items. Move row-printing to timer::print_row. Print any client
13954 items.
13955 (timer::get_topmost_item_name): New method.
13956 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13957 (TV_JIT_CLIENT_CODE): New.
13958 * timevar.h (timer::push_client_item): New declaration.
13959 (timer::pop_client_item): New declaration.
13960 (timer::get_topmost_item_name): New method.
13961 (timer::push_internal): New declaration.
13962 (timer::pop_internal): New declaration.
13963 (timer::print_row): New declaration.
13964 (timer::named_items): New declaration.
13965 (timer::m_jit_client_items): New field.
13966 (timer): Add friend class named_items.
13967 (auto_timevar::auto_timevar): Add timer param.
13968 (auto_timevar::~auto_timevar): Use field "m_timer".
13969 (auto_timevar::m_timer): New field.
13970 * toplev.c (initialize_rtl): Add g_timer as param when
13971 constructing auto_timevar instance.
13972 (toplev::toplev): Add "external_timer" param, and use it to
13973 initialize the "g_timer" global if non-NULL.
13974 (toplev::~toplev): If this created "g_timer", delete it.
13975 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13976 with "external_timer" timer *.
13977
13978 2015-08-03 Alexander Basov <coohpt@gmail.com>
13979
13980 PR middle-end/64744
13981 PR middle-end/48470
13982 PR middle-end/43404
13983 * cfgexpand.c (expand_one_var): Add check if stack is going to
13984 be used in naked function.
13985 * expr.c (expand_expr_addr_expr_1): Remove excess checking
13986 whether expression should not reside in MEM.
13987 * function.c (use_register_for_decl): Do not use registers for
13988 non-register things (volatile, float, BLKMode) in naked functions.
13989
13990 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
13991
13992 PR target/67060
13993 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13994 Adjust splits to match new pattern.
13995
13996 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13997
13998 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13999 (VEC_M): Likewise.
14000 (VEC_N): Likewise.
14001 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14002 point in VSX registers.
14003
14004 * config/rs6000/constraints.md (wb constraint): Document unused
14005 w<x> constraint.
14006 (we constraint): Likewise.
14007 (wo constraint): Likewise.
14008 (wp constraint): New constraint for IEEE 128-bit floating point in
14009 VSX registers.
14010 (wq constraint): Likewise.
14011
14012 * config/rs6000/predicates.md (easy_fp_constant): Add support for
14013 IEEE 128-bit floating point in VSX registers.
14014 (easy_scalar_constant): Likewise.
14015
14016 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14017 constraints (wp, wq) for IEEE 128-bit floating point in VSX
14018 registers.
14019 (rs6000_init_hard_regno_mode_ok): Likewise.
14020
14021 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14022 floating point in VSX registers.
14023 (VSX_L): Likewise.
14024 (VSX_M): Likewise.
14025 (VSX_M2): Likewise.
14026 (VSm): Likewise.
14027 (VSs): Likewise.
14028 (VSr): Likewise.
14029 (VSa): Likewise.
14030 (VSv): Likewise.
14031 (vsx_le_permute_<mode>): Add support to properly swap bytes for
14032 IEEE 128-bit floating point in VSX registers on little endian.
14033 (vsx_le_undo_permute_<mode>): Likewise.
14034 (vsx_le_perm_load_<mode>): Likewise.
14035 (vsx_le_perm_store_<mode>): Likewise.
14036 (splitters for IEEE 128-bit fp moves): Likewise.
14037
14038 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14039 wq constraints.
14040
14041 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14042 floating point in VSX registers.
14043 (VM2): Likewise.
14044
14045 * doc/md.text (Machine Constraints): Document wp and wq
14046 constraints on PowerPC.
14047
14048 2015-08-03 Jeff Law <law@redhat.com>
14049
14050 PR middle-end/66314
14051 PR gcov-profile/66899
14052 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14053 iterate over the jump threading paths when an element in the
14054 jump threading paths array is eliminated.
14055
14056 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
14057
14058 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14059
14060 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
14061
14062 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14063 is_use_properly_guarded the variable def_preds. Free its
14064 contents before returning.
14065 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14066 (is_use_properly_guarded): Replace local variable def_preds with
14067 a parameter. Adjust accordingly. Only update *def_preds if it's
14068 the empty vector.
14069
14070 2015-08-03 Richard Biener <rguenther@suse.de>
14071
14072 * genmatch.c (simplify::for_subst_vec): New member.
14073 (binary_ok): New helper for for lowering.
14074 (lower_for): Delay substituting operators into result expressions
14075 if we can merge the results eventually again.
14076 (capture_info::walk_result): Adjust for user_id appearing as
14077 result expression operator.
14078 (expr::gen_transform): Likewise.
14079 (dt_simplify::gen_1): Likewise.
14080 (dt_simplify::gen): Pass not substituted operators to tail
14081 functions or initialize local variable with it.
14082 (decision_tree::gen): Adjust function signature.
14083 * match.pd: Fix tests against global code and add default
14084 cases to switch stmts.
14085
14086 2015-08-03 Richard Biener <rguenther@suse.de>
14087
14088 * genmatch.c (dt_simplify::gen): Create captures array
14089 with an initializer.
14090
14091 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14092
14093 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14094 the host compiler is affected by placement new aliasing bug.
14095 * configure: Regenerate.
14096 * Makefile.in (ALIASING_FLAGS): New variable.
14097 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14098
14099 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14100
14101 PR target/66731
14102 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14103 (negmulsf3_vfp): Likewise.
14104 (muldf3negdf_vfp): Disable for -frounding-math.
14105 (mulsf3negsf_vfp): Likewise.
14106 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14107 fix MULT cost with -frounding-math.
14108
14109 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14110
14111 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14112 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14113 explicit. Prefer to add the flag whenever possible.
14114 (noce_process_if_block): Try noce_try_store_flag_constants before
14115 noce_try_cmove.
14116
14117 2015-08-03 Richard Biener <rguenther@suse.de>
14118
14119 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14120 New hash-map to record equivalent transforms.
14121 (dt_node::analyze): Populate the equivalent transforms hash-map.
14122 (dt_simplify::info): Add reference to hash-map entry.
14123 (dt_simplify::gen): If we have split out a function for the
14124 transform, generate a call to it.
14125 (sinfo_hashmap_traits::hash): New function.
14126 (compare_op): New helper function for ...
14127 (sinfo_hashmap_traits::equal_keys): ... this new function.
14128 (decision_tree::gen): Split out common equivalent transforms
14129 into functions.
14130
14131 2015-08-03 Richard Biener <rguenther@suse.de>
14132
14133 * gimple-fold.c (fold_gimple_assign): Remove folding of
14134 the comparison in COND_EXPRs.
14135
14136 2015-08-03 Richard Biener <rguenther@suse.de>
14137
14138 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14139 on the rhs of assignments first simplify the embedded
14140 GENERIC condition.
14141
14142 2015-08-03 Richard Biener <rguenther@suse.de>
14143
14144 PR tree-optimization/66917
14145 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14146 field.
14147 (DR_VECT_AUX): New macro.
14148 (set_dr_misalignment): Adjust.
14149 (dr_misalignment): Likewise.
14150 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14151 Compute whether the base is at least element aligned.
14152 * tree-vect-stmts.c (ensure_base_align): Adjust.
14153 (vectorizable_store): If the base is not element aligned
14154 preserve alignment of the original access if misalignment is unknown.
14155 (vectorizable_load): Likewise.
14156
14157 2015-08-02 Martin Sebor <msebor@redhat.com>
14158
14159 * c-family/c.opt (-Wframe-address): New warning option.
14160 * doc/invoke.texi (Wframe-address): Document it.
14161 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14162 Clarify possible effects of calling the functions with non-zero
14163 arguments and mention -Wframe-address.
14164 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14165
14166 2015-08-01 Michael Collison <michael.collison@linaro.org
14167 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14168
14169 * config/arm/arm.md (*arm_smin_cmp): New pattern.
14170 (*arm_umin_cmp): Likewise.
14171
14172 2015-08-01 Caroline Tice <cmtice@google.com>
14173
14174 PR 66521
14175 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14176 global variables.
14177 (vtbl_find_mangled_name): New function.
14178 (vtbl_register_mangled_name): New function.
14179 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
14180 mangled name in mangled name vectors.
14181 (find_or_create_vtbl_map_node): Ditto.
14182 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
14183 update recursion_depth on function entry; pass it to every recursive
14184 call; automatically exit if depth > 25 (give up looking at that point).
14185 (verify_bb_vtables): Initialize recursion_depth and pass it to
14186 var_is_used_for_virtual_call_p.
14187 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14188 global variable decls.
14189 (vtbl_register_mangled_name): New extern function decl.
14190
14191 2015-08-01 Tom de Vries <tom@codesourcery.com>
14192
14193 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14194 function.
14195 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14196 Declare.
14197 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14198 operation_no_trapping_overflow. Allow non-overflow operations.
14199 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14200 operations.
14201
14202 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
14203
14204 PR target/67049
14205 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14206
14207 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14208
14209 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14210 Enable for TARGET_32BIT.
14211 (*if_move_neg): Likewise.
14212
14213 2015-07-31 Nick Clifton <nickc@redhat.com>
14214
14215 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14216 Returns true for __model__.
14217 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14218
14219 2015-07-31 Alan Modra <amodra@gmail.com>
14220
14221 PR target/66870
14222 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14223 (rs6000_emit_prologue): Set it.
14224 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14225
14226 2015-07-31 Richard Biener <rguenther@suse.de>
14227
14228 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14229 -> X == (C1 ^ C2) which is already implemented in match.pd.
14230 Remove redundant dispatching to fold_relational_const.
14231 Move unordered self and NaN compares ...
14232 * match.pd: ... as patterns here. Remove some stray captures
14233 and add a comment.
14234
14235 2015-07-31 Petr Murzin <petr.murzin@intel.com>
14236
14237 * config/i386/i386.c
14238 (bdesc_special_args): Convert mask type from signed to unsigned for
14239 masked builtins.
14240 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14241 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14242 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14243 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14244 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14245 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14246 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14247 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14248 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14249 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14250 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14251 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14252 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14253 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14254 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14255 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14256 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14257 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14258 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14259 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14260 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14261 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14262 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14263 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14264 * config/i386/i386-builtin-types.def
14265 (V16QI_FTYPE_V16SI): Remove.
14266 (V8DF_FTYPE_V8SI): Ditto.
14267 (V8HI_FTYPE_V8DI): Ditto.
14268 (V8SI_FTYPE_V8DI): Ditto.
14269 (V8SF_FTYPE_V8DF): Ditto.
14270 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14271 (V16HI_FTYPE_V16SI): Ditto.
14272 (V16SF_FTYPE_V16HI): Ditto.
14273 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14274 (V16SF_FTYPE_V16SI): Ditto.
14275 (V4DI_FTYPE_V4DI): Ditto.
14276 (V16SI_FTYPE_V16SF): Ditto.
14277 (V16SF_FTYPE_FLOAT): Ditto.
14278 (V8DF_FTYPE_DOUBLE): Ditto.
14279 (V8DI_FTYPE_INT64): Ditto.
14280 (V8DI_FTYPE_V4DI): Ditto.
14281 (V16QI_FTYPE_V8DI): Ditto.
14282 (UINT_FTYPE_V4SF): Ditto.
14283 (UINT64_FTYPE_V4SF): Ditto.
14284 (UINT_FTYPE_V2DF): Ditto.
14285 (UINT64_FTYPE_V2DF): Ditto.
14286 (V16SI_FTYPE_V16SI): Ditto.
14287 (V8DI_FTYPE_V8DI): Ditto.
14288 (V16SI_FTYPE_PV4SI): Ditto.
14289 (V16SF_FTYPE_PV4SF): Ditto.
14290 (V8DI_FTYPE_PV2DI): Ditto.
14291 (V8DF_FTYPE_PV2DF): Ditto.
14292 (V4DI_FTYPE_PV2DI): Ditto.
14293 (V4DF_FTYPE_PV2DF): Ditto.
14294 (V16SI_FTYPE_PV2SI): Ditto.
14295 (V16SF_FTYPE_PV2SF): Ditto.
14296 (V8DI_FTYPE_PV4DI): Ditto.
14297 (V8DF_FTYPE_PV4DF): Ditto.
14298 (V8SF_FTYPE_FLOAT): Ditto.
14299 (V4SF_FTYPE_FLOAT): Ditto.
14300 (V4DF_FTYPE_DOUBLE): Ditto.
14301 (V8SF_FTYPE_PV4SF): Ditto.
14302 (V8SI_FTYPE_PV4SI): Ditto.
14303 (V4SI_FTYPE_PV2SI): Ditto.
14304 (V8SF_FTYPE_PV2SF): Ditto.
14305 (V8SI_FTYPE_PV2SI): Ditto.
14306 (V16SF_FTYPE_PV8SF): Ditto.
14307 (V16SI_FTYPE_PV8SI): Ditto.
14308 (V8DI_FTYPE_V8SF): Ditto.
14309 (V4DI_FTYPE_V4SF): Ditto.
14310 (V2DI_FTYPE_V4SF): Ditto.
14311 (V64QI_FTYPE_QI): Ditto.
14312 (V32HI_FTYPE_HI): Ditto.
14313 (V8UHI_FTYPE_V8UHI): Ditto.
14314 (V16UHI_FTYPE_V16UHI): Ditto.
14315 (V32UHI_FTYPE_V32UHI): Ditto.
14316 (V2UDI_FTYPE_V2UDI): Ditto.
14317 (V4UDI_FTYPE_V4UDI): Ditto.
14318 (V8UDI_FTYPE_V8UDI): Ditto.
14319 (V4USI_FTYPE_V4USI): Ditto.
14320 (V8USI_FTYPE_V8USI): Ditto.
14321 (V16USI_FTYPE_V16USI): Ditto.
14322 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14323 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14324 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14325 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14326 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14327 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14328 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14329 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14330 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14331 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14332 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14333 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14334 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14335 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14336 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14337 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14338 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14339 (V16SI_FTYPE_V16SI_SI): Ditto.
14340 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14341 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14342 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14343 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14344 (QI_FTYPE_QI): Ditto.
14345 (SI_FTYPE_SI): Ditto.
14346 (DI_FTYPE_DI): Ditto.
14347 (QI_FTYPE_QI_QI): Ditto.
14348 (QI_FTYPE_QI_INT): Ditto.
14349 (HI_FTYPE_HI_INT): Ditto.
14350 (SI_FTYPE_SI_INT): Ditto.
14351 (DI_FTYPE_DI_INT): Ditto.
14352 (HI_FTYPE_V16QI_V16QI): Ditto.
14353 (SI_FTYPE_V32QI_V32QI): Ditto.
14354 (DI_FTYPE_V64QI_V64QI): Ditto.
14355 (QI_FTYPE_V8HI_V8HI): Ditto.
14356 (HI_FTYPE_V16HI_V16HI): Ditto.
14357 (SI_FTYPE_V32HI_V32HI): Ditto.
14358 (QI_FTYPE_V4SI_V4SI): Ditto.
14359 (QI_FTYPE_V8SI_V8SI): Ditto.
14360 (QI_FTYPE_V2DI_V2DI): Ditto.
14361 (QI_FTYPE_V4DI_V4DI): Ditto.
14362 (QI_FTYPE_V8DI_V8DI): Ditto.
14363 (HI_FTYPE_V16SI_V16SI): Ditto.
14364 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14365 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14366 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14367 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14368 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14369 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14370 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14371 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14372 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14373 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14374 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14375 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14376 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14377 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14378 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14379 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14380 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14381 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14382 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14383 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14384 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14385 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14386 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14387 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14388 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14389 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14390 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14391 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14392 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14393 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14394 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14395 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14396 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14397 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14398 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14399 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14400 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14401 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14402 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14403 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14404 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14405 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14406 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14407 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14408 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14409 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14410 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14411 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14412 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14413 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14414 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14415 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14416 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14417 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14418 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14419 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14420 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14421 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14422 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14423 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14424 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14425 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14426 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14427 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14428 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14429 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14430 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14431 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14432 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14433 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14434 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14435 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14436 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14437 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14438 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14439 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14440 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14441 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14442 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14443 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14444 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14445 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14446 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14447 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14448 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14449 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14450 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14451 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14452 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14453 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14454 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14455 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14456 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14457 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14458 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14459 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14460 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14461 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14462 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14463 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14464 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14465 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14466 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14467 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14468 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14469 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14470 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14471 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14472 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14473 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14474 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14475 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14476 (HI_FTYPE_HI): Ditto.
14477 (HI_FTYPE_V16QI): Ditto.
14478 (SI_FTYPE_V32QI): Ditto.
14479 (DI_FTYPE_V64QI): Ditto.
14480 (QI_FTYPE_V8HI): Ditto.
14481 (HI_FTYPE_V16HI): Ditto.
14482 (SI_FTYPE_V32HI): Ditto.
14483 (QI_FTYPE_V4SI): Ditto.
14484 (QI_FTYPE_V8SI): Ditto.
14485 (HI_FTYPE_V16SI): Ditto.
14486 (QI_FTYPE_V2DI): Ditto.
14487 (QI_FTYPE_V4DI): Ditto.
14488 (QI_FTYPE_V8DI): Ditto.
14489 (V16QI_FTYPE_HI): Ditto.
14490 (V32QI_FTYPE_SI): Ditto.
14491 (V64QI_FTYPE_DI): Ditto.
14492 (V8HI_FTYPE_QI): Ditto.
14493 (V16HI_FTYPE_HI): Ditto.
14494 (V32HI_FTYPE_SI): Ditto.
14495 (V4SI_FTYPE_QI): Ditto.
14496 (V4SI_FTYPE_HI): Ditto.
14497 (V8SI_FTYPE_QI): Ditto.
14498 (V8SI_FTYPE_HI): Ditto.
14499 (V2DI_FTYPE_QI): Ditto.
14500 (V4DI_FTYPE_QI): Ditto.
14501 (HI_FTYPE_HI_HI): Ditto.
14502 (SI_FTYPE_SI_SI): Ditto.
14503 (DI_FTYPE_DI_DI): Ditto.
14504 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14505 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14506 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14507 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14508 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14509 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14510 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14511 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14512 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14513 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14514 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14515 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14516 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14517 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14518 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14519 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14520 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14521 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14522 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14523 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14524 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14525 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14526 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14527 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14528 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14529 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14530 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14531 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14532 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14533 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14534 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14535 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14536 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14537 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14538 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14539 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14540 (V16SI_FTYPE_HI): Ditto.
14541 (V8DI_FTYPE_QI): Ditto.
14542 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14543 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14544 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14545 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14546 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14547 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14548 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14549 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14550 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14551 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14552 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14553 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14554 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14555 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14556 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14557 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14558 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14559 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14560 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14561 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14562 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14563 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14564 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14565 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14566 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14567 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14568 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14569 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14570 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14571 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14572 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14573 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14574 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14575 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14576 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14577 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14578 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14579 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14580 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14581 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14582 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14583 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14584 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14585 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14586 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14587 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14588 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14589 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14590 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14591 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14592 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14593 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14594 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14595 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14596 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14597 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14598 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14599 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14600 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14601 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14602 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14603 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14604 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14605 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14606 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14607 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14608 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14609 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14610 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14611 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14612 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14613 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14614 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14615 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14616 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14617 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14618 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14619 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14620 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14621 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14622 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14623 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14624 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14625 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14626 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14627 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14628 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14629 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14630 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14631 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14632 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14633 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14634 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14635 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14636 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14637 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14638 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14639 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14640 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14641 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14642 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14643 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14644 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14645 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14646 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14647 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14648 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14649 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14650 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14651 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14652 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14653 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14654 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14655 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14656 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14657 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14658 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14659 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14660 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14661 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14662 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14663 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14664 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14665 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14666 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14667 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14668 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14669 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14670 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14671 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14672 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14673 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14674 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14675 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14676 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14677 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14678 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14679 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14680 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14681 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14682 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14683 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14684 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14685 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14686 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14687 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14688 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14689 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14690 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14691 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14692 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14693 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14694 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14695 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14696 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14697 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14698 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14699 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14700 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14701 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14702 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14703 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14704 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14705 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14706 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14707 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14708 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14709 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14710 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14711 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14712 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14713 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14714 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14715 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14716 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14717 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14718 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14719 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14720 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14721 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14722 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14723 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14724 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14725 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14726 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14727 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14728 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14729 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14730 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14731 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14732 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14733 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14734 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14735 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14736 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14737 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14738 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14739 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14740 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14741 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14742 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14743 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14744 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14745 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14746 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14747 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14748 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14749 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14750 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14751 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14752 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14753 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14754 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14755 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14756 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14757 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14758 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14759 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14760 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14761 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14762 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14763 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14764 (QI_FTYPE_V8DF_INT_QI): Ditto.
14765 (QI_FTYPE_V4DF_INT_QI): Ditto.
14766 (QI_FTYPE_V2DF_INT_QI): Ditto.
14767 (HI_FTYPE_V16SF_INT_HI): Ditto.
14768 (QI_FTYPE_V8SF_INT_QI): Ditto.
14769 (QI_FTYPE_V4SF_INT_QI): Ditto.
14770 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14771
14772 2015-07-31 Richard Biener <rguenther@suse.de>
14773
14774 * gimple-fold.c (fold_gimple_assign): Remove folding of
14775 GIMPLE_BINARY_RHS.
14776
14777 2015-07-31 Tom de Vries <tom@codesourcery.com>
14778
14779 PR tree-optimization/66846
14780 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14781 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14782 (expand_omp_target) [ENABLE_CHECKING]: Same.
14783 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14784 cfun if !LOOPS_NEED_FIXUP.
14785 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
14786 that omp_for already has its own loop struct.
14787 * tree-parloops.c (create_phi_for_local_result)
14788 (create_call_for_reduction): Handle simple latch bb.
14789 (create_parallel_loop): Add simple latch bb to preserve
14790 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
14791 (gen_parallel_loop): Remove call to cancel_loop_tree.
14792 (parallelize_loops): Skip loops that are inner loops of parallelized
14793 loops.
14794 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14795 verify_loop_structure.
14796
14797 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14798
14799 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14800 * config/v850/v850.md (RV_REGNUM): New constants.
14801 * config/v850/v850.c (v850_libcall_value): New functions.
14802 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14803 (TARGET_LIBCALL_VALUE): Define.
14804
14805 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14806
14807 * rtl.h (lowpart_subreg): Move in file.
14808 * loop-iv.c (lowpart_subreg): Move to...
14809 * simplify-rtx.c (lowpart_subreg): ...here.
14810 (simplify_binary_operation_1): Use lowpart_subreg instead of
14811 simplify_gen_subreg.
14812 * expr.c (expand_expr_real_2): Ditto.
14813 * emit-rtl.c (gen_lowpart_common): Ditto.
14814 * combine.c (gen_lowpart_for_combine): Ditto.
14815 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14816 expand_debug_source_expr): Ditto.
14817
14818 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
14819
14820 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14821 (expand_builtin_atomic_clear): Remove support for atomic_clear
14822 pattern.
14823
14824 2015-07-30 Richard Biener <rguenther@suse.de>
14825
14826 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14827 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14828 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
14829 redundant operand canonicalization.
14830
14831 2015-07-30 David Sherwood <david.sherwood@arm.com>
14832
14833 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14834 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14835 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14836 * config/arm/arm.c (neon_valid_immediate): Likewise.
14837 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14838 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14839 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14840 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14841 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14842 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14843 * config/i386/sse.md
14844 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14845 (*ssse3_palignr<mode>_perm): Likewise.
14846 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14847 * config/spu/spu.c (arith_immediate_p): Likewise.
14848 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14849 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14850
14851 2015-07-30 Richard Biener <rguenther@suse.de>
14852
14853 * genmatch.c (decision_tree::gen_gimple): Merge with ...
14854 (decision_tree::gen_generic): ... this into ...
14855 (decision_tree::gen): ... this.
14856 (main): Adjust callers.
14857
14858 2015-07-30 Richard Biener <rguenther@suse.de>
14859
14860 * genmatch.c (verbose): New global.
14861 (warning_at): Add overload with source_location.
14862 (capture_info::capture_info): Add bool whether generating gimple
14863 or generic. Add gimple member.
14864 (capture_info::cinfo): Add capture member.
14865 (capture_info::walk_match): Record capture. Warn on
14866 non-captured leafs.
14867 (capture_info::walk_c_expr): Add more fragments captures cannot
14868 escape through. Warn on escaped captures.
14869 (dt_simplify::gen_1): Warn on operands we force to have no
14870 side-effects.
14871 (main): Initialize verbose.
14872 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14873
14874 2015-07-30 Richard Biener <rguenther@suse.de>
14875
14876 PR middle-end/67053
14877 * match.pd: Allow both operands to independently have conversion
14878 when simplifying compares of addresses.
14879
14880 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14881
14882 PR target/66217
14883 PR target/67045
14884 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14885 around those cases that need one.
14886
14887 2015-07-29 Aditya Kumar <hiraditya@msn.com>
14888
14889 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14890
14891 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
14892
14893 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14894 New. Copied from config/i386/gnu-user.h.
14895 (ASM_COMMENT_START): Likewise.
14896 (DBX_REGISTER_NUMBER): Likewise.
14897
14898 2015-07-29 Richard Biener <rguenther@suse.de>
14899
14900 * gimple-fold.c (fold_gimple_cond): Remove.
14901 (fold_stmt_1): Do not call it.
14902
14903 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
14904
14905 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14906 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14907
14908 * config/aarch64/aarch64-modes.def: Add HFmode.
14909
14910 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14911 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14912
14913 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14914 aarch64_promoted_type): New.
14915
14916 (aarch64_float_const_representable_p): Disable HFmode.
14917 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14918 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14919 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14920
14921 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14922 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14923
14924 * config/aarch64/iterators.md (GPF_F16): New.
14925
14926 2015-07-29 Richard Biener <rguenther@suse.de>
14927
14928 * match.pd: Merge address comparison patterns and make them
14929 handle some more cases.
14930
14931 2015-07-29 Richard Biener <rguenther@suse.de>
14932
14933 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14934 (parser::parse_capture): Add bool argument on whether to reject
14935 unknown captures.
14936 (parser::parse_expr): Adjust.
14937 (parser::parse_op): Likewise.
14938 (parser::parse_pattern): Likewise.
14939
14940 2015-07-29 Richard Biener <rguenther@suse.de>
14941
14942 * gimple-fold.c (has_use_on_stmt): New function.
14943 (replace_stmt_with_simplification): Use it to allow
14944 abnormals originally referenced in the stmt.
14945 (fold_stmt_1): Canonicalize operand order.
14946
14947 2015-07-28 David Sherwood <david.sherwood@arm.com>
14948
14949 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14950 GET_MODE_INNER unconditionally.
14951 * config/spu/spu.c (arith_immediate_p): Likewise.
14952 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14953 * expmed.c (synth_mult): Remove check for VOIDmode result from
14954 GET_MODE_INNER.
14955 (expand_mult_const): Likewise.
14956 * fold-const.c (fold_binary_loc): Replace call to element_precision
14957 with call to GET_MODE_PRECISION.
14958 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14959 m->name.
14960 (emit_mode_inner): Likewise.
14961 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14962 result check.
14963 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14964 (GET_MODE_UNIT_PRECISION): Likewise.
14965 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14966 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14967 * stor-layout.c (bitwise_type_for_mode): Update assert.
14968 (element_precision): Remove.
14969
14970 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14971
14972 * target-insns.def (reload_load_address): New targetm instruction
14973 pattern.
14974 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14975
14976 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14977
14978 * target-insns.def (atomic_test_and_set): New targetm instruction
14979 pattern.
14980 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14981 HAVE_*/gen_* interface.
14982
14983 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14984
14985 * target-insns.def (can_extend, ptr_extend): New targetm instruction
14986 patterns.
14987 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14988 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14989 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14990 * rtlanal.c (nonzero_bits1): Likewise.
14991 (num_sign_bit_copies1): Likewise.
14992
14993 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14994
14995 * target-insns.def (eh_return): New targetm instruction pattern.
14996 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14997 interface.
14998 * function.c (thread_prologue_and_epilogue_insns): Remove
14999 preprocessor condition.
15000
15001 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15002
15003 * target-insns.def (indirect_jump): New targetm instruction pattern.
15004 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15005 interface.
15006
15007 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15008
15009 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15010 instead of nonimmediate_operand. Remove C condiition.
15011
15012 2015-07-28 Richard Biener <rguenther@suse.de>
15013
15014 * match.pd: Add more simplification of address comparisons.
15015
15016 2015-07-28 Richard Biener <rguenther@suse.de>
15017
15018 * match.pd: Re-order two cases in comparison with max/min
15019 value simplification to make it apply for bools.
15020
15021 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15022
15023 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15024 Handle simple SIGN_EXTEND or ZERO_EXTEND.
15025 (aarch64_rtx_costs): Properly strip extend or extract before
15026 passing down to rtx costs again.
15027
15028 2015-07-28 Nick Clifton <nickc@redhat.com>
15029
15030 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15031 Optimizes the case where -mes0 is active and a constant symbolic
15032 address is used.
15033 * config/rl78/rl78-protos.h: Prototype the new function.
15034 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15035
15036 2015-07-28 Tom de Vries <tom@codesourcery.com>
15037
15038 * tree-parloops.c (reduc_stmt_res): New function.
15039 (initialize_reductions, add_field_for_reduction)
15040 (create_phi_for_local_result, create_loads_for_reductions)
15041 (create_stores_for_reduction, build_new_reduction): Handle case that
15042 reduc_stmt is a phi.
15043 (gather_scalar_reductions): Allow double_reduc reductions.
15044
15045 2015-07-28 Richard Biener <rguenther@suse.de>
15046
15047 * fold-const.c (fold_comparison): Remove equality folding
15048 of decl addresses ...
15049 * match.pd: ... here and merge with existing pattern.
15050
15051 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15052
15053 PR tree-optimization/66828
15054 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15055 from int64_t to uint64_t.
15056
15057 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
15058
15059 * opts-common.c (read_cmdline_option): List DriverOnly enum values
15060 as valid only in the error message of the driver, not in the
15061 messages of the language compilers.
15062
15063 2015-07-27 Tom de Vries <tom@codesourcery.com>
15064
15065 * tree-parloops.c (gather_scalar_reductions): Simplify function
15066 structure.
15067
15068 2015-07-27 Marek Polacek <polacek@redhat.com>
15069
15070 * ipa-devirt.c (types_same_for_odr): Fix typo.
15071
15072 2015-07-27 Jason Merrill <jason@redhat.com>
15073
15074 PR debug/66468
15075 * dwarf2out.c (gen_inlined_subroutine_die): Check
15076 cgraph_function_possibly_inlined_p.
15077
15078 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15079
15080 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15081 Place integer variant first.
15082 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15083
15084 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15085
15086 PR/63870
15087 * config/arm/arm-builtins.c (enum arm_builtins):
15088 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15089 (ARM_BUILTIN_NEON_BASE): Rename macro to....
15090 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15091 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15092 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15093
15094 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15095
15096 PR/63870
15097 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15098 Add qualifier_lane_index.
15099 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15100 (arm_getlane_qualifiers): Use qualifier_lane_index.
15101 (arm_lanemac_qualifiers): Rename to...
15102 (arm_mac_n_qualifiers): ...this.
15103 (LANEMAC_QUALIFIERS): Rename to...
15104 (MAC_N_QUALIFIERS): ...this.
15105 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15106 (arm_setlane_qualifiers): Use qualifier_lane_index.
15107 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15108 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15109 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15110 (arm_expand_neon_builtin): Handle qualifier_lane_index.
15111
15112 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15113 * config/arm/arm.c (bounds_check): Likewise, improve error message.
15114 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15115 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15116 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15117 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15118 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15119 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15120 qualifiers to TERNOP_IMM.
15121 (vdup_lane): Change qualifiers to GETLANE.
15122 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15123 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15124 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15125 vqdmlsl_n): Change qualifiers to MAC_N.
15126
15127 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15128 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15129 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15130 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15131 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15132 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15133 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15134 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15135 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15136 Remove call to neon_lane_bounds.
15137
15138 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15139
15140 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15141 Place integer variant first.
15142
15143 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
15144
15145 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15146 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15147 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15148 for armv6kz targets.
15149 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15150 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15151 (FL_FOR_ARCH6ZK): Remove.
15152 (FL_FOR_ARCH6KZ): New.
15153 (arm_arch6zk): New declaration.
15154 * config/arm/arm-tables.opt: Regenerate.
15155 * config/arm/arm.c (arm_arch6kz): New.
15156 (arm_option_override): Set arm_arch6kz.
15157 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15158 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15159 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15160
15161 2015-07-27 Marek Polacek <polacek@redhat.com>
15162
15163 PR c++/66555
15164 PR c/54979
15165 * doc/invoke.texi: Document -Wtautological-compare.
15166
15167 2015-07-27 Richard Biener <rguenther@suse.de>
15168
15169 * genmatch.c (decision_tree::gen_gimple): Split out large
15170 subtrees into separate functions.
15171 (decision_tree::gen_generic): Likewise.
15172
15173 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
15174
15175 * config/alpha/alpha.c: Use SUBREG_P predicate.
15176 * config/alpha/predicates.md: Ditto.
15177
15178 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
15179
15180 * config.host (s390*-*-*): Include driver-native.c only when
15181 building with s390* as host *and* target.
15182
15183 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
15184
15185 PR target/66930
15186 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15187 T bit register modified_between_p check.
15188
15189 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15190
15191 * config/i386/i386.c: Use SUBREG_P predicate.
15192 * config/i386/i386.md: Ditto.
15193 * config/i386/sse.md: Ditto.
15194 * config/i386/predicates.md: Ditto.
15195
15196 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15197
15198 PR target/67004
15199 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15200 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15201
15202 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15203
15204 * Makefile.in: Remove use of TREEBROWSER.
15205 * config.in: Regenerated.
15206 * configure: Regenerated.
15207 * configure.ac: Remove definition of TREEBROWSER.
15208 * tree-browser.c: Removed.
15209 * tree-browser.def: Removed.
15210
15211 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15212
15213 * graphite-scop-detection.c: Include gimple-pretty-print.h.
15214 (stmt_simple_for_scop_p): Print when a stmt is not handled in
15215 Graphite.
15216 (scopdet_basic_block_info): Print when a loop or bb cannot be
15217 represented in Graphite.
15218
15219 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15220
15221 PR target/66648
15222 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15223 execution guard when min_size is less than size_needed.
15224
15225 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15226
15227 * doc/install.texi: Document supported versions of ISL.
15228
15229 2015-07-25 Jeff Law <law@redhat.com>
15230
15231 Revert:
15232 PR lto/66752
15233 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15234 unable to find X NE 0 in the tables, return X as the simplified
15235 condition.
15236 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15237 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15238 to VISISTED_BBS. */
15239 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15240 after removing the control flow statement and unnecessary edges.
15241
15242 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
15243
15244 Revert:
15245 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15246
15247 PR rtl-optimization/64164
15248 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15249 * tree-ssa-copyrename.c: Removed.
15250 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15251 -ftree-coalesce-vars.
15252 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15253 * common.opt (ftree-copyrename): Ignore.
15254 (ftree-coalesce-inlined-vars): Likewise.
15255 * doc/invoke.texi: Remove the ignored options above.
15256 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15257 * tree-ssa-coalesce.h: ... here.
15258 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15259 headers required by it.
15260 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15261 across variables when flag_tree_coalesce_vars. Check register
15262 use and promoted modes to allow coalescing. Moved to
15263 tree-ssa-coalesce.c.
15264 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15265 with its member functions to tree-ssa-coalesce.c.
15266 (var_map_base_init): Likewise. Renamed to
15267 compute_samebase_partition_bases.
15268 (partition_view_normal): Drop want_bases parameter.
15269 (partition_view_bitmap): Likewise.
15270 * tree-ssa-live.h: Adjust declarations.
15271 * tree-ssa-coalesce.c: Include explow.h.
15272 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15273 default defs at the entry point.
15274 (dump_part_var_map): New.
15275 (compute_optimized_partition_bases): New, called by...
15276 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15277 of compute_samebase_partition_bases. Adjust.
15278 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15279 * cfgexpand.c (leader_merge): New.
15280 (get_rtl_for_parm_ssa_default_def): New.
15281 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15282 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15283 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15284 redundant MEM attr setting.
15285 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15286 from...
15287 (expand_one_stack_var): ... this. New wrapper to check and
15288 skip already expanded SSA partitions.
15289 (record_alignment_for_reg_var): New, factored out of...
15290 (expand_one_var): ... this.
15291 (expand_one_ssa_partition): New.
15292 (adjust_one_expanded_partition_var): New.
15293 (expand_one_register_var): Check and skip already expanded SSA
15294 partitions.
15295 (expand_used_vars): Don't create DECLs for anonymous SSA
15296 names. Expand all SSA partitions, then adjust all SSA names.
15297 (pass::execute): Replace the loops that set
15298 SA.partition_to_pseudo from partition leaders and cleared
15299 DECL_RTL for multi-location variables, and that which used to
15300 rename vars and set attrs, with one that clears DECL_RTL and
15301 checks that PARMs and RESULTs default_defs match DECL_RTL.
15302 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15303 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15304 * explow.c (promote_ssa_mode): New.
15305 * explow.h (promote_ssa_mode): Declare.
15306 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15307 * function.c: Include cfgexpand.h.
15308 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15309 (use_register_for_parm_decl): Wrapper for the above to
15310 special-case the result_ptr.
15311 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15312 (split_complex_args): Take assign_parm_data_all argument.
15313 Pass it to rtl_for_parm. Set up rtl and context for split
15314 args.
15315 (assign_parms_augmented_arg_list): Adjust.
15316 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15317 multiple locations. Recognize split complex args.
15318 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15319 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15320 (assign_parm_setup_block): Prefer SSA-assigned location.
15321 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15322 if stack_parm is NULL.
15323 (assign_parm_setup_stack): Prefer SSA-assigned location.
15324 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15325 rtl before testing for pointer bounds. Special-case result_ptr.
15326 (expand_function_start): Maybe reset DECL_RTL of result.
15327 Prefer SSA-assigned location for result and static chain.
15328 Factor out DECL_RESULT and SET_DECL_RTL.
15329 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15330 anonymous SSA names. Use promote_ssa_mode.
15331 (get_temp_reg): Likewise.
15332 (remove_ssa_form): Adjust.
15333 * stor-layout.c (layout_decl): Don't set mem attributes of
15334 non-MEMs.
15335 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15336 and get its reg_usage for reg invalidation.
15337 (compute_bb_dataflow): Pass it insn.
15338 (emit_notes_in_bb): Likewise.
15339
15340 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15341
15342 * config/i386/i386.c (ix86_va_start): Remove
15343 unneeded !TARGET_64BIT check.
15344 (ix86_gimplify_va_arg): Ditto.
15345
15346 2015-07-24 Tom de Vries <tom@codesourcery.com>
15347
15348 * graphite-sese-to-poly.c (build_poly_scop): Always call
15349 rewrite_commutative_reductions_out_of_ssa.
15350
15351 2015-07-24 Tom de Vries <tom@codesourcery.com>
15352
15353 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15354 flag_associative_math to FLOAT_TYPE_P. Honour
15355 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15356
15357 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15358
15359 PR c++/64079
15360 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15361 and "%qD" in warning_at instead of "%q+D" in warning.
15362
15363 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15364
15365 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15366 (ix86_function_abi): Cleanup.
15367
15368 2015-07-24 Michael Darling <darlingm@gmail.com>
15369
15370 PR other/66259
15371 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15372 * configure: Likewise
15373 * configure.ac: Likewise
15374 * doc/install.texi: Likewise
15375 * doc/tm.texi: Likewise
15376 * doc/tm.texi.in: Likewise
15377
15378 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15379
15380 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15381 manually swapping values.
15382 * cse.c (fold_rtx): Likewise.
15383 * lra-eliminations.c (form_sum): Likewise.
15384
15385 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15386
15387 PR target/64003
15388 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15389 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15390 (*jcc_1, *jcc_2, jump, simple_return_internal)
15391 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15392 Set length_nobnd attribute instead of length attribute.
15393 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15394 (length_nobnd): Remove attribute.
15395 (length): Remove length_nobnd processing.
15396
15397 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15398
15399 * gimplify.c (omp_default_clause): New function. Reorganize flow
15400 for clarity. Broken out of ...
15401 (omp_notice_variable): ... here.
15402
15403 2015-07-24 Gary Funck <gary@intrepid.com>
15404
15405 PR middle-end/66984
15406 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15407 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15408
15409 2015-07-24 Tom de Vries <tom@codesourcery.com>
15410
15411 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15412 exit-first loop transform.
15413
15414 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15415
15416 PR 66714
15417 * tree-cfg.c (struct replace_decls_d): New struct.
15418 (replace_block_vars_by_duplicates_1): New function.
15419 (replace_block_vars_by_duplicates): Use it to replace the decls
15420 in the value exprs by duplicates.
15421
15422 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15423
15424 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15425 -shared, -symbolic, -rdynamic.
15426
15427 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15428
15429 PR target/65711
15430 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15431 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15432 %{!static.
15433
15434 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15435
15436 PR ipa/66566
15437 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15438 edge summary is available.
15439
15440 2015-07-24 Richard Biener <rguenther@suse.de>
15441
15442 * genmatch.c (struct dt_node): Add statistic fields.
15443 (dt_node::analyze): New method.
15444 (decision_tree::gen_gimple): Call analyze on the root node
15445 and print statistics to stderr.
15446 (decision_tree::gen_generic): Likewise.
15447
15448 2015-07-24 Richard Biener <rguenther@suse.de>
15449
15450 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15451 against the highest or lowest possible integer ...
15452 * match.pd: ... as patterns here.
15453
15454 2015-07-24 Richard Biener <rguenther@suse.de>
15455
15456 * genmatch.c (struct capture_info): Add same_as field.
15457 (capture_info::capture_info): Initialize same_as.
15458 (capture_info::walk_match): Compute same_as.
15459 (capture_info::walk_result): Compute stuff for the leader.
15460 (capture_info::walk_c_expr): Likewise.
15461 (dt_simplify::gen_1): Only look at leaders when deciding
15462 to force no side-effects or emit side-effects of omitted operands.
15463
15464 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15465
15466 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15467 reg note to the GPR -> FPR save instructions.
15468
15469 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15470
15471 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15472 cheaper.
15473 (s390_expand_insv): Don't generate risbg pattern for constant zero
15474 sources.
15475 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15476 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15477 splitters.
15478
15479 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15480
15481 * config/s390/s390.c (s390_reorg): Clean up handling of processors
15482 with
15483 -mtune=
15484 (s390_issue_rate): Likewise.
15485 (s390_sched_reorder): Likewise.
15486 (s390_sched_variable_issue): Likewise.
15487 (s390_loop_unroll_adjust): Likewise.
15488 (s390_option_override): Likewise.
15489
15490 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15491
15492 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15493 processor capabilities with -march=native.
15494 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15495 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
15496 (S390_TARGET_BITS_STRING): Macro to simplify specs.
15497
15498 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15499
15500 * config/s390/s390.c (s390_issue_rate): Handle
15501 PROCESSOR_2094_Z9_EC.
15502 (s390_option_override): Likewise.
15503 (s390_adjust_priority): Likewise.
15504
15505 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15506
15507 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15508 when cross compiling.
15509
15510 2015-07-24 Richard Biener <rguenther@suse.de>
15511
15512 * fold-const.c (maybe_canonicalize_comparison_1): Move
15513 A code CST canonicalization ...
15514 * match.pd: ... to a pattern here.
15515
15516 2015-07-24 Jiong Wang <jiong.wang@arm.com>
15517
15518 Revert:
15519 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15520 PR target/63521
15521 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15522 (HONOR_REG_ALLOC_ORDER): Define.
15523
15524 2015-07-24 Richard Biener <rguenther@suse.de>
15525
15526 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15527 * fold-const.c (fold_comparison): Move parameter does not
15528 alias &local simplification ...
15529 * match.pd: ... as a pattern here.
15530
15531 2015-07-24 Richard Biener <rguenther@suse.de>
15532
15533 * gimple-fold.c (replace_stmt_with_simplification): Special-case
15534 valueizing call operands.
15535 * gimple-match-head.c (maybe_push_res_to_seq): Take
15536 number of call arguments from ops array.
15537 (do_valueize): New function.
15538 (gimple_simplify): Return true if valueization changed
15539 any operand even if the result didn't simplify further.
15540
15541 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15542
15543 PR middle-end/25530
15544 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15545
15546 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15547
15548 PR middle-end/25529
15549 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15550
15551 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15552
15553 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15554 instruction.
15555
15556 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15557
15558 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15559 clean up.
15560
15561 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
15562
15563 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15564 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
15565 targets here.
15566 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15567 ms_va_list_type_node initialization.
15568
15569 2015-07-23 Jeff Law <law@redhat.com>
15570
15571 PR lto/66752
15572 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15573 unable to find X NE 0 in the tables, return X as the simplified
15574 condition.
15575 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15576 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15577 to VISISTED_BBS. */
15578 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15579 after removing the control flow statement and unnecessary edges.
15580
15581 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15582
15583 * tree-pass.h (get_current_pass_name): Removed.
15584
15585 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15586
15587 PR rtl-optimization/64164
15588 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15589 * tree-ssa-copyrename.c: Removed.
15590 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15591 -ftree-coalesce-vars.
15592 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15593 * common.opt (ftree-copyrename): Ignore.
15594 (ftree-coalesce-inlined-vars): Likewise.
15595 * doc/invoke.texi: Remove the ignored options above.
15596 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15597 * tree-ssa-coalesce.h: ... here.
15598 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15599 headers required by it.
15600 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15601 across variables when flag_tree_coalesce_vars. Check register
15602 use and promoted modes to allow coalescing. Moved to
15603 tree-ssa-coalesce.c.
15604 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15605 with its member functions to tree-ssa-coalesce.c.
15606 (var_map_base_init): Likewise. Renamed to
15607 compute_samebase_partition_bases.
15608 (partition_view_normal): Drop want_bases parameter.
15609 (partition_view_bitmap): Likewise.
15610 * tree-ssa-live.h: Adjust declarations.
15611 * tree-ssa-coalesce.c: Include explow.h.
15612 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15613 default defs at the entry point.
15614 (dump_part_var_map): New.
15615 (compute_optimized_partition_bases): New, called by...
15616 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15617 of compute_samebase_partition_bases. Adjust.
15618 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15619 * cfgexpand.c (leader_merge): New.
15620 (get_rtl_for_parm_ssa_default_def): New.
15621 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15622 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15623 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15624 redundant MEM attr setting.
15625 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15626 from...
15627 (expand_one_stack_var): ... this. New wrapper to check and
15628 skip already expanded SSA partitions.
15629 (record_alignment_for_reg_var): New, factored out of...
15630 (expand_one_var): ... this.
15631 (expand_one_ssa_partition): New.
15632 (adjust_one_expanded_partition_var): New.
15633 (expand_one_register_var): Check and skip already expanded SSA
15634 partitions.
15635 (expand_used_vars): Don't create DECLs for anonymous SSA
15636 names. Expand all SSA partitions, then adjust all SSA names.
15637 (pass::execute): Replace the loops that set
15638 SA.partition_to_pseudo from partition leaders and cleared
15639 DECL_RTL for multi-location variables, and that which used to
15640 rename vars and set attrs, with one that clears DECL_RTL and
15641 checks that PARMs and RESULTs default_defs match DECL_RTL.
15642 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15643 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15644 * explow.c (promote_ssa_mode): New.
15645 * explow.h (promote_ssa_mode): Declare.
15646 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15647 * function.c: Include cfgexpand.h.
15648 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15649 (use_register_for_parm_decl): Wrapper for the above to
15650 special-case the result_ptr.
15651 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15652 (split_complex_args): Take assign_parm_data_all argument.
15653 Pass it to rtl_for_parm. Set up rtl and context for split
15654 args.
15655 (assign_parms_augmented_arg_list): Adjust.
15656 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15657 multiple locations. Recognize split complex args.
15658 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15659 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15660 (assign_parm_setup_block): Prefer SSA-assigned location.
15661 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15662 if stack_parm is NULL.
15663 (assign_parm_setup_stack): Prefer SSA-assigned location.
15664 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15665 rtl before testing for pointer bounds. Special-case result_ptr.
15666 (expand_function_start): Maybe reset DECL_RTL of result.
15667 Prefer SSA-assigned location for result and static chain.
15668 Factor out DECL_RESULT and SET_DECL_RTL.
15669 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15670 anonymous SSA names. Use promote_ssa_mode.
15671 (get_temp_reg): Likewise.
15672 (remove_ssa_form): Adjust.
15673 * stor-layout.c (layout_decl): Don't set mem attributes of
15674 non-MEMs.
15675 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15676 and get its reg_usage for reg invalidation.
15677 (compute_bb_dataflow): Pass it insn.
15678 (emit_notes_in_bb): Likewise.
15679
15680 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15681
15682 PR target/66217
15683 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15684 prototype.
15685 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15686 (rs6000_emit_2insn_and): Handle dot forms.
15687 * config/rs6000/rs6000.md (and<mode>3): Adjust.
15688 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
15689 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15690
15691 2015-07-23 Richard Biener <rguenther@suse.de>
15692
15693 * generic-match-head.c: Include cgraph.h.
15694 * gimple-match-head.c: Likewise.
15695 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15696 SSA names.
15697 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15698 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
15699 pattern.
15700
15701 2015-07-23 Richard Biener <rguenther@suse.de>
15702
15703 * gimple-fold.c (fold_gimple_cond): Do not require folding
15704 results to pass valid_gimple_rhs_p.
15705 * tree-cfg.h (fold_cond_expr_cond): Remove.
15706 * tree-cfg.c (fold_cond_expr_cond): Likewise.
15707 (make_edges): Do not call it.
15708 * tree-inline.c (tree_function_versioning): Likewise.
15709
15710 2015-07-23 Tom de Vries <tom@codesourcery.com>
15711
15712 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15713 vect_force_simple_reduction.
15714 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15715 (vect_is_simple_reduction_1): Add and handle
15716 need_wrapping_integral_overflow parameter.
15717 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15718 need_wrapping_integral_overflow parameter.
15719 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15720 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15721 decl.
15722
15723 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
15724
15725 PR tree-optimization/66926,66951
15726 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15727 INNER_LOOP and fix up condition for renaming virtual operands.
15728
15729 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15730
15731 * combine.c (try_combine): Use std::swap instead of manually
15732 swapping.
15733
15734 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
15735
15736 * config/mips/i6400.md: New file.
15737 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15738 (mips64r6): Likewise.
15739 (i6400): Define.
15740 * config/mips/mips-tables.opt: Regenerate.
15741 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15742 (mips_issue_rate): Add support for i6400.
15743 (mips_multipass_dfa_lookahead): Likewise.
15744 * config/mips/mips.h (TUNE_I6400): Define.
15745 * config/mips/mips.md: Include i6400.md.
15746 (processor): Add i6400.
15747 * doc/invoke.texi (-march=@var{arch}): Add i6400.
15748
15749 2015-07-23 Richard Biener <rguenther@suse.de>
15750
15751 PR middle-end/66916
15752 * match.pd: Guard widen and sign-change comparison simplification
15753 with single_use.
15754
15755 2015-07-23 Richard Biener <rguenther@suse.de>
15756
15757 PR tree-optimization/66945
15758 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15759 ::before_dom_children): Force the propagators idea of
15760 non-executable edges to materialize, not what the folder
15761 chooses.
15762
15763 2015-07-23 Richard Biener <rguenther@suse.de>
15764
15765 * gimple.h (gimple_cond_make_false): Use 0 != 0.
15766 (gimple_cond_make_true): Use 1 != 0.
15767
15768 2015-07-22 DJ Delorie <dj@redhat.com>
15769
15770 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15771 slashes.
15772
15773 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15774 (ashrhi3): Likewise.
15775 (lshrhi3): Likewise.
15776 (movhi): Take advantage of zero-extend to load small constants.
15777 (movpsi): Likewise.
15778 (and<mode>3): Likewise.
15779 (zero_extendqihi2): Likewise.
15780 (zero_extendqisi2): New.
15781 * config/msp430/constraints.md (N,O): New.
15782 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15783
15784 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
15785
15786 PR target/66954
15787 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15788 to enum feature_priority and feature_list.
15789 (fold_builtin_cpu): Add F_AES to enum processor_features
15790 and isa_names_table.
15791
15792 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15793
15794 PR driver/66737
15795 * config/i386/linux-common.h (MPX_SPEC): Use linker option
15796 for 64bit target only.
15797
15798 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
15799
15800 * config/nvptx/nvptx.c: Expand some comments.
15801
15802 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
15803
15804 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15805 (cortex_a53_advsimd): ...This.
15806
15807 2015-07-22 Richard Biener <rguenther@suse.de>
15808
15809 * genmatch.c (expr::gen_transform): Clarify error message
15810 and display location.
15811
15812 2015-07-22 Richard Biener <rguenther@suse.de>
15813
15814 * genmatch.c (struct operand): Add location member.
15815 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15816 constructors.
15817 (struct simplify): Remove match_location and result_location
15818 members.
15819 (elsehwere): Adjust.
15820
15821 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
15822
15823 * config/mips/m5100.md: New file.
15824 * config/mips/mips-cpus.def (m5100, m5101): Define.
15825 * config/mips/mips-tables.opt: Regenerate.
15826 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15827 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15828 -march=m5101 to -mips32r5.
15829 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15830 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15831 !-msoft-float.
15832 * config/mips/mips.md: Include m5100.md.
15833 (processor): Add m5100.
15834 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15835
15836 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
15837
15838 * config/mips/mips-cpus.def (interaptiv): Define.
15839 * config/mips/mips-tables.opt: Regenerate.
15840 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15841 -mips32r2.
15842 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15843 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15844
15845 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15846
15847 PR target/63521
15848 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15849 (HONOR_REG_ALLOC_ORDER): Define.
15850
15851 2015-07-22 Richard Biener <rguenther@suse.de>
15852
15853 PR tree-optimization/66952
15854 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15855 blocks we end up executing unconditionally reset all SSA
15856 info such as range and alignment.
15857 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15858 * tree-ssanames.c (reset_flow_sensitive_info): New function.
15859
15860 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15861
15862 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15863 typo in attribute.
15864
15865 2015-07-22 Richard Biener <rguenther@suse.de>
15866
15867 * genmatch.c (parser::parse_result): Properly handle
15868 match with result operands and conditions.
15869
15870 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15871
15872 PR target/63870
15873 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15874 Add qualifier_struct_load_store_lane_index.
15875 (aarch64_types_loadstruct_lane_qualifiers): Use
15876 qualifier_struct_load_store_lane_index for lane index argument for
15877 last argument.
15878 (aarch64_types_storestruct_lane_qualifiers): Ditto.
15879 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15880 (aarch64_simd_expand_args): Add new argument describing mode of
15881 builtin. Check lane bounds for arguments with
15882 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15883 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15884 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15885 (aarch64_simd_expand_builtin): Handle arguments with
15886 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15887 aarch64_simd_expand_args.
15888 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15889 vst[234]_lane with BUILTIN_VALLDIF.
15890 * config/aarch64/aarch64-simd.md:
15891 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15892 endianness reversal on lane index.
15893 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15894 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15895 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15896 (vec_store_lanesci_lane<mode>): Ditto.
15897 (vec_store_lanesxi_lane<mode>): Ditto.
15898 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15899 reversal of lane index.
15900 (aarch64_ld3_lane<mode>): Ditto.
15901 (aarch64_ld4_lane<mode>): Ditto.
15902 (aarch64_st2_lane<mode>): Ditto.
15903 (aarch64_st3_lane<mode>): Ditto.
15904 (aarch64_st4_lane<mode>): Ditto.
15905 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15906 to qmode. Add new mode parameter. Update uses.
15907 (__LD3_LANE_FUNC): Ditto.
15908 (__LD4_LANE_FUNC): Ditto.
15909 (__ST2_LANE_FUNC): Ditto.
15910 (__ST3_LANE_FUNC): Ditto.
15911 (__ST4_LANE_FUNC): Ditto.
15912
15913 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
15914
15915 * doc/invoke.texi (Language Independent Options): Rename node to
15916 Diagnostic Message Formatting Options.
15917
15918 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
15919
15920 PR ipa/66424.
15921 * lra-remat.c (operand_to_remat): Prevent using insns with input
15922 subregs processed separately by IRA.
15923
15924 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
15925
15926 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15927 straight loops.
15928 (single_imm_use): Check for iterator node.
15929 (num_imm_uses): Likewise.
15930 * tree-ssa-operands.c (has_zero_uses_1): Delete.
15931 (single_imm_use_1): Check for iterator node.
15932
15933 2015-07-21 Mike Frysinger <vapier@gentoo.org>
15934 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15935
15936 * configure.ac: Add check for new options in isl-0.15.
15937 * config.in, configure: Rebuilt.
15938 * graphite-blocking.c: Include <isl/constraint.h>
15939 * graphite-interchange.c, graphite-poly.c: Likewise.
15940 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15941 * graphite.c: Likewise.
15942 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15943 <isl/union_set.h>.
15944 * graphite-dependences.c: Include <isl/constraint.h>.
15945 (max_number_of_out_dimensions): Returns isl_stat.
15946 (extend_schedule_1): Likewise
15947 (extend_schedule): Corresponding changes.
15948 * graphite-optimize-isl.c: Include <isl/constraint.h> and
15949 <isl/union_set.h>.
15950 (getSingleMap): Change return type of isl_stat.
15951 (optimize_isl): Conditionally use
15952 isl_options_set_schedule_serialize_sccs.
15953 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15954 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15955
15956 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
15957
15958 PR target/66956
15959 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15960 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15961
15962 2015-07-21 Richard Biener <rguenther@suse.de>
15963
15964 PR tree-optimization/66948
15965 * genmatch.c (capture_info::walk_match): Also recurse to
15966 captures. Properly compute expr state from captures of
15967 captures.
15968 * match.pd: Add single-use guards to
15969 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15970
15971 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15972
15973 * config/nvptx/mkoffload.c (process): Add static destructor call.
15974
15975 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15976
15977 PR middle-end/66915
15978 * match.pd (A - B -> A + (-B)): Don't allow folding
15979 when type if a fixed-point type.
15980
15981 2015-07-20 DJ Delorie <dj@redhat.com>
15982
15983 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15984 (iorqi3_real): Likewise for set1.
15985
15986 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
15987
15988 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15989 for !TARGET_64BIT.
15990
15991 2015-07-20 Aditya Kumar <hiraditya@msn.com>
15992
15993 * graphite-isl-ast-to-gimple.c:
15994 Refactor so that each function can access 'region'. This will help
15995 maintain a parameter rename_map within a region.
15996
15997 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15998
15999 * config/rs6000/rs6000.md (*lt0_disi): New.
16000
16001 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16002
16003 PR target/66217
16004 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
16005 "available letters" comment.
16006 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16007 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16008 and_2rld_operand): Delete.
16009 (and_operand): Adjust.
16010 (rotate_mask_operator): New.
16011 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16012 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16013 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16014 extract_ME): Delete.
16015 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16016 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16017 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16018 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16019 rs6000_emit_2insn_and): New.
16020 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16021 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16022 includes_rldic_lshift_p, includes_rldicr_lshift_p,
16023 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16024 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16025 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16026 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16027 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16028 rs6000_emit_2insn_and): New.
16029 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16030 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16031 handling.
16032 <NOT>: Don't fall through to next case.
16033 <AND>: Handle the various rotate-and-mask cases directly.
16034 <IOR>: Always cost as one insn.
16035 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16036 (and<mode>3): Adjust expander for the new patterns.
16037 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16038 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16039 (*and<mode>3_imm_dot_shifted): New.
16040 (*and<mode>3_mask): Delete, rewrite as ...
16041 (and<mode>3_mask): ... New.
16042 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16043 (andsi3_internal0_nomc): Delete.
16044 (*andsi3_internal6): Delete.
16045 (*and<mode>3_2insn): New.
16046 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16047 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16048 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16049 *insvdi_internal3): Delete.
16050 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16051 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16052 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16053 *ior<mode>_mask): New.
16054 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16055 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16056 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16057 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16058 Delete.
16059 (ashr<mode>3): Delete expander.
16060 (*ashr<mode>3): Rename to ...
16061 (ashr<mode>3): ... This.
16062 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16063 (*rotldi3_internal4, *rotldi3_internal5 and split,
16064 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16065 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16066 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16067 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16068 (splitter for loading a mask): Adjust.
16069 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16070
16071 2015-07-20 Marek Polacek <polacek@redhat.com>
16072
16073 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16074 output_add_clobbers, output_added_clobbers_hard_reg_p,
16075 gen_rtx_scratch): Remove declarations.
16076
16077 2015-07-20 Marek Polacek <polacek@redhat.com>
16078
16079 PR c++/55095
16080 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16081
16082 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16083
16084 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16085 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16086
16087 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16088
16089 * combine.c (combine_simplify_rtx): Move simplification step
16090 before various transformations/substitutions.
16091
16092 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
16093
16094 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16095 (struct int_traits): Likewise.
16096
16097 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16098
16099 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16100 function to vmsdbgout_function_decl.
16101
16102 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16103
16104 PR target/66922
16105 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16106 from misaligned positions.
16107 (ix86_expand_pinsr): Reject insertions to misaligned positions.
16108
16109 2015-07-18 Sebastian Pop <s.pop@samsung.com>
16110
16111 PR middle-end/46851
16112 PR middle-end/60340
16113 * Makefile.in: Removed omega.o.
16114 * common.opt: Document flag fcheck-data-deps as deprecated.
16115 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16116 its associated params: omega-max-vars, omega-max-geqs,
16117 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16118 omega-max-keys, omega-eliminate-redundant-constraints.
16119 * doc/loop.texi: Remove all the section on Omega.
16120 * graphite-blocking.c: Include missing params.h: it used to be
16121 included through tree-data-ref.h and omega.h.
16122 * graphite-isl-ast-to-gimple.c: Same.
16123 * graphite-optimize-isl.c: Same.
16124 * graphite-sese-to-poly.c: Same.
16125 * graphite.c: Same.
16126 * omega.c: Remove.
16127 * omega.h: Remove.
16128 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16129 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16130 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16131 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16132 * passes.def: Remove pass_check_data_deps.
16133 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16134 (dump_conflict_function): Same.
16135 (dump_subscript): Same.
16136 (print_direction_vector): Same.
16137 (print_dir_vectors): Same.
16138 (print_lambda_vector): Same.
16139 (print_dist_vectors): Same.
16140 (dump_data_dependence_relation): Same.
16141 (dump_data_dependence_relations): Same.
16142 (dump_dist_dir_vectors): Same.
16143 (dump_ddrs): Same.
16144 (init_omega_eq_with_af): Removed.
16145 (omega_extract_distance_vectors): Removed.
16146 (omega_setup_subscript): Removed.
16147 (init_omega_for_ddr_1): Removed.
16148 (init_omega_for_ddr): Removed.
16149 (ddr_consistent_p): Removed.
16150 (compute_affine_dependence): Do not use omega to check data
16151 dependences.
16152 (compute_data_dependences_for_bb): Removed.
16153 (analyze_all_data_dependences): Removed.
16154 (tree_check_data_deps): Removed.
16155 * tree-data-ref.h: Do not include omega.h.
16156 (compute_data_dependences_for_bb): Removed.
16157 (tree_check_data_deps): Removed.
16158 * tree-ssa-loop.c (pass_check_data_deps): Removed.
16159 (make_pass_check_data_deps): Removed.
16160 * tree-ssa-phiopt.c: Include params.h.
16161 * tree-vect-data-refs.c: Same.
16162 * tree-vect-slp.c: Same.
16163
16164 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16165
16166 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16167 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
16168 (mem->fpreg splitters): Ditto.
16169 (general_operand->nonimmediate_operand splitter): Use explicit modes.
16170 Disable DFmode for TARGET_64BIT.
16171
16172 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
16173
16174 PR target/66906
16175 * config/i386/i386.c (ix86_expand_prologue): Replicate static
16176 chain on the stack.
16177
16178 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16179
16180 * config/nvptx/mkoffload.c (process): Constify host data.
16181 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16182 Constify host data.
16183 (generate_host_descr_file): Likewise.
16184
16185 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
16186 Sebastian Pop <s.pop@samsung.com>
16187
16188 PR middle-end/61929
16189 * graphite-dependences.c (add_pdr_constraints): Renamed
16190 pdr->extent to pdr->subscript_sizes.
16191 * graphite-interchange.c (build_linearized_memory_access): Add
16192 back all gcc_assert's that the "isl_int to isl_val conversion"
16193 patch has removed. Refactored.
16194 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16195 * graphite-poly.c (new_poly_dr): Same.
16196 (free_poly_dr): Same.
16197 * graphite-poly.h (struct poly_dr): Same.
16198 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16199 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16200 * graphite-scop-detection.h: Fix space.
16201 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16202 back all gcc_assert's removed by a previous patch.
16203 (wrap): Remove the_isl_ctx global variable that the same patch has
16204 added.
16205 (build_loop_iteration_domains): Same.
16206 (add_param_constraints): Same.
16207 (pdr_add_data_dimensions): Same. Refactored.
16208 (build_poly_dr): Renamed extent to subscript_sizes.
16209
16210 2015-07-17 Marek Polacek <polacek@redhat.com>
16211
16212 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16213 * match.pd: ... here.
16214
16215 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16216
16217 * config/nvptx/mkoffload.c (process): Constify target data.
16218 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16219 Constify target data.
16220 (generate_target_offloadend_file): Likewise.
16221
16222 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16223
16224 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16225 to allow renaming of PHI arguments on edges incoming from outer
16226 loop header, add corresponding check before start PHI iterator.
16227 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16228 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16229 with true force_vectorize. Set-up dominator for outer loop too.
16230 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16231 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16232 was marked with force_vectorize and has restricted cfg.
16233 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16234 inner loop.
16235 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16236 do peeling for outer loops.
16237
16238 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
16239 Matthias Klose <doko@ubuntu.com>
16240
16241 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16242 build-sysroot, sysroot from the `Miscenalleous configure options' to
16243 the `Directories' section and strip trailing `/' from with_sysroot.
16244 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16245 * configure: Regenerated.
16246
16247 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16248
16249 PR target/66824
16250 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16251 (TARGET_HARD_DF_REGS): Ditto.
16252 (TARGET_HARD_XF_REGS): Ditto.
16253 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16254 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16255 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16256 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16257 (*movsf_internal): Add alternatives 16 and 17. Enable
16258 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16259
16260 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16261
16262 PR rtl-optimization/66891
16263 * calls.c (expand_call): Wrap precompute_register_parameters with
16264 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16265
16266 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
16267
16268 * config/nvptx/mkoffload.c (process): Constify mapping variables.
16269 Define target data struct and initialize it.
16270
16271 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
16272
16273 PR rtl-optimization/66626
16274 * ira.h (emit-rtl.h): Include.
16275 (non_spilled_static_chain_regno_p): New.
16276 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16277 unless it is non spilled static chain pseudo.
16278 (assign_hard_rego): Spill memory profitable allocno unless it is
16279 non spilled static chain pseudo.
16280 (allocno_spill_priority_compare): Put non spilled static chain
16281 pseudo at the end of sorted array.
16282 (improve_allocation): Do nothing if we have static chain and
16283 non-local goto.
16284 (allocno__priority_compare_func): Put non spilled static chain
16285 pseudo at the beginning of sorted array.
16286 (move_spill_restore): Ignore non spilled static chain pseudo.
16287 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16288 to non spilled static chain pseudo.
16289 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16290 pseudo at the beginning of sorted array.
16291 (spill_for): Spill non spilled static chain pseudo last.
16292 * lra-constraints.c (lra_constraints): Remove static chain pseudo
16293 check for equivalence.
16294
16295 2015-07-16 Martin Liska <mliska@suse.cz>
16296
16297 PR ipa/66896.
16298 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16299 dst_ctx if it does not exist.
16300
16301 2015-07-16 Martin Liska <mliska@suse.cz>
16302
16303 * hash-set.h (remove): New function.
16304 (iterator): New iteration class for hash_set.
16305
16306 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16307
16308 * genattrtab.c (make_canonical): Add a file_location parameter.
16309 Use fatal_at rather than fatal.
16310 (get_attr_value): Likewise. Update call to make_canonical.
16311 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16312 (make_internal_attr): Update calls accordingly.
16313
16314 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16315
16316 * read-md.h (message_with_line, error_with_line): Delete.
16317 * read-md.c (message_with_line, error_with_line): Delete.
16318 * gensupport.h: Include read-md.h.
16319 (md_rtx_info): New structure.
16320 (read_md_rtx): Use it. Return a bool success value.
16321 * gensupport.c (read_md_rtx): Likewise.
16322 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16323 (main): Update after interface changes.
16324 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16325 (main): Update after interface changes.
16326 * genattrtab.c (insn_code_number): Delete.
16327 (optimize_attrs): Add a max_insn_code parameter and use it instead
16328 of insn_code_number.
16329 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16330 Use *_at rather than *_with_line functions.
16331 (gen_insn): Likewise.
16332 (gen_delay): Likewise.
16333 (gen_insn_reserv): Likewise.
16334 (gen_bypass): Take an md_rtx_info rather than an rtx.
16335 (main): Update after interface changes. Use a local max_insn_code
16336 variable instead of insn_code_number.
16337 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16338 an rtx. Use fatal_at rather than fatal.
16339 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16340 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16341 (gen_absence_set, gen_final_absence_set, gen_automaton)
16342 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16343 (main): Update after interface changes.
16344 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16345 and code number.
16346 (main): Update after interface changes.
16347 * genconditions.c (main): Use new read_md_rtx interface.
16348 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16349 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16350 (main): Update after interface changes.
16351 * genemit.c (insn_code_number, insn_index_number): Delete.
16352 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16353 Use fatal_at rather than fatal.
16354 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16355 rather than fatal.
16356 (gen_split): Likewise.
16357 (main): Update after interface changes.
16358 * genextract.c (line_no): Delete.
16359 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16360 Update call to walk_rtx.
16361 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16362 rather than message_with_line.
16363 (walk_rtx): Add an md_rtx_info argument. Update call to
16364 VEC_safe_set_locstr.
16365 (main): Update after interface changes.
16366 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16367 and lineno. Use error_at rather than separate message_with_line
16368 calls and have_error assignments.
16369 (main): Update after interface changes.
16370 * genmddump.c (main): Use new read_md_rtx interface.
16371 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16372 (main): Update after interface changes.
16373 * genoutput.c (next_code_number): Delete.
16374 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16375 (gen_peephole, gen_expand, gen_split): Likewise.
16376 (note_constraint): Likewise. Use *_at rather than *_with_line
16377 functions.
16378 (main): Update after interface changes.
16379 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16380 rtx and lineno.
16381 (main): Update after interface changes.
16382 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16383 than an rtx and lineno.
16384 (process_define_constraint): Likewise.
16385 (process_define_register_constraint): Likewise.
16386 (main): Update after interface changes.
16387 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16388 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16389 Use *_at rather than *_with_line functions.
16390 (match_pattern_2): Likewise.
16391 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16392 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16393 Use *_at rather than *_with_line functions.
16394 * gentarget-def.c (add_insn): New function.
16395 (main): Use it. Use new read_md_rtx interface.
16396
16397 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16398
16399 * gensupport.h (compute_test_codes): Take a file_location rather
16400 than a line number.
16401 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16402 rather than *_with_line functions.
16403 (process_define_predicate): Update call to compute_test_codes.
16404 * genpreds.c (validate_exp): Take a file_location rather than a
16405 line number. Use *_at functions rather than *_with_line functions.
16406 (process_define_predicate): Update call to validate_exp.
16407 (constraint_data): Replace lineno field with a file_location.
16408 (add_constraint): Take a file_location rather than a line number.
16409 Use *_at functions rather than *_with_line functions. Fix error
16410 message for address constraints. Update after changes to
16411 validate_exp, constraint_data and compute_test_codes.
16412 (process_define_constraint): Update accordingly.
16413 (process_define_register_constraint): Likewise.
16414
16415 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16416
16417 * genoutput.c (data): Use a file_location to record the source
16418 position.
16419 (nothing): Delete.
16420 (idata, idata_end): Remove initialization.
16421 (constraint_data): Replace lineno with a file_location.
16422 (output_insn_data): Update after changes to data.
16423 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16424 (scan_operands): Likewise, using *_at rather than *_with_line
16425 functions.
16426 (process_template): Likewise.
16427 (validate_insn_alternatives): Likewise.
16428 (validate_insn_operands): Likewise.
16429 (validate_optab_operands): Likewise.
16430 (init_insn_for_nothing): Initialize idata and idata_end.
16431 (note_constraint): Update after changes to constraint_data,
16432 using at rather than with_line functions.
16433 (mdep_constraint_len): Take a file_location rather than a
16434 line number. Use at rather than with_line functions.
16435
16436 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16437
16438 * read-md.h (fatal_at): Declare.
16439 * read-md.c (fatal_at): New function.
16440 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16441 to record the source position.
16442 (check_attr_test): Take a file_location instead of a line number.
16443 Use fatal_at instead of fatal.
16444 (check_attr_value): Update after above changes, using "at"
16445 rather than "with_line" reporting functions.
16446 (convert_set_attr_alternative): Likewise.
16447 (gen_attr): Likewise.
16448 (check_defs): Likewise. Don't assign to read_md_filename.
16449 (gen_insn): Update initialization after above changes.
16450 (gen_delay): Likewise.
16451 (write_insn_cases): Print the filename for a define_peephole.
16452 (gen_insn_reserv): Take a line number as argument and update
16453 the call to check_attr_test.
16454 (main): Pass a line number to gen_insn_reserv.
16455
16456 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16457
16458 * read-md.h (file_location): New structure.
16459 (directive_handler_t): Take a file_location rather than a line number.
16460 (message_at, error_at): Declare.
16461 (read_skip_construct): Delete.
16462 * read-md.c (message_with_line_1): Replace with...
16463 (message_at_1): ...this new function.
16464 (message_at, error_at): New functions.
16465 (message_with_line, error_with_line): Update to use message_at_1.
16466 (handle_enum): Take a file_location rather than a line number
16467 and use error_at for error reporting.
16468 (handle_include): Likewise.
16469 (read_skip_construct): Likewise. Make static.
16470 (handle_file): Update after above changes. Pass a file_location
16471 rather than a line number to handle_directive.
16472 * gensupport.c (queue_elem): Replace separate filename and lineno
16473 with a file_location.
16474 (queue_pattern): Replace filename and lineno arguments with a
16475 file_location. Update after change to queue_elem.
16476 (process_define_predicate): Replace lineno argument with a
16477 file_location and use error_at for error reporting. Update
16478 after above changes.
16479 (process_rtx): Likewise.
16480 (subst_pattern_match): Likewise.
16481 (get_alternatives_number): Likewise.
16482 (alter_predicate_for_insn): Likewise.
16483 (rtx_handle_directive): Likewise.
16484 (is_predicable): Update after above changes, using error_at rather
16485 than error_with_line.
16486 (has_subst_attribute): Likewise.
16487 (identify_predicable_attribute): Likewise.
16488 (alter_attrs_for_subst_insn): Likewise.
16489 (process_one_cond_exec): Likewise.
16490 (process_substs_on_one_elem): Likewise.
16491 (process_define_subst): Likewise.
16492 (check_define_attr_duplicates): Likewise.
16493 (read_md_rtx): Update after change to queue_elem.
16494
16495 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16496
16497 * genoutput.c (next_index_number): Delete.
16498 (data): Remove index_number.
16499 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16500 (main): Remove manipulation of next_index_number.
16501
16502 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16503
16504 * genattrtab.c (check_attr_value): Remove handling of null attrs.
16505 (make_canonical): Likewise.
16506
16507 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
16508
16509 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16510 instead of adjust_address_nv.
16511 (restore_stack_nonlocal): Likewise.
16512 (nonlocal_goto): Likewise.
16513
16514 2015-07-16 Tom de Vries <tom@codesourcery.com>
16515
16516 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16517 not have a corresponding loop header phi.
16518
16519 2015-07-16 Tom de Vries <tom@codesourcery.com>
16520
16521 * tree-parloops.c (create_loads_for_reductions): Handle case that
16522 reduction is unused.
16523
16524 2015-07-16 Richard Biener <rguenther@suse.de>
16525
16526 PR tree-optimization/66894
16527 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16528 about deriving NE_EXPR from truncated values.
16529
16530 2015-07-16 Martin Liska <mliska@suse.cz>
16531
16532 * alloc-pool.h
16533 (object_allocator): Add new class.
16534 (pool_allocator::initialize): Use the underlying class.
16535 (pool_allocator::allocate): Likewise.
16536 (pool_allocator::remove): Likewise.
16537 (operator new): A new generic allocator.
16538 * asan.c (struct asan_mem_ref): Remove unused members.
16539 (asan_mem_ref_new): Replace new operator with
16540 object_allocator::allocate.
16541 (free_mem_ref_resources): Change deallocation.
16542 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16543 with object_allocator.
16544 * config/sh/sh.c (add_constant): Replace new operator with
16545 object_allocator::allocate.
16546 (sh_reorg): Change call to a release method.
16547 * cselib.c (struct elt_list): Remove unused members.
16548 (new_elt_list): Replace new operator with
16549 object_allocator::allocate.
16550 (new_elt_loc_list): Likewise.
16551 (new_cselib_val): Likewise.
16552 (unchain_one_elt_list): Change delete operator with remove method.
16553 (unchain_one_elt_loc_list): Likewise.
16554 (unchain_one_value): Likewise.
16555 (cselib_finish): Release newly added static allocators.
16556 * cselib.h (struct cselib_val): Remove unused members.
16557 (struct elt_loc_list): Likewise.
16558 * df-problems.c (df_chain_alloc): Replace pool_allocator with
16559 object_allocator.
16560 * df-scan.c (struct df_scan_problem_data): Likewise.
16561 (df_scan_alloc): Likewise.
16562 * df.h (struct dataflow): Likewise.
16563 * dse.c (struct read_info_type): Likewise.
16564 (struct insn_info_type): Likewise.
16565 (struct dse_bb_info_type): Likewise.
16566 (struct group_info): Likewise.
16567 (struct deferred_change): Likewise.
16568 (get_group_info): Likewise.
16569 (delete_dead_store_insn): Likewise.
16570 (free_read_records): Likewise.
16571 (replace_read): Likewise.
16572 (check_mem_read_rtx): Likewise.
16573 (scan_insn): Likewise.
16574 (dse_step1): Likewise.
16575 (dse_step7): Likewise.
16576 * et-forest.c (struct et_occ): Remove unused members.
16577 (et_new_occ): Use allocate instead of new operator.
16578 (et_new_tree): Likewise.
16579 (et_free_tree): Call release method explicitly.
16580 (et_free_tree_force): Likewise.
16581 (et_free_pools): Likewise.
16582 (et_split): Use remove instead of delete operator.
16583 * et-forest.h (struct et_node): Remove unused members.
16584 * ipa-cp.c: Change pool_allocator to object_allocator.
16585 * ipa-inline-analysis.c: Likewise.
16586 * ipa-profile.c: Likewise.
16587 * ipa-prop.c: Likewise.
16588 * ipa-prop.h: Likewise.
16589 * ira-build.c (initiate_cost_vectors): Cast return value.
16590 (ira_allocate_cost_vector): Likewise.
16591 * ira-color.c (struct update_cost_record): Remove unused members.
16592 * lra-int.h (struct lra_live_range): Likewise.
16593 (struct lra_copy): Likewise.
16594 (struct lra_insn_reg): Likewise.
16595 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16596 * lra.c (new_insn_reg): Replace new operator with allocate method.
16597 (free_insn_regs): Same for operator delete.
16598 (finish_insn_regs): Release new static allocator.
16599 (finish_insn_recog_data): Likewise.
16600 (lra_free_copies): Replace delete operator with remove method.
16601 (lra_create_copy): Replace operator new with allocate method.
16602 (invalidate_insn_data_regno_info): Same for remove method.
16603 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16604 (free_debug_insn_changes): Replace delete operator with remove method.
16605 (replace_oldest_value_reg): Replace operator new with allocate method.
16606 (pass_cprop_hardreg::execute): Release new static variable.
16607 * sched-deps.c (sched_deps_init): Change pool_allocator to
16608 object_allocator.
16609 * sel-sched-ir.c: Likewise.
16610 * sel-sched-ir.h: Likewise.
16611 * stmt.c (expand_case): Likewise.
16612 (expand_sjlj_dispatch_table): Likewise.
16613 * tree-sra.c (struct access): Remove unused members.
16614 (struct assign_link): Likewise.
16615 (sra_deinitialize): Release newly added static pools.
16616 (create_access_1):Replace operator new with allocate method.
16617 (build_accesses_from_assign): Likewise.
16618 (create_artificial_child_access): Likewise.
16619 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16620 pool_allocator to object_allocator.
16621 * tree-ssa-pre.c: Likewise.
16622 * tree-ssa-reassoc.c: Likewise.
16623 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16624 * tree-ssa-strlen.c: Likewise.
16625 * tree-ssa-structalias.c: Likewise.
16626 * var-tracking.c (onepart_pool_allocate): New function.
16627 (unshare_variable): Use the newly added function.
16628 (variable_merge_over_cur): Likewise.
16629 (variable_from_dropped): Likewise.
16630 (variable_was_changed): Likewise.
16631 (set_slot_part): Likewise.
16632 (emit_notes_for_differences_1): Likewise.
16633 (vt_finalize): Release newly added static pools.
16634
16635 2015-07-16 Martin Jambor <mjambor@suse.cz>
16636
16637 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
16638 all uses. Fix two typos in its general comment.
16639 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
16640
16641 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
16642
16643 * config/i386/linux-common.h (LINK_MPX): New.
16644 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16645 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16646 indicating '-z bndplt' support by linker.
16647 * configure: Regenerate.
16648 * config.in: Regenerate.
16649
16650 2015-07-16 Richard Biener <rguenther@suse.de>
16651
16652 * fold-const.c (fold_widened_comparison): Remove.
16653 (fold_sign_changed_comparison): Likewise.
16654 (fold_comparison): Move widened and sign-changed comparison
16655 simplification ...
16656 * match.pd: ... to patterns here.
16657 * generic-match-head.c: Include target.h.
16658 * gimple-match-head.c: Likewise.
16659
16660 2015-07-16 Richard Biener <rguenther@suse.de>
16661
16662 * tree-ssa-dom.c (dom_valueize): New function.
16663 (record_temporary_equivalences): Also record equivalences
16664 for dominating stmts that have uses of equivalences we are
16665 about to record.
16666
16667 2015-07-16 Bin Cheng <bin.cheng@arm.com>
16668
16669 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16670 add_autoinc_candidates.
16671 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16672 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16673 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16674 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16675 Call new function.
16676 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16677 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16678 Remove parameter struct iv*. Call add_autoinc_candidates here.
16679 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16680 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16681 Call new function.
16682 (find_iv_candidates): Call new functions.
16683
16684 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
16685
16686 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16687 uninitialized-variable warning.
16688
16689 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
16690
16691 PR target/65249
16692 * config/sh/sh.md (movdi): Split simple reg move to two movsi
16693 when the destination is R0.
16694
16695 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
16696
16697 PR target/66866
16698 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16699 * config/i386/i386.c (ix86_expand_pextr): New function.
16700 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
16701 for non-lowpart subregs.
16702 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16703 (insv<mode>): Use SWI248 mode iterator.
16704 (insv<mode>_1): Ditto.
16705
16706 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16707 Sebastian Pop <s.pop@samsung.com>
16708
16709 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16710 iterator to use_stmt.
16711
16712 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16713 Sebastian Pop <s.pop@samsung.com>
16714
16715 * graphite-scop-detection.c (build_scops_1): Discard scops for
16716 which entry==exit.
16717
16718 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16719 Sebastian Pop <s.pop@samsung.com>
16720
16721 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16722 case of a return statement in scop.
16723
16724 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16725 Sebastian Pop <s.pop@samsung.com>
16726
16727 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16728 INTEGER_TYPE parameters.
16729 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16730 VECTOR_CST in scan_tree_for_params.
16731 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16732
16733 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16734
16735 * gimple-pretty-print.h: Don't include pretty-print.h.
16736 * tree-streamer.h: Don't include lto-streamer.h.
16737 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16738 * gimple-streamer-in.c: Remove redundant includes.
16739 * gimple-streamer-out.c: Likewise.
16740 * ipa-devirt.c: Likewise.
16741 * ipa-icf.c: Likewise.
16742 * ipa-inline-analysis.c: Likewise.
16743 * ipa-polymorphic-call.c: Likewise.
16744 * ipa-profile.c: Likewise.
16745 * ipa-prop.c: Likewise.
16746 * ipa-pure-const.c: Likewise.
16747 * lto-cgraph.c: Likewise.
16748 * lto-streamer-in.c: Likewise.
16749 * lto-streamer-out.c: Likewise.
16750 * lto-streamer.c: Likewise.
16751 * tree-streamer-in.c: Likewise.
16752 * tree-streamer-out.c: Likewise.
16753 * tree-streamer.c: Likewise.
16754
16755 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16756
16757 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16758 include input.h.
16759 * opts.c: Remove multiline #include comment.
16760
16761 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
16762
16763 * config/nvptx/mkoffload.c (process): Add C++ protection to
16764 emitted code.
16765
16766 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16767
16768 PR target/66854
16769 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16770 null before IEEE 128-bit floating point support patch.
16771
16772 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16773
16774 * simplify-rtx.c (simplify_ternary_operation): Add simplification
16775 for (!c) != {0,...,0} ? a : b for vector modes.
16776
16777 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
16778 Martin Jambor <mjambor@suse.cz>
16779
16780 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16781 struct func_body_info* instead of struct ipa_node_params*, expecting
16782 fbi->info to be filled in. Replace throughout. Adjust call to
16783 ipa_load_from_parm_agg.
16784 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16785 instead of struct ipa_node_params*. Adjust calls to other functions
16786 so that they pass either fbi or fbi->info.
16787 (set_switch_stmt_execution_predicate): Likewise.
16788 (will_be_nonconstant_predicate): Likewise.
16789 (compute_bb_predicates): Likewise.
16790 (estimate_function_body_sizes): Move asserts earlier. Fill in
16791 struct func_body_info, replace parms_info with fbi.info. Adjust
16792 calls to functions that now accept struct func_body_info.
16793 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16794 (struct func_body_info): Likewise.
16795 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16796 remove static. Adjust callers.
16797 (ipa_load_from_parm_agg): Remove.
16798 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16799 (func_body_info): Likewise.
16800 (ipa_load_from_parm_agg): Adjust prototype.
16801
16802 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16803
16804 * gensupport.c (rtx_handle_directive): Adjust.
16805 * read-rtl.c (apply_iterators): Take vector to add rtxs to
16806 instead of expr list rtx.
16807 (add_define_attr_for_define_subst): Likewise.
16808 (add_define_subst_attr): Likewise.
16809 (read_subst_mapping): Likewise.
16810 (read_rtx): Likewise.
16811 * rtl.h (read_rtx): Adjust.
16812
16813 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16814
16815 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16816
16817 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16818
16819 PR target/58066
16820 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16821 (*tls_local_dynamic_base_64_<mode>): Ditto.
16822 (*tls_local_dynamic_base_64_largepic): Ditto.
16823 (tls_global_dynamic_64_<mode>): Update expander pattern.
16824 (tls_local_dynamic_base_64_<mode>): Ditto.
16825
16826 2015-07-15 Richard Biener <rguenther@suse.de>
16827
16828 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16829 and bool_var == 1 -> bool_var simplifications ...
16830 * match.pd: ... to patterns here. Factor out negate_expr_p
16831 cases from the A - B -> A + (-B) patterns as negate_expr_p
16832 predicate and add a -(A + B) -> (-B) - A pattern.
16833
16834 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16835
16836 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16837
16838 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
16839 Robert Suchanek <robert.suchanek@imgtec.com>
16840
16841 * config/mips/mips.c (mips_int_mask): New enum.
16842 (mips_shadow_set): Likewise.
16843 (int_mask): New variable.
16844 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16845 (machine_function): Add int_mask and use_shadow_register_set.
16846 (mips_attribute_table): Add attribute handlers for interrupt and
16847 use_shadow_register_set.
16848 (mips_interrupt_mask): New static function.
16849 (mips_handle_interrupt_attr): Likewise.
16850 (mips_handle_use_shadow_register_set_attr): Likewise.
16851 (mips_use_shadow_register_set): Change return type to enum
16852 mips_shadow_set. Add argument handling for use_shadow_register_set
16853 attribute.
16854 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16855 compare with mips_shadow_set enum.
16856 (mips_compute_frame_info): Add interrupt mask and
16857 use_shadow_register_set to per-function information structure.
16858 Add a stack slot for EPC unconditionally.
16859 (mips_expand_prologue): Compare use_shadow_register_set value
16860 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
16861 masked interrupt register but in EIC mode use K0 and save Cause in K0.
16862 EPC saved and restored unconditionally. Use PMODE_INSN macro when
16863 copying the stack pointer from the shadow register set.
16864 * config/mips/mips.h (SR_IM0): New define.
16865 * config/mips/mips.md (mips_rdpgpr): Rename to...
16866 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
16867 * doc/extend.texi (Declaring Attributes of Functions): Document
16868 optional arguments for interrupt and use_shadow_register_set
16869 attributes.
16870
16871 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16872
16873 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16874 interrupt attribute.
16875 (mips_expand_prologue): Disable the floating point unit in an ISR.
16876 * config/mips/mips.h (SR_COP1): New define.
16877
16878 2015-07-15 Richard Biener <rguenther@suse.de>
16879
16880 * genmatch.c (parser::peek, parser::peek_ident): Add argument
16881 to tell how many tokens to peek ahead (default 1).
16882 (parser::eat_token, parser::eat_ident): Return token consumed.
16883 (parser::parse_result): Parse new switch statement.
16884 * match.pd: Use case statements where appropriate.
16885
16886 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16887
16888 PR rtl-optimization/58066
16889 * calls.c (expand_call): Precompute register parameters before stack
16890 alignment is performed.
16891
16892 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16893
16894 PR rtl-optimization/66838
16895 * postreload.c (reload_cse_move2add): Also process
16896 CALL_INSN_FUNCTION_USAGE when resetting information of
16897 call-clobbered registers.
16898
16899 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16900 Cesar Philippidis <cesar@codesourcery.com>
16901 Chung-Lin Tang <cltang@codesourcery.com>
16902
16903 * config/nios2/constraints.md (U, v): New constraints.
16904 * config/nios2/predicates.md (rdprs_dcache_operand): New.
16905 (ldstex_memory_operand): New.
16906 * config/nios2/sync.md: New file.
16907 * config/nios2/nios2.md (unspecv): Add new builtin function
16908 UNSPECV codes.
16909 (rdprs, flushd, flushda, wrpie, eni): New patterns.
16910 (top-level): Include sync.md.
16911 * config/nios2/nios2.c (N2_FTYPES): Add function types for
16912 new builtins.
16913 (N2_BUILTINS): Add arch field setting, add new builtins.
16914 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16915 for arch field.
16916 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16917 Also handle ldex/stex/ldsex/stsex builtins.
16918 (nios2_expand_rdprs_builtin): New function.
16919 (nios2_expand_cache_builtin): New function.
16920 (nios2_expand_wrpie_builtin): New function.
16921 (nios2_expand_eni_builtin): New function.
16922 (nios2_expand_builtin): Add arch field handling and new builtin
16923 cases.
16924 * doc/extend.texi (Altera Nios II Built-in Functions): Document
16925 new builtins.
16926 * doc/md.texi (Machine Constraints): Document U and v constraints.
16927
16928 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16929 Cesar Philippidis <cesar@codesourcery.com>
16930 Chung-Lin Tang <cltang@codesourcery.com>
16931
16932 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16933 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16934 callee_save_reg_size and uses_anonymous_args fields.
16935 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16936 (nios2_create_cfa_notes): New function.
16937 (nios2_adjust_stack): New function for adjusting stack.
16938 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16939 Use nios2_adjust_stack.
16940 (nios2_expand_epilogue): Likewise.
16941 (nios2_expand_return): New function.
16942 (nios2_can_use_return_insn): Update for CDX pop.n usage.
16943 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16944 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16945 * config/nios2/nios2.md (return): Use nios2_expand_return.
16946
16947 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16948 Cesar Philippidis <cesar@codesourcery.com>
16949 Chung-Lin Tang <cltang@codesourcery.com>
16950
16951 * config/nios2/predicates.md (pop_operation): New.
16952 (ldwm_operation, stwm_operation): New.
16953 (nios2_hard_register_operand): New.
16954 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16955 (ldstwm_operation_p): Declare.
16956 (gen_ldstwm_peep): Declare.
16957 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16958 (base_reg_adjustment_p): New.
16959 (pop_operation_p): New.
16960 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16961 (nios2_ldstwm_regset_p): New.
16962 (ldstwm_operation_p): New.
16963 (gen_ldst): New.
16964 (nios2_ldst_parallel): New.
16965 (struct ldswm_operand): Declare.
16966 (compare_ldstwm_operands): New.
16967 (can_use_cdx_ldstw): New.
16968 (gen_ldstwm_peep): New.
16969 * config/nios2/nios2-ldstwm.sml: New.
16970 * config/nios2/nios2.md: Include ldstwm.md.
16971 * config/nios2/ldstwm.md: Generated.
16972
16973 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16974 Cesar Philippidis <cesar@codesourcery.com>
16975 Chung-Lin Tang <cltang@codesourcery.com>
16976
16977 * config/nios2/nios2.h (LABEL_ALIGN): Define.
16978 (REG_ALLOC_ORDER): Define.
16979 (ADJUST_REG_ALLOC_ORDER): Define.
16980 (HONOR_REG_ALLOC_ORDER): Define.
16981 (CDX_REG_P): Define.
16982 (ANDCLEAR_INT): Define.
16983 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16984 (nios2_label_align): Declare.
16985 (nios2_cdx_narrow_form_p): Declare.
16986 (nios2_adjust_reg_alloc_order): Declare.
16987 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16988 operation.
16989 (nios2_large_unspec_reloc_p): New function, split from...
16990 (nios2_legitimate_pic_operand_p): ...here.
16991 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16992 (nios2_print_operand_punct_valid_p): New.
16993 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
16994 (split_mem_address): New.
16995 (split_alu_insn): New.
16996 (cdxreg): New.
16997 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16998 (enum nios2_add_insn_kind): New.
16999 (nios2_add_insn_names, nios2_add_insn_narrow): New.
17000 (nios2_add_insn_classify): New.
17001 (nios2_add_insn_asm): New.
17002 (nios2_cdx_narrow_form_p): New.
17003 (label_align, min_labelno, max_labelno): New.
17004 (nios2_reorg): New.
17005 (nios2_label_align): New.
17006 (nios2_adjust_reg_alloc_order): New.
17007 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17008 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17009 * config/nios2/constraints.md (P): New constraint.
17010 * config/nios2/predicates.md (const_and_operand): New.
17011 (and_operand): New.
17012 (stack_memory_operand): New.
17013 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17014 (length): Update to use nios2_cdx_narrow_form_p().
17015 (type): Add new insn type values.
17016 (control, alu, st, ld, shift): Update insn reservations with
17017 new insn type values.
17018 (*high, *lo_sum): Define new insn patterns for constant generation.
17019 (movqi_internal, movhi_internal, movsi_internal): Reduce
17020 alternatives, update asm template to handle CDX variants, update
17021 type attributes.
17022 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17023 template, update type attributes.
17024 (extendhisi2, extendqi<mode>2): Likewise.
17025 (addsi3): Change to use function for asm string.
17026 (subsi3): Add CDX notation to asm template, update type attributes.
17027 (negsi3, one_cmplsi3): Likewise.
17028 (andsi3): New pattern, specialized from logical patterns.
17029 (<code>si3): Remove and case, combine alternatives, update asm
17030 template.
17031 (<shift_op>si3): Add CDX notation, update type attributes.
17032 (rotrsi3): Update type attribute.
17033 (*merge, extzv, insv): New insn patterns.
17034 (return): Change to define_expand.
17035 (simple_return): Add CDX notation, update type attributes.
17036 (indirect_jump): Add CDX notation.
17037 (jump): Update asm cases, update length attribute expression.
17038 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17039 (nios2_cbranch): Update asm cases and length attribute expression
17040 to handle CDX variants.
17041 (nios2_cmp<code>): Update asm template.
17042 (nop): Add CDX notation, update type attributes.
17043 (trap): Add CDX notation.
17044 (ctrapsi4): Update asm cases and length attribute expression to
17045 handle CDX variant.
17046 * doc/md.texi (Machine Constraints): Document P constraint.
17047
17048 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17049 Cesar Philippidis <cesar@codesourcery.com>
17050 Chung-Lin Tang <cltang@codesourcery.com>
17051
17052 * config/nios2/nios2.h (SMALL_INT12): New macro.
17053 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17054 (nios2_valid_addr_expr_p): Use it.
17055 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17056 with implicit "io" instructions on R2.
17057 * config/nios2/constraints.md (w): New constraint.
17058 * config/nios2/predicates.md (ldstio_memory_operand): New.
17059 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17060 operand predicate and constraint.
17061 (ld<bh>io_signed, st<bhw>io>): Likewise.
17062 * doc/md.texi (Machine Constraints): Document w constraint.
17063
17064 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17065 Cesar Philippidis <cesar@codesourcery.com>
17066 Chung-Lin Tang <cltang@codesourcery.com>
17067
17068 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17069 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17070 Nios II architecture level.
17071 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17072 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17073 (OPTION_DEFAULT_SPECS): Define.
17074 (ASM_SPEC): Add -march= spec strings.
17075 * config/nios2/nios2.c (nios2_option_override): Check for
17076 conflicts involving new options.
17077 * config.gcc (nios2*-*-*): Support --with-arch=.
17078 * doc/invoke.texi (Option Summary, Nios II Options): Document
17079 -march=, -mbmx, and -mcdx.
17080
17081 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
17082
17083 PR rtl-optimization/66626
17084 * lra-constraints.c (lra_constraints): Prevent equivalence
17085 substitution for static chain pseudo in functions with nonlocal
17086 goto.
17087
17088 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17089
17090 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17091 (nios2_emit_stack_limit_check): Add size parameter. Handle
17092 -fstack-limit-symbol as well as -fstack-limit-register.
17093 (nios2_expand_prologue): Emit only a single stack limit check,
17094 even if multiple stack adjustments are required.
17095 (nios2_option_override): Diagnose unsupported combination of -fpic
17096 and -stack-limit-symbol.
17097
17098 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
17099
17100 * Makefile.in (top_srcdir): New.
17101 * configure.ac: Use AM_ZLIB.
17102 * configure: Regeneated.
17103
17104 2015-07-14 Matthias Klose <doko@ubuntu.com>
17105
17106 PR target/66840
17107 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17108
17109 2015-07-14 Richard Biener <rguenther@suse.de>
17110
17111 PR tree-optimization/66863
17112 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17113 what we record for conversion use stmt lhs inequalities.
17114
17115 2015-07-14 Richard Biener <rguenther@suse.de>
17116
17117 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17118 (decision_tree::gen_gimple): Likewise.
17119
17120 2015-07-14 Tom de Vries <tom@codesourcery.com>
17121
17122 * gcc.c (greater_than_spec_func): Declare forward.
17123 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17124 -ftree-parallelize-loops={0,1}.
17125 (static_spec_functions): Add greater_than_spec_func function with name
17126 "gt".
17127 (greater_than_spec_func): New function.
17128
17129 2015-07-14 Richard Biener <rguenther@suse.de>
17130
17131 * tree-ssa-dom.c (record_temporary_equivalences): Merge
17132 wideing type conversion case from record_equivalences_from_incoming_edge
17133 and use record_equality to record equivalences.
17134 (record_equivalences_from_incoming_edge): Call
17135 record_temporary_equivalences.
17136
17137 2015-07-14 Richard Biener <rguenther@suse.de>
17138
17139 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17140 (struct if_expr): New.
17141 (struct with_expr): Likewise.
17142 (is_a_helper): Add helpers for if_expr and with_expr.
17143 (struct simplify): Add simplify_kind enum and member. Remove
17144 ifexpr_vec member.
17145 (simplify::simplify): Adjust.
17146 (lower_commutative): Adjust.
17147 (lower_opt_convert): Likewise.
17148 (lower_cond): Likewise.
17149 (replace_id): Handle with_expr and if_expr.
17150 (lower_for): Adjust.
17151 (dt_simplify::gen_1): New recursive worker, split out from ...
17152 (dt_simplify::gen): ... here. Deal with if and with expansion
17153 recursively.
17154 (capture_info::capture_info): Take context argument
17155 (capture_info::walk_result): Only analyze specific result.
17156 (parser::parse_result): New function.
17157 (parser::parse_simplify): Adjust to parse ifs with then end
17158 else case.
17159 (parser::parse_if): Simplify.
17160 (parser::parse_pattern): Pass down simplify kind.
17161 * match.pd: Convert if structure to new syntax.
17162
17163 2015-07-13 Marek Polacek <polacek@redhat.com>
17164
17165 * rtl.c (rtx_equal_p_cb): Fix typo.
17166
17167 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
17168
17169 * omega.h: Don't include config.h, don't include params.h again if
17170 omega.h has already been included.
17171 * graphite-poly.h: Include sese.h.
17172 * graphite.c: Don't include sese.h, remove needless includes and
17173 minimize includes outside #ifdef HAVE_isl block.
17174 * graphite-blocking.c: Don't include sese.h, remove needless includes,
17175 and wrap entire file in #ifdef HAVE_isl
17176 * graphite-dependences.c: Likewise.
17177 * graphite-interchange.c: Likewise.
17178 * graphite-isl-ast-to-gimple.c: Likewise.
17179 * graphite-optimize-isl.c: Likewise.
17180 * graphite-poly.c: Likewise.
17181 * graphite-scop-detection.c: Likewise.
17182 * graphite-sese-to-poly.c: Likewise.
17183
17184 2015-07-13 Tom de Vries <tom@codesourcery.com>
17185
17186 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17187
17188 2015-07-13 Renlin Li <renlin.li@arm.com>
17189
17190 PR rtl/66556
17191 * simplify-rtx.c (simplify_const_relational_operation): Add
17192 side_effects_p checks.
17193
17194 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
17195
17196 * bitmap.h: Fix double word typos.
17197 * builtins.c: Same.
17198 * calls.c: Same.
17199 * cfgloopmanip.c: Same.
17200 * cgraph.c: Same.
17201 * cgraph.h: Same.
17202 * cgraphclones.c: Same.
17203 * combine.c: Same.
17204 * config/aarch64/aarch64-protos.h: Same.
17205 * config/aarch64/aarch64.c: Same.
17206 * config/aarch64/aarch64.md: Same.
17207 * config/arm/arm.md: Same.
17208 * config/arm/arm1020e.md: Same.
17209 * config/arm/arm1026ejs.md: Same.
17210 * config/arm/arm926ejs.md: Same.
17211 * config/arm/fa526.md: Same.
17212 * config/arm/fa606te.md: Same.
17213 * config/arm/fa626te.md: Same.
17214 * config/arm/fa726te.md: Same.
17215 * config/arm/fmp626.md: Same.
17216 * config/darwin.c: Same.
17217 * config/epiphany/epiphany.c: Same.
17218 * config/frv/frv.c: Same.
17219 * config/ft32/ft32.c: Same.
17220 * config/gnu-user.h: Same.
17221 * config/h8300/constraints.md: Same.
17222 * config/i386/i386.c: Same.
17223 * config/i386/i386.md: Same.
17224 * config/iq2000/iq2000.md: Same.
17225 * config/mips/mips.c: Same.
17226 * config/mmix/mmix.md: Same.
17227 * config/moxie/moxie.c: Same.
17228 * config/nds32/nds32.md: Same.
17229 * config/pa/pa.h: Same.
17230 * config/rs6000/aix.h: Same.
17231 * config/rs6000/rs6000.h: Same.
17232 * config/sh/sh.c: Same.
17233 * config/tilegx/tilegx.md: Same.
17234 * config/tilepro/gen-mul-tables.cc: Same.
17235 * cse.c: Same.
17236 * dbxout.c: Same.
17237 * doc/invoke.texi: Same.
17238 * dse.c: Same.
17239 * dwarf2out.c: Same.
17240 * final.c: Same.
17241 * gcc.c: Same.
17242 * genmatch.c: Same.
17243 * gimplify.c: Same.
17244 * hash-table.h: Same.
17245 * internal-fn.c: Same.
17246 * ipa-cp.c: Same.
17247 * ipa-devirt.c: Same.
17248 * ipa-icf.c: Same.
17249 * ipa-icf.h: Same.
17250 * ipa-profile.c: Same.
17251 * ipa-prop.c: Same.
17252 * ipa-prop.h: Same.
17253 * ira.c: Same.
17254 * omp-low.c: Same.
17255 * reg-stack.c: Same.
17256 * regcprop.c: Same.
17257 * reorg.c: Same.
17258 * rtl.h: Same.
17259 * sbitmap.h: Same.
17260 * tree-eh.c: Same.
17261 * tree-inline.c: Same.
17262 * tree-sra.c: Same.
17263 * tree-ssa-dom.c: Same.
17264 * tree-ssa-loop-ivopts.c: Same.
17265 * tree-ssa-structalias.c: Same.
17266 * tree-ssa-tail-merge.c: Same.
17267 * tree-ssa-ter.c: Same.
17268 * tree-ssa-threadupdate.c: Same.
17269 * tree-ssa-uninit.c: Same.
17270 * tree-ssanames.c: Same.
17271 * tree-vect-loop-manip.c: Same.
17272 * tree-vrp.c: Same.
17273 * tree.c: Same.
17274 * valtrack.c: Same.
17275 * vec.h: Same.
17276
17277 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17278
17279 PR middle-end/66726
17280 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17281 tree_ssa_phiopt_worker): Call it.
17282
17283 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17284
17285 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17286 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17287 REG_EQUAL note.
17288
17289 2015-07-11 Marek Polacek <polacek@redhat.com>
17290
17291 PR middle-end/66353
17292 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17293 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17294 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17295 rather than bb_has_abnormal_call_pred.
17296 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17297 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17298 rather than bb_has_abnormal_call_pred.
17299
17300 2015-07-10 Anatoly Sokolov <aesok@post.ru>
17301
17302 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17303 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17304 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17305 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17306 v850_legitimate_address_p): New functions.
17307 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17308
17309 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
17310
17311 PR target/66819
17312 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17313 indirect sibcall with register arguments if register available
17314 for argument passing.
17315 (init_cumulative_args): Set cfun->machine->arg_reg_available
17316 to (cum->nregs > 0) or to true if function has a variable
17317 argument list.
17318 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17319 to false if cum->nregs <= 0.
17320 * config/i386/i386.h (machine_function): Add arg_reg_available.
17321
17322 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17323
17324 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17325 and gen_higpart instead of gen_rtx_SUBREG.
17326 * config/i386/i386.md
17327 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17328 (read-modify peephole2): Use gen_lowpart instead of
17329 gen_rtx_SUBREG for operand 5.
17330
17331 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17332
17333 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17334 generated files.
17335 * config/tilepro/mul-tables.c: Regenerate.
17336 * config/tilegx/mul-tables.c: Regenerate.
17337
17338 2015-07-10 Richard Biener <rguenther@suse.de>
17339
17340 * fold-const.c (distribute_bit_expr): Remove.
17341 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17342 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17343 to A & (B | C) and simplifying A << C1 << C2 to ...
17344 * match.pd: ... patterns here.
17345
17346 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17347
17348 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17349 Mark mem as READONLY and NOTRAP for PIC symbol.
17350
17351 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17352
17353 * gimple-predict.h: New file.
17354 (gimple_predict_predictor, gimple_predict_set_predictor,
17355 gimple_predict_outcome, gimple_predict_set_outcome,
17356 gimple_build_predict): Relocate here.
17357 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17358 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17359 gimple-predict.h.
17360 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17361 * basic-block.h: Don't include cfghooks.h.
17362 * backend.h: Don't include predict.h.
17363 * cfghooks.h: Include predict.h.
17364 * gimple-pretty-print.c: Include gimple-predict.h.
17365 * gimplify.c: Likwise.
17366 * predict.c: Adjust includes.
17367 * tree-inline.c: Likewise.
17368 * asan.c: Likewise.
17369 * auto-inc-dec.c: Likewise.
17370 * auto-profile.c: Likewise.
17371 * bb-reorder.c: Likewise.
17372 * builtins.c: Likewise.
17373 * caller-save.c: Likewise.
17374 * calls.c: Likewise.
17375 * cfganal.c: Likewise.
17376 * cfgbuild.c: Likewise.
17377 * cfg.c: Likewise.
17378 * cfgcleanup.c: Likewise.
17379 * cfgexpand.c: Likewise.
17380 * cfghooks.c: Likewise.
17381 * cfgloopanal.c: Likewise.
17382 * cfgloop.c: Likewise.
17383 * cfgloopmanip.c: Likewise.
17384 * cfgrtl.c: Likewise.
17385 * cgraph.c: Likewise.
17386 * cgraphunit.c: Likewise.
17387 * combine.c: Likewise.
17388 * cprop.c: Likewise.
17389 * cse.c: Likewise.
17390 * dce.c: Likewise.
17391 * dojump.c: Likewise.
17392 * dse.c: Likewise.
17393 * except.c: Likewise.
17394 * expmed.c: Likewise.
17395 * expr.c: Likewise.
17396 * final.c: Likewise.
17397 * fold-const.c: Likewise.
17398 * function.c: Likewise.
17399 * fwprop.c: Likewise.
17400 * gcc-plugin.h: Likewise.
17401 * gcse.c: Likewise.
17402 * genattrtab.c: Likewise.
17403 * genemit.c: Likewise.
17404 * gengtype.c: Likewise.
17405 * genopinit.c: Likewise.
17406 * genoutput.c: Likewise.
17407 * genpreds.c: Likewise.
17408 * genrecog.c: Likewise.
17409 * gimple-fold.c: Likewise.
17410 * gimple-iterator.c: Likewise.
17411 * gimple-ssa-isolate-paths.c: Likewise.
17412 * gimple-ssa-strength-reduction.c: Likewise.
17413 * graph.c: Likewise.
17414 * graphite-blocking.c: Likewise.
17415 * graphite.c: Likewise.
17416 * graphite-dependences.c: Likewise.
17417 * graphite-interchange.c: Likewise.
17418 * graphite-isl-ast-to-gimple.c: Likewise.
17419 * graphite-optimize-isl.c: Likewise.
17420 * graphite-poly.c: Likewise.
17421 * graphite-scop-detection.c: Likewise.
17422 * graphite-sese-to-poly.c: Likewise.
17423 * haifa-sched.c: Likewise.
17424 * ifcvt.c: Likewise.
17425 * internal-fn.c: Likewise.
17426 * ipa-cp.c: Likewise.
17427 * ipa-profile.c: Likewise.
17428 * ipa-split.c: Likewise.
17429 * ipa-utils.c: Likewise.
17430 * ira-build.c: Likewise.
17431 * ira-color.c: Likewise.
17432 * ira-conflicts.c: Likewise.
17433 * ira-costs.c: Likewise.
17434 * ira-emit.c: Likewise.
17435 * ira-lives.c: Likewise.
17436 * jump.c: Likewise.
17437 * loop-doloop.c: Likewise.
17438 * loop-init.c: Likewise.
17439 * loop-invariant.c: Likewise.
17440 * loop-unroll.c: Likewise.
17441 * lower-subreg.c: Likewise.
17442 * lra-assigns.c: Likewise.
17443 * lra.c: Likewise.
17444 * lra-coalesce.c: Likewise.
17445 * lra-constraints.c: Likewise.
17446 * lra-lives.c: Likewise.
17447 * lto-cgraph.c: Likewise.
17448 * lto-streamer-in.c: Likewise.
17449 * mode-switching.c: Likewise.
17450 * modulo-sched.c: Likewise.
17451 * omp-low.c: Likewise.
17452 * optabs.c: Likewise.
17453 * passes.c: Likewise.
17454 * postreload.c: Likewise.
17455 * postreload-gcse.c: Likewise.
17456 * profile.c: Likewise.
17457 * recog.c: Likewise.
17458 * regstat.c: Likewise.
17459 * reload1.c: Likewise.
17460 * reorg.c: Likewise.
17461 * rtlanal.c: Likewise.
17462 * sched-ebb.c: Likewise.
17463 * sel-sched-ir.c: Likewise.
17464 * sese.c: Likewise.
17465 * shrink-wrap.c: Likewise.
17466 * simplify-rtx.c: Likewise.
17467 * stmt.c: Likewise.
17468 * store-motion.c: Likewise.
17469 * tracer.c: Likewise.
17470 * trans-mem.c: Likewise.
17471 * tree-call-cdce.c: Likewise.
17472 * tree-cfg.c: Likewise.
17473 * tree-cfgcleanup.c: Likewise.
17474 * tree-chkp.c: Likewise.
17475 * tree-complex.c: Likewise.
17476 * tree-eh.c: Likewise.
17477 * tree-if-conv.c: Likewise.
17478 * tree-loop-distribution.c: Likewise.
17479 * tree-outof-ssa.c: Likewise.
17480 * tree-parloops.c: Likewise.
17481 * tree-predcom.c: Likewise.
17482 * tree-pretty-print.c: Likewise.
17483 * tree-profile.c: Likewise.
17484 * tree-sra.c: Likewise.
17485 * tree-ssa.c: Likewise.
17486 * tree-ssa-coalesce.c: Likewise.
17487 * tree-ssa-dce.c: Likewise.
17488 * tree-ssa-dom.c: Likewise.
17489 * tree-ssa-forwprop.c: Likewise.
17490 * tree-ssa-ifcombine.c: Likewise.
17491 * tree-ssa-loop-ch.c: Likewise.
17492 * tree-ssa-loop-im.c: Likewise.
17493 * tree-ssa-loop-ivcanon.c: Likewise.
17494 * tree-ssa-loop-ivopts.c: Likewise.
17495 * tree-ssa-loop-manip.c: Likewise.
17496 * tree-ssa-loop-prefetch.c: Likewise.
17497 * tree-ssa-loop-unswitch.c: Likewise.
17498 * tree-ssa-math-opts.c: Likewise.
17499 * tree-ssa-phiopt.c: Likewise.
17500 * tree-ssa-pre.c: Likewise.
17501 * tree-ssa-reassoc.c: Likewise.
17502 * tree-ssa-sink.c: Likewise.
17503 * tree-ssa-tail-merge.c: Likewise.
17504 * tree-ssa-threadedge.c: Likewise.
17505 * tree-ssa-threadupdate.c: Likewise.
17506 * tree-switch-conversion.c: Likewise.
17507 * tree-tailcall.c: Likewise.
17508 * tree-vect-data-refs.c: Likewise.
17509 * tree-vect-loop.c: Likewise.
17510 * tree-vect-loop-manip.c: Likewise.
17511 * tree-vectorizer.c: Likewise.
17512 * tree-vrp.c: Likewise.
17513 * ubsan.c: Likewise.
17514 * value-prof.c: Likewise.
17515 * varasm.c: Likewise.
17516 * var-tracking.c: Likewise.
17517 * config/aarch64/aarch64-builtins.c: Likewise.
17518 * config/aarch64/aarch64.c: Likewise.
17519 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17520 * config/alpha/alpha.c: Likewise.
17521 * config/arc/arc.c: Likewise.
17522 * config/arm/arm.c: Likewise.
17523 * config/avr/avr.c: Likewise.
17524 * config/bfin/bfin.c: Likewise.
17525 * config/c6x/c6x.c: Likewise.
17526 * config/cr16/cr16.c: Likewise.
17527 * config/cris/cris.c: Likewise.
17528 * config/darwin.c: Likewise.
17529 * config/darwin-c.c: Likewise.
17530 * config/epiphany/epiphany.c: Likewise.
17531 * config/epiphany/mode-switch-use.c: Likewise.
17532 * config/epiphany/resolve-sw-modes.c: Likewise.
17533 * config/fr30/fr30.c: Likewise.
17534 * config/frv/frv.c: Likewise.
17535 * config/ft32/ft32.c: Likewise.
17536 * config/h8300/h8300.c: Likewise.
17537 * config/i386/i386.c: Likewise.
17538 * config/i386/winnt.c: Likewise.
17539 * config/ia64/ia64.c: Likewise.
17540 * config/iq2000/iq2000.c: Likewise.
17541 * config/lm32/lm32.c: Likewise.
17542 * config/m32c/m32c.c: Likewise.
17543 * config/m32r/m32r.c: Likewise.
17544 * config/m68k/m68k.c: Likewise.
17545 * config/mcore/mcore.c: Likewise.
17546 * config/mep/mep.c: Likewise.
17547 * config/microblaze/microblaze.c: Likewise.
17548 * config/mips/mips.c: Likewise.
17549 * config/mmix/mmix.c: Likewise.
17550 * config/mn10300/mn10300.c: Likewise.
17551 * config/moxie/moxie.c: Likewise.
17552 * config/msp430/msp430.c: Likewise.
17553 * config/nds32/nds32.c: Likewise.
17554 * config/nds32/nds32-cost.c: Likewise.
17555 * config/nds32/nds32-fp-as-gp.c: Likewise.
17556 * config/nds32/nds32-intrinsic.c: Likewise.
17557 * config/nds32/nds32-isr.c: Likewise.
17558 * config/nds32/nds32-md-auxiliary.c: Likewise.
17559 * config/nds32/nds32-memory-manipulation.c: Likewise.
17560 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17561 * config/nds32/nds32-predicates.c: Likewise.
17562 * config/nios2/nios2.c: Likewise.
17563 * config/nvptx/nvptx.c: Likewise.
17564 * config/pa/pa.c: Likewise.
17565 * config/pdp11/pdp11.c: Likewise.
17566 * config/rl78/rl78.c: Likewise.
17567 * config/rs6000/rs6000.c: Likewise.
17568 * config/rx/rx.c: Likewise.
17569 * config/s390/s390.c: Likewise.
17570 * config/sh/sh.c: Likewise.
17571 * config/sh/sh-mem.cc: Likewise.
17572 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17573 * config/sh/sh_treg_combine.cc: Likewise.
17574 * config/sparc/sparc.c: Likewise.
17575 * config/spu/spu.c: Likewise.
17576 * config/stormy16/stormy16.c: Likewise.
17577 * config/tilegx/tilegx.c: Likewise.
17578 * config/tilepro/tilepro.c: Likewise.
17579 * config/v850/v850.c: Likewise.
17580 * config/vax/vax.c: Likewise.
17581 * config/visium/visium.c: Likewise.
17582 * config/xtensa/xtensa.c: Likewise.
17583
17584 2015-07-10 Richard Biener <rguenther@suse.de>
17585
17586 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17587 (decision_tree::gen_gimple): Likewise.
17588 (decision_tree::gen_generic): Likewise.
17589
17590 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17591
17592 PR target/66813
17593 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17594 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17595
17596 2015-07-10 Jakub Jelinek <jakub@redhat.com>
17597
17598 PR middle-end/66820
17599 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17600 or ORT_TASK contexts.
17601 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17602 is non-zero.
17603
17604 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17605
17606 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17607 above function.
17608
17609 2015-07-10 Tom de Vries <tom@codesourcery.com>
17610
17611 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17612 insert nit + 1 bound.
17613
17614 2015-07-10 Richard Biener <rguenther@suse.de>
17615
17616 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17617 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17618 (if_convertible_loop_p_1): For this always compute bb predicates.
17619 (if_convertible_loop_p): And free them.
17620
17621 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17622
17623 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17624 in dump message.
17625
17626 2015-07-10 Richard Biener <rguenther@suse.de>
17627
17628 PR tree-optimization/66823
17629 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17630 inverted predicate.
17631
17632 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
17633
17634 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17635 to handle mips[32|64]r3 and mips[32|64]r5.
17636
17637 2015-07-09 Jakub Jelinek <jakub@redhat.com>
17638
17639 PR middle-end/66633
17640 * tree-nested.c (get_static_chain): Or in a flag into
17641 info->static_chain_added.
17642 (get_frame_field, get_nonlocal_debug_decl): Likewise.
17643 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17644 2015-07-01 changes.
17645 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17646 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17647 add it to clauses.
17648
17649 PR tree-optimization/66718
17650 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17651 field.
17652 (vect_simd_lane_linear): New function.
17653 (vectorizable_simd_clone_call): Support using linear arguments for
17654 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17655
17656 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17657
17658 PR target/66821
17659 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17660
17661 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17662
17663 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17664 Use machine mode, not enum machine_mode in the prototype.
17665
17666 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17667 classify 128-bit floating point support.
17668 (FLOAT128_IBM_P): Likewise.
17669 (FLOAT128_VECTOR_P): Likewise.
17670 (FLOAT128_2REG_P): Likewise.
17671 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17672 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17673 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17674 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17675
17676 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17677 tests against TFmode/TDmode, since those modes do not use VSX
17678 addresses.
17679 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17680 support.
17681 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17682 tests against TFmode, etc.
17683 (invalid_e500_subreg): Add tests against IFmode/KFmode.
17684 (reg_offset_addressing_ok_p): Likewise.
17685 (rs6000_legitimate_offset_address_p): Likewise.
17686 (rs6000_legitimize_address): Likewise.
17687 (rs6000_legitimize_reload_address): Likewise.
17688 (rs6000_legitimate_address_p): Clean up tests against TFmode and
17689 TDmode to use the new helper macros, which will include IFmode and
17690 KFmode.
17691 (rs6000_emit_move): Likewise.
17692 (rs6000_darwin64_record_arg_recurse): Likewise.
17693 (print_operand): Likewise.
17694 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17695 that uses a single vector register as a vector and not as a
17696 floating point register in terms of the calling sequence.
17697 (rs6000_discover_homogeneous_aggregate): Likewise.
17698 (rs6000_return_in_memory): Likewise.
17699 (init_cumulative_args): Likewise.
17700 (rs6000_function_arg_boundary): Likewise.
17701 (rs6000_function_arg_advance_1): Likewise.
17702 (rs6000_function_arg): Likewise.
17703 (rs6000_pass_by_reference): Likewise.
17704 (rs6000_gimplify_va_arg): Likewise.
17705 (rs6000_secondary_reload_memory): Use machine_mode not enum
17706 machine mode.
17707 (rs6000_split_multireg_move): Use new helper macros.
17708 (spe_func_has_64bit_regs_p): Likewise.
17709 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17710 (output_toc): Use new helper macros.
17711 (rs6000_register_move_cost): Likewise.
17712 (rs6000_function_value): Add IEEE 128-bit floating point calling
17713 sequence support.
17714 (rs6000_libcall_value): Likewise.
17715 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17716 floating point support.
17717 (rs6000_vector_mode_supported_p): Likewise.
17718
17719 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
17720
17721 PR rtl-optimization/66782
17722 * lra-int.h (struct lra_insn_recog_data): Add comment about
17723 clobbered hard regs for arg_hard_regs.
17724 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17725 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17726 Add condition for processing used hard regs.
17727 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17728 Process clobbered hard regs.
17729
17730 2015-07-09 Michael Matz <matz@suse.de>
17731
17732 * genmatch.c (fprintf_indent): New function.
17733 (operand::gen_transform): Add indent parameter.
17734 (expr::gen_transform, c_expr::gen_transform,
17735 capture::gen_transform): Ditto and use fprintf_indent.
17736 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17737 (dt_operand::gen, dt_operand::gen_predicate,
17738 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17739 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17740 (decision_tree::gen_gimple): Adjust calls and indent generated
17741 code.
17742 (decision_tree::gen_generic): Ditto.
17743 (write_predicate): Ditto.
17744
17745 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17746
17747 PR target/66814
17748 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17749 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17750 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17751 {GENERAL,SSE,MMX}_REG_P where appropriate.
17752
17753 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17754
17755 * lto-streamer.h: Don't include target.h and alloc-pool.h.
17756 * builtins.c: Adjust includes.
17757 * gimple.c: Likewise.
17758 * ipa-icf.c: Likewise.
17759 * lto-opts.c: Likewise.
17760 * ipa-reference.c: Likewise.
17761 * lto-section-out.c: Likewise.
17762 * lto-streamer-in.c: Likewise.
17763 * lto-streamer-out.c: Likewise.
17764 * opts-global.c: Likewise.
17765 * symtab.c: Likewise.
17766 * tree-chkp.c: Likewise.
17767 * tree-ssa-live.c: Likewise.
17768 * tree-streamer-in.c: Likewise.
17769 * tree-streamer-out.c: Likewise.
17770 * config/darwin.c: Likewise.
17771 * config/i386/winnt.c: Likewise.
17772
17773 2015-07-09 Richard Biener <rguenther@suse.de>
17774
17775 * genmatch.c (struct expr): Add force_single_use flag.
17776 (expr::expr): Add copy constructor.
17777 (capture_info::walk_match): Gather force_single_use captures.
17778 (expr::gen_transform): Use possibly NULLified sequence.
17779 (dt_simplify::gen): Apply single-use restrictions by NULLifying
17780 seq if any constrained expr is not single-use.
17781 (parser::parse_expr): Refactor to allow multiple flags. Handle
17782 's' flag to force an expression have a single-use if the pattern
17783 simplifies to more than one statement.
17784 * match.pd: Convert most single_use conditionals to :s flags.
17785
17786 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17787
17788 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17789 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17790 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17791
17792 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17793
17794 * flags.h: Don't include flag-types.h or options.h.
17795 * opts-common.c: Adjust includes.
17796 * opts-global.c: Likewise.
17797 * common/config/epiphany/epiphany-common.c: Likewise.
17798
17799 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17800
17801 PR target/66818
17802 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17803 for IA MCU.
17804
17805 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17806
17807 PR target/66817
17808 * config/i386/i386.c (ix86_return_in_memory): Return true
17809 if int_size_in_bytes returns negative for IA MCU.
17810
17811 2015-07-09 Marek Polacek <polacek@redhat.com>
17812
17813 PR tree-optimization/66718
17814 * Makefile.in (OBJS): Add gimple-laddress.o.
17815 * passes.def: Schedule pass_laddress.
17816 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17817 * tree-pass.h (make_pass_laddress): Declare.
17818 * gimple-laddress.c: New file.
17819
17820 2015-07-09 Richard Biener <rguenther@suse.de>
17821
17822 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17823
17824 2015-07-09 Richard Biener <rguenther@suse.de>
17825
17826 PR tree-optimization/66807
17827 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17828
17829 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
17830
17831 * function.c (stack_protect_epilogue): Use if rather than switch for
17832 check targetm.have_stack_protect_test.
17833
17834 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17835
17836 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17837 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17838 * config/arc/arc.h: Likewise.
17839 * config/arm/arm.h: Likewise.
17840 * config/bfin/bfin.h: Likewise.
17841 * config/epiphany/epiphany.h: Likewise.
17842 * config/frv/frv.h: Likewise.
17843 * config/ia64/ia64.h: Likewise.
17844 * config/iq2000/iq2000.h: Likewise.
17845 * config/lm32/lm32.h: Likewise.
17846 * config/m32r/m32r.h: Likewise.
17847 * config/mcore/mcore.h: Likewise.
17848 * config/mep/mep.h: Likewise.
17849 * config/microblaze/microblaze.h: Likewise.
17850 * config/mips/mips.h: Likewise.
17851 * config/mmix/mmix.h: Likewise.
17852 * config/mn10300/mn10300.h: Likewise.
17853 * config/nds32/nds32.h: Likewise.
17854 * config/nios2/nios2.h: Likewise.
17855 * config/pa/pa.h: Likewise.
17856 * config/rl78/rl78.h: Likewise.
17857 * config/sh/sh.h: Likewise.
17858 * config/sparc/sparc.h: Likewise.
17859 * config/stormy16/stormy16.h: Likewise.
17860 * config/tilegx/tilegx.h: Likewise.
17861 * config/tilepro/tilepro.h: Likewise.
17862 * config/v850/v850.h: Likewise.
17863 * config/xtensa/xtensa.h: Likewise.
17864 * doc/tm.texi: Regenerate.
17865 * doc/tm.texi.in: Adjust.
17866 * combine.c (simplify_set): Likewise.
17867 (simplify_comparison): Likewise.
17868 * expr.c (store_constructor): Likewise.
17869 * internal-fn.c (expand_arith_overflow): Likewise.
17870 * reload.c (push_reload): Likewise.
17871 (find_reloads): Likewise.
17872 (find_reloads_subreg_address): Likewise.
17873 * reload1.c (eliminate_regs_1): Likewise.
17874 * rtlanal.c (nonzero_bits1): Likewise.
17875 (num_sign_bit_copies1): Likewise.
17876 * simplify-rtx.c (simplify_truncation): Likewise.
17877
17878 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17879
17880 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17881 of AUTO_INC_DEC with the preprocessor.
17882 * combine.c (combine_instructions): Likewise.
17883 (can_combine_p): Likewise.
17884 (try_combine): Likewise.
17885 * emit-rtl.c (try_split): Likewise.
17886 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17887 * lower-subreg.c (resolve_simple_move): Likewise.
17888 * lra.c (update_inc_notes): Likewise.
17889 * recog.c (asm_operand_ok): Likewise.
17890 (constrain_operands): Likewise.
17891 * regrename.c (scan_rtx_address): Likewise.
17892 * reload.c (update_auto_inc_notes): Likewise.
17893 (reg_inc_found_and_valid_p): Likewise.
17894 * reload1.c (reload): Likewise.
17895 (emit_input_reload_insns): Likewise.
17896 (delete_output_reload): Likewise.
17897 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17898 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17899
17900 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17901
17902 * rtl.h: Always define AUTO_INC_DEC.
17903 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17904 * combine.c (combine_instructions): Likewise.
17905 (can_combine_p): Likewise.
17906 (try_combine): Likewise.
17907 * emit-rtl.c (try_split): Likewise.
17908 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17909 * lower-subreg.c (resolve_simple_move): Likewise.
17910 * lra.c (update_inc_notes): Likewise.
17911 * recog.c (asm_operand_ok): Likewise.
17912 (constrain_operands): Likewise.
17913 * regrename.c (scan_rtx_address): Likewise.
17914 * reload.c (update_auto_inc_notes): Likewise.
17915 (find_equiv_reg): Likewise.
17916 * reload1.c (reload): Likewise.
17917 (reload_as_needed): Likewise.
17918 (choose_reload_regs): Likewise.
17919 (emit_input_reload_insns): Likewise.
17920 (delete_output_reload): Likewise.
17921 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17922 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17923
17924 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17925
17926 * combine.c (can_combine_def_p): Don't check the value of
17927 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17928 (combinable_i3pat): Likewise.
17929 (mark_used_regs_combine): Likewise.
17930 * regrename.c (rename_chains): Likewise.
17931 * reload.c (find_reloads_address): Likewise.
17932 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17933
17934 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17935
17936 * combine.c (update_rsp_from_reg_equal): Don't check if
17937 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17938 (reg_nonzero_bits_for_combine): Likewise.
17939 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17940 1.
17941 * config/frv/frv.h: Likewise.
17942 * config/lm32/lm32.h: Likewise.
17943 * config/mep/mep.h: Likewise.
17944 * config/mips/mips.h: Likewise.
17945 * config/rs6000/rs6000.h: Likewise.
17946 * config/sh/sh.h: Likewise.
17947 * config/tilegx/tilegx.h (enum reg_class): Likewise.
17948 * config/tilepro/tilepro.h: Likewise.
17949 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17950 * doc/tm.texi: Regenerate.
17951 * doc/tm.texi.in: Adjust.
17952 * rtlanal.c (nonzero_bits1): Likewise.
17953
17954 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17955
17956 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17957 with the preprocessor.
17958 (combine_instructions): Likewise.
17959 (try_combine): Likewise.
17960 (subst): Likewise.
17961 (distribute_notes): Likewise.
17962
17963 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17964
17965 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17966 defined.
17967 (simplify_set): Likewise.
17968 * cse.c (cse_insn): Likewise.
17969 * fold-const.c (fold_single_bit_test): Likewise.
17970 (fold_unary_loc): Likewise.
17971 * postreload.c (reload_cse_simplify_set): Likewise.
17972 (reload_cse_simplify_operands): Likewise.
17973
17974 2015-07-08 Jiong Wang <jiong.wang@arm.com>
17975
17976 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17977 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17978
17979 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17980
17981 PR target/66746
17982 * config/i386/x86intrin.h: Include <adxintrin.h> even if
17983 __iamcu__ is defined.
17984
17985 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17986
17987 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17988
17989 2015-07-08 Iain Sandoe <iain@codesourcery.com>
17990
17991 PR target/66523
17992 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17993 names from preservation.
17994
17995 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17996
17997 PR target/66806
17998 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17999 change for IAMCU.
18000 (function_arg_advance_32): Don't pass vectors in registers for
18001 IAMCU.
18002 (function_arg_32): Likewise.
18003 (ix86_return_in_memory): Don't return vectors in registers for
18004 IAMCU.
18005
18006 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
18007
18008 PR middle-end/66334
18009 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18010 hard regno live at the start of BB with incoming abnormal edges.
18011 * lra-lives.c (process_bb_lives): Ditto.
18012
18013 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
18014
18015 PR libgomp/65099
18016 * config/nvptx/mkoffload.c (main): Create an offload image only in
18017 64-bit configurations.
18018
18019 2015-07-08 Martin Liska <mliska@suse.cz>
18020
18021 PR bootstrap/66744
18022 * tree-sra.c (create_access_1): Call ctor without brackets.
18023 (create_artificial_child_access): Likewise.
18024
18025 2015-07-08 Richard Biener <rguenther@suse.de>
18026
18027 PR tree-optimization/66793
18028 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18029 Properly split the block after stmts ending it.
18030
18031 2015-07-08 Richard Biener <rguenther@suse.de>
18032
18033 PR tree-optimization/66794
18034 * passes.c (execute_function_todo): Assert that post-dominators
18035 are not computed.
18036 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18037 Free post-dominators.
18038
18039 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18040
18041 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18042 with early exit.
18043
18044 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18045
18046 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18047 more than or equal 8 and less than 32 when optimizing for size.
18048
18049 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18050
18051 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18052 COSTS_N_INSNS (1) and increment it appropriately throughout the
18053 function.
18054
18055 2015-07-08 Richard Biener <rguenther@suse.de>
18056
18057 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18058
18059 2015-07-08 Alan Modra <amodra@gmail.com>
18060
18061 * target.def (rtx_costs): Remove "code" param, add "mode".
18062 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18063 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
18064 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18065 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
18066 call. Track mode when given in rtx.
18067 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
18068 (default_address_cost): Pass Pmode to rtx_cost.
18069 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18070 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18071 with NULL set.
18072 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
18073 (notreg_cost): Add mode param. Use it.
18074 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
18075 mode param and pass to set_src_cost. Update all calls.
18076 (hash_scan_set): Formatting.
18077 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18078 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18079 * hooks.h: Ditto.
18080 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18081 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18082 emit_store_flag): Update set_src_cost and rtx_cost calls.
18083 * auto-inc-dec.c (attempt_change): Likewise.
18084 * calls.c (precompute_register_parameters): Likewise.
18085 * combine.c (expand_compound_operation, make_extraction,
18086 force_to_mode, distribute_and_simplify_rtx): Likewise.
18087 * dojump.c (prefer_and_bit_test): Likewise.
18088 * dse.c (find_shift_sequence): Likewise.
18089 * expr.c (compress_float_constant): Likewise.
18090 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18091 * ifcvt.c (noce_try_sign_mask): Likewise.
18092 * loop-doloop.c (doloop_optimize): Likewise.
18093 * loop-invariant.c (create_new_invariant): Likewise.
18094 * lower-subreg.c (shift_cost, compute_costs): Likewise.
18095 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18096 lshift_cheap_p): Likewise.
18097 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18098 try_replace_in_use, reload_cse_move2add): Likewise.
18099 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18100 Likewise.
18101 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18102 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18103 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18104 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18105 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18106 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
18107 to rtx_cost calls.
18108 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18109 * config/arc/arc.c (arc_rtx_costs): Likewise.
18110 * config/arm/arm.c (arm_rtx_costs): Likewise.
18111 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18112 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18113 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18114 * config/cris/cris.c (cris_rtx_costs): Likewise.
18115 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18116 * config/frv/frv.c (frv_rtx_costs): Likewise.
18117 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18118 * config/i386/i386.c (ix86_rtx_costs): Likewise.
18119 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18120 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18121 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18122 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18123 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18124 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18125 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18126 * config/mep/mep.c (mep_rtx_cost): Likewise.
18127 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18128 * config/mips/mips.c (mips_rtx_costs): Likewise.
18129 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18130 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18131 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18132 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18133 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18134 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18135 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18136 * config/pa/pa.c (hppa_rtx_costs): Likewise.
18137 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18138 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18139 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18140 * config/s390/s390.c (s390_rtx_costs): Likewise.
18141 * config/sh/sh.c (sh_rtx_costs): Likewise.
18142 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18143 * config/spu/spu.c (spu_rtx_costs): Likewise.
18144 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18145 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18146 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18147 * config/v850/v850.c (v850_rtx_costs): Likewise.
18148 * config/vax/vax.c (vax_rtx_costs): Likewise.
18149 * config/visium/visium.c (visium_rtx_costs): Likewise.
18150 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18151 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18152 "code" param, and pass as outer_code to first rtx_cost call. Pass
18153 mode to rtx_cost calls.
18154 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18155 calls.
18156 (aarch64_rtx_costs_wrapper): Update.
18157 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18158 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18159 rtx_cost calls.
18160 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18161 and rtx_cost calls.
18162 (avr_operand_rtx_cost): Similarly.
18163 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18164 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18165 * config/mips/mips.c (mips_stack_address_p): Comment typo.
18166 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18167 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18168 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18169 rtx_cost.
18170 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18171 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18172 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18173 * doc/tm.texi: Regenerate.
18174
18175 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
18176
18177 * tree-core.h: Include symtab.h.
18178 * rtl.h: Include hard-reg-set.h but not flags.h.
18179 (HARD_CONST): Remove condition compilation involving HARD_CONST since
18180 hard-reg-set.h is always included.
18181 * regs.h: Don't include hard-reg-set.h or rtl.h.
18182 * cfg.h: Include dominance.h.
18183 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18184 * backend.h: New. Aggregate commonly used backend header files.
18185 * gimple-ssa.h: Don't include tree-hasher.h.
18186 * ssa.h: New. Aggregate commonly used SSA header files.
18187 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18188 * sel-sched-ir.h: Flatten includes.
18189 * lra-int.h: Flatten completely.
18190 * sel-sched-dump.h: Flatten includes.
18191 * ira-int.h: Flatten includes.
18192 * gimple-streamer.h: Remove all includes.
18193 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18194 * resource.h: Flatten hard-reg-set.h and df.h.
18195 * sched-int.h: Flatten insn-arrt.h and df.h.
18196 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18197 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18198 * genattrtab.c (write_header): Adjust generated includes.
18199 * genautomata.c (main): Likewise.
18200 * genconditions.c (write-header): Likewise.
18201 * genemit.c (main): Likewise.
18202 * gengtype.c (open_base_files): Likewise.
18203 * genopinit.c (main): Likewise.
18204 * genoutput.c (output_prologue): Likewise.
18205 * genpeep.c (main): Likewise.
18206 * genpreds.c (write_insn_preds_c): Likewise.
18207 * genrecog.c (write_header): Likewise.
18208 * alias.c: Adjust includes.
18209 * asan.c: Likewise.
18210 * attribs.c: Likewise.
18211 * auto-inc-dec.c: Likewise.
18212 * auto-profile.c: Likewise.
18213 * bb-reorder.c: Likewise.
18214 * bt-load.c: Likewise.
18215 * builtins.c: Likewise.
18216 * caller-save.c: Likewise.
18217 * calls.c: Likewise.
18218 * ccmp.c: Likewise.
18219 * cfg.c: Likewise.
18220 * cfganal.c: Likewise.
18221 * cfgbuild.c: Likewise.
18222 * cfgcleanup.c: Likewise.
18223 * cfgexpand.c: Likewise.
18224 * cfghooks.c: Likewise.
18225 * cfgloop.c: Likewise.
18226 * cfgloopanal.c: Likewise.
18227 * cfgloopmanip.c: Likewise.
18228 * cfgrtl.c: Likewise.
18229 * cgraph.c: Likewise.
18230 * cgraphbuild.c: Likewise.
18231 * cgraphclones.c: Likewise.
18232 * cgraphunit.c: Likewise.
18233 * cilk-common.c: Likewise.
18234 * combine-stack-adj.c: Likewise.
18235 * combine.c: Likewise.
18236 * compare-elim.c: Likewise.
18237 * convert.c: Likewise.
18238 * coverage.c: Likewise.
18239 * cppbuiltin.c: Likewise.
18240 * cprop.c: Likewise.
18241 * cse.c: Likewise.
18242 * cselib.c: Likewise.
18243 * data-streamer-in.c: Likewise.
18244 * data-streamer-out.c: Likewise.
18245 * data-streamer.c: Likewise.
18246 * dbxout.c: Likewise.
18247 * dce.c: Likewise.
18248 * ddg.c: Likewise.
18249 * debug.c: Likewise.
18250 * df-core.c: Likewise.
18251 * df-problems.c: Likewise.
18252 * df-scan.c: Likewise.
18253 * dfp.c: Likewise.
18254 * dojump.c: Likewise.
18255 * dominance.c: Likewise.
18256 * domwalk.c: Likewise.
18257 * double-int.c: Likewise.
18258 * dse.c: Likewise.
18259 * dumpfile.c: Likewise.
18260 * dwarf2asm.c: Likewise.
18261 * dwarf2cfi.c: Likewise.
18262 * dwarf2out.c: Likewise.
18263 * emit-rtl.c: Likewise.
18264 * et-forest.c: Likewise.
18265 * except.c: Likewise.
18266 * explow.c: Likewise.
18267 * expmed.c: Likewise.
18268 * expr.c: Likewise.
18269 * final.c: Likewise.
18270 * fixed-value.c: Likewise.
18271 * fold-const.c: Likewise.
18272 * function.c: Likewise.
18273 * fwprop.c: Likewise.
18274 * gcc-plugin.h: Likewise.
18275 * gcse-common.c: Likewise.
18276 * gcse.c: Likewise.
18277 * generic-match-head.c: Likewise.
18278 * ggc-page.c: Likewise.
18279 * gimple-builder.c: Likewise.
18280 * gimple-expr.c: Likewise.
18281 * gimple-fold.c: Likewise.
18282 * gimple-iterator.c: Likewise.
18283 * gimple-low.c: Likewise.
18284 * gimple-match-head.c: Likewise.
18285 * gimple-pretty-print.c: Likewise.
18286 * gimple-ssa-isolate-paths.c: Likewise.
18287 * gimple-ssa-strength-reduction.c: Likewise.
18288 * gimple-streamer-in.c: Likewise.
18289 * gimple-streamer-out.c: Likewise.
18290 * gimple-walk.c: Likewise.
18291 * gimple.c: Likewise.
18292 * gimplify-me.c: Likewise.
18293 * gimplify.c: Likewise.
18294 * godump.c: Likewise.
18295 * graph.c: Likewise.
18296 * graphite-blocking.c: Likewise.
18297 * graphite-dependences.c: Likewise.
18298 * graphite-interchange.c: Likewise.
18299 * graphite-isl-ast-to-gimple.c: Likewise.
18300 * graphite-optimize-isl.c: Likewise.
18301 * graphite-poly.c: Likewise.
18302 * graphite-scop-detection.c: Likewise.
18303 * graphite-sese-to-poly.c: Likewise.
18304 * graphite.c: Likewise.
18305 * haifa-sched.c: Likewise.
18306 * hw-doloop.c: Likewise.
18307 * ifcvt.c: Likewise.
18308 * init-regs.c: Likewise.
18309 * internal-fn.c: Likewise.
18310 * ipa-chkp.c: Likewise.
18311 * ipa-comdats.c: Likewise.
18312 * ipa-cp.c: Likewise.
18313 * ipa-devirt.c: Likewise.
18314 * ipa-icf-gimple.c: Likewise.
18315 * ipa-icf.c: Likewise.
18316 * ipa-inline-analysis.c: Likewise.
18317 * ipa-inline-transform.c: Likewise.
18318 * ipa-inline.c: Likewise.
18319 * ipa-polymorphic-call.c: Likewise.
18320 * ipa-profile.c: Likewise.
18321 * ipa-prop.c: Likewise.
18322 * ipa-pure-const.c: Likewise.
18323 * ipa-ref.c: Likewise.
18324 * ipa-reference.c: Likewise.
18325 * ipa-split.c: Likewise.
18326 * ipa-utils.c: Likewise.
18327 * ipa-visibility.c: Likewise.
18328 * ipa.c: Likewise.
18329 * ira-build.c: Likewise.
18330 * ira-color.c: Likewise.
18331 * ira-conflicts.c: Likewise.
18332 * ira-costs.c: Likewise.
18333 * ira-emit.c: Likewise.
18334 * ira-lives.c: Likewise.
18335 * ira.c: Likewise.
18336 * jump.c: Likewise.
18337 * langhooks.c: Likewise.
18338 * lcm.c: Likewise.
18339 * loop-doloop.c: Likewise.
18340 * loop-init.c: Likewise.
18341 * loop-invariant.c: Likewise.
18342 * loop-iv.c: Likewise.
18343 * loop-unroll.c: Likewise.
18344 * lower-subreg.c: Likewise.
18345 * lra-assigns.c: Likewise.
18346 * lra-coalesce.c: Likewise.
18347 * lra-constraints.c: Likewise.
18348 * lra-eliminations.c: Likewise.
18349 * lra-lives.c: Likewise.
18350 * lra-remat.c: Likewise.
18351 * lra-spills.c: Likewise.
18352 * lra.c: Likewise.
18353 * lto-cgraph.c: Likewise.
18354 * lto-compress.c: Likewise.
18355 * lto-opts.c: Likewise.
18356 * lto-section-in.c: Likewise.
18357 * lto-section-out.c: Likewise.
18358 * lto-streamer-in.c: Likewise.
18359 * lto-streamer-out.c: Likewise.
18360 * lto-streamer.c: Likewise.
18361 * mcf.c: Likewise.
18362 * mode-switching.c: Likewise.
18363 * modulo-sched.c: Likewise.
18364 * omega.c: Likewise.
18365 * omp-low.c: Likewise.
18366 * optabs.c: Likewise.
18367 * opts-global.c: Likewise.
18368 * passes.c: Likewise.
18369 * plugin.c: Likewise.
18370 * postreload-gcse.c: Likewise.
18371 * postreload.c: Likewise.
18372 * predict.c: Likewise.
18373 * print-rtl.c: Likewise.
18374 * print-tree.c: Likewise.
18375 * profile.c: Likewise.
18376 * real.c: Likewise.
18377 * realmpfr.c: Likewise.
18378 * recog.c: Likewise.
18379 * ree.c: Likewise.
18380 * reg-stack.c: Likewise.
18381 * regcprop.c: Likewise.
18382 * reginfo.c: Likewise.
18383 * regrename.c: Likewise.
18384 * regstat.c: Likewise.
18385 * reload.c: Likewise.
18386 * reload1.c: Likewise.
18387 * reorg.c: Likewise.
18388 * resource.c: Likewise.
18389 * rtl-chkp.c: Likewise.
18390 * rtlanal.c: Likewise.
18391 * rtlhooks.c: Likewise.
18392 * sanopt.c: Likewise.
18393 * sched-deps.c: Likewise.
18394 * sched-ebb.c: Likewise.
18395 * sched-rgn.c: Likewise.
18396 * sched-vis.c: Likewise.
18397 * sdbout.c: Likewise.
18398 * sel-sched-dump.c: Likewise.
18399 * sel-sched-ir.c: Likewise.
18400 * sel-sched.c: Likewise.
18401 * sese.c: Likewise.
18402 * shrink-wrap.c: Likewise.
18403 * simplify-rtx.c: Likewise.
18404 * stack-ptr-mod.c: Likewise.
18405 * stmt.c: Likewise.
18406 * stor-layout.c: Likewise.
18407 * store-motion.c: Likewise.
18408 * stringpool.c: Likewise.
18409 * symtab.c: Likewise.
18410 * target-globals.c: Likewise.
18411 * targhooks.c: Likewise.
18412 * toplev.c: Likewise.
18413 * tracer.c: Likewise.
18414 * trans-mem.c: Likewise.
18415 * tree-affine.c: Likewise.
18416 * tree-browser.c: Likewise.
18417 * tree-call-cdce.c: Likewise.
18418 * tree-cfg.c: Likewise.
18419 * tree-cfgcleanup.c: Likewise.
18420 * tree-chkp-opt.c: Likewise.
18421 * tree-chkp.c: Likewise.
18422 * tree-chrec.c: Likewise.
18423 * tree-complex.c: Likewise.
18424 * tree-data-ref.c: Likewise.
18425 * tree-dfa.c: Likewise.
18426 * tree-diagnostic.c: Likewise.
18427 * tree-dump.c: Likewise.
18428 * tree-eh.c: Likewise.
18429 * tree-emutls.c: Likewise.
18430 * tree-if-conv.c: Likewise.
18431 * tree-inline.c: Likewise.
18432 * tree-into-ssa.c: Likewise.
18433 * tree-iterator.c: Likewise.
18434 * tree-loop-distribution.c: Likewise.
18435 * tree-nested.c: Likewise.
18436 * tree-nrv.c: Likewise.
18437 * tree-object-size.c: Likewise.
18438 * tree-outof-ssa.c: Likewise.
18439 * tree-parloops.c: Likewise.
18440 * tree-phinodes.c: Likewise.
18441 * tree-predcom.c: Likewise.
18442 * tree-pretty-print.c: Likewise.
18443 * tree-profile.c: Likewise.
18444 * tree-scalar-evolution.c: Likewise.
18445 * tree-sra.c: Likewise.
18446 * tree-ssa-address.c: Likewise.
18447 * tree-ssa-alias.c: Likewise.
18448 * tree-ssa-ccp.c: Likewise.
18449 * tree-ssa-coalesce.c: Likewise.
18450 * tree-ssa-copy.c: Likewise.
18451 * tree-ssa-copyrename.c: Likewise.
18452 * tree-ssa-dce.c: Likewise.
18453 * tree-ssa-dom.c: Likewise.
18454 * tree-ssa-dse.c: Likewise.
18455 * tree-ssa-forwprop.c: Likewise.
18456 * tree-ssa-ifcombine.c: Likewise.
18457 * tree-ssa-live.c: Likewise.
18458 * tree-ssa-loop-ch.c: Likewise.
18459 * tree-ssa-loop-im.c: Likewise.
18460 * tree-ssa-loop-ivcanon.c: Likewise.
18461 * tree-ssa-loop-ivopts.c: Likewise.
18462 * tree-ssa-loop-manip.c: Likewise.
18463 * tree-ssa-loop-niter.c: Likewise.
18464 * tree-ssa-loop-prefetch.c: Likewise.
18465 * tree-ssa-loop-unswitch.c: Likewise.
18466 * tree-ssa-loop.c: Likewise.
18467 * tree-ssa-math-opts.c: Likewise.
18468 * tree-ssa-operands.c: Likewise.
18469 * tree-ssa-phiopt.c: Likewise.
18470 * tree-ssa-phiprop.c: Likewise.
18471 * tree-ssa-pre.c: Likewise.
18472 * tree-ssa-propagate.c: Likewise.
18473 * tree-ssa-reassoc.c: Likewise.
18474 * tree-ssa-sccvn.c: Likewise.
18475 * tree-ssa-scopedtables.c: Likewise.
18476 * tree-ssa-sink.c: Likewise.
18477 * tree-ssa-strlen.c: Likewise.
18478 * tree-ssa-structalias.c: Likewise.
18479 * tree-ssa-tail-merge.c: Likewise.
18480 * tree-ssa-ter.c: Likewise.
18481 * tree-ssa-threadedge.c: Likewise.
18482 * tree-ssa-threadupdate.c: Likewise.
18483 * tree-ssa-uncprop.c: Likewise.
18484 * tree-ssa-uninit.c: Likewise.
18485 * tree-ssa.c: Likewise.
18486 * tree-ssanames.c: Likewise.
18487 * tree-stdarg.c: Likewise.
18488 * tree-streamer-in.c: Likewise.
18489 * tree-streamer-out.c: Likewise.
18490 * tree-streamer.c: Likewise.
18491 * tree-switch-conversion.c: Likewise.
18492 * tree-tailcall.c: Likewise.
18493 * tree-vect-data-refs.c: Likewise.
18494 * tree-vect-generic.c: Likewise.
18495 * tree-vect-loop-manip.c: Likewise.
18496 * tree-vect-loop.c: Likewise.
18497 * tree-vect-patterns.c: Likewise.
18498 * tree-vect-slp.c: Likewise.
18499 * tree-vect-stmts.c: Likewise.
18500 * tree-vectorizer.c: Likewise.
18501 * tree-vrp.c: Likewise.
18502 * tree.c: Likewise.
18503 * tsan.c: Likewise.
18504 * ubsan.c: Likewise.
18505 * valtrack.c: Likewise.
18506 * value-prof.c: Likewise.
18507 * var-tracking.c: Likewise.
18508 * varasm.c: Likewise.
18509 * varpool.c: Likewise.
18510 * vmsdbgout.c: Likewise.
18511 * vtable-verify.c: Likewise.
18512 * web.c: Likewise.
18513 * wide-int.cc: Likewise.
18514 * xcoffout.c: Likewise.
18515 * config/aarch64/aarch64-builtins.c: Likewise.
18516 * config/aarch64/aarch64.c: Likewise.
18517 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18518 * config/alpha/alpha.c: Likewise.
18519 * config/arc/arc.c: Likewise.
18520 * config/arm/aarch-common.c: Likewise.
18521 * config/arm/arm-builtins.c: Likewise.
18522 * config/arm/arm-c.c: Likewise.
18523 * config/arm/arm.c: Likewise.
18524 * config/avr/avr-c.c: Likewise.
18525 * config/avr/avr-log.c: Likewise.
18526 * config/avr/avr.c: Likewise.
18527 * config/bfin/bfin.c: Likewise.
18528 * config/c6x/c6x.c: Likewise.
18529 * config/cr16/cr16.c: Likewise.
18530 * config/cris/cris.c: Likewise.
18531 * config/darwin-c.c: Likewise.
18532 * config/darwin.c: Likewise.
18533 * config/epiphany/epiphany.c: Likewise.
18534 * config/epiphany/mode-switch-use.c: Likewise.
18535 * config/epiphany/resolve-sw-modes.c: Likewise.
18536 * config/fr30/fr30.c: Likewise.
18537 * config/frv/frv.c: Likewise.
18538 * config/ft32/ft32.c: Likewise.
18539 * config/h8300/h8300.c: Likewise.
18540 * config/i386/i386-c.c: Likewise.
18541 * config/i386/i386.c: Likewise.
18542 * config/i386/msformat-c.c: Likewise.
18543 * config/i386/winnt-cxx.c: Likewise.
18544 * config/i386/winnt-stubs.c: Likewise.
18545 * config/i386/winnt.c: Likewise.
18546 * config/ia64/ia64-c.c: Likewise.
18547 * config/ia64/ia64.c: Likewise.
18548 * config/iq2000/iq2000.c: Likewise.
18549 * config/lm32/lm32.c: Likewise.
18550 * config/m32c/m32c-pragma.c: Likewise.
18551 * config/m32c/m32c.c: Likewise.
18552 * config/m32r/m32r.c: Likewise.
18553 * config/m68k/m68k.c: Likewise.
18554 * config/mcore/mcore.c: Likewise.
18555 * config/mep/mep-pragma.c: Likewise.
18556 * config/mep/mep.c: Likewise.
18557 * config/microblaze/microblaze-c.c: Likewise.
18558 * config/microblaze/microblaze.c: Likewise.
18559 * config/mips/mips.c: Likewise.
18560 * config/mmix/mmix.c: Likewise.
18561 * config/mn10300/mn10300.c: Likewise.
18562 * config/moxie/moxie.c: Likewise.
18563 * config/msp430/msp430-c.c: Likewise.
18564 * config/msp430/msp430.c: Likewise.
18565 * config/nds32/nds32-cost.c: Likewise.
18566 * config/nds32/nds32-fp-as-gp.c: Likewise.
18567 * config/nds32/nds32-intrinsic.c: Likewise.
18568 * config/nds32/nds32-isr.c: Likewise.
18569 * config/nds32/nds32-md-auxiliary.c: Likewise.
18570 * config/nds32/nds32-memory-manipulation.c: Likewise.
18571 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18572 * config/nds32/nds32-predicates.c: Likewise.
18573 * config/nds32/nds32.c: Likewise.
18574 * config/nios2/nios2.c: Likewise.
18575 * config/nvptx/nvptx.c: Likewise.
18576 * config/pa/pa.c: Likewise.
18577 * config/pdp11/pdp11.c: Likewise.
18578 * config/rl78/rl78-c.c: Likewise.
18579 * config/rl78/rl78.c: Likewise.
18580 * config/rs6000/rs6000-c.c: Likewise.
18581 * config/rs6000/rs6000.c: Likewise.
18582 * config/rx/rx.c: Likewise.
18583 * config/s390/s390-c.c: Likewise.
18584 * config/s390/s390.c: Likewise.
18585 * config/sh/sh-c.c: Likewise.
18586 * config/sh/sh-mem.cc: Likewise.
18587 * config/sh/sh.c: Likewise.
18588 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18589 * config/sh/sh_treg_combine.cc: Likewise.
18590 * config/sol2-c.c: Likewise.
18591 * config/sol2-cxx.c: Likewise.
18592 * config/sol2-stubs.c: Likewise.
18593 * config/sol2.c: Likewise.
18594 * config/sparc/sparc-c.c: Likewise.
18595 * config/sparc/sparc.c: Likewise.
18596 * config/spu/spu-c.c: Likewise.
18597 * config/spu/spu.c: Likewise.
18598 * config/stormy16/stormy16.c: Likewise.
18599 * config/tilegx/mul-tables.c: Likewise.
18600 * config/tilegx/tilegx-c.c: Likewise.
18601 * config/tilegx/tilegx.c: Likewise.
18602 * config/tilepro/mul-tables.c: Likewise.
18603 * config/tilepro/tilepro-c.c: Likewise.
18604 * config/tilepro/tilepro.c: Likewise.
18605 * config/v850/v850-c.c: Likewise.
18606 * config/v850/v850.c: Likewise.
18607 * config/vax/vax.c: Likewise.
18608 * config/visium/visium.c: Likewise.
18609 * config/vms/vms-c.c: Likewise.
18610 * config/vms/vms.c: Likewise.
18611 * config/vxworks.c: Likewise.
18612 * config/xtensa/xtensa.c: Likewise.
18613
18614 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
18615
18616 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18617 Remove operand constraints. Change operand 2 predicate to
18618 nonmemory operand. Limit const_int values to mode bitsize. Only
18619 allow const_int values less than 32 when optimizing for size.
18620 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18621 Remove operand constraints.
18622 (*bt<mode>): Use SImode for const_int values less than 32.
18623 (regmode): Remove mode attribute.
18624
18625 2015-07-07 Anatoly Sokolov <aesok@post.ru>
18626
18627 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18628 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18629 moxie_legitimate_address_p): New functions.
18630 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18631
18632 2015-07-07 Tom de Vries <tom@codesourcery.com>
18633
18634 PR tree-optimization/66642
18635 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18636 header comment. Rename split_edge variable to edge_at_split. Split
18637 exit edge to create new loop exit bb. Insert loop exit phis in new
18638 loop exit bb.
18639
18640 2015-07-07 Tom de Vries <tom@codesourcery.com>
18641
18642 * tree-cfg.c (get_virtual_phi): New function.
18643 * tree-cfg.h (get_virtual_phi): Declare.
18644 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18645 (rewrite_virtuals_into_loop_closed_ssa): New function.
18646 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18647 Declare.
18648 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18649 (transform_to_exit_first_loop_alt): Use
18650 rewrite_virtuals_into_loop_closed_ssa.
18651
18652 2015-07-07 Richard Biener <rguenther@suse.de>
18653
18654 * fold-const.c (fold_binary_loc): Move
18655 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18656 * match.pd: ... here.
18657 Add (X * C1) % C2 -> 0 simplification pattern derived from
18658 extract_muldiv_1.
18659
18660 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
18661
18662 PR target/66780
18663 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18664 change for target/65249.
18665
18666 2015-07-07 Paulo Matos <pmatos@broadcom.com>
18667
18668 * symtab.c (address_matters_1): Fix typo in comment above.
18669 (can_increase_alignment_p): Likewise.
18670
18671 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18672
18673 * function.c (free_after_compilation): Clear PROP_cfg in
18674 f->curr_properties.
18675
18676 2015-07-07 Richard Biener <rguenther@suse.de>
18677
18678 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18679 add which use to.
18680 (add_control_edge): Remove excessive vertical space in dumping.
18681 (process_ssa_edge_worklist): Simulate at most one statement and
18682 return whether we did. Do not simulate PHIs if they are in a
18683 BB not yet simulated.
18684 (ssa_propagate): Adjust to always drain the BB worklist whenever
18685 a BB is available there, likewise the VARYING edges list before
18686 the interesting edge list.
18687
18688 2015-07-07 Christian Bruel <christian.bruel@st.com>
18689
18690 PR target/52144
18691 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18692
18693 2015-07-07 Richard Biener <rguenther@suse.de>
18694
18695 PR middle-end/66739
18696 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18697 A - B.
18698
18699 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18700
18701 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
18702 modes for operands 0 and 3. Use SImode for operands 2 and 3.
18703 Copy operand 0 to a temporary if !ext_register_operand. Remove
18704 ancient extract_bit_field workaround.
18705 (insv<mode>_1): Rename from mov<mode>_insv_1.
18706 (*insvqi): Rename from *movqi_insv_2.
18707 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18708 for renamed insvsi_1.
18709 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18710
18711 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
18712
18713 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
18714 call to nvptx_reorg_subreg.
18715
18716 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
18717
18718 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18719 * graphite-dependencies.c, graphite-interchange.c,
18720 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18721 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18722 Likewise.
18723
18724 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
18725
18726 * match.pd: Remove element_mode inside HONOR_*.
18727 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18728 (~X | X -> -1, ~X ^ X -> -1): Merge.
18729 * tree.c (build_each_one_cst): New function.
18730 * tree.h (build_each_one_cst): Likewise.
18731
18732 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18733
18734 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18735 PROCESSOR_IAMCU.
18736
18737 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
18738
18739 * config.gcc <mips*-*-*>: Add fused-madd.opt.
18740 * config/mips/mips.opt (mfused-madd): Remove.
18741 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18742 * config/mips/mips.h (TARGET_MIPS8000): New.
18743 (ISA_HAS_FP_MADD4_MSUB4): Remove.
18744 (ISA_HAS_FP_MADDF_MSUBF): Remove.
18745 (ISA_HAS_FP_MADD3_MSUB3): Remove.
18746 (ISA_HAS_NMADD4_NMSUB4): Remove.
18747 (ISA_HAS_NMADD3_NMSUB3): Remove.
18748 (ISA_HAS_FUSED_MADD4): New.
18749 (ISA_HAS_UNFUSED_MADD4): New.
18750 (ISA_HAS_FUSED_MADDF): New.
18751 (ISA_HAS_FUSED_MADD3): New.
18752 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18753 (*fma<mode>4_madd3) New.
18754 (*fma<mode>4_madd4) New.
18755 (*fma<mode>4_maddf) New.
18756 (fms<mode>4) New.
18757 (*fms<mode>4_msub3) New.
18758 (*fms<mode>4_msub4) New.
18759 (fnma<mode>4) New.
18760 (*fnma<mode>4_nmadd3) New.
18761 (*fnma<mode>4_nmadd4) New.
18762 (fnms<mode>4) New.
18763 (*fnms<mode>4_nmsub3) New.
18764 (*fnms<mode>4_nmsub4) New.
18765 (*madd4<mode>) Modify to be unfused only.
18766 (*msub4<mode>) Modify to be unfused only.
18767 (*nmadd4<mode>) Modify to be unfused only.
18768 (*nmsub4<mode>) Modify to be unfused only.
18769 (*madd3<mode>) Remove.
18770 (*msub3<mode>) Remove.
18771 (*nmadd3<mode>) Remove.
18772 (*nmsub3<mode>) Remove.
18773 (*nmadd3<mode>_fastmath) Remove.
18774 (*nmsub3<mode>_fastmath) Remove.
18775 (*nmadd4<mode>_fastmath) Update condition.
18776 (*nmsub4<mode>_fastmath) Update condition.
18777
18778 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18779
18780 PR target/65956
18781 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18782 alignment attribute, exploring one level down for records and arrays.
18783
18784 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18785
18786 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
18787 modes for operands 0 and 1. Use SImode for operands 2 and 3.
18788 Copy operand 1 to a temporary if !ext_register_operand. Remove
18789 ancient extract_bit_field workaround.
18790 (*extv<mode>): Rename from *mov<mode>_extv_1.
18791 (*extvqi): Rename from *movqi_extv_1.
18792 (extzv<mode>): Rename from extzv. Use SWI248 modes for
18793 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
18794 to a temporary if !ext_register_operand. Remove ancient
18795 extract_bit_field workaround.
18796 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18797 (*extzvqi): Rename from *movqi_extzv_2.
18798 (*testqi_ext_3): Remove modes from const_int_operand predicated
18799 operands. Add "n" constraint.
18800 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18801 operand. Add "J" constraint.
18802 (*btsq, *btrq, *btcq peephole2s): Remove mode from
18803 const_0_to_63 predicated operand.
18804 (regmode): New insn attribute.
18805 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
18806 to nonmemory_operand. Use regmode insn attribute.
18807 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18808 (*jcc_bt<mode>_mask): Remove mode from operand 3.
18809 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18810 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18811 operands. Use "N" constraint instead of "n".
18812
18813 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18814
18815 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18816
18817 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18818
18819 PR target/66749
18820 * config/i386/i386.c (iamcu_cost): New.
18821 (m_IAMCU): Likewise.
18822 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18823 (processor_target_table): Add an entry for "iamcu".
18824 (processor_alias_table): Likewise.
18825 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18826 (ix86_adjust_cost): Likewise.
18827 (ia32_multipass_dfa_lookahead): Likewise.
18828 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18829 * config/i386/x86-tune.def: Updated for m_IAMCU.
18830
18831 2015-07-06 Richard Biener <rguenther@suse.de>
18832
18833 PR tree-optimization/66772
18834 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18835 values are available in the PHI node BB when there are
18836 still unexecutable edges.
18837
18838 2015-07-06 Richard Biener <rguenther@suse.de>
18839
18840 PR tree-optimization/66767
18841 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18842 Make sure to build the alignment test on a SSA name without
18843 final alignment info valid only if the alignment test
18844 evaluates to true.
18845
18846 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
18847
18848 PR target/66620
18849 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18850 loop start when inserting LSETUP.
18851
18852 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18853
18854 PR target/53383
18855 * config/i386/i386.c (ix86_option_override_internal): Allow
18856 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18857
18858 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18859
18860 * read-md.c (decimal_string): Rename to ...
18861 (md_decimal_string): ... this.
18862 (handle_enum): Reflect this.
18863
18864 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18865
18866 PR target/66731
18867 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18868
18869 2015-07-06 Richard Biener <rguenther@suse.de>
18870
18871 PR middle-end/66759
18872 * match.pd: Add missing constraint of y to REAL_CST in
18873 REAL_CST - x CMP y to y - CST CMP x simplification.
18874
18875 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
18876
18877 PR tree-optimization/66757
18878 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18879
18880 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
18881 Sandra Loosemore <sandra@codesourcery.com>
18882
18883 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18884 Delete extern declaration.
18885 (gprel_constant_p): Add extern declaration.
18886 * config/nios2/constraints.md ("S"): Use gprel_constant_p
18887 instead of nios2_symbol_ref_in_small_data_p.
18888 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18889 (nios2_symbol_ref_in_small_data_p): Make static.
18890 (gprel_constant_p): Make non-static.
18891
18892 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18893
18894 * doc/fragments.texi (Target Fragment): Convert debian.org
18895 link to use https.
18896 * doc/install.texi (Configuration): Ditto.
18897
18898 2015-07-05 Jakub Jelinek <jakub@redhat.com>
18899
18900 PR tree-optimization/66718
18901 * tree-vect-stmts.c (vectorizable_call): Replace uses of
18902 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18903
18904 PR tree-optimization/66718
18905 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18906 vectorizable_load, vectorizable_condition): Move vectype,
18907 nunits, ncopies computation after checking what kind of statement
18908 stmt is.
18909
18910 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18911
18912 * target-insns.def (extv, extzv, insv): New targetm instruction
18913 patterns.
18914 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18915 interface.
18916 * recog.c (simplify_while_replacing): Likewise.
18917
18918 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18919
18920 * target-insns.def (doloop_begin, doloop_end): New targetm
18921 instruction patterns.
18922 * loop-init.c: Include target.h.
18923 (pass_loop2::gate): Use the new targetm patterns instead of
18924 HAVE_*/gen_* interface.
18925 (pass_rtl_doloop::gate): Likewise.
18926 (pass_rtl_doloop::execute): Remove preprocessor condition.
18927 * hw-doloop.c: Build unconditionally.
18928 * loop-doloop.c: Likewise.
18929 (doloop_optimize): Use the new targetm patterns instead of
18930 HAVE_*/gen_* interface.
18931 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18932 * modulo-sched.c (doloop_register_get): Likewise.
18933
18934 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18935
18936 * target-insns.def (clear_cache): New targetm instruction pattern.
18937 * builtins.c (expand_builtin___clear_cache): Use it instead of
18938 HAVE_*/gen_* interface.
18939
18940 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18941
18942 * target-insns.def (allocate_stack, check_stack, probe_stack)
18943 (probe_stack_address, split_stack_prologue, split_stack_space_check):
18944 New targetm instruction patterns.
18945 * explow.c (allocate_dynamic_stack_space): Use them instead of
18946 HAVE_*/gen_* interface.
18947 (emit_stack_probe): Likewise.
18948 (probe_stack_range): Likewise.
18949 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18950
18951 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18952
18953 * target-insns.def (stack_protect_set, stack_protect_test): New
18954 targetm instruction patterns.
18955 * cfgexpand.c (stack_protect_prologue): Use them instead of
18956 HAVE_*/gen_* interface.
18957 * function.c (stack_protect_epilogue): Likewise.
18958
18959 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18960
18961 * expr.h (gen_move_insn_uncast): Delete.
18962 * expr.c (gen_move_insn_uncast): Delete.
18963
18964 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18965
18966 * target-insns.def (restore_stack_block, restore_stack_function)
18967 (restore_stack_nonlocal, save_stack_block, save_stack_function)
18968 (save_stack_nonlocal): New targetm instruction patterns.
18969 * builtins.c (expand_builtin_apply): Use them instead of
18970 HAVE_*/gen_* interface.
18971 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18972
18973 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18974
18975 * target-insns.def (trap): New targetm instruction pattern.
18976 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18977 interface.
18978 * explow.c (allocate_dynamic_stack_space): Likewise.
18979 * ifcvt.c (find_if_header): Likewise.
18980
18981 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18982
18983 * target-insns.def (prefetch): New targetm instruction pattern.
18984 * tree-ssa-loop-prefetch.c: Include targeth.
18985 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18986 of HAVE_*/gen_* interface.
18987 * builtins.c (expand_builtin_prefetch): Likewise.
18988 * toplev.c (process_options): Likewise.
18989
18990 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18991
18992 * target-insns.def (untyped_call, untyped_return): New targetm
18993 instruction patterns.
18994 * builtins.c (expand_builtin_apply): Use them instead of
18995 HAVE_*/gen_* interface.
18996 (result_vector): Define unconditionally.
18997
18998 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18999
19000 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19001 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19002 (nonlocal_goto_receiver): New targetm instruction patterns.
19003 * builtins.c (expand_builtin_setjmp_setup): Use them instead
19004 of HAVE_*/gen_* interface.
19005 (expand_builtin_setjmp_receiver): Likewise.
19006 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19007 * except.c (expand_dw2_landing_pad_for_region): Likewise.
19008
19009 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19010
19011 * target.def: Add code_for_* hooks.
19012 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19013 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19014 * target-insns.def (casesi, tablejump): New targetm instruction
19015 patterns.
19016 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19017 (do_tablejump): Likewise.
19018 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19019 (expand_sjlj_dispatch_table): Likewise.
19020 * targhooks.c (default_case_values_threshold): Likewise.
19021
19022 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
19023
19024 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19025 Use rtx_insn * instead of rtx.
19026 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19027 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19028 (nios2_call_tls_get_addr): Likewise.
19029 (nios2_emit_expensive_div): Likewise.
19030 (nios2_emit_move_sequence): Change return type to bool.
19031 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19032 Change return type to bool.
19033
19034 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19035
19036 PR target/66747
19037 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19038
19039 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
19040
19041 PR target/66114
19042 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19043 of register_operand. Remove constraint.
19044
19045 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
19046
19047 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19048 the first argument.
19049
19050 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
19051
19052 * attribs.c (decl_attributes): Guard inform with the return value
19053 of the preceding warning.
19054
19055 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19056
19057 * doc/invoke.texi (moverride): Move to correct section.
19058
19059 2015-07-03 Richard Biener <rguenther@suse.de>
19060
19061 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19062 Copy from tree.c
19063 (dt_operand::gen_gimple_expr): After valueizing operands
19064 re-canonicalize operand order for commutative tree codes.
19065
19066 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
19067
19068 PR target/66746.
19069 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19070 is defined.
19071 (__crc32w): Likewise.
19072 (__crc32d): Likewise.
19073 (__rdpmc): Likewise.
19074 (__rdtscp): Likewise.
19075 (_rdpmc): Likewise.
19076 (_rdtscp): Likewise.
19077 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19078 is defined.
19079
19080 2015-07-03 Richard Biener <rguenther@suse.de>
19081
19082 * fold-const.c (fold_mathfn_compare): Remove.
19083 (fold_inf_compare): Likewise.
19084 (fold_comparison): Move floating point comparison simplifications...
19085 * match.pd: ... to patterns here. Introduce simple_comparisons
19086 operator list and use it for patterns formerly in fold_comparison.
19087
19088 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19089
19090 PR tree-optimization/66119
19091 * toplev.c (process_options): Don't set up default values for
19092 the sra_max_scalarization_size_{speed,size} parameters.
19093 * tree-sra (analyze_all_variable_accesses): If no values
19094 have been set for the sra_max_scalarization_size_{speed,size}
19095 parameters, call get_move_ratio to get target defaults.
19096
19097 2015-07-03 Richard Biener <rguenther@suse.de>
19098
19099 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19100 * match.pd: ... here.
19101
19102 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
19103
19104 PR target/37072
19105 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19106 is not actually the default on FreeBSD.
19107
19108 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19109
19110 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19111 definition.
19112 (CMPGE_8HI): Likewise.
19113 (CMPGE_4SI): Likewise.
19114 (CMPGE_2DI): Likewise.
19115 (CMPGE_U16QI): Likewise.
19116 (CMPGE_U8HI): Likewise.
19117 (CMPGE_U4SI): Likewise.
19118 (CMPGE_U2DI): Likewise.
19119 (CMPLE_16QI): Likewise.
19120 (CMPLE_8HI): Likewise.
19121 (CMPLE_4SI): Likewise.
19122 (CMPLE_2DI): Likewise.
19123 (CMPLE_U16QI): Likewise.
19124 (CMPLE_U8HI): Likewise.
19125 (CMPLE_U4SI): Likewise.
19126 (CMPLE_U2DI): Likewise.
19127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19128 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19129 ALTIVEC_BUILTIN_VEC_CMPLE.
19130 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19131 floating-point vector modes.
19132 (vector_nlt<mode>): New define_expand.
19133 (vector_nltu<mode>): Likewise.
19134 (vector_ngt<mode>): Likewise.
19135 (vector_ngtu<mode>): Likewise.
19136
19137 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19138
19139 PR rtl-optimization/66706
19140 * combine.c (make_compound_operation): If an AND of SUBREG of
19141 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19142
19143 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
19144
19145 * tree-pass.h (make_pass_ch_vect): New.
19146 * passes.def: Add pass_ch_vect just before pass_if_conversion.
19147
19148 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19149 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19150 make_pass_ch_vect): New.
19151 (pass_ch): Extend ch_base.
19152
19153 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19154 (ch_base::copy_headers): ...here.
19155
19156 2015-07-02 Richard Biener <rguenther@suse.de>
19157
19158 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19159 * fold-const.c (get_pointer_modulus_and_residue): Remove.
19160 (fold_binary_loc): Implement (T)ptr & CST in terms of
19161 get_pointer_alignment_1.
19162 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19163 Make sure to build the alignment test on a SSA name without
19164 final alignment info valid only after the prologue.
19165
19166 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
19167
19168 * config/cris/cris.md ("epilogue"): Remove condition.
19169 ("prologue"): Ditto.
19170
19171 2015-07-02 Richard Biener <rguenther@suse.de>
19172
19173 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19174 parameter to record a condition that is false.
19175 (record_conditions): When recording an extra NE_EXPR that is
19176 true also record a EQ_EXPR that is false.
19177
19178 2015-07-02 Bin Cheng <bin.cheng@arm.com>
19179
19180 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19181 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19182 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
19183 (set_iv, find_interesting_uses_address, add_candidate_1): New
19184 argument to alloc_iv.
19185 (find_interesting_uses_op, find_interesting_uses_cond): Don't
19186 duplicate struct iv.
19187 (free_loop_data): Don't free struct iv explicitly.
19188 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19189
19190 2015-07-01 DJ Delorie <dj@redhat.com>
19191
19192 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19193 (LIB_SPEC): Add.
19194 (SUPPORTS_DISCRIMINATOR): Define.
19195
19196 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19197
19198 PR bootstrap/66685
19199 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19200 there are no CALLs in the same pattern.
19201
19202 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19203
19204 PR rtl-optimization/61047
19205 * rtlanal.c (get_initial_register_offset): New function.
19206 (rtx_addr_can_trap_p_1): Check offsets of stack references.
19207
19208 2015-07-01 Richard Biener <rguenther@suse.de>
19209
19210 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19211 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19212 ~X CMP C -> X CMP' ~C to ...
19213 * match.pd: ... patterns here.
19214
19215 2015-07-01 Nick Clifton <nickc@redhat.com>
19216
19217 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19218 a 16-bit value into a 20-bit memory slot.
19219
19220 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19221
19222 * doc/sourcebuild.texi (AArch64-specific attributes): Document
19223 "aarch64_tiny", "aarch64_small", "aarch64_large",
19224 "aarch64_little_endian", "aarch64_big_endian".
19225
19226 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19227
19228 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19229 Document "aarch64_small_fpic".
19230
19231 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19232
19233 * configure.ac: Add check for aarch64 assembler -fpic relocation
19234 modifier support.
19235 * configure: Regenerate.
19236 * config.in: Regenerate.
19237 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19238 to -fPIC if not support of -fpic relocation modifier in assembler.
19239
19240 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19241
19242 PR bootstrap/66685
19243 * rtl.c (classify_insn): Handle returns in PARALLELs.
19244
19245 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
19246
19247 PR middle-end/66633
19248 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19249 to true if the function is nested and if not optimizing.
19250 (convert_local_omp_clauses): Initialize need_frame to true if the
19251 function contains nested functions and if not optimizing.
19252
19253 2015-07-01 Richard Biener <rguenther@suse.de>
19254
19255 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19256 (X & Y) ^ Y -> ~X & Y transforms to ...
19257 * match.pd: ... here.
19258
19259 2015-07-01 Richard Biener <rguenther@suse.de>
19260
19261 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19262 of converts to avoid uninteresting noise from the conversion
19263 simplifying patterns.
19264
19265 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
19266
19267 * config/c6x/c6x.c (try_rename_operands): Do not depend on
19268 gcc_assert evaluating its argument for side-effect.
19269
19270 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
19271
19272 PR target/64833
19273 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19274 flag_pic is set.
19275
19276 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19277
19278 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19279 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19280 (hash_scc): Add this_ref_p and ref_p parameters and pass them
19281 to the inner DFS walk.
19282
19283 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19284
19285 * target-insns.def (jump): New targetm instruction pattern.
19286 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19287 instead of gen_jump.
19288 (fix_up_crossing_landing_pad): Likewise.
19289 (add_labels_and_missing_jumps): Likewise.
19290 (fix_crossing_conditional_branches): Likewise.
19291 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19292 (force_nonfallthru_and_redirect): Likewise.
19293 * cse.c (cse_insn): Likewise.
19294 * expmed.c (expand_divmod): Likewise.
19295 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19296 * haifa-sched.c (init_before_recovery): Likewise.
19297 (sched_create_recovery_edges): Likewise.
19298 * ifcvt.c (find_cond_trap): Likewise.
19299 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19300 (expand_float, expand_fix): Likewise.
19301 * stmt.c (emit_jump): Likewise.
19302
19303 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19304
19305 * defaults.h (HAVE_load_multiple, gen_load_multiple)
19306 (HAVE_store_multiple, gen_store_multiple): Delete.
19307 * target-insns.def (load_multiple, store_multiple): New targetm
19308 instruction patterns.
19309 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19310 of HAVE_*/gen_* interface.
19311
19312 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19313
19314 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19315 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19316 (gen_mem_signal_fence): Delete.
19317 * target-insns.def (mem_signal_fence, mem_thread_fence)
19318 (memory_barrier): New targetm instruction patterns.
19319 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19320 interface.
19321 (expand_mem_signal_fence): Likewise.
19322
19323 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19324
19325 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19326 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19327 targetm instruction patterns.
19328 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19329 interface.
19330 * calls.c (expand_call): Likewise.
19331 * cfgrtl.c (cfg_layout_finalize): Likewise.
19332 * df-scan.c (df_get_entry_block_def_set): Likewise.
19333 (df_get_exit_block_use_set): Likewise.
19334 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19335 * final.c (final_start_function): Likewise.
19336 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19337 (reposition_prologue_and_epilogue_notes): Likewise.
19338 * reorg.c (find_end_label): Likewise.
19339 * toplev.c (process_options): Likewise.
19340
19341 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19342
19343 * typed-splay-tree.h: New file.
19344
19345 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19346
19347 PR debug/66691
19348 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19349 (lra_substitute_pseudo_within_insn): Ditto.
19350 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19351 of constant.
19352 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19353 to lra_substitute_pseudo.
19354 * lra-lives.c (process_bb_lives): Add an argument to
19355 lra_substitute_pseudo_within_insn call.
19356 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19357 argument to lra_substitute_pseudo and
19358 lra_substitute_pseudo_within_insn calls.
19359 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19360
19361 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19362
19363 * configure: Regenerated.
19364
19365 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19366
19367 * config.gcc: Support i[34567]86-*-elfiamcu target.
19368 * config/i386/iamcu.h: New.
19369 * config/i386/i386.opt: Add -miamcu.
19370 * doc/invoke.texi: Document -miamcu.
19371 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19372 off x87/MMX/SSE/AVX codegen for -miamcu.
19373 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19374 __iamcu/__iamcu__ for -miamcu.
19375 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19376 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19377 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19378 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19379 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19380 MCU by default. Default long double to 64-bit for Intel MCU.
19381 Turn on -freg-struct-return for Intel MCU. Issue an error when
19382 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19383 AVX is turned on.
19384 (function_arg_advance_32): Pass value whose size is no larger
19385 than 8 bytes in registers for Intel MCU.
19386 (function_arg_32): Likewise.
19387 (ix86_return_in_memory): Return value whose size is no larger
19388 than 8 bytes in registers for Intel MCU.
19389 (iamcu_alignment): New function.
19390 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19391 true.
19392 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19393 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19394 true.
19395
19396 2015-06-30 Marek Polacek <polacek@redhat.com>
19397
19398 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19399 both operands of the resulting expression.
19400
19401 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19402 the final expression with the operand's type and then convert
19403 it to the type of the expression.
19404
19405 2015-06-30 Richard Biener <rguenther@suse.de>
19406
19407 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19408 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19409 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19410 * match.pd: ... to patterns here.
19411
19412 2015-06-30 Richard Biener <rguenther@suse.de>
19413
19414 PR tree-optimization/66704
19415 * tree-vect-data-refs.c (vect_setup_realignment): Use
19416 make_ssa_name for non-SSA name source.
19417
19418 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19419
19420 PR middle-end/66702
19421 * omp-low.c (simd_clone_adjust): Handle addressable linear
19422 or uniform parameters or non-gimple type uniform parameters.
19423
19424 2015-06-30 Richard Biener <rguenther@suse.de>
19425
19426 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19427 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19428 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19429 * match.pd: ... here.
19430 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19431 Move (x & y) | x -> x and friends before
19432 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19433
19434 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19435
19436 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19437 -mfix-ut699 is not specified.
19438 (leon3_load): Rename into...
19439 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19440 is specified.
19441
19442 2015-06-30 Marek Polacek <polacek@redhat.com>
19443
19444 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19445 * match.pd: ... here.
19446
19447 2015-06-30 Richard Biener <rguenther@suse.de>
19448
19449 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19450 * fold-const.c (build_range_check): Replace uses of
19451 HAVE_canonicalize_funcptr_for_compare.
19452 (fold_widened_comparison): Likewise.
19453 (fold_sign_changed_comparison): Likewise.
19454 * dojump.c: Include "target.h".
19455 (do_compare_and_jump): Replace uses of
19456 HAVE_canonicalize_funcptr_for_compare and
19457 gen_canonicalize_funcptr_for_compare.
19458 * expr.c (do_store_flag): Likewise.
19459
19460 2015-06-30 Tom de Vries <tom@codesourcery.com>
19461
19462 PR tree-optimization/66652
19463 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19464 max_loop_iterations to determine if nit + 1 overflows.
19465
19466 2015-06-30 Richard Biener <rguenther@suse.de>
19467
19468 * tree-vrp.c (register_edge_assert_for_2): Also register
19469 asserts for dominating conversion results.
19470
19471 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19472
19473 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19474 field in struct iv.
19475
19476 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19477
19478 PR target/66509
19479 * configure.ac: Fix filds and fildq test for 64-bit.
19480 * configure: Regenerated.
19481
19482 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
19483
19484 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19485 (nvptx_reorg): Here. Keep the non-subreg pieces.
19486
19487 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
19488
19489 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19490 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19491
19492 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
19493
19494 * config/i386/i386.md (*jcc_1): Use %! in asm template.
19495 Set attribute "length_nobnd" instead of "length".
19496 (*jcc_2): Ditto.
19497 (jump): Ditto.
19498 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19499
19500 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
19501
19502 * config/nios2/nios2.c (nios2_delegitimize_address): Make
19503 assert less restrictive.
19504
19505 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
19506
19507 PR fortran/66605
19508 * cgraphunit.c (cgraph_node::finalize_function): Do not call
19509 do_warn_unused_parameter.
19510 * function.c (do_warn_unused_parameter): Move from here.
19511 * function.h (do_warn_unused_parameter): Do not declare.
19512
19513 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19514
19515 PR target/65697
19516 * gcc.target/arm/armv-sync-comp-swap.c: New.
19517 * gcc.target/arm/armv-sync-op-acquire.c: New.
19518 * gcc.target/arm/armv-sync-op-full.c: New.
19519 * gcc.target/arm/armv-sync-op-release.c: New.
19520
19521 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19522
19523 PR target/65697
19524 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19525 initial acquire barrier with final barrier.
19526
19527 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19528
19529 PR target/65697
19530 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19531 initial acquire barrier with final barrier.
19532
19533 2015-06-29 Richard Henderson <rth@redhat.com>
19534
19535 * config/i386/constraints.md (Bf): New constraint.
19536 * config/i386/i386-c.c (ix86_target_macros): Define
19537 __GCC_ASM_FLAG_OUTPUTS__.
19538 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19539 as flags outputs.
19540 * doc/extend.texi (FlagOutputOperands): Document them.
19541
19542 2015-06-29 Jiong Wang <jiong.wang@arm.com>
19543
19544 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19545 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19546 unspec name.
19547 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19548 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19549 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19550 (aarch64_symbol_context): Ditto.
19551 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19552 and use new pattern name.
19553 (aarch64_expand_mov_immediate): Ditto.
19554 (aarch64_print_operand): Ditto.
19555 (aarch64_classify_tls_symbol): Ditto.
19556
19557 2015-06-29 Marek Polacek <polacek@redhat.com>
19558 Marc Glisse <marc.glisse@inria.fr>
19559
19560 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19561 * match.pd: ... pattern here.
19562
19563 2015-06-29 Tom de Vries <tom@codesourcery.com>
19564
19565 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19566 function structure.
19567
19568 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19569
19570 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19571 feature description, split out the native option, add a link to
19572 the feature documentation, rearrange and slightly rewrite text.
19573 (Aarch64 options, -mcpu): Likewise.
19574 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
19575 +rdma implies Adv. SIMD.
19576
19577 2015-06-29 Marek Polacek <polacek@redhat.com>
19578
19579 PR c/66322
19580 * function.c (stack_protect_epilogue): Remove a cast to int.
19581 * doc/invoke.texi: Update -Wswitch-bool description.
19582
19583 2015-06-29 Richard Biener <rguenther@suse.de>
19584
19585 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19586 * fold-const.c (fold_binary_loc): Move &A - &B simplification
19587 via ptr_difference_const ...
19588 * match.pd: ... here.
19589 When matching (X ^ Y) == Y also match with swapped operands.
19590
19591 2015-06-29 Richard Biener <rguenther@suse.de>
19592
19593 * lto-streamer.h (LTO_major_version): Bump to 5.
19594
19595 2015-06-29 Richard Biener <rguenther@suse.de>
19596
19597 PR tree-optimization/66677
19598 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19599 STMT_VINFO_VEC_STMT clobbering less strict.
19600
19601 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19602
19603 PR middle-end/64130
19604 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19605 division, compute max and min when value ranges for dividend and
19606 divisor are available.
19607
19608 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
19609 Sandra Loosemore <sandra@codesourcery.com>
19610
19611 * regrename.h (regrename_do_replace): Change to return bool.
19612 * regrename.c (rename_chains): Check return value of
19613 regname_do_replace.
19614 (regrename_do_replace): Re-validate the modified insns and
19615 return bool status.
19616 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19617 Update to match rename_chains changes.
19618 * config/c6x/c6x.c (try_rename_operands): Assert that
19619 regrename_do_replace returns true.
19620
19621 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
19622
19623 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19624 operand 2 here. Use copy_addr_to_reg to copy non-index
19625 register operand 2 to a temporary.
19626 (<mode>_stx): Ditto for operand 1.
19627 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19628 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19629 (ix86_store_bounds): Ditto.
19630
19631 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
19632
19633 * print-tree.c (print_node) [TREE_VEC]: Print its length.
19634
19635 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
19636
19637 * gimple.c (gimple_call_set_fndecl): Remove.
19638 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19639 build1_loc directly instead of build_fold_addr_expr_loc.
19640
19641 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19642
19643 * hash-map.h (hash_map::traverse): Use the definition of the
19644 Key typedef rather than the typedef itself.
19645
19646 2015-06-26 Martin Jambor <mjambor@suse.cz>
19647
19648 PR debug/66301
19649 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19650 NULL instead of calling dump_enabled_p.
19651
19652 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19653
19654 * config/aarch64/aarch64.opt: (override): New.
19655 * doc/invoke.texi (override): Document.
19656 * config/aarch64/aarch64.c (aarch64_flag_desc): New
19657 (aarch64_fusible_pairs): Likewise.
19658 (aarch64_tuning_flags): Likewise.
19659 (aarch64_tuning_override_function): Likewise.
19660 (aarch64_tuning_override_functions): Likewise.
19661 (aarch64_parse_one_option_token): Likewise.
19662 (aarch64_parse_boolean_options): Likewise.
19663 (aarch64_parse_fuse_string): Likewise.
19664 (aarch64_parse_tune_string): Likewise.
19665 (aarch64_parse_one_override_token): Likewise.
19666 (aarch64_parse_override_string): Likewise.
19667 (aarch64_override_options): Parse the -override string if it
19668 is present.
19669
19670 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19671
19672 * config/aarch64/aarch64-protos.h (tune_params): Remove
19673 const from members.
19674 (aarch64_tune_params): Remove const, change to no longer be
19675 a pointer.
19676 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19677 change to no longer be a pointer, initialize to generic_tunings.
19678 (aarch64_min_divisions_for_recip_mul): Change dereference of
19679 aarch64_tune_params to member access.
19680 (aarch64_reassociation_width): Likewise.
19681 (aarch64_rtx_mult_cost): Likewise.
19682 (aarch64_address_cost): Likewise.
19683 (aarch64_branch_cost): Likewise.
19684 (aarch64_rtx_costs): Likewise.
19685 (aarch64_register_move_cost): Likewise.
19686 (aarch64_memory_move_cost): Likewise.
19687 (aarch64_sched_issue_rate): Likewise.
19688 (aarch64_builtin_vectorization_cost): Likewise.
19689 (aarch64_override_options): Take a copy of the selected tuning
19690 struct in to aarch64_tune_params, rather than just setting
19691 a pointer, change dereferences of aarch64_tune_params to member
19692 accesses.
19693 (aarch64_override_options_after_change): Change dereferences of
19694 aarch64_tune_params to member access.
19695 (aarch64_macro_fusion_p): Likewise.
19696 (aarch_macro_fusion_pair_p): Likewise.
19697 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19698
19699 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19700
19701 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19702 (aarch64_tune_flags): Likewise.
19703 (AARCH64_TUNE_FMA_STEERING): Likewise.
19704 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19705 to AARCH64_FL_USE_FMA_STEERING_PASS.
19706 (cortex-a57.cortex-a53): Likewise.
19707 (cortex-a72): Use cortexa72_tunings.
19708 (cortex-a72.cortex-a53): Likewise.
19709 (exynos-m1): Likewise.
19710 * config/aarch64/aarch64-protos.h (tune_params): Add
19711 a field: extra_tuning_flags.
19712 * config/aarch64/aarch64-tuning-flags.def: New.
19713 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19714 (aarch64_extra_tuning_flags): Likewise.
19715 (aarch64_tune_params): Declare here.
19716 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19717 (cortexa53_tunings): Likewise.
19718 (cortexa57_tunings): Likewise.
19719 (thunderx_tunings): Likewise.
19720 (xgene1_tunings): Likewise.
19721 (cortexa72_tunings): New.
19722 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19723 (gate): Check against aarch64_tune_params.
19724 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19725 aarch64-protos.h.
19726
19727 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19728
19729 * config/aarch64/aarch64-fusion-pairs.def: New.
19730 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19731 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19732 aarch64_fusion_pairs.
19733 (AARCH64_FUSE_MOV_MOVK): Likewise.
19734 (AARCH64_FUSE_ADRP_ADD): Likewise.
19735 (AARCH64_FUSE_MOVK_MOVK): Likewise.
19736 (AARCH64_FUSE_ADRP_LDR): Likewise.
19737 (AARCH64_FUSE_CMP_BRANCH): Likewise.
19738
19739 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19740
19741 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19742 SYMBOL_SMALL_GOT_28K.
19743 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19744 relocation modifiers.
19745 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19746 (ldr_got_small_28k_<mode>): New.
19747 (ldr_got_small_28k_sidi): New.
19748 * config/aarch64/iterators.md (got_modifier): New mode iterator.
19749 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19750 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19751 SYMBOL_SMALL_GOT_28K.
19752 (aarch64_rtx_costs): Add costs for new instruction sequences.
19753 (initialize_aarch64_code_model): Initialize new model.
19754 (aarch64_classify_symbol): Recognize new model and new symbol classification.
19755 (aarch64_asm_preferred_eh_data_format): Support new model.
19756 (aarch64_load_symref_appropriately): Generate new instruction
19757 sequences for -fpic.
19758 (TARGET_USE_PSEUDO_PIC_REG): New definition.
19759 (aarch64_use_pseudo_pic_reg): New function.
19760
19761 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19762
19763 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19764 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19765 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19766 (aarch64_expand_mov_immediate): Ditto.
19767 (aarch64_print_operand): Ditto.
19768 (aarch64_classify_symbol): Ditto.
19769
19770 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
19771
19772 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19773
19774 2015-06-26 Bin Cheng <bin.cheng@arm.com>
19775
19776 PR bootstrap/66638
19777 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19778 assertion failed. Remove assertion itself.
19779
19780 2015-06-26 Richard Biener <rguenther@suse.de>
19781
19782 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19783 and -A CMP CST -> A CMP -CST which is redundant with a pattern
19784 in match.pd.
19785 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19786 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19787 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19788 * match.pd: ... patterns here.
19789
19790 2015-06-26 Marek Polacek <polacek@redhat.com>
19791
19792 * match.pd ((x | y) & ~(x & y) -> x ^ y,
19793 (x | y) & (~x ^ y) -> x & y): New patterns.
19794
19795 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19796
19797 * rtl.h (emit): Add an optional boolean parameter to control
19798 whether barriers are emitted.
19799 * emit-rtl.c (emit): Likewise.
19800 * gensupport.c (get_emit_function): Return null rather than "emit".
19801 * genemit.c (gen_emit_seq): Handle the null return value.
19802 Don't emit barriers after the final instruction in the sequence.
19803 * gentarget-def.c (main): Don't emit barriers after the instruction.
19804
19805 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19806
19807 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19808 TARGET_UNIFIED_ASM.
19809
19810 2015-06-26 Richard Biener <rguenther@suse.de>
19811
19812 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19813
19814 2015-06-26 Richard Biener <rguenther@suse.de>
19815
19816 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19817 irrespective on whether the inner operation has a single use
19818 of both off are constant.
19819
19820 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
19821 Segher Boessenkool <segher@kernel.crashing.org>
19822
19823 PR target/66412
19824 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19825 before doing PUT_MODE or PUT_CODE on operands to avoid
19826 in-place RTX modification.
19827
19828 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19829
19830 * gentarget-def.c (def_target_insn): Cast return of strtol to
19831 unsigned int.
19832
19833 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19834
19835 * gimple.h (gimple_call_set_fn): Move inline function.
19836 * gimple.c (gimple_call_set_fn): Relocate here.
19837
19838 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
19839
19840 PR target/65979
19841 PR target/66611
19842 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19843 the replacement insn will work.
19844
19845 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19846
19847 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19848 by default.
19849
19850 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19851
19852 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19853 * cgraph.h: Include ipa-ref.h and plugin-api.h.
19854 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19855 (symtab_node::address_can_be_compared_p): Move function.
19856 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19857 definition here.
19858 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19859 * auto-profile.c: Likewise.
19860 * bb-reorder.c: Likewise.
19861 * builtins.c: Likewise.
19862 * calls.c: Likewise.
19863 * cfgexpand.c: Likewise.
19864 * cgraphbuild.c: Likewise.
19865 * cgraphclones.c: Likewise.
19866 * cgraphunit.c: Likewise.
19867 * combine.c: Likewise.
19868 * coverage.c: Likewise.
19869 * data-streamer-in.c: Likewise.
19870 * data-streamer-out.c: Likewise.
19871 * data-streamer.c: Likewise.
19872 * dbxout.c: Likewise.
19873 * dwarf2out.c: Likewise.
19874 * except.c: Likewise.
19875 * expr.c: Likewise.
19876 * final.c: Likewise.
19877 * fold-const.c: Likewise.
19878 * ggc-page.c: Likewise.
19879 * gimple-fold.c: Likewise.
19880 * gimple-iterator.c: Likewise.
19881 * gimple-pretty-print.c: Likewise.
19882 * gimple-streamer-in.c: Likewise.
19883 * gimple-streamer-out.c: Likewise.
19884 * gimple.c: Likewise.
19885 * gimplify.c: Likewise.
19886 * ipa-chkp.c: Likewise.
19887 * ipa-comdats.c: Likewise.
19888 * ipa-cp.c: Likewise.
19889 * ipa-devirt.c: Likewise.
19890 * ipa-icf-gimple.c: Likewise.
19891 * ipa-icf.c: Likewise.
19892 * ipa-inline-analysis.c: Likewise.
19893 * ipa-inline-transform.c: Likewise.
19894 * ipa-inline.c: Likewise.
19895 * ipa-polymorphic-call.c: Likewise.
19896 * ipa-profile.c: Likewise.
19897 * ipa-prop.c: Likewise.
19898 * ipa-pure-const.c: Likewise.
19899 * ipa-ref.c: Likewise.
19900 * ipa-reference.c: Likewise.
19901 * ipa-split.c: Likewise.
19902 * ipa-utils.c: Likewise.
19903 * ipa-visibility.c: Likewise.
19904 * ipa.c: Likewise.
19905 * langhooks.c: Likewise.
19906 * lto-cgraph.c: Likewise.
19907 * lto-compress.c: Likewise.
19908 * lto-opts.c: Likewise.
19909 * lto-section-in.c: Likewise.
19910 * lto-section-out.c: Likewise.
19911 * lto-streamer-in.c: Likewise.
19912 * lto-streamer-out.c: Likewise.
19913 * lto-streamer.c: Likewise.
19914 * omp-low.c: Likewise.
19915 * opts-global.c: Likewise.
19916 * passes.c: Likewise.
19917 * predict.c: Likewise.
19918 * print-tree.c: Likewise.
19919 * profile.c: Likewise.
19920 * ree.c: Likewise.
19921 * sanopt.c: Likewise.
19922 * stor-layout.c: Likewise.
19923 * symtab.c: Likewise.
19924 * toplev.c: Likewise.
19925 * trans-mem.c: Likewise.
19926 * tree-cfg.c: Likewise.
19927 * tree-chkp.c: Likewise.
19928 * tree-eh.c: Likewise.
19929 * tree-emutls.c: Likewise.
19930 * tree-inline.c: Likewise.
19931 * tree-nested.c: Likewise.
19932 * tree-parloops.c: Likewise.
19933 * tree-pretty-print.c: Likewise.
19934 * tree-profile.c: Likewise.
19935 * tree-sra.c: Likewise.
19936 * tree-ssa-alias.c: Likewise.
19937 * tree-ssa-live.c: Likewise.
19938 * tree-ssa-loop-ivcanon.c: Likewise.
19939 * tree-ssa-loop-ivopts.c: Likewise.
19940 * tree-ssa-pre.c: Likewise.
19941 * tree-ssa-sccvn.c: Likewise.
19942 * tree-ssa-strlen.c: Likewise.
19943 * tree-ssa-structalias.c: Likewise.
19944 * tree-streamer-in.c: Likewise.
19945 * tree-streamer-out.c: Likewise.
19946 * tree-streamer.c: Likewise.
19947 * tree-switch-conversion.c: Likewise.
19948 * tree-tailcall.c: Likewise.
19949 * tree-vect-data-refs.c: Likewise.
19950 * tree-vect-stmts.c: Likewise.
19951 * tree-vectorizer.c: Likewise.
19952 * tree.c: Likewise.
19953 * tsan.c: Likewise.
19954 * ubsan.c: Likewise.
19955 * value-prof.c: Likewise.
19956 * varasm.c: Likewise.
19957 * varpool.c: Likewise.
19958 * config/arm/arm.c: Likewise.
19959 * config/bfin/bfin.c: Likewise.
19960 * config/c6x/c6x.c: Likewise.
19961 * config/cris/cris.c: Likewise.
19962 * config/darwin-c.c: Likewise.
19963 * config/darwin.c: Likewise.
19964 * config/i386/i386.c: Likewise.
19965 * config/i386/winnt.c: Likewise.
19966 * config/microblaze/microblaze.c: Likewise.
19967 * config/mips/mips.c: Likewise.
19968 * config/rs6000/rs6000.c: Likewise.
19969 * config/rx/rx.c: Likewise.
19970 * config/s390/s390.c: Likewise.
19971 * config/tilegx/mul-tables.c: Likewise.
19972
19973 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19974
19975 * config/aarch64/aarch64.c, config/alpha/alpha.c,
19976 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19977 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19978 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19979 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19980 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19981 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19982 config/microblaze/microblaze.c, config/mips/mips.c,
19983 config/mmix/mmix.c, config/mn10300/mn10300.c,
19984 config/moxie/moxie.c, config/msp430/msp430.c,
19985 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19986 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19987 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19988 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19989 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19990 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19991 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19992 target-def.h include.
19993 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
19994
19995 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19996
19997 * Makefile.in (TARGET_DEF): Add target-insns.def.
19998 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19999 (build/gentarget-def.o): New rule.
20000 (genprogrtl): Add target-def.
20001 * target-insns.def, gentarget-def.c: New files.
20002 * target.def: Add targetm.have_* and targetm.gen_* hooks,
20003 based on the contents of target-insns.def.
20004 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20005 (HAVE_return, gen_return): Delete.
20006 * target-def.h: Include insn-target-def.h.
20007 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20008 instead of direct calls. Rely on them to do the appropriate assertions.
20009 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
20010 (convert_jumps_to_returns): Use targetm interface instead of
20011 direct calls.
20012 (thread_prologue_and_epilogue_insns): Likewise.
20013 * reorg.c (find_end_label, dbr_schedule): Likewise.
20014 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20015 * shrink-wrap.c (convert_to_simple_return): Likewise.
20016 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20017
20018 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20019
20020 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20021 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20022 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20023 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20024 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20025 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20026 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20027 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20028 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20029 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20030 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20031 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20032 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20033 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20034 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20035 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20036 includes to end.
20037
20038 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20039
20040 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20041 (unbounded_int_hashmap_traits::key_type): Likewise.
20042 * hash-map.h (hash_map): Get the key type from the traits.
20043 * hash-traits.h (default_hash_traits): By default, inherit from the
20044 template parameter.
20045 * alias.c (alias_set_traits): Delete.
20046 (alias_set_entry_d::children): Use alias_set_hash as the first
20047 template parameter.
20048 (record_alias_subset): Update accordingly.
20049 * except.c (tree_hash_traits): Delete.
20050 (type_to_runtime_map): Use tree_hash as the first template parameter.
20051 (init_eh): Update accordingly.
20052 * genmatch.c (capture_id_map_hasher): Delete.
20053 (cid_map_t): Use nofree_string_hash as first template parameter.
20054 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20055 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20056 Use symbol_compare_hash as the first template parameter in
20057 subdivide_hash_map.
20058 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20059 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20060 template parameter.
20061 * passes.c (pass_registry_hasher): Delete.
20062 (name_to_pass_map): Use nofree_string_hash as the first template
20063 parameter.
20064 (register_pass_name): Update accordingly.
20065 * sanopt.c (sanopt_tree_map_traits): Delete.
20066 (sanopt_tree_triplet_map_traits): Delete.
20067 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20068 template parameter.
20069 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20070 the first template parameter.
20071 * sese.c (rename_map_hasher): Delete.
20072 (rename_map_type): Use tree_ssa_name_hash as the first template
20073 parameter.
20074 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20075 (function_summary::m_map): Use map_hash as the first template
20076 parameter.
20077 (function_summary::release): Update accordingly.
20078 * tree-if-conv.c (phi_args_hash_traits): Delete.
20079 (predicate_scalar_phi): Use tree_operand_hash as the first template
20080 parameter to phi_arg_map.
20081 * tree-inline.h (dependence_hasher): Delete.
20082 (copy_body_data::dependence_map): Use dependence_hash as the first
20083 template parameter.
20084 * tree-inline.c (remap_dependence_clique): Update accordingly.
20085 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20086 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20087 parameter.
20088 (addr_stridxptr): Update accordingly.
20089 * value-prof.c (profile_id_traits): Delete.
20090 (cgraph_node_map): Use profile_id_hash as the first template
20091 parameter.
20092 (init_node_map): Update accordingly.
20093 * config/alpha/alpha.c (string_traits): Delete.
20094 (machine_function::links): Use nofree_string_hash as the first
20095 template parameter.
20096 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20097 * config/m32c/m32c.c (pragma_traits): Delete.
20098 (pragma_htab): Use nofree_string_hash as the first template parameter.
20099 (m32c_note_pragma_address): Update accordingly.
20100 * config/mep/mep.c (pragma_traits): Delete.
20101 (pragma_htab): Use nofree_string_hash as the first template parameter.
20102 (mep_note_pragma_flag): Update accordingly.
20103 * config/mips/mips.c (mips16_flip_traits): Delete.
20104 (mflip_mips16_htab): Use nofree_string_hash as the first template
20105 parameter.
20106 (mflip_mips16_use_mips16_p): Update accordingly.
20107 (local_alias_traits): Delete.
20108 (mips16_local_aliases): Use nofree_string_hash as the first template
20109 parameter.
20110 (mips16_local_alias): Update accordingly.
20111
20112 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20113
20114 * hash-map-traits.h (default_hashmap_traits): Delete.
20115
20116 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20117
20118 * hash-map-traits.h (unbounded_hashmap_traits): New class.
20119 (unbounded_int_hashmap_traits): Likewise.
20120 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20121
20122 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20123
20124 * ipa-icf.h (symbol_compare_hash): New class.
20125 (symbol_compare_hashmap_traits): Use it.
20126 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20127 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20128 (mem_alloc_description::reverse_mem_map_t): Remove redundant
20129 default_hashmap_traits.
20130 * sanopt.c (sanopt_tree_triplet_hash): New class.
20131 (sanopt_tree_triplet_map_traits): Use it.
20132
20133 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20134
20135 * gengtype-parse.c (require_template_declaration): Allow '+' in
20136 template parameters. Consolidate cases.
20137 * hash-traits.h (int_hash): New class.
20138 * alias.c (alias_set_hash): New structure.
20139 (alias_set_traits): Use it.
20140 * symbol-summary.h (function_summary::map_hash): New class.
20141 (function_summary::summary_hashmap_traits): Use it.
20142 * tree-inline.h (dependence_hash): New class.
20143 (dependence_hasher): Use it.
20144 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20145 * value-prof.c (profile_id_hash): New class.
20146 (profile_id_traits): Use it.
20147
20148 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20149
20150 * config/mips/mips.c (mips16_flip_traits): Use it.
20151 (local_alias_traits, mips16_local_aliases): Convert from a map of
20152 rtxes to a map of symbol names.
20153 (mips16_local_alias): Update accordingly.
20154
20155 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20156
20157 * hash-traits.h (string_hash, nofree_string_hash): New classes.
20158 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20159 * passes.c (pass_registry_hasher): Likewise.
20160 * config/alpha/alpha.c (string_traits): Likewise.
20161 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20162 * config/m32c/m32c.c (pragma_traits): Likewise.
20163 * config/mep/mep.c (pragma_traits): Likewise.
20164
20165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20166
20167 * tree-hash-traits.h (tree_hash): New class.
20168 * except.c: Include tree-hash-traits.h.
20169 (tree_hash_traits): Use tree_hash.
20170
20171 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20172
20173 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20174 * sese.c: Include tree-hash-traits.h.
20175 (rename_map_hasher): Use tree_ssa_name_hasher.
20176
20177 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20178
20179 * tree-hash-traits.h (tree_decl_hash): New class.
20180 * tree-ssa-strlen.c: Include tree-hash-traits.h.
20181 (stridxlist_hash_traits): Use tree_decl_hash.
20182
20183 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20184
20185 * tree-hash-traits.h: New file.
20186 (tree_operand_hash): New class.
20187 * sanopt.c: Include tree-hash-traits.h.
20188 (sanopt_tree_map_traits): Use tree_operand_hash.
20189 * tree-if-conv.c: Include tree-hash-traits.h.
20190 (phi_args_hash_traits): Use tree_operand_hash.
20191 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20192 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20193
20194 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20195
20196 * hash-map-traits.h: Include hash-traits.h.
20197 (simple_hashmap_traits): New class.
20198 * mem-stats.h (hash_map): Change the default traits to
20199 simple_hashmap_traits<default_hash_traits<Key> >.
20200
20201 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20202
20203 * hash-table.h: Update comments.
20204
20205 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20206
20207 * hash-traits.h (default_hash_traits): New structure.
20208 * hash-set.h (default_hashset_traits): Delete.
20209 (hash_set): Use default_hash_traits<Key> instead of
20210 default_hashset_traits. Delete hash_entry type and use Key directly.
20211 * ipa-devirt.c (pair_traits): Delete.
20212 (default_hash_traits <type_pair>): Override.
20213 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20214 (odr_types_equivalent_p, add_type_duplicate): Likewise.
20215
20216 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20217
20218 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20219
20220 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20221
20222 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20223 (has_is_empty, is_empty_helper): Delete.
20224 (has_mark_deleted, mark_deleted_helper): Delete.
20225 (has_mark_empty, mark_empty_helper): Delete.
20226 (hash_table::is_deleted): Call the Descriptor unconditionally.
20227 (hash_table::is_empty): Likewise.
20228 (hash_table::mark_deleted): Likewise.
20229 (hash_table::mark_empty): Likewise.
20230
20231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20232
20233 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
20234 redundant typedefs and members.
20235 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
20236 redundant typedefs.
20237 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20238 * ipa-devirt.c (odr_name_hasher): Likewise.
20239 (polymorphic_call_target_hasher): Likewise.
20240 * ira-costs.c (cost_classes_hasher): Likewise.
20241 * statistics.c (stats_counter_hasher): Likewise.
20242 * trans-mem.c (log_entry_hasher): Likewise.
20243 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20244 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20245 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20246 * var-tracking.c (variable_hasher): Likewise.
20247 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20248 Remove redundant typedefs and members.
20249
20250 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20251
20252 * hash-traits.h (ggc_cache_hasher): Rename to...
20253 (ggc_cache_remove): ...this and remove typedefs.
20254 (ggc_cache_ptr_hash): New class.
20255 * hash-table.h: Update commentary.
20256 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20257 rather than ggc_cache_hasher.
20258 (const_wide_int_hasher, reg_attr_hasher): Likewise.
20259 (const_double_hasher, const_fixed_hasher): Likewise.
20260 * function.c (insn_cache_hasher): Likewise.
20261 * trans-mem.c (tm_wrapper_hasher): Likewise.
20262 * tree.h (tree_decl_map_cache_hasher): Likewise.
20263 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20264 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20265 * ubsan.c (tree_type_map_cache_hasher): Likewise.
20266 * varasm.c (tm_clone_hasher): Likewise.
20267 * config/i386/i386.c (dllimport_hasher): Likewise.
20268 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20269 (tree_hasher): Likewise.
20270
20271 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20272
20273 * hash-traits.h (ggc_hasher): Rename to...
20274 (ggc_remover): ...this and remove typedefs.
20275 (ggc_cache_hasher): Update accordingly. Add typedefs.
20276 (ggc_ptr_hash): New class.
20277 * hash-table.h: Update comment.
20278 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20279 ggc_hasher.
20280 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20281 (tree_descriptor_hasher): Likewise.
20282 * cgraph.c (function_version_hasher): Likewise.
20283 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20284 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20285 (dw_loc_list_hasher, addr_hasher): Likewise.
20286 * function.h (used_type_hasher): Likewise.
20287 * function.c (temp_address_hasher): Likewise.
20288 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20289 * libfuncs.h (libfunc_hasher): Likewise.
20290 * lto-streamer.h (decl_state_hasher): Likewise.
20291 * optabs.c (libfunc_decl_hasher): Likewise.
20292 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20293 * varasm.c (section_hasher, object_block_hasher): Likewise.
20294 (const_rtx_desc_hasher): Likewise.
20295 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20296 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20297
20298 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20299
20300 * hash-traits.h (free_ptr_hash): New class.
20301 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20302 rather than typed_free_remove. Remove redudant typedefs.
20303 (external_ref_hasher): Likewise.
20304 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20305 (ehspec_hasher): Likewise.
20306 * ggc-common.c (saving_hasher): Likewise.
20307 * gimplify.c (gimplify_hasher): Likewise.
20308 * haifa-sched.c (delay_i2_hasher): Likewise.
20309 * loop-invariant.c (invariant_expr_hasher): Likewise.
20310 * loop-iv.c (biv_entry_hasher): Likewise.
20311 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20312 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20313 * tree-cfg.c (locus_discrim_hasher): Likewise.
20314 * tree-eh.c (finally_tree_hasher): Likewise.
20315 * tree-into-ssa.c (var_info_hasher): Likewise.
20316 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20317 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20318 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20319 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20320 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20321 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20322 (shared_bitmap_hasher): Likewise.
20323 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20324 * tree-vectorizer.h (peel_info_hasher): Likewise.
20325 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20326 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20327
20328 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20329
20330 * hash-table.h: Update comments.
20331 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20332 (nofree_ptr_hash): New class.
20333 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20334 than typed_noop_remove. Remove redudant typedefs.
20335 * attribs.c (attribute_hasher): Likewise.
20336 * cfg.c (bb_copy_hasher): Likewise.
20337 * cselib.c (cselib_hasher): Likewise.
20338 * dse.c (invariant_group_base_hasher): Likewise.
20339 * dwarf2cfi.c (trace_info_hasher): Likewise.
20340 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20341 (comdat_type_hasher, loc_list_hasher): Likewise.
20342 * gcse.c (pre_ldst_expr_hasher): Likewise.
20343 * genmatch.c (id_base): Likewise.
20344 * genrecog.c (test_pattern_hasher): Likewise.
20345 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20346 * haifa-sched.c (delay_i1_hasher): Likewise.
20347 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20348 * ipa-icf.h (congruence_class_group_hash): Likewise.
20349 * ipa-profile.c (histogram_hash): Likewise.
20350 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20351 * lto-streamer.h (string_slot_hasher): Likewise.
20352 * lto-streamer.c (tree_entry_hasher): Likewise.
20353 * plugin.c (event_hasher): Likewise.
20354 * postreload-gcse.c (expr_hasher): Likewise.
20355 * store-motion.c (st_expr_hasher): Likewise.
20356 * tree-sra.c (uid_decl_hasher): Likewise.
20357 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20358 (ssa_name_var_hash): Likewise.
20359 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20360 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20361 * tree-ssa-pre.c (pre_expr_d): Likewise.
20362 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20363 * vtable-verify.h (registration_hasher): Likewise.
20364 * vtable-verify.c (vtbl_map_hasher): Likewise.
20365 * config/arm/arm.c (libcall_hasher): Likewise.
20366 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20367 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20368 * config/sol2.c (comdat_entry_hasher): Likewise.
20369 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20370 (print_fold_checksum, fold_checksum_tree): Likewise.
20371 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20372 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20373 (fold_build_call_array_loc): Likewise.
20374 * tree-ssa-ccp.c (gimple_htab): Likewise.
20375 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20376 rather than pointer_type.
20377
20378 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20379
20380 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20381 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20382
20383 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20384
20385 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20386 (ggc_hasher::ggc_mx): Likewise.
20387 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20388 that duplicate ggc_hasher ones.
20389
20390 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20391
20392 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20393 (gt_cleare_cache): Check here for deleted and empty entries.
20394 Replace handle_cache_entry with a call to keep_cache_entry.
20395 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20396 (ggc_cache_hasher::keep_cache_entry): New function.
20397 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20398 (tm_wrapper_hasher::keep_cache_entry): New function.
20399 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20400 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20401 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20402 (type_cache_hasher::keep_cache_entry): New function.
20403 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20404 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20405 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20406 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20407 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20408 (tm_clone_hasher::keep_cache_entry): New function.
20409 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20410 (dllimport_hasher::keep_cache_entry): New function.
20411
20412 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20413
20414 * hash-table.h: Include hash-traits.h.
20415 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20416 (ggc_cache_hasher): Move to...
20417 * hash-traits.h: ...this new file.
20418
20419 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20420
20421 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20422 struct cl_optimization.
20423 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20424 * tree.c (make_node_stat): Allocate cl_optimization struct.
20425 (copy_node_stat): Allocate and copy cl_optimization struct.
20426
20427 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20428
20429 * function.h (struct incoming_args): Move struct.
20430 (pass_by_reference, reference_callee_copied): Remove prototypes.
20431 * emit-rtl.h (struct incoming_args): Relocate struct here.
20432 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20433 prototypes here.
20434 * function.c (pass_by_reference, reference_callee_copied): Move.
20435 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20436 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20437 * ipa-chkp.c: Include calls.h.
20438
20439 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20440
20441 * alias.h (alias_set_type): Move typedef.
20442 * coretypes.h (alias_set_type): Relocate typedef here.
20443 * rtl.h: Don't include alias.h.
20444
20445 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20446
20447 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20448 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20449 and instance.
20450 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20451 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20452 doesn't exist.
20453 * calls.c: Include hard-reg-set.h before rtl.h.
20454 * ira.c: Likewise.
20455
20456 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20457 Vladimir Makarov <vmakarov@redhat.com>
20458
20459 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20460 Add assert.
20461
20462 2015-06-25 Richard Biener <rguenther@suse.de>
20463
20464 * fold-const.c (fold_binary_loc): Move simplification of
20465 (X <<>> C1) & C2 ...
20466 * match.pd: ... here.
20467
20468 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20469
20470 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20471
20472 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20473
20474 * match.pd: Add patterns for vec_conds between 1 and 0.
20475
20476 2015-06-25 Richard Biener <rguenther@suse.de>
20477
20478 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20479 STMT_VINFO_VEC_STMT for SLP.
20480 (vectorizable_store): Likewise.
20481 (vectorizable_load): Likewise.
20482 (vect_transform_stmt): Catch SLP vectorization clobbering
20483 STMT_VINFO_VEC_STMT.
20484
20485 2015-06-25 Richard Biener <rguenther@suse.de>
20486
20487 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20488 dumping.
20489 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20490 cleanup resulting dead code and parameters.
20491 (vect_transform_slp_perm_load): Adjust.
20492
20493 2015-06-25 Nick Clifton <nickc@redhat.com>
20494
20495 * config/bfin/bfin.c (bfin_expand_prologue): Set
20496 current_function_static_stack_size if flag_stack_usage_info is set.
20497 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20498 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20499 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20500 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20501
20502 2015-06-25 Tom de Vries <tom@codesourcery.com>
20503
20504 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20505 comment that the generated IV is unsigned.
20506
20507 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20508
20509 PR target/29693
20510 * config/arm/arm.c (arm_dbx_register_number): Return
20511 DWARF_FRAME_REGISTERS by default.
20512
20513 2015-06-25 Tom de Vries <tom@codesourcery.com>
20514
20515 * dominance.c (calculate_dominance_info): Fix verify_dominators call
20516 argument. Call verify_dominator when reusing dominator info.
20517
20518 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
20519
20520 PR target/66563
20521 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20522 an additional element of the unspec vector. Modify indices
20523 of operands.
20524 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20525 * config/sh/sh.c (prepare_move_operands): Pass incremented
20526 const_int to gen_GOTaddr2picreg.
20527 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20528
20529 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20530
20531 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20532 Condition on TARGET_FLOAT.
20533
20534 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20535
20536 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20537 and (no)crypto.
20538
20539 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20540
20541 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20542
20543 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20544 aarch64_err_no_fpadvsimd.
20545
20546 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20547 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20548 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20549 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20550 Turn error into assert, test TARGET_FLOAT.
20551 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20552 TARGET_FLOAT.
20553
20554 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
20555
20556 PR debug/66482
20557 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20558
20559 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20560
20561 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20562
20563 2015-06-24 Renlin Li <renlin.li@arm.com>
20564
20565 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20566 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20567
20568 2015-06-24 Richard Biener <rguenther@suse.de>
20569
20570 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20571 (main): Likewise.
20572 (lower_opt_convert): Support lowering of conditional view_convert.
20573 (parser::parse_operation): Likewise.
20574 (parser::parse_for): Likewise.
20575
20576 2015-06-24 Renlin Li <renlin.li@arm.com>
20577
20578 * varasm.c (emit_local): Use unsigned int for align variable.
20579
20580 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20581
20582 PR target/63408
20583 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20584 for negative numbers.
20585
20586 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20587
20588 PR rtl-optimization/66306
20589 * reload.c (find_reloads): Swap the match_dup info for
20590 commutative operands.
20591
20592 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20593
20594 * config/s390/vx-builtins.md
20595 ("vec_scatter_element<mode>_<non_vec_int>")
20596 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20597 attribute with bhfgq.
20598
20599 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20600
20601 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20602
20603 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20604
20605 * config/s390/s390-builtin-types.def: Add flag to indicate the
20606 options under which the function type is needed.
20607 * config/s390/s390-builtins.def: Add flag to indicate the options
20608 under which the builtin is enabled.
20609 * config/s390/s390-builtins.h: Add flags parameter to macro
20610 definitions.
20611 (bflags_for_builtin): New function.
20612 (flags_for_builtin): Renamed to ...
20613 (opflags_for_builtin): ... this.
20614 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20615 flags_for_builtin to bflags_for_builtin and
20616 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20617 * config/s390/s390.c: Add initialization of bflags_builtin and
20618 opflags_builtin arrays.
20619 Remove code for flags_builtin.
20620 (s390_init_builtins): Only create builtin function types if one of
20621 their flags is active.
20622 Only create builtins if all of their flags are active.
20623 (s390_expand_builtin): Rename flags_for_builtin to
20624 opflags_for_builtin.
20625
20626 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20627
20628 * config/s390/vecintrin.h: Remove internal builtins.
20629
20630 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20631
20632 * config/s390/s390.c (s390_secondary_reload): Fix check for
20633 GENERAL_REGS register class.
20634
20635 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20636
20637 * config/s390/s390.c (s390_support_vector_misalignment): Call
20638 default implementation for !TARGET_VX.
20639
20640 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20641
20642 * config/s390/s390.c (s390_legitimate_constant_p): Add
20643 TARGET_VX check.
20644
20645 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20646
20647 * config/s390/s390.c (s390_vector_abi): New variable definition.
20648 (s390_check_type_for_vector_abi): New function.
20649 (TARGET_ASM_FILE_END): New macro definition.
20650 (s390_asm_file_end): New function.
20651 (s390_function_arg): Call s390_check_type_for_vector_abi.
20652 (s390_gimplify_va_arg): Likewise.
20653 * configure: Regenerate.
20654 * configure.ac: Check for .gnu_attribute Binutils feature.
20655
20656 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
20657
20658 PR target/65803
20659 * config/bfin/bfin.c (hwloop_optimize): Initialize
20660 JUMP_LABEL for newly created jump.
20661
20662 2015-06-23 Tristan Gingold <gingold@adacore.com>
20663
20664 * collect-utils.c (collect_wait): Unlink the response file here
20665 instead of...
20666 (do_wait): ...here.
20667 (utils_cleanup): ...and here.
20668
20669 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
20670
20671 * df-scan.c: Don't include target-def.h.
20672 * targhooks.c: Likewise.
20673 * config/arm/arm-c.c: Likewise.
20674 * config/i386/i386-c.c: Likewise.
20675 * config/nds32/nds32-cost.c: Likewise.
20676 * config/nds32/nds32-fp-as-gp.c: Likewise.
20677 * config/nds32/nds32-intrinsic.c: Likewise.
20678 * config/nds32/nds32-isr.c: Likewise.
20679 * config/nds32/nds32-md-auxiliary.c: Likewise.
20680 * config/nds32/nds32-memory-manipulation.c: Likewise.
20681 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20682 * config/nds32/nds32-predicates.c: Likewise.
20683
20684 2015-06-23 Richard Biener <rguenther@suse.de>
20685
20686 PR tree-optimization/66636
20687 * tree-vect-stmts.c (vectorizable_store): Properly compute the
20688 def type for further defs for strided stores.
20689
20690 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
20691
20692 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20693 conditional selects.
20694 (setcc_int<mode>, setcc_float<mode>): Reformat.
20695
20696 2015-06-23 Marek Polacek <polacek@redhat.com>
20697
20698 * match.pd ((x + y) - (x | y) -> x & y,
20699 (x + y) - (x & y) -> x | y): New patterns.
20700
20701 2015-06-23 Ludovic Courtès <ludo@gnu.org>
20702
20703 PR 65711
20704 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20705 '-dynamic-linker' within %{!shared: ...}.
20706
20707 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
20708
20709 PR target/66560
20710 * config/i386/predicates.md (addsub_vm_operator): New predicate.
20711 (addsub_vs_operator): Ditto.
20712 (addsub_vs_parallel): Ditto.
20713 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20714 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20715 Put minus RTX before plus and adjust vec_merge selector.
20716 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20717 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20718 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20719 (addsub vec_merge splitters): New combiner splitters.
20720 (addsub vec_select/vec_concat splitters): Ditto.
20721
20722 2015-06-23 Bin Cheng <bin.cheng@arm.com>
20723
20724 PR tree-optimization/66449
20725 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20726 POINTER_PLUS_EXPR for pointers.
20727
20728 2015-06-23 Alan Modra <amodra@gmail.com>
20729
20730 * rtlanal.c (commutative_operand_precedence): Correct comments.
20731 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20732 declaration. Return an int. Distinguish REG,REG return from
20733 others.
20734 (struct simplify_plus_minus_op_data): Make local to function.
20735 (simplify_plus_minus): Don't set canonicalized if merely sorting
20736 registers. Avoid packing ops if nothing changes. White space fixes.
20737
20738 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
20739
20740 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20741 -fdump-ada-spec is passed but not if -fsyntax-only is.
20742
20743 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
20744
20745 PR bootstrap/63740
20746 * lra-lives.c (process_bb_lives): Check insn copying the same
20747 reload pseudo and don't create a copy for it.
20748
20749 2015-06-22 Tom de Vries <tom@codesourcery.com>
20750
20751 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20752 for cond_stmt.
20753
20754 2015-06-22 Tom de Vries <tom@codesourcery.com>
20755
20756 * builtins.def (DEF_GOMP_BUILTIN): Test
20757 'flag_tree_parallelize_loops > 1' instead of
20758 'flag_tree_parallelize_loops'. Test flag_cilkplus.
20759
20760 2015-06-22 Tom de Vries <tom@codesourcery.com>
20761
20762 * dominance.c (calculate_dominance_info): Verify dominators if
20763 early-out.
20764
20765 2015-06-22 Marek Polacek <polacek@redhat.com>
20766
20767 * match.pd ((x ^ y) ^ (x | y) -> x & y,
20768 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20769 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20770 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20771
20772 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
20773
20774 PR target/65871
20775 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20776 cost of embedded comparison.
20777
20778 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20779
20780 PR target/65914
20781 * config/rs6000/predicates.md (altivec_register_operand): Permit
20782 virtual stack registers.
20783 (vsx_register_operand): Likewise.
20784 (vfloat_operand): Likewise.
20785 (vint_operand): Likewise.
20786 (vlogical_operand): Likewise.
20787
20788 2015-06-22 Richard Biener <rguenther@suse.de>
20789
20790 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20791 and single_scalar_iteration_cost members.
20792 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20793 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20794 (vect_get_single_scalar_iteration_cost): Remove.
20795 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20796 Use LOOP_VINFO_SCALAR_ITERATION_COST.
20797 * tree-vect-loop.c (destroy_loop_vec_info): Free
20798 scalar_cost_vec.
20799 (vect_get_single_scalar_iteration_cost): Compute result into
20800 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20801 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
20802 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20803 (vect_estimate_min_profitable_iters): Use them.
20804
20805 2015-06-22 Christian Bruel <christian.bruel@st.com>
20806
20807 PR target/52144
20808 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20809 (TARGET_INSERT_ATTRIBUTES): Define.
20810 (thumb_flipper): New var.
20811 * config/arm/arm.opt (-mflip-thumb): New switch.
20812
20813 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20814 Martin Liska <mliska@suse.cz>
20815
20816 PR ipa/65908
20817 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20818 construction of arg_types.
20819 (sem_function::sem_function): Likewise.
20820 (sem_function::~sem_function): Remove destruction of arg_types.
20821 (sem_function::compatible_parm_types_p): New function.
20822 (sem_function::equals_wpa): Reorg matching of return values
20823 and parameter types.
20824 (sem_function::equals_private): Reorg mathcing of argument types.
20825 (sem_function::parse_tree_args): Remove.
20826 * ipa-icf.h (init_wpa): Do not call it.
20827 (parse_tree_args): Remove.
20828 (compatible_parm_types_p): Declare.
20829 (result_type): Remove.
20830 (arg_types): Remove.
20831
20832 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20833
20834 PR ipa/66351
20835 * ipa-polymorphic-call.c
20836 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20837 initializing alias oracle; fix formating; set base_alias_set if it
20838 is known.
20839
20840 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
20841
20842 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20843 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20844 (find_inc): Likewise.
20845 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20846 swapping.
20847 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20848 * df-scan.c (df_swap_refs): Remove.
20849 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20850 * dominance.c (link_roots): Use std::swap instead of manually swapping.
20851 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20852 * fold-const.c (fold_relational_const): Likewise.
20853 * genattrtab.c (simplify_test_exp): Likewise.
20854 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20855 gimple_simplify): Likewise.
20856 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20857 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20858 * ipa-devirt.c (add_type_duplicate): Likewise.
20859 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20860 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20861 * lra.c (lra_create_copy): Likewise.
20862 * lto-streamer-out.c (DFS::DFS): Likewise.
20863 * modulo-sched.c (get_sched_window): Likewise.
20864 * omega.c (omega_pretty_print_problem): Likewise.
20865 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20866 * reload1.c (reloads_unique_chain_p): Likewise.
20867 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20868 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20869 use std::swap.
20870 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20871 manually swapping.
20872 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20873 predicate_mem_writes): Likewise.
20874 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20875 * tree-predcom.c (combine_chains): Likewise.
20876 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20877 refs_may_alias_p_1): Likewise.
20878 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20879 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20880 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20881 number_of_iterations_cond): Likewise.
20882 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20883 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20884 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20885 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20886 * tree-vrp.c (extract_range_from_binary_expr_1,
20887 extract_range_from_unary_expr_1): Likewise.
20888
20889 2015-06-20 Marek Polacek <polacek@redhat.com>
20890
20891 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20892
20893 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
20894
20895 PR target/66591
20896 * config/sh/sh.c (prepare_move_operands): Replace subreg
20897 index term with R0 for base and index addressing.
20898
20899 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
20900
20901 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20902 op1 is an fp zero.
20903 (movsf_aarch64): Change condition from register_operand to
20904 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
20905 load1. Change type for alternative 7 to store1.
20906 (movdf_aarch64): Likewise.
20907
20908 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
20909
20910 * config/vax/vax.md: Adjust sign/zero extend patterns to
20911 handle SUBREGs in operands[1].
20912
20913 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20914
20915 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20916 of manually swapping.
20917 (expand_vec_perm_interleave2): Likewise.
20918
20919 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
20920
20921 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20922 reuse bounds created for abnormal ssa names.
20923
20924 2015-06-19 Jakub Jelinek <jakub@redhat.com>
20925
20926 * config/nvptx/nvptx.md (allocate_stack): Rename to...
20927 (allocate_stack_<mode>): ... this, and add :P on both
20928 match_operand and unspec.
20929 (allocate_stack): New expander.
20930
20931 2015-06-19 Christian Bruel <christian.bruel@st.com>
20932
20933 PR target/66541
20934 PR target/52144
20935 * config/arm/arm.c (arm_set_current_function): Handle
20936 explicit default options.
20937
20938 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20939
20940 * config/i386/i386.md (*movsicc_noc_zext): New insn.
20941 (zero-extended cmove with mem peephole2): New pattern.
20942 (cmove with mem peephole2): Merge patterns.
20943
20944 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20945
20946 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20947
20948 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
20949
20950 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20951 * config/mips/mips.md (*madd4<mode>): Ditto.
20952 (*nmadd3<mode>) Ditto.
20953 (*nmadd4<mode>_fastmath): Ditto.
20954 (*nmadd3<mode>_fastmath): Ditto.
20955 (*nmsub4<mode>): Ditto.
20956 (*nmsub3<mode>): Ditto.
20957 (*nmsub4<mode>_fastmath): Ditto.
20958 (*nmsub3<mode>_fastmath): Ditto.
20959
20960 2015-06-18 Michael Matz <matz@suse.de>
20961
20962 PR middle-end/66253
20963 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20964 grouped strided stores.
20965 (vectorizable_load): Don't use the DR from first_stmt in
20966 the non-SLP grouped strided case.
20967
20968 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20969
20970 PR target/66569
20971 * function.c (assign_bounds): Add arguments assign_regs,
20972 assign_special, assign_bt.
20973 (assign_parms): For vararg functions handle bounds in BT
20974 and special slots after incoming vararg bounds.
20975
20976 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20977
20978 PR middle-end/66568
20979 * cfgexpand.c (expand_return): Handle missing bounds.
20980 (expand_gimple_stmt_1): Likewise.
20981 * tree-chkp.c (chkp_expand_zero_bounds): New.
20982 * tree-chkp.h (chkp_expand_zero_bounds): New.
20983
20984 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20985
20986 PR middle-end/66567
20987 * ipa-chkp.c (chkp_maybe_create_clone): Require
20988 functions to be instrumentable.
20989 * tree-chkp.c (chkp_replace_function_pointer): Use
20990 chkp_instrumentable_p instead of attribute check.
20991
20992 2015-06-18 Richard Biener <rguenther@suse.de>
20993
20994 PR tree-optimization/66510
20995 * tree-vect-stmts.c (vectorizable_load): Properly compute the
20996 number of vector loads for SLP permuted loads.
20997 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20998 check the stride for loop vectorization.
20999 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21000 vectorization factor.
21001 (vect_analyze_group_access): If the group size is not a power
21002 of two require a epilogue loop.
21003 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21004 compute and optimizing and alias test pruning after final
21005 vectorization factor computation.
21006 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21007 vector alignment.
21008 (vect_transform_slp_perm_load): Properly compute the original
21009 number of vector load stmts.
21010
21011 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21012
21013 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21014 "unlikely character , in @var" warning.
21015
21016 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
21017
21018 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21019 (ix86_function_arg_advance): Ditto.
21020 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
21021
21022 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21023
21024 * function.h (struct rtl_data): Remove struct and accessor macros.
21025 * emit-rtl.h (struct rtl_data): Relocate to here.
21026 * Makefile.in (GTFILES): Add emit-rtl.h.
21027 * df-core.c: Include emit-rtl.h.
21028 * genattrtab.c: Likewise.
21029 * genconditions.c: Likewise.
21030 * genpreds.c: Likewise.
21031 * genrecog.c: Likewise.
21032 * regcprop.c: Likewise.
21033 * resource.c: Likewise.
21034 * sched-rgn.c: Likewise.
21035 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21036 * config/i386/winnt.c: Likewise.
21037
21038 2015-06-17 Jakub Jelinek <jakub@redhat.com>
21039
21040 PR middle-end/66429
21041 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21042 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
21043 and has_force_vectorize_loops flags from cfun into
21044 child_cfun.
21045 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21046 if simduid is non-NULL.
21047 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21048 * passes.def (pass_simduid_cleanup): Add new pass after loop
21049 passes.
21050 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21051 indirection from htab argument's type.
21052 (shrink_simd_arrays): New function.
21053 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
21054 Don't call adjust_simduid_builtins if there are no loops.
21055 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21056 (pass_simduid_cleanup::execute): New method.
21057 (make_pass_simduid_cleanup): New function.
21058
21059 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
21060
21061 * tree-core.h (tree_target_option): Make opts field a pointer to a
21062 cl_target_option instead of an instance of the struct.
21063 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21064 the structure.
21065 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21066 TARGET_OPTION_NODE.
21067 (copy_node_stat): Allocate and copy struct cl_target_option.
21068
21069 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21070
21071 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21072 Remove conditional exposure of prototypes.
21073 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21074 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
21075 definitions in tree.h with functions.
21076 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21077 anon_aggrname_p.
21078 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21079
21080 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
21081
21082 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21083 (*cmp<mode>_signed): ... this.
21084 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21085 (*cmp<mode>_unsigned): ... this. Remove %b.
21086
21087 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21088
21089 * coretypes.h: Include input.h and as-a.h.
21090 * rtl.h: Include input.h and as-a.h for generator files.
21091 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21092 * vec.c: Don't include diagnostic-core.h.
21093 * alias.c: Do not include input.h, line-map.h or is-a.h.
21094 * asan.c: Likewise.
21095 * attribs.c: Likewise.
21096 * auto-inc-dec.c: Likewise.
21097 * auto-profile.c: Likewise.
21098 * bb-reorder.c: Likewise.
21099 * bt-load.c: Likewise.
21100 * builtins.c: Likewise.
21101 * caller-save.c: Likewise.
21102 * calls.c: Likewise.
21103 * ccmp.c: Likewise.
21104 * cfg.c: Likewise.
21105 * cfganal.c: Likewise.
21106 * cfgbuild.c: Likewise.
21107 * cfgcleanup.c: Likewise.
21108 * cfgexpand.c: Likewise.
21109 * cfghooks.c: Likewise.
21110 * cfgloop.c: Likewise.
21111 * cfgloop.h: Likewise.
21112 * cfgloopanal.c: Likewise.
21113 * cfgloopmanip.c: Likewise.
21114 * cfgrtl.c: Likewise.
21115 * cgraph.c: Likewise.
21116 * cgraphbuild.c: Likewise.
21117 * cgraphclones.c: Likewise.
21118 * cgraphunit.c: Likewise.
21119 * cilk-common.c: Likewise.
21120 * combine-stack-adj.c: Likewise.
21121 * combine.c: Likewise.
21122 * compare-elim.c: Likewise.
21123 * convert.c: Likewise.
21124 * coverage.c: Likewise.
21125 * cppbuiltin.c: Likewise.
21126 * cprop.c: Likewise.
21127 * cse.c: Likewise.
21128 * cselib.c: Likewise.
21129 * data-streamer-in.c: Likewise.
21130 * data-streamer-out.c: Likewise.
21131 * data-streamer.c: Likewise.
21132 * dbxout.c: Likewise.
21133 * dce.c: Likewise.
21134 * ddg.c: Likewise.
21135 * debug.c: Likewise.
21136 * df-core.c: Likewise.
21137 * df-problems.c: Likewise.
21138 * df-scan.c: Likewise.
21139 * df.h: Likewise.
21140 * dfp.c: Likewise.
21141 * diagnostic-core.h: Likewise.
21142 * diagnostic.c: Likewise.
21143 * dojump.c: Likewise.
21144 * dominance.c: Likewise.
21145 * domwalk.c: Likewise.
21146 * double-int.c: Likewise.
21147 * dse.c: Likewise.
21148 * dumpfile.c: Likewise.
21149 * dumpfile.h: Likewise.
21150 * dwarf2asm.c: Likewise.
21151 * dwarf2cfi.c: Likewise.
21152 * dwarf2out.c: Likewise.
21153 * emit-rtl.c: Likewise.
21154 * et-forest.c: Likewise.
21155 * except.c: Likewise.
21156 * explow.c: Likewise.
21157 * expmed.c: Likewise.
21158 * expr.c: Likewise.
21159 * final.c: Likewise.
21160 * fixed-value.c: Likewise.
21161 * fold-const.c: Likewise.
21162 * function.c: Likewise.
21163 * fwprop.c: Likewise.
21164 * gcc-plugin.h: Likewise.
21165 * gcse.c: Likewise.
21166 * generic-match-head.c: Likewise.
21167 * ggc-page.c: Likewise.
21168 * gimple-builder.c: Likewise.
21169 * gimple-expr.c: Likewise.
21170 * gimple-fold.c: Likewise.
21171 * gimple-iterator.c: Likewise.
21172 * gimple-low.c: Likewise.
21173 * gimple-match-head.c: Likewise.
21174 * gimple-pretty-print.c: Likewise.
21175 * gimple-ssa-isolate-paths.c: Likewise.
21176 * gimple-ssa-strength-reduction.c: Likewise.
21177 * gimple-streamer-in.c: Likewise.
21178 * gimple-streamer-out.c: Likewise.
21179 * gimple-streamer.h: Likewise.
21180 * gimple-walk.c: Likewise.
21181 * gimple.c: Likewise.
21182 * gimplify-me.c: Likewise.
21183 * gimplify.c: Likewise.
21184 * godump.c: Likewise.
21185 * graph.c: Likewise.
21186 * graphite-blocking.c: Likewise.
21187 * graphite-dependences.c: Likewise.
21188 * graphite-interchange.c: Likewise.
21189 * graphite-isl-ast-to-gimple.c: Likewise.
21190 * graphite-optimize-isl.c: Likewise.
21191 * graphite-poly.c: Likewise.
21192 * graphite-scop-detection.c: Likewise.
21193 * graphite-sese-to-poly.c: Likewise.
21194 * graphite.c: Likewise.
21195 * haifa-sched.c: Likewise.
21196 * hw-doloop.c: Likewise.
21197 * ifcvt.c: Likewise.
21198 * init-regs.c: Likewise.
21199 * input.c: Likewise.
21200 * internal-fn.c: Likewise.
21201 * ipa-chkp.c: Likewise.
21202 * ipa-comdats.c: Likewise.
21203 * ipa-cp.c: Likewise.
21204 * ipa-devirt.c: Likewise.
21205 * ipa-icf-gimple.c: Likewise.
21206 * ipa-icf.c: Likewise.
21207 * ipa-inline-analysis.c: Likewise.
21208 * ipa-inline-transform.c: Likewise.
21209 * ipa-inline.c: Likewise.
21210 * ipa-polymorphic-call.c: Likewise.
21211 * ipa-profile.c: Likewise.
21212 * ipa-prop.c: Likewise.
21213 * ipa-pure-const.c: Likewise.
21214 * ipa-ref.c: Likewise.
21215 * ipa-reference.c: Likewise.
21216 * ipa-split.c: Likewise.
21217 * ipa-utils.c: Likewise.
21218 * ipa-visibility.c: Likewise.
21219 * ipa.c: Likewise.
21220 * ira-build.c: Likewise.
21221 * ira-color.c: Likewise.
21222 * ira-conflicts.c: Likewise.
21223 * ira-costs.c: Likewise.
21224 * ira-emit.c: Likewise.
21225 * ira-lives.c: Likewise.
21226 * ira.c: Likewise.
21227 * jump.c: Likewise.
21228 * langhooks.c: Likewise.
21229 * lcm.c: Likewise.
21230 * loop-doloop.c: Likewise.
21231 * loop-init.c: Likewise.
21232 * loop-invariant.c: Likewise.
21233 * loop-iv.c: Likewise.
21234 * loop-unroll.c: Likewise.
21235 * lower-subreg.c: Likewise.
21236 * lra-assigns.c: Likewise.
21237 * lra-coalesce.c: Likewise.
21238 * lra-constraints.c: Likewise.
21239 * lra-eliminations.c: Likewise.
21240 * lra-lives.c: Likewise.
21241 * lra-remat.c: Likewise.
21242 * lra-spills.c: Likewise.
21243 * lra.c: Likewise.
21244 * lto-cgraph.c: Likewise.
21245 * lto-compress.c: Likewise.
21246 * lto-opts.c: Likewise.
21247 * lto-section-in.c: Likewise.
21248 * lto-section-out.c: Likewise.
21249 * lto-streamer-in.c: Likewise.
21250 * lto-streamer-out.c: Likewise.
21251 * lto-streamer.c: Likewise.
21252 * mcf.c: Likewise.
21253 * mode-switching.c: Likewise.
21254 * modulo-sched.c: Likewise.
21255 * omega.c: Likewise.
21256 * omp-low.c: Likewise.
21257 * optabs.c: Likewise.
21258 * opts-global.c: Likewise.
21259 * opts.h: Likewise.
21260 * passes.c: Likewise.
21261 * plugin.c: Likewise.
21262 * postreload-gcse.c: Likewise.
21263 * postreload.c: Likewise.
21264 * predict.c: Likewise.
21265 * pretty-print.h: Likewise.
21266 * print-rtl.c: Likewise.
21267 * print-tree.c: Likewise.
21268 * profile.c: Likewise.
21269 * real.c: Likewise.
21270 * realmpfr.c: Likewise.
21271 * recog.c: Likewise.
21272 * ree.c: Likewise.
21273 * reg-stack.c: Likewise.
21274 * regcprop.c: Likewise.
21275 * reginfo.c: Likewise.
21276 * regrename.c: Likewise.
21277 * regstat.c: Likewise.
21278 * reload.c: Likewise.
21279 * reload1.c: Likewise.
21280 * reorg.c: Likewise.
21281 * resource.c: Likewise.
21282 * rtl-chkp.c: Likewise.
21283 * rtl-error.c: Likewise.
21284 * rtlanal.c: Likewise.
21285 * rtlhooks.c: Likewise.
21286 * sanopt.c: Likewise.
21287 * sched-deps.c: Likewise.
21288 * sched-ebb.c: Likewise.
21289 * sched-rgn.c: Likewise.
21290 * sched-vis.c: Likewise.
21291 * sdbout.c: Likewise.
21292 * sel-sched-dump.c: Likewise.
21293 * sel-sched-ir.c: Likewise.
21294 * sel-sched.c: Likewise.
21295 * sese.c: Likewise.
21296 * shrink-wrap.c: Likewise.
21297 * simplify-rtx.c: Likewise.
21298 * stack-ptr-mod.c: Likewise.
21299 * statistics.c: Likewise.
21300 * stmt.c: Likewise.
21301 * stor-layout.c: Likewise.
21302 * store-motion.c: Likewise.
21303 * streamer-hooks.c: Likewise.
21304 * stringpool.c: Likewise.
21305 * symtab.c: Likewise.
21306 * target-globals.c: Likewise.
21307 * targhooks.c: Likewise.
21308 * toplev.c: Likewise.
21309 * tracer.c: Likewise.
21310 * trans-mem.c: Likewise.
21311 * tree-affine.c: Likewise.
21312 * tree-browser.c: Likewise.
21313 * tree-call-cdce.c: Likewise.
21314 * tree-cfg.c: Likewise.
21315 * tree-cfgcleanup.c: Likewise.
21316 * tree-chkp-opt.c: Likewise.
21317 * tree-chkp.c: Likewise.
21318 * tree-chrec.c: Likewise.
21319 * tree-complex.c: Likewise.
21320 * tree-data-ref.c: Likewise.
21321 * tree-dfa.c: Likewise.
21322 * tree-diagnostic.c: Likewise.
21323 * tree-dump.c: Likewise.
21324 * tree-eh.c: Likewise.
21325 * tree-emutls.c: Likewise.
21326 * tree-if-conv.c: Likewise.
21327 * tree-inline.c: Likewise.
21328 * tree-into-ssa.c: Likewise.
21329 * tree-iterator.c: Likewise.
21330 * tree-loop-distribution.c: Likewise.
21331 * tree-nested.c: Likewise.
21332 * tree-nrv.c: Likewise.
21333 * tree-object-size.c: Likewise.
21334 * tree-outof-ssa.c: Likewise.
21335 * tree-parloops.c: Likewise.
21336 * tree-phinodes.c: Likewise.
21337 * tree-predcom.c: Likewise.
21338 * tree-pretty-print.c: Likewise.
21339 * tree-profile.c: Likewise.
21340 * tree-scalar-evolution.c: Likewise.
21341 * tree-sra.c: Likewise.
21342 * tree-ssa-address.c: Likewise.
21343 * tree-ssa-alias.c: Likewise.
21344 * tree-ssa-ccp.c: Likewise.
21345 * tree-ssa-coalesce.c: Likewise.
21346 * tree-ssa-copy.c: Likewise.
21347 * tree-ssa-copyrename.c: Likewise.
21348 * tree-ssa-dce.c: Likewise.
21349 * tree-ssa-dom.c: Likewise.
21350 * tree-ssa-dse.c: Likewise.
21351 * tree-ssa-forwprop.c: Likewise.
21352 * tree-ssa-ifcombine.c: Likewise.
21353 * tree-ssa-live.c: Likewise.
21354 * tree-ssa-loop-ch.c: Likewise.
21355 * tree-ssa-loop-im.c: Likewise.
21356 * tree-ssa-loop-ivcanon.c: Likewise.
21357 * tree-ssa-loop-ivopts.c: Likewise.
21358 * tree-ssa-loop-manip.c: Likewise.
21359 * tree-ssa-loop-niter.c: Likewise.
21360 * tree-ssa-loop-prefetch.c: Likewise.
21361 * tree-ssa-loop-unswitch.c: Likewise.
21362 * tree-ssa-loop.c: Likewise.
21363 * tree-ssa-math-opts.c: Likewise.
21364 * tree-ssa-operands.c: Likewise.
21365 * tree-ssa-phiopt.c: Likewise.
21366 * tree-ssa-phiprop.c: Likewise.
21367 * tree-ssa-pre.c: Likewise.
21368 * tree-ssa-propagate.c: Likewise.
21369 * tree-ssa-reassoc.c: Likewise.
21370 * tree-ssa-sccvn.c: Likewise.
21371 * tree-ssa-scopedtables.c: Likewise.
21372 * tree-ssa-sink.c: Likewise.
21373 * tree-ssa-strlen.c: Likewise.
21374 * tree-ssa-structalias.c: Likewise.
21375 * tree-ssa-tail-merge.c: Likewise.
21376 * tree-ssa-ter.c: Likewise.
21377 * tree-ssa-threadedge.c: Likewise.
21378 * tree-ssa-threadupdate.c: Likewise.
21379 * tree-ssa-uncprop.c: Likewise.
21380 * tree-ssa-uninit.c: Likewise.
21381 * tree-ssa.c: Likewise.
21382 * tree-ssanames.c: Likewise.
21383 * tree-stdarg.c: Likewise.
21384 * tree-streamer-in.c: Likewise.
21385 * tree-streamer-out.c: Likewise.
21386 * tree-streamer.c: Likewise.
21387 * tree-switch-conversion.c: Likewise.
21388 * tree-tailcall.c: Likewise.
21389 * tree-vect-data-refs.c: Likewise.
21390 * tree-vect-generic.c: Likewise.
21391 * tree-vect-loop-manip.c: Likewise.
21392 * tree-vect-loop.c: Likewise.
21393 * tree-vect-patterns.c: Likewise.
21394 * tree-vect-slp.c: Likewise.
21395 * tree-vect-stmts.c: Likewise.
21396 * tree-vectorizer.c: Likewise.
21397 * tree-vrp.c: Likewise.
21398 * tree.c: Likewise.
21399 * tsan.c: Likewise.
21400 * ubsan.c: Likewise.
21401 * valtrack.c: Likewise.
21402 * value-prof.c: Likewise.
21403 * var-tracking.c: Likewise.
21404 * varasm.c: Likewise.
21405 * varpool.c: Likewise.
21406 * vmsdbgout.c: Likewise.
21407 * vtable-verify.c: Likewise.
21408 * web.c: Likewise.
21409 * wide-int.cc: Likewise.
21410 * xcoffout.c: Likewise.
21411 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21412 * common/common-targhooks.c: Likewise.
21413 * config/aarch64/aarch64-builtins.c: Likewise.
21414 * config/aarch64/aarch64.c: Likewise.
21415 * config/alpha/alpha.c: Likewise.
21416 * config/arc/arc.c: Likewise.
21417 * config/arm/aarch-common.c: Likewise.
21418 * config/arm/arm-builtins.c: Likewise.
21419 * config/arm/arm-c.c: Likewise.
21420 * config/arm/arm.c: Likewise.
21421 * config/avr/avr-c.c: Likewise.
21422 * config/avr/avr-log.c: Likewise.
21423 * config/avr/avr.c: Likewise.
21424 * config/bfin/bfin.c: Likewise.
21425 * config/c6x/c6x.c: Likewise.
21426 * config/cr16/cr16.c: Likewise.
21427 * config/cris/cris.c: Likewise.
21428 * config/darwin-c.c: Likewise.
21429 * config/darwin.c: Likewise.
21430 * config/default-c.c: Likewise.
21431 * config/epiphany/epiphany.c: Likewise.
21432 * config/epiphany/mode-switch-use.c: Likewise.
21433 * config/epiphany/resolve-sw-modes.c: Likewise.
21434 * config/fr30/fr30.c: Likewise.
21435 * config/frv/frv.c: Likewise.
21436 * config/ft32/ft32.c: Likewise.
21437 * config/glibc-c.c: Likewise.
21438 * config/h8300/h8300.c: Likewise.
21439 * config/i386/i386-c.c: Likewise.
21440 * config/i386/i386.c: Likewise.
21441 * config/i386/msformat-c.c: Likewise.
21442 * config/i386/winnt-cxx.c: Likewise.
21443 * config/i386/winnt-stubs.c: Likewise.
21444 * config/i386/winnt.c: Likewise.
21445 * config/ia64/ia64-c.c: Likewise.
21446 * config/ia64/ia64.c: Likewise.
21447 * config/iq2000/iq2000.c: Likewise.
21448 * config/lm32/lm32.c: Likewise.
21449 * config/m32c/m32c-pragma.c: Likewise.
21450 * config/m32c/m32c.c: Likewise.
21451 * config/m32r/m32r.c: Likewise.
21452 * config/m68k/m68k.c: Likewise.
21453 * config/mcore/mcore.c: Likewise.
21454 * config/mep/mep-pragma.c: Likewise.
21455 * config/mep/mep.c: Likewise.
21456 * config/microblaze/microblaze-c.c: Likewise.
21457 * config/microblaze/microblaze.c: Likewise.
21458 * config/mips/mips.c: Likewise.
21459 * config/mmix/mmix.c: Likewise.
21460 * config/mn10300/mn10300.c: Likewise.
21461 * config/moxie/moxie.c: Likewise.
21462 * config/msp430/msp430-c.c: Likewise.
21463 * config/msp430/msp430.c: Likewise.
21464 * config/nds32/nds32-cost.c: Likewise.
21465 * config/nds32/nds32-fp-as-gp.c: Likewise.
21466 * config/nds32/nds32-intrinsic.c: Likewise.
21467 * config/nds32/nds32-isr.c: Likewise.
21468 * config/nds32/nds32-md-auxiliary.c: Likewise.
21469 * config/nds32/nds32-memory-manipulation.c: Likewise.
21470 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21471 * config/nds32/nds32-predicates.c: Likewise.
21472 * config/nds32/nds32.c: Likewise.
21473 * config/nios2/nios2.c: Likewise.
21474 * config/nvptx/nvptx.c: Likewise.
21475 * config/pa/pa.c: Likewise.
21476 * config/pdp11/pdp11.c: Likewise.
21477 * config/rl78/rl78-c.c: Likewise.
21478 * config/rl78/rl78.c: Likewise.
21479 * config/rs6000/rs6000-c.c: Likewise.
21480 * config/rs6000/rs6000.c: Likewise.
21481 * config/rx/rx.c: Likewise.
21482 * config/s390/s390-c.c: Likewise.
21483 * config/s390/s390.c: Likewise.
21484 * config/sh/sh-c.c: Likewise.
21485 * config/sh/sh-mem.cc: Likewise.
21486 * config/sh/sh.c: Likewise.
21487 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21488 * config/sh/sh_treg_combine.cc: Likewise.
21489 * config/sol2-c.c: Likewise.
21490 * config/sol2-cxx.c: Likewise.
21491 * config/sol2-stubs.c: Likewise.
21492 * config/sol2.c: Likewise.
21493 * config/sparc/sparc-c.c: Likewise.
21494 * config/sparc/sparc.c: Likewise.
21495 * config/spu/spu-c.c: Likewise.
21496 * config/spu/spu.c: Likewise.
21497 * config/stormy16/stormy16.c: Likewise.
21498 * config/tilegx/mul-tables.c: Likewise.
21499 * config/tilegx/tilegx-c.c: Likewise.
21500 * config/tilegx/tilegx.c: Likewise.
21501 * config/tilepro/mul-tables.c: Likewise.
21502 * config/tilepro/tilepro-c.c: Likewise.
21503 * config/tilepro/tilepro.c: Likewise.
21504 * config/v850/v850-c.c: Likewise.
21505 * config/v850/v850.c: Likewise.
21506 * config/vax/vax.c: Likewise.
21507 * config/visium/visium.c: Likewise.
21508 * config/vms/vms-c.c: Likewise.
21509 * config/vms/vms.c: Likewise.
21510 * config/vxworks.c: Likewise.
21511 * config/winnt-c.c: Likewise.
21512 * config/xtensa/xtensa.c: Likewise.
21513
21514 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
21515
21516 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21517 function.
21518 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21519
21520 2015-06-17 Richard Biener <rguenther@suse.de>
21521
21522 PR tree-optimization/66251
21523 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21524 stmts for SLP strided stores.
21525
21526 Revert
21527 2015-05-22 Richard Biener <rguenther@suse.de>
21528
21529 PR tree-optimization/66251
21530 * tree-vect-stmts.c (vectorizable_conversion): Properly
21531 set STMT_VINFO_VEC_STMT even for the SLP case.
21532
21533 2015-05-26 Michael Matz <matz@suse.de>
21534
21535 PR middle-end/66251
21536 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21537 STMT_VINFO_VEC_STMT, also with SLP.
21538
21539 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
21540
21541 PR target/56766
21542 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21543 (*avx_addsubv4df3_1s): Ditto.
21544 (*sse3_addsubv2df3_1): Ditto.
21545 (*sse3_addsubv2df3_1s): Ditto.
21546 (*avx_addsubv8sf3_1): Ditto.
21547 (*avx_addsubv8sf3_1s): Ditto.
21548 (*sse3_addsubv4sf3_1): Ditto.
21549 (*sse3_addsubv4sf3_1s): Ditto.
21550
21551 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
21552
21553 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21554 (SYSROOT_SUFFIX_SPEC): Update.
21555 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21556 (STARTFILE_PREFIX_SPEC): Update.
21557 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21558 (MULTILIB_REQUIRED): New.
21559 (MULTILIB_OSDIRNAMES): New.
21560 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21561 (MULTILIB_REQUIRED): New.
21562 (MULTILIB_OSDIRNAMES): New.
21563
21564 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
21565
21566 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21567 * config/aarch64/aarch64-options-extensions.def: Update "fP",
21568 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
21569 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21570 (AARCH64_FL_PAN): New.
21571 (AARCH64_FL_LOR): New.
21572 (AARCH64_FL_RDMA): New.
21573 (AARCH64_FL_FOR_ARCH8_1): New.
21574 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21575 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21576
21577 2015-06-16 Martin Liska <mliska@suse.cz>
21578
21579 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21580 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21581 guard.
21582
21583 2015-06-16 Richard Biener <rguenther@suse.de>
21584
21585 * tree-vect-stmts.c (vectorizable_store): Adjust.
21586 (vectorizable_load): Likewise.
21587 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21588 Simplify.
21589 (vect_create_data_ref_ptr): Likewise.
21590 (bump_vector_ptr): Adjust.
21591
21592 2015-06-16 Richard Biener <rguenther@suse.de>
21593
21594 * tree-vect-stmts.c (vectorizable_load): Properly start loads
21595 with the first element if this is grouped loads.
21596
21597 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
21598
21599 * config/arm/arm-protos.h (struct tune_params): Rename
21600 log_op_non_sc to log_op_non_short_circuit, and rename enum
21601 values to expand SC to SHORT_CIRCUIT.
21602 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21603 to LOG_OP_NON_SHORT_CIRCUIT.
21604 (arm_fastmul_tune):Likewise
21605 (arm_strongarm_tune): Likewise.
21606 (arm_xscale_tune): Likewise.
21607 (arm_9e_tune): Likewise.
21608 (arm_marvell_pj4_tune): Likewise.
21609 (arm_v6t2_tune): Likewise.
21610 (arm_cortex_tune): Likewise.
21611 (arm_cortex_a8_tune): Likewise.
21612 (arm_cortex_a7_tune): Likewise.
21613 (arm_cortex_a15_tune): Likewise.
21614 (arm_cortex_a53_tune): Likewise.
21615 (arm_cortex_a57_tune): Likewise.
21616 (arm_xgene1_tune): Likewise.
21617 (arm_cortex_a5_tune): Likewise.
21618 (arm_cortex_a9_tune): Likewise.
21619 (arm_cortex_a12_tune): Likewise.
21620 (arm_v7m_tune): Likewise.
21621 (arm_cortex_m7_tune): Likewise.
21622 (arm_v6m_tune): Likewise.
21623 (arm_fa726te_tune): Likewise.
21624
21625 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
21626
21627 * altivec.md: Delete UNSPEC_VMLADDUHM.
21628 (mulv4si3_p8): New pattern.
21629 (mulv4si3): Use it for POWER8.
21630 (mulv8hi3): Use vmladduhm with zero addend.
21631 (altivec_vmladduhm): Descriptive RTL.
21632
21633 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
21634
21635 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21636 to use neon_move instead of mov_imm.
21637 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21638 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21639
21640 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21641 aarch64_float_const_zero_rtx_p check before TFmode check.
21642 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21643 an fp zero.
21644 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
21645 code and attributes to match. Change condition from register_operand
21646 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
21647 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
21648 to store2.
21649
21650 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
21651
21652 PR debug/66535
21653 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21654 there is no parent.
21655
21656 2015-06-14 Shiva Chen <shiva0217@gmail.com>
21657
21658 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21659 HOST_WIDE_INT parameter.
21660
21661 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
21662
21663 PR ipa/66181
21664 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21665 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21666 TYPE_NO_FORCE_BLK.
21667 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21668
21669 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
21670
21671 * rtl.h (classify_insn): Declare.
21672 * emit-rtl.c (classify_insn): Move to...
21673 * rtl.c: ...here and add generator support.
21674 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21675 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21676 * genemit.c (gen_emit_seq): New function.
21677 (gen_expand, gen_split): Use it.
21678
21679 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
21680
21681 * tree.c (make_vector_stat): Fix comment to state that the
21682 function returns a VECTOR_CST.
21683
21684 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
21685
21686 * gensupport.h (add_implicit_parallel): Declare.
21687 * genrecog.c (add_implicit_parallel): Move to...
21688 * gensupport.c (add_implicit_parallel): ...here.
21689 (process_one_cond_exec): Use it.
21690 * genemit.c (gen_insn): Likewise.
21691
21692 2015-06-13 Iain Sandoe <iain@codesourcery.com>
21693
21694 PR bootstrap/66448
21695 * passes.c (rest_of_decl_compilation): Do not register globals for
21696 early debug if they are declared in built-ins.
21697
21698 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
21699
21700 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21701
21702 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21703
21704 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21705 manually swapping.
21706 (noce_try_cmove_arith): Likewise.
21707 (noce_get_alt_condition): Likewise.
21708
21709 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21710
21711 * common/config/i386/i386-common.c
21712 (OPTION_MASK_ISA_MWAITX_SET): New.
21713 (ix86_handle_option): Handle mwaitx.
21714 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21715 (x86_64-*-*): Likewise.
21716 * config/i386/mwaitxintrin.h: New header.
21717 * config/i386/cpuid.h (bit_MWAITX): Define.
21718 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21719 MWAITX support.
21720 * config/i386/i386.opt (mwaitx): New.
21721 * config/i386/i386-builtin-types.def
21722 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21723 * config/i386/i386-c.c: Define __MWAITX__ if needed.
21724 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21725 (PTA_MWAITX): New.
21726 (ix86_option_override_internal): Handle new option.
21727 (processor_alias_table): Added PTA_MWAITX.
21728 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21729 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21730 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21731 IX86_BUILTIN_MONITORX built-ins.
21732 * config/i386/i386.h (TARGET_MWAITX): New.
21733 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21734 UNSPEC_MONITORX.
21735 (mwaitx): New pattern.
21736 (monitorx_<mode>): New pattern.
21737 * config/i386/x86intrin.h: Include mwaitxintrin.h.
21738 * doc/extend.texi: Document monitorx and mwaitx builtins.
21739 * doc/invoke.texi: Document -mmwaitx option.
21740
21741 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
21742
21743 * emit-rtl.c (need_atomic_barrier_p): Mask model with
21744 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
21745
21746 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21747
21748 * dbxout.c (xcoff_debug_hooks): Provide a function for
21749 register_main_translation_unit hook.
21750
21751 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21752
21753 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21754 variants cases from switch.
21755 (rs6000_post_atomic_barrier): Same.
21756 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21757 (rs6000_expand_atomic_exchange): Same.
21758 (rs6000_expand_atomic_op): Same.
21759 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21760 SYNC variants cases from switch.
21761 (atomic_load): Same.
21762 (atomic_store): Same.
21763
21764 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
21765
21766 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21767 CONST_INT for goto.
21768
21769 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
21770
21771 PR bootstrap/66448
21772 * dwarf2out.c (check_die): Check for common duplicate attributes.
21773 (add_location_or_const_value_attribute): Do not add duplicate
21774 attributes.
21775 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21776 time around.
21777 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21778 (gen_type_die_with_usage): Call check_die.
21779 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21780
21781 2015-06-11 Jason Merrill <jason@redhat.com>
21782
21783 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21784 dies.
21785
21786 2015-06-11 Marek Polacek <polacek@redhat.com>
21787
21788 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21789
21790 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
21791
21792 PR bootstrap/66252
21793 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21794 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21795 (*addx_extend_sp32): Fix pasto.
21796 (*subx_extend): Rename into...
21797 (*subx_extend_sp32): ...this.
21798 (*adddi3_extend_sp32): Add earlyclobber.
21799 (*subdi3_insn_sp32): Likewise.
21800 (*subdi3_extend_sp32): Likewise.
21801 (*and_not_di_sp32): Likewise.
21802 (*or_not_di_sp32): Likewise.
21803 (*xor_not_di_sp32): Likewise.
21804 (*negdi2_sp32): Likewise.
21805 (*one_cmpldi2_sp32): Likewise.
21806
21807 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
21808
21809 * debug.h (struct gcc_debug_hooks): Add a
21810 register_main_translation_unit hook.
21811 * debug.c (do_nothing_debug_hooks): Provide a function for this
21812 new hook.
21813 * dbxout.c (dbx_debug_hooks): Likewise.
21814 * sdbout.c (sdb_debug_hooks): Likewise.
21815 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21816 * dwarf2out.c (main_translation_unit): New global variable.
21817 (dwarf2out_register_main_translation_unit): New function
21818 implementing the new hook.
21819 (dwarf2_debug_hooks): Assign
21820 dwarf2out_register_main_translation_unit to this new hook.
21821 (dwarf2out_init): Associate any main translation unit to
21822 comp_unit_die ().
21823
21824 2015-06-11 Marek Polacek <polacek@redhat.com>
21825
21826 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21827
21828 2015-06-11 Marek Polacek <polacek@redhat.com>
21829
21830 * match.pd: Use single_use throughout.
21831
21832 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21833
21834 * config/arm/arm.c (arm_option_params_internal): When optimising
21835 for speed set max_insns_skipped when arm_restrict_it.
21836
21837 2015-06-11 Christian Bruel <christian.bruel@st.com>
21838
21839 PR target/52144
21840 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21841 macros in ...
21842 (arm_cpu_builtins): New function.
21843 (arm_pragma_target_parse): Call arm_cpu_builtins.
21844 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21845 (arm_register_target_pragmas): Likewise.
21846 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21847 Call arm_register_target_pragmas.
21848 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21849 (arm_pragma_target_parse): Likewise.
21850
21851 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
21852
21853 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21854 of the second operand.
21855
21856 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
21857
21858 PR target/66473
21859 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21860 to prepare mask operand for AVX512 modes.
21861
21862 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21863
21864 PR target/66474
21865 * doc/md.texi (Machine Constraints): Document that on the PowerPC
21866 if you use a constraint that targets a VSX register, you must use
21867 %x<n> in the template.
21868
21869 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
21870
21871 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21872 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21873 (define_insn "trap"): New definition.
21874
21875 2015-06-10 Richard Biener <rguenther@suse.de>
21876
21877 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21878 out from ...
21879 (vect_supported_load_permutation_p): ... here. Handle
21880 supportable permutations in reductions.
21881 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21882 for vectorizing strided group loads.
21883
21884 2015-06-10 Jakub Jelinek <jakub@redhat.com>
21885
21886 PR target/66470
21887 * config/i386/i386.c (ix86_split_long_move): For collisions
21888 involving direct tls segment refs, move the UNSPEC_TP possibly
21889 wrapped in ZERO_EXTEND out of the address for lea, to each of
21890 the memory loads.
21891
21892 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21893
21894 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21895 dmb sy. Adjust tabs.
21896
21897 2015-06-10 Tom de Vries <tom@codesourcery.com>
21898
21899 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21900
21901 2015-06-10 Martin Liska <mliska@suse.cz>
21902
21903 PR bootstrap/66471
21904 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21905 all enum values in mem_alloc_origin.
21906 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21907 name.
21908 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21909 * bitmap.c (bitmap_register): Likewise.
21910 (dump_bitmap_statistics): Likewise.
21911 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21912 (ggc_record_overhead): Likewise.
21913 * hash-map.h: Likewise.
21914 * hash-set.h: Likewise.
21915 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21916 * hash-table.h: Likewise.
21917 * vec.c (vec_prefix::register_overhead): Likewise.
21918 (vec_prefix::release_overhead): Likewise.
21919 (dump_vec_loc_statistics): Likewise.
21920
21921 2015-06-09 Christian Bruel <christian.bruel@st.com>
21922
21923 PR target/52144
21924 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21925 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21926 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21927 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21928 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21929 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21930 (arm_valid_target_attribute_p): Likewise.
21931 (arm_set_current_function, arm_can_inline_p): Likewise.
21932 (arm_valid_target_attribute_rec): Likewise.
21933 (arm_previous_fndecl): New variable.
21934 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21935 (TARGET_CAN_INLINE_P): Define.
21936 (arm_asm_trampoline_template): Emit mode.
21937 (arm_file_start): Don't set unified syntax.
21938 (arm_declare_function_name): Set unified syntax and mode.
21939 (arm_option_override): Init target_option_default_node.
21940 and target_option_current_node.
21941 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21942 (*call_symbol): Likewise.
21943 * doc/extend.texi: Document ARM/Thumb target attribute.
21944 * doc/invoke.texi: Likewise.
21945
21946 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21947
21948 Revert:
21949 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21950 PR rtl-optimization/64164
21951 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21952 * tree-ssa-copyrename.c: Removed.
21953 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21954 -ftree-coalesce-vars.
21955 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21956 * common.opt (ftree-copyrename): Ignore.
21957 (ftree-coalesce-inlined-vars): Likewise.
21958 * doc/invoke.texi: Remove the ignored options above.
21959 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21960 * tree-ssa-coalesce.h: ... here.
21961 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21962 headers required by it.
21963 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21964 across variables when flag_tree_coalesce_vars. Check register
21965 use and promoted modes to allow coalescing. Moved to
21966 tree-ssa-coalesce.c.
21967 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21968 with its member functions to tree-ssa-coalesce.c.
21969 (var_map_base_init): Likewise. Renamed to
21970 compute_samebase_partition_bases.
21971 (partition_view_normal): Drop want_bases parameter.
21972 (partition_view_bitmap): Likewise.
21973 * tree-ssa-live.h: Adjust declarations.
21974 * tree-ssa-coalesce.c: Include explow.h.
21975 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21976 default defs at the entry point.
21977 (dump_part_var_map): New.
21978 (compute_optimized_partition_bases): New, called by...
21979 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21980 of compute_samebase_partition_bases. Adjust.
21981 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21982 * cfgexpand.c (leader_merge): New.
21983 (get_rtl_for_parm_ssa_default_def): New.
21984 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21985 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21986 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21987 redundant MEM attr setting.
21988 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21989 from...
21990 (expand_one_stack_var): ... this. New wrapper to check and
21991 skip already expanded SSA partitions.
21992 (record_alignment_for_reg_var): New, factored out of...
21993 (expand_one_var): ... this.
21994 (expand_one_ssa_partition): New.
21995 (adjust_one_expanded_partition_var): New.
21996 (expand_one_register_var): Check and skip already expanded SSA
21997 partitions.
21998 (expand_used_vars): Don't create DECLs for anonymous SSA
21999 names. Expand all SSA partitions, then adjust all SSA names.
22000 (pass::execute): Replace the loops that set
22001 SA.partition_to_pseudo from partition leaders and cleared
22002 DECL_RTL for multi-location variables, and that which used to
22003 rename vars and set attrs, with one that clears DECL_RTL and
22004 checks that PARMs and RESULTs default_defs match DECL_RTL.
22005 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22006 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22007 * explow.c (promote_ssa_mode): New.
22008 * explow.h (promote_ssa_mode): Declare.
22009 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22010 * function.c: Include cfgexpand.h.
22011 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22012 (use_register_for_parm_decl): Wrapper for the above to
22013 special-case the result_ptr.
22014 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22015 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22016 multiple locations.
22017 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22018 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22019 (assign_parm_setup_block): Prefer SSA-assigned location.
22020 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22021 if stack_parm is NULL.
22022 (assign_parm_setup_stack): Prefer SSA-assigned location.
22023 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22024 rtl before testing for pointer bounds. Special-case result_ptr.
22025 (expand_function_start): Maybe reset DECL_RTL of result.
22026 Prefer SSA-assigned location for result and static chain.
22027 Factor out DECL_RESULT and SET_DECL_RTL.
22028 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22029 anonymous SSA names. Use promote_ssa_mode.
22030 (get_temp_reg): Likewise.
22031 (remove_ssa_form): Adjust.
22032 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22033 and get its reg_usage for reg invalidation.
22034 (compute_bb_dataflow): Pass it insn.
22035 (emit_notes_in_bb): Likewise.
22036 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22037 fail assert on conversion between unsigned types.
22038
22039 2015-06-09 Tom de Vries <tom@codesourcery.com>
22040
22041 PR tree-optimization/65460
22042 * omp-low.c (expand_omp_target): Set parallelized_function on
22043 cgraph_node for child_fn.
22044
22045 2015-06-09 Tom de Vries <tom@codesourcery.com>
22046
22047 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22048 parallelized_function before add_new_function.
22049
22050 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
22051
22052 * gcc-plugin.h: Move decls to plugin.h and include it.
22053 * plugin.h: Relocate decls from gcc-plugin.h
22054 * ggc-page.c: Include required header files.
22055 * passes.c: Likewise.
22056 * cgraphunit.c: Likewise.
22057
22058 2015-06-09 Tom de Vries <tom@codesourcery.com>
22059
22060 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22061
22062 2015-06-09 Jason Merrill <jason@redhat.com>
22063
22064 PR bootstrap/66448
22065 * toplev.c (check_global_declaration): Don't warn about a clone.
22066
22067 2015-06-09 Marek Polacek <polacek@redhat.com>
22068
22069 PR tree-optimization/66299
22070 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22071 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22072 patterns.
22073
22074 2015-06-09 Richard Biener <rguenther@suse.de>
22075
22076 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22077 (vect_analyze_slp_instance): Instead do not falsely drop
22078 load permutations.
22079
22080 2015-06-09 Richard Biener <rguenther@suse.de>
22081
22082 PR middle-end/66423
22083 * match.pd: Handle A % (unsigned)(1 << B).
22084
22085 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
22086
22087 * varasm.c (output_object_block_htab): Remove.
22088 (output_object_block_compare): New.
22089 (output_object_blocks): Sort named object_blocks before outputting
22090 them.
22091
22092 2015-06-09 Richard Biener <rguenther@suse.de>
22093
22094 PR tree-optimization/66419
22095 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22096 consider GROUP_GAP when detecting a perfect subchain.
22097
22098 2015-06-09 Nick Clifton <nickc@redhat.com>
22099
22100 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22101 place read only data in the .frodata section.
22102
22103 2015-06-09 Shiva Chen <shiva0217@gmail.com>
22104
22105 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22106 (atomic_store<mode>): Likewise.
22107
22108 2015-06-09 Richard Biener <rguenther@suse.de>
22109
22110 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22111
22112 2015-06-09 Richard Biener <rguenther@suse.de>
22113
22114 PR middle-end/66413
22115 * tree-inline.c (insert_init_debug_bind): Unshare value.
22116
22117 2015-06-09 Richard Biener <rguenther@suse.de>
22118
22119 PR tree-optimization/66396
22120 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22121 Rename virtual operands.
22122
22123 2015-06-09 Tom de Vries <tom@codesourcery.com>
22124
22125 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22126 always return false.
22127
22128 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22129
22130 PR rtl-optimization/64164
22131 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22132 * tree-ssa-copyrename.c: Removed.
22133 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22134 -ftree-coalesce-vars.
22135 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22136 * common.opt (ftree-copyrename): Ignore.
22137 (ftree-coalesce-inlined-vars): Likewise.
22138 * doc/invoke.texi: Remove the ignored options above.
22139 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22140 * tree-ssa-coalesce.h: ... here.
22141 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22142 headers required by it.
22143 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22144 across variables when flag_tree_coalesce_vars. Check register
22145 use and promoted modes to allow coalescing. Moved to
22146 tree-ssa-coalesce.c.
22147 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22148 with its member functions to tree-ssa-coalesce.c.
22149 (var_map_base_init): Likewise. Renamed to
22150 compute_samebase_partition_bases.
22151 (partition_view_normal): Drop want_bases parameter.
22152 (partition_view_bitmap): Likewise.
22153 * tree-ssa-live.h: Adjust declarations.
22154 * tree-ssa-coalesce.c: Include explow.h.
22155 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22156 default defs at the entry point.
22157 (dump_part_var_map): New.
22158 (compute_optimized_partition_bases): New, called by...
22159 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22160 of compute_samebase_partition_bases. Adjust.
22161 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22162 * cfgexpand.c (leader_merge): New.
22163 (get_rtl_for_parm_ssa_default_def): New.
22164 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22165 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22166 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22167 redundant MEM attr setting.
22168 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22169 from...
22170 (expand_one_stack_var): ... this. New wrapper to check and
22171 skip already expanded SSA partitions.
22172 (record_alignment_for_reg_var): New, factored out of...
22173 (expand_one_var): ... this.
22174 (expand_one_ssa_partition): New.
22175 (adjust_one_expanded_partition_var): New.
22176 (expand_one_register_var): Check and skip already expanded SSA
22177 partitions.
22178 (expand_used_vars): Don't create DECLs for anonymous SSA
22179 names. Expand all SSA partitions, then adjust all SSA names.
22180 (pass::execute): Replace the loops that set
22181 SA.partition_to_pseudo from partition leaders and cleared
22182 DECL_RTL for multi-location variables, and that which used to
22183 rename vars and set attrs, with one that clears DECL_RTL and
22184 checks that PARMs and RESULTs default_defs match DECL_RTL.
22185 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22186 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22187 * explow.c (promote_ssa_mode): New.
22188 * explow.h (promote_ssa_mode): Declare.
22189 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22190 * function.c: Include cfgexpand.h.
22191 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22192 (use_register_for_parm_decl): Wrapper for the above to
22193 special-case the result_ptr.
22194 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22195 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22196 multiple locations.
22197 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22198 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22199 (assign_parm_setup_block): Prefer SSA-assigned location.
22200 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22201 if stack_parm is NULL.
22202 (assign_parm_setup_stack): Prefer SSA-assigned location.
22203 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22204 rtl before testing for pointer bounds. Special-case result_ptr.
22205 (expand_function_start): Maybe reset DECL_RTL of result.
22206 Prefer SSA-assigned location for result and static chain.
22207 Factor out DECL_RESULT and SET_DECL_RTL.
22208 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22209 anonymous SSA names. Use promote_ssa_mode.
22210 (get_temp_reg): Likewise.
22211 (remove_ssa_form): Adjust.
22212 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22213 and get its reg_usage for reg invalidation.
22214 (compute_bb_dataflow): Pass it insn.
22215 (emit_notes_in_bb): Likewise.
22216 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22217 fail assert on conversion between unsigned types.
22218
22219 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22220
22221 PR debug/58315
22222 * tree-inline.c (reset_debug_binding): New.
22223 (reset_debug_bindings): Likewise.
22224 (expand_call_inline): Call it.
22225
22226 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22227
22228 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22229 TYPE_STRING_FLAG.
22230
22231 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22232
22233 * lto-streamer-out.c (lto_output_location): Stream
22234 reserved locations correctly.
22235 * lto-streamer-in.c (lto_output_location): Likewise.
22236
22237 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
22238
22239 * coretypes.h: Include hash-table.h and hash-set.h for host files.
22240 * ggc.h: Don't include statistics.h>
22241 * hash-map.h: Remove all includes.
22242 * hash-set.h: Likewise.
22243 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22244 the include list. Remove <new>.
22245 * inchash.h: Remove all includes.
22246 * mem-stats.h: Likewise.
22247 * vec.h: No special processing for generators or ggc.
22248 * alias.c : Adjust include files.
22249 * alloc-pool.c : Likewise.
22250 * alloc-pool.h : Likewise.
22251 * asan.c : Likewise.
22252 * attribs.c : Likewise.
22253 * auto-inc-dec.c : Likewise.
22254 * auto-profile.c : Likewise.
22255 * bb-reorder.c : Likewise.
22256 * bitmap.c : Likewise.
22257 * bitmap.h : Likewise.
22258 * bt-load.c : Likewise.
22259 * builtins.c : Likewise.
22260 * caller-save.c : Likewise.
22261 * calls.c : Likewise.
22262 * ccmp.c : Likewise.
22263 * cfg.c : Likewise.
22264 * cfganal.c : Likewise.
22265 * cfgbuild.c : Likewise.
22266 * cfgcleanup.c : Likewise.
22267 * cfgexpand.c : Likewise.
22268 * cfghooks.c : Likewise.
22269 * cfgloop.c : Likewise.
22270 * cfgloop.h : Likewise.
22271 * cfgloopanal.c : Likewise.
22272 * cfgloopmanip.c : Likewise.
22273 * cfgrtl.c : Likewise.
22274 * cgraph.c : Likewise.
22275 * cgraphbuild.c : Likewise.
22276 * cgraphclones.c : Likewise.
22277 * cgraphunit.c : Likewise.
22278 * cilk-common.c : Likewise.
22279 * combine-stack-adj.c : Likewise.
22280 * combine.c : Likewise.
22281 * compare-elim.c : Likewise.
22282 * context.c : Likewise.
22283 * convert.c : Likewise.
22284 * coverage.c : Likewise.
22285 * cppbuiltin.c : Likewise.
22286 * cprop.c : Likewise.
22287 * cse.c : Likewise.
22288 * cselib.c : Likewise.
22289 * data-streamer-in.c : Likewise.
22290 * data-streamer-out.c : Likewise.
22291 * data-streamer.c : Likewise.
22292 * data-streamer.h : Likewise.
22293 * dbxout.c : Likewise.
22294 * dce.c : Likewise.
22295 * ddg.c : Likewise.
22296 * debug.c : Likewise.
22297 * df-core.c : Likewise.
22298 * df-problems.c : Likewise.
22299 * df-scan.c : Likewise.
22300 * df.h : Likewise.
22301 * dfp.c : Likewise.
22302 * dojump.c : Likewise.
22303 * dominance.c : Likewise.
22304 * domwalk.c : Likewise.
22305 * double-int.c : Likewise.
22306 * dse.c : Likewise.
22307 * dumpfile.c : Likewise.
22308 * dwarf2asm.c : Likewise.
22309 * dwarf2cfi.c : Likewise.
22310 * dwarf2out.c : Likewise.
22311 * emit-rtl.c : Likewise.
22312 * et-forest.c : Likewise.
22313 * except.c : Likewise.
22314 * except.h : Likewise.
22315 * explow.c : Likewise.
22316 * expmed.c : Likewise.
22317 * expr.c : Likewise.
22318 * final.c : Likewise.
22319 * fixed-value.c : Likewise.
22320 * fold-const.c : Likewise.
22321 * function.c : Likewise.
22322 * fwprop.c : Likewise.
22323 * gcc-plugin.h : Likewise.
22324 * gcc.c : Likewise.
22325 * gcse-common.c : Likewise.
22326 * gcse.c : Likewise.
22327 * genattrtab.c : Likewise.
22328 * genautomata.c : Likewise.
22329 * genconditions.c : Likewise.
22330 * genemit.c : Likewise.
22331 * generic-match-head.c : Likewise.
22332 * genextract.c : Likewise.
22333 * gengtype-state.c : Likewise.
22334 * gengtype.c : Likewise.
22335 * genhooks.c : Likewise.
22336 * genmatch.c : Likewise.
22337 * genmodes.c : Likewise.
22338 * genrecog.c : Likewise.
22339 * gensupport.c : Likewise.
22340 * ggc-common.c : Likewise.
22341 * ggc-internal.h : Likewise.
22342 * ggc-none.c : Likewise.
22343 * ggc-page.c : Likewise.
22344 * gimple-builder.c : Likewise.
22345 * gimple-expr.c : Likewise.
22346 * gimple-fold.c : Likewise.
22347 * gimple-iterator.c : Likewise.
22348 * gimple-low.c : Likewise.
22349 * gimple-match-head.c : Likewise.
22350 * gimple-pretty-print.c : Likewise.
22351 * gimple-ssa-isolate-paths.c : Likewise.
22352 * gimple-ssa-strength-reduction.c : Likewise.
22353 * gimple-ssa.h : Likewise.
22354 * gimple-streamer-in.c : Likewise.
22355 * gimple-streamer-out.c : Likewise.
22356 * gimple-streamer.h : Likewise.
22357 * gimple-walk.c : Likewise.
22358 * gimple.c : Likewise.
22359 * gimplify-me.c : Likewise.
22360 * gimplify.c : Likewise.
22361 * godump.c : Likewise.
22362 * graph.c : Likewise.
22363 * graphds.c : Likewise.
22364 * graphite-blocking.c : Likewise.
22365 * graphite-dependences.c : Likewise.
22366 * graphite-interchange.c : Likewise.
22367 * graphite-isl-ast-to-gimple.c : Likewise.
22368 * graphite-optimize-isl.c : Likewise.
22369 * graphite-poly.c : Likewise.
22370 * graphite-scop-detection.c : Likewise.
22371 * graphite-sese-to-poly.c : Likewise.
22372 * graphite.c : Likewise.
22373 * haifa-sched.c : Likewise.
22374 * hard-reg-set.h : Likewise.
22375 * hw-doloop.c : Likewise.
22376 * ifcvt.c : Likewise.
22377 * inchash.c : Likewise.
22378 * incpath.c : Likewise.
22379 * init-regs.c : Likewise.
22380 * input.c : Likewise.
22381 * internal-fn.c : Likewise.
22382 * ipa-chkp.c : Likewise.
22383 * ipa-comdats.c : Likewise.
22384 * ipa-cp.c : Likewise.
22385 * ipa-devirt.c : Likewise.
22386 * ipa-icf-gimple.c : Likewise.
22387 * ipa-icf.c : Likewise.
22388 * ipa-inline-analysis.c : Likewise.
22389 * ipa-inline-transform.c : Likewise.
22390 * ipa-inline.c : Likewise.
22391 * ipa-polymorphic-call.c : Likewise.
22392 * ipa-profile.c : Likewise.
22393 * ipa-prop.c : Likewise.
22394 * ipa-pure-const.c : Likewise.
22395 * ipa-ref.c : Likewise.
22396 * ipa-reference.c : Likewise.
22397 * ipa-split.c : Likewise.
22398 * ipa-utils.c : Likewise.
22399 * ipa-visibility.c : Likewise.
22400 * ipa.c : Likewise.
22401 * ira-build.c : Likewise.
22402 * ira-color.c : Likewise.
22403 * ira-conflicts.c : Likewise.
22404 * ira-costs.c : Likewise.
22405 * ira-emit.c : Likewise.
22406 * ira-lives.c : Likewise.
22407 * ira.c : Likewise.
22408 * jump.c : Likewise.
22409 * langhooks.c : Likewise.
22410 * lcm.c : Likewise.
22411 * libfuncs.h : Likewise.
22412 * lists.c : Likewise.
22413 * loop-doloop.c : Likewise.
22414 * loop-init.c : Likewise.
22415 * loop-invariant.c : Likewise.
22416 * loop-iv.c : Likewise.
22417 * loop-unroll.c : Likewise.
22418 * lower-subreg.c : Likewise.
22419 * lra-assigns.c : Likewise.
22420 * lra-coalesce.c : Likewise.
22421 * lra-constraints.c : Likewise.
22422 * lra-eliminations.c : Likewise.
22423 * lra-lives.c : Likewise.
22424 * lra-remat.c : Likewise.
22425 * lra-spills.c : Likewise.
22426 * lra.c : Likewise.
22427 * lto-cgraph.c : Likewise.
22428 * lto-compress.c : Likewise.
22429 * lto-opts.c : Likewise.
22430 * lto-section-in.c : Likewise.
22431 * lto-section-out.c : Likewise.
22432 * lto-streamer-in.c : Likewise.
22433 * lto-streamer-out.c : Likewise.
22434 * lto-streamer.c : Likewise.
22435 * lto-streamer.h : Likewise.
22436 * mcf.c : Likewise.
22437 * mode-switching.c : Likewise.
22438 * modulo-sched.c : Likewise.
22439 * omega.c : Likewise.
22440 * omp-low.c : Likewise.
22441 * optabs.c : Likewise.
22442 * opts-global.c : Likewise.
22443 * opts.h : Likewise.
22444 * passes.c : Likewise.
22445 * plugin.c : Likewise.
22446 * postreload-gcse.c : Likewise.
22447 * postreload.c : Likewise.
22448 * predict.c : Likewise.
22449 * print-rtl.c : Likewise.
22450 * print-tree.c : Likewise.
22451 * profile.c : Likewise.
22452 * read-md.c : Likewise.
22453 * read-md.h : Likewise.
22454 * read-rtl.c : Likewise.
22455 * real.c : Likewise.
22456 * realmpfr.c : Likewise.
22457 * recog.c : Likewise.
22458 * ree.c : Likewise.
22459 * reg-stack.c : Likewise.
22460 * regcprop.c : Likewise.
22461 * reginfo.c : Likewise.
22462 * regrename.c : Likewise.
22463 * regstat.c : Likewise.
22464 * reload.c : Likewise.
22465 * reload1.c : Likewise.
22466 * reorg.c : Likewise.
22467 * resource.c : Likewise.
22468 * rtl-chkp.c : Likewise.
22469 * rtl.c : Likewise.
22470 * rtl.h : Likewise.
22471 * rtlanal.c : Likewise.
22472 * rtlhash.c : Likewise.
22473 * rtlhash.h : Likewise.
22474 * rtlhooks.c : Likewise.
22475 * sanopt.c : Likewise.
22476 * sched-deps.c : Likewise.
22477 * sched-ebb.c : Likewise.
22478 * sched-rgn.c : Likewise.
22479 * sched-vis.c : Likewise.
22480 * sdbout.c : Likewise.
22481 * sel-sched-dump.c : Likewise.
22482 * sel-sched-ir.c : Likewise.
22483 * sel-sched-ir.h : Likewise.
22484 * sel-sched.c : Likewise.
22485 * sese.c : Likewise.
22486 * shrink-wrap.c : Likewise.
22487 * shrink-wrap.h : Likewise.
22488 * simplify-rtx.c : Likewise.
22489 * stack-ptr-mod.c : Likewise.
22490 * statistics.c : Likewise.
22491 * stmt.c : Likewise.
22492 * stor-layout.c : Likewise.
22493 * store-motion.c : Likewise.
22494 * stringpool.c : Likewise.
22495 * symtab.c : Likewise.
22496 * target-globals.c : Likewise.
22497 * targhooks.c : Likewise.
22498 * tlink.c : Likewise.
22499 * toplev.c : Likewise.
22500 * tracer.c : Likewise.
22501 * trans-mem.c : Likewise.
22502 * tree-affine.c : Likewise.
22503 * tree-affine.h : Likewise.
22504 * tree-browser.c : Likewise.
22505 * tree-call-cdce.c : Likewise.
22506 * tree-cfg.c : Likewise.
22507 * tree-cfgcleanup.c : Likewise.
22508 * tree-chkp-opt.c : Likewise.
22509 * tree-chkp.c : Likewise.
22510 * tree-chrec.c : Likewise.
22511 * tree-complex.c : Likewise.
22512 * tree-data-ref.c : Likewise.
22513 * tree-dfa.c : Likewise.
22514 * tree-diagnostic.c : Likewise.
22515 * tree-dump.c : Likewise.
22516 * tree-eh.c : Likewise.
22517 * tree-eh.h : Likewise.
22518 * tree-emutls.c : Likewise.
22519 * tree-hasher.h : Likewise.
22520 * tree-if-conv.c : Likewise.
22521 * tree-inline.c : Likewise.
22522 * tree-inline.h : Likewise.
22523 * tree-into-ssa.c : Likewise.
22524 * tree-iterator.c : Likewise.
22525 * tree-loop-distribution.c : Likewise.
22526 * tree-nested.c : Likewise.
22527 * tree-nrv.c : Likewise.
22528 * tree-object-size.c : Likewise.
22529 * tree-outof-ssa.c : Likewise.
22530 * tree-parloops.c : Likewise.
22531 * tree-phinodes.c : Likewise.
22532 * tree-predcom.c : Likewise.
22533 * tree-pretty-print.c : Likewise.
22534 * tree-profile.c : Likewise.
22535 * tree-scalar-evolution.c : Likewise.
22536 * tree-sra.c : Likewise.
22537 * tree-ssa-address.c : Likewise.
22538 * tree-ssa-alias.c : Likewise.
22539 * tree-ssa-ccp.c : Likewise.
22540 * tree-ssa-coalesce.c : Likewise.
22541 * tree-ssa-copy.c : Likewise.
22542 * tree-ssa-copyrename.c : Likewise.
22543 * tree-ssa-dce.c : Likewise.
22544 * tree-ssa-dom.c : Likewise.
22545 * tree-ssa-dse.c : Likewise.
22546 * tree-ssa-forwprop.c : Likewise.
22547 * tree-ssa-ifcombine.c : Likewise.
22548 * tree-ssa-live.c : Likewise.
22549 * tree-ssa-loop-ch.c : Likewise.
22550 * tree-ssa-loop-im.c : Likewise.
22551 * tree-ssa-loop-ivcanon.c : Likewise.
22552 * tree-ssa-loop-ivopts.c : Likewise.
22553 * tree-ssa-loop-manip.c : Likewise.
22554 * tree-ssa-loop-niter.c : Likewise.
22555 * tree-ssa-loop-prefetch.c : Likewise.
22556 * tree-ssa-loop-unswitch.c : Likewise.
22557 * tree-ssa-loop.c : Likewise.
22558 * tree-ssa-math-opts.c : Likewise.
22559 * tree-ssa-operands.c : Likewise.
22560 * tree-ssa-phiopt.c : Likewise.
22561 * tree-ssa-phiprop.c : Likewise.
22562 * tree-ssa-pre.c : Likewise.
22563 * tree-ssa-propagate.c : Likewise.
22564 * tree-ssa-reassoc.c : Likewise.
22565 * tree-ssa-sccvn.c : Likewise.
22566 * tree-ssa-scopedtables.c : Likewise.
22567 * tree-ssa-sink.c : Likewise.
22568 * tree-ssa-strlen.c : Likewise.
22569 * tree-ssa-structalias.c : Likewise.
22570 * tree-ssa-tail-merge.c : Likewise.
22571 * tree-ssa-ter.c : Likewise.
22572 * tree-ssa-threadedge.c : Likewise.
22573 * tree-ssa-threadupdate.c : Likewise.
22574 * tree-ssa-uncprop.c : Likewise.
22575 * tree-ssa-uninit.c : Likewise.
22576 * tree-ssa.c : Likewise.
22577 * tree-ssanames.c : Likewise.
22578 * tree-stdarg.c : Likewise.
22579 * tree-streamer-in.c : Likewise.
22580 * tree-streamer-out.c : Likewise.
22581 * tree-streamer.c : Likewise.
22582 * tree-streamer.h : Likewise.
22583 * tree-switch-conversion.c : Likewise.
22584 * tree-tailcall.c : Likewise.
22585 * tree-vect-data-refs.c : Likewise.
22586 * tree-vect-generic.c : Likewise.
22587 * tree-vect-loop-manip.c : Likewise.
22588 * tree-vect-loop.c : Likewise.
22589 * tree-vect-patterns.c : Likewise.
22590 * tree-vect-slp.c : Likewise.
22591 * tree-vect-stmts.c : Likewise.
22592 * tree-vectorizer.c : Likewise.
22593 * tree-vectorizer.h : Likewise.
22594 * tree-vrp.c : Likewise.
22595 * tree.c : Likewise.
22596 * tsan.c : Likewise.
22597 * ubsan.c : Likewise.
22598 * valtrack.c : Likewise.
22599 * valtrack.h : Likewise.
22600 * value-prof.c : Likewise.
22601 * var-tracking.c : Likewise.
22602 * varasm.c : Likewise.
22603 * varpool.c : Likewise.
22604 * vec.c: Likewise.
22605 * vmsdbgout.c : Likewise.
22606 * vtable-verify.c : Likewise.
22607 * vtable-verify.h : Likewise.
22608 * web.c : Likewise.
22609 * wide-int.cc : Likewise.
22610 * xcoffout.c : Likewise.
22611 * config/aarch64/aarch64-builtins.c : Likewise.
22612 * config/aarch64/aarch64.c : Likewise.
22613 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22614 * config/alpha/alpha.c : Likewise.
22615 * config/arc/arc.c : Likewise.
22616 * config/arm/aarch-common.c : Likewise.
22617 * config/arm/arm-builtins.c : Likewise.
22618 * config/arm/arm-c.c : Likewise.
22619 * config/arm/arm.c : Likewise.
22620 * config/avr/avr-c.c : Likewise.
22621 * config/avr/avr-log.c : Likewise.
22622 * config/avr/avr.c : Likewise.
22623 * config/bfin/bfin.c : Likewise.
22624 * config/c6x/c6x.c : Likewise.
22625 * config/cr16/cr16.c : Likewise.
22626 * config/cris/cris.c : Likewise.
22627 * config/darwin-c.c : Likewise.
22628 * config/darwin.c : Likewise.
22629 * config/default-c.c : Likewise.
22630 * config/epiphany/epiphany.c : Likewise.
22631 * config/epiphany/mode-switch-use.c : Likewise.
22632 * config/epiphany/resolve-sw-modes.c : Likewise.
22633 * config/fr30/fr30.c : Likewise.
22634 * config/frv/frv.c : Likewise.
22635 * config/ft32/ft32.c : Likewise.
22636 * config/glibc-c.c : Likewise.
22637 * config/h8300/h8300.c : Likewise.
22638 * config/i386/i386-c.c : Likewise.
22639 * config/i386/i386.c : Likewise.
22640 * config/i386/msformat-c.c : Likewise.
22641 * config/i386/winnt-cxx.c : Likewise.
22642 * config/i386/winnt-stubs.c : Likewise.
22643 * config/i386/winnt.c : Likewise.
22644 * config/ia64/ia64-c.c : Likewise.
22645 * config/ia64/ia64.c : Likewise.
22646 * config/iq2000/iq2000.c : Likewise.
22647 * config/lm32/lm32.c : Likewise.
22648 * config/m32c/m32c-pragma.c : Likewise.
22649 * config/m32c/m32c.c : Likewise.
22650 * config/m32r/m32r.c : Likewise.
22651 * config/m68k/m68k.c : Likewise.
22652 * config/mcore/mcore.c : Likewise.
22653 * config/mep/mep-pragma.c : Likewise.
22654 * config/mep/mep.c : Likewise.
22655 * config/microblaze/microblaze-c.c : Likewise.
22656 * config/microblaze/microblaze.c : Likewise.
22657 * config/mips/mips.c : Likewise.
22658 * config/mmix/mmix.c : Likewise.
22659 * config/mn10300/mn10300.c : Likewise.
22660 * config/moxie/moxie.c : Likewise.
22661 * config/msp430/msp430-c.c : Likewise.
22662 * config/msp430/msp430.c : Likewise.
22663 * config/nds32/nds32-cost.c : Likewise.
22664 * config/nds32/nds32-fp-as-gp.c : Likewise.
22665 * config/nds32/nds32-intrinsic.c : Likewise.
22666 * config/nds32/nds32-isr.c : Likewise.
22667 * config/nds32/nds32-md-auxiliary.c : Likewise.
22668 * config/nds32/nds32-memory-manipulation.c : Likewise.
22669 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22670 * config/nds32/nds32-predicates.c : Likewise.
22671 * config/nds32/nds32.c : Likewise.
22672 * config/nios2/nios2.c : Likewise.
22673 * config/nvptx/nvptx.c : Likewise.
22674 * config/pa/pa.c : Likewise.
22675 * config/pdp11/pdp11.c : Likewise.
22676 * config/rl78/rl78-c.c : Likewise.
22677 * config/rl78/rl78.c : Likewise.
22678 * config/rs6000/rs6000-c.c : Likewise.
22679 * config/rs6000/rs6000.c : Likewise.
22680 * config/rx/rx.c : Likewise.
22681 * config/s390/s390-c.c : Likewise.
22682 * config/s390/s390.c : Likewise.
22683 * config/sh/sh-c.c : Likewise.
22684 * config/sh/sh-mem.cc : Likewise.
22685 * config/sh/sh.c : Likewise.
22686 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22687 * config/sh/sh_treg_combine.cc : Likewise.
22688 * config/sol2-c.c : Likewise.
22689 * config/sol2-cxx.c : Likewise.
22690 * config/sol2-stubs.c : Likewise.
22691 * config/sol2.c : Likewise.
22692 * config/sparc/sparc-c.c : Likewise.
22693 * config/sparc/sparc.c : Likewise.
22694 * config/spu/spu-c.c : Likewise.
22695 * config/spu/spu.c : Likewise.
22696 * config/stormy16/stormy16.c : Likewise.
22697 * config/tilegx/mul-tables.c : Likewise.
22698 * config/tilegx/tilegx-c.c : Likewise.
22699 * config/tilegx/tilegx.c : Likewise.
22700 * config/tilepro/mul-tables.c : Likewise.
22701 * config/tilepro/tilepro-c.c : Likewise.
22702 * config/tilepro/tilepro.c : Likewise.
22703 * config/v850/v850-c.c : Likewise.
22704 * config/v850/v850.c : Likewise.
22705 * config/vax/vax.c : Likewise.
22706 * config/visium/visium.c : Likewise.
22707 * config/vms/vms-c.c : Likewise.
22708 * config/vms/vms.c : Likewise.
22709 * config/vxworks.c : Likewise.
22710 * config/winnt-c.c : Likewise.
22711 * config/xtensa/xtensa.c : Likewise.
22712
22713 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22714
22715 PR lto/65378
22716 * ipa-utils.h (warn_types_mismatch): Update prototype.
22717 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22718 parameters.
22719 (type_mismatch_p): New function.
22720 (warn_types_mismatch): Reorg to work better on non-C++ types.
22721 (odr_types_equivalent_p): Add loc1/loc2 parameters.
22722 (add_type_duplicate): Update.
22723
22724 2015-06-08 Tom de Vries <tom@codesourcery.com>
22725
22726 PR rtl-optimization/66444
22727 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22728 call_used_regs.
22729
22730 2015-06-08 Richard Biener <rguenther@suse.de>
22731
22732 PR tree-optimization/66422
22733 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22734 block after inserted gcc_unreachable.
22735
22736 2015-06-08 Nick Clifton <nickc@redhat.com>
22737
22738 * config/rx/rx.c (rx_function_value): Do not promote vector types.
22739 (rx_promote_function_mode): Likewise.
22740 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22741
22742 2015-06-08 Jakub Jelinek <jakub@redhat.com>
22743
22744 * genattrtab.c (insn_alternatives): Change type from int *
22745 to uint64_t *.
22746 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22747 (get_attr_value): Change type of num_alt to uint64_t.
22748 (compute_alternative_mask): Change return type from
22749 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22750 (make_alternative_compare, mk_attr_alt): Change argument type
22751 from int to uint64_t.
22752 (simplify_test_exp): Change type of i from int to uint64_t.
22753 Shift ((uint64_t) 1) instead of 1 up.
22754 (main): Adjust oballocvec first argument from int to uint64_t.
22755 Shift ((uint64_t) 1) instead of 1 up.
22756
22757 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
22758
22759 PR other/65366
22760 * gdbhooks.py: Import sys.
22761 (intptr): New function. Replace int(...) by intptr(...).
22762
22763 2015-06-08 Richard Biener <rguenther@suse.de>
22764
22765 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22766 adjustment for gaps at the end of a SLP load group properly.
22767 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22768 all permutations we can generate.
22769 (vect_transform_slp_perm_load): Use the correct group-size.
22770
22771 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
22772
22773 * genmatch.c (expr::gen_transform): For conditions, guess the type
22774 from the second operand.
22775
22776 2015-06-08 Tom de Vries <tom@codesourcery.com>
22777
22778 PR tree-optimization/66442
22779 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22780 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22781 if the loop latch is not a singleton. Use
22782 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22783
22784 2015-06-08 Marek Polacek <polacek@redhat.com>
22785
22786 PR sanitizer/66452
22787 * toplev.c (check_global_declaration): Don't warn about artificial
22788 decls.
22789
22790 2015-06-08 Tom de Vries <tom@codesourcery.com>
22791
22792 PR tree-optimization/66436
22793 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22794 dump file.
22795 * gimplify.c: Add tree-dump.h include.
22796 (gimplify_function_tree): Dump function to gimple dump file.
22797 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22798 dump file.
22799
22800 2015-06-08 Tom de Vries <tom@codesourcery.com>
22801
22802 PR tree-optimization/66435
22803 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22804 function.
22805
22806 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
22807
22808 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22809 of ptr_type_node to not be ptr_to_node.
22810 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22811 TREE_TYPE of pointers.
22812 * gimple-expr.c (useless_type_conversion): Reorder the check for
22813 function pointers and TYPE_CANONICAL.
22814
22815 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
22816
22817 PR bootstrap/66319
22818 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22819 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22820 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22821 later.
22822 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22823 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22824 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22825 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22826 and non iso if unix2003.
22827
22828 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
22829
22830 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22831
22832 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
22833
22834 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22835 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22836 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22837 except.c, final.c, function.c, gcse-common.c, genemit.c,
22838 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22839 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22840 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22841 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22842 more derived ones.
22843
22844 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
22845
22846 * combine.c (combine_split_insns): Remove cast.
22847 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22848 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22849 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22850 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22851 * genemit.c (gen_split): Change return type of generated functions to
22852 rtx_insn.
22853 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22854 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22855 gen_peephole2_* functions.
22856 (print_subroutine, main): Likewise.
22857 * recog.c (peephole2_optimize): Remove cast.
22858 (peep2_next_insn): Promote return type to rtx_insn.
22859 * recog.h (peep2_next_insn): Fix prototype.
22860 * rtl.h (try_split, split_insns): Likewise.
22861
22862 2015-06-06 DJ Delorie <dj@redhat.com>
22863
22864 * config/msp430/msp430.c (msp430_asm_integer): Support addition
22865 and subtraction too.
22866
22867 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
22868
22869 PR target/66410
22870 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22871 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22872 instead of Snd. Disparage Sid/z alternative with '^'.
22873
22874 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
22875
22876 * dwarf2out.c: Remove deferred_locations*.
22877 (dwarf2_debug_hooks): Add early_finish hook.
22878 Remove global_decl hook.
22879 Add early_global_decl and late_global_decl hook.
22880 New global early_dwarf.
22881 New structure set_early_dwarf.
22882 (output_die): Indicate whether a DIE was generated early
22883 when generating assembly with -dA.
22884 (struct limbo_die_struct): Document created_for field.
22885 Remove file_table_last_lookup.
22886 (remove_AT): Return TRUE if successful.
22887 (remove_child_TAG): Clear die_parent.
22888 (reparent_child): New function abstracted from...
22889 (splice_child_die): ...here.
22890 (new_die): ICE if a DIE ends up in limbo too late.
22891 (check_die): New.
22892 (defer_location): Remove.
22893 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22894 (fill_variable_array_bounds): New.
22895 (decl_start_label): Call fill_variable_array_bounds.
22896 (gen_formal_parameter_die): Rewrite to reuse previously generated
22897 DIEs.
22898 (gen_subprogram_die): Same.
22899 (gen_variable_die): Same.
22900 (gen_const_die): Same.
22901 (gen_label_die): Same.
22902 (gen_lexical_block_die): Same.
22903 (decl_will_get_specification_p): New.
22904 (local_function_static): New.
22905 (gen_struct_or_union_type_die): Fill in variable-length fields.
22906 (gen_typedef_die): Fill in variable-length typedefs.
22907 (gen_tagged_type_die): Gracefully return on error_mark_node.
22908 Handle re-entrancy.
22909 (gen_type_die_with_usage): Handle variable-length types.
22910 Remove duplicate code for ARRAY_TYPE case.
22911 (process_scope_var): Only process imported modules during early
22912 dwarf.
22913 (dwarf2out_early_global_decl): New.
22914 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22915 (dwarf2out_type_decl): Set early_dwarf while calling
22916 dwarf2out_decl.
22917 (dwarf2out_decl): Verify that we did not recreate a previously
22918 generated DIE.
22919 Do not return on DECL_EXTERNALs in VAR_DECLs.
22920 Abstract some code to local_function_static.
22921 (lookup_filename): Remove use of file_table_last_lookup.
22922 Gracefully exit on missing file_name.
22923 (dwarf2out_finish): Verify limbo list.
22924 Remove deferred_locations_list use.
22925 Move deferred_asm_name and limbo flushing to...
22926 (dwarf2out_early_finish): ...here. New.
22927 (dwarf2out_c_finalize): Remove set of deferred_location_list,
22928 deferred_asm_name, and file_table_last_lookup.
22929 * cgraph.h (referred_to_p): Add default argument.
22930 * cgraphunit.c (referred_to_p): Add and handle include_self
22931 argument.
22932 (analyze_functions): Add first_time argument.
22933 Call check_global_declaration for all symbols.
22934 Call late_global_decl for nodes for moribund nodes.
22935 (finalize_compilation_unit): Add new argument to
22936 analyze_functions.
22937 Call early_global_decl for functions.
22938 Call early_finish debug hook.
22939 * dbxout.c (dbxout_early_global_decl): New.
22940 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
22941 (dbx_debug_hooks): Add new hooks.
22942 (xcoff_debug_hooks): Same.
22943 * debug.c (do_nothing_debug_hooks): Add early_finish field.
22944 Add early and late debug hooks.
22945 Remove global_decl hook.
22946 * debug.h (struct gcc_debug_hooks): Add early_finish,
22947 early_global_decl, and late_global_decl fields.
22948 Remove global_decl field.
22949 Document gcc_debug_hooks.
22950 * gengtype.c (output_typename): Remove.
22951 * godump.c (go_early_global_decl): New.
22952 (go_late_global_decl): New.
22953 (go_global_decl): Remove.
22954 (dump_go_spec_init): Remove global_decl. Add
22955 {early,late}_global_decl.
22956 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22957 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22958 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22959 (write_global_declarations): Remove.
22960 (global_decl_processing): New.
22961 * langhooks.h (struct lang_hooks_for_decls): Remove
22962 final_write_globals field.
22963 Add post_compilation_parsing_cleanups field.
22964 * passes.c (rest_of_decl_compilation): Call early_global_decl.
22965 * sdbout.c: Add early and late_global_decl hooks. Remove
22966 sdbout_global_decl hook.
22967 Add early_finish field for sdb_debug_hooks.
22968 (sdbout_global_decl): Remove.
22969 (sdbout_early_global_decl): New.
22970 (sdbout_late_global_decl): New.
22971 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22972 * toplev.c (check_global_declaration): Rename from
22973 check_global_declaration_1.
22974 Adapt to use symtab infrastructure.
22975 (check_global_declarations): Remove.
22976 (emit_debug_global_declarations): Remove.
22977 (compile_file): Remove call to final_write_globals langhook.
22978 Run the actual compilation process.
22979 Perform any post compilation parser cleanups.
22980 Generate late debug info.
22981 * toplev.h (check_global_declaration): New.
22982 (check_global_declaration_1): Remove.
22983 (check_global_declarations): Remove.
22984 (write_global_declarations): Remove.
22985 (emit_debug_global_declarations): Remove.
22986 (global_decl_processing): New.
22987 * tree-core.h (struct tree_block): Add DIE field.
22988 * tree.h (BLOCK_DIE): New.
22989 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22990 throughout.
22991 (vmsdbgout_early_global_decl): New.
22992 (vmsdbgout_late_global_decl): New.
22993 Add early_finish debug hook field to vmsdbg_debug_hooks.
22994 Remove vmsdbgout_decl to vmsdbgout_function_decl.
22995 Add early and late_global_decl debug hooks.
22996
22997 2015-06-05 Julian Brown <julian@codesourcery.com>
22998 Sandra Loosemore <sandra@codesourcery.com>
22999
23000 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23001 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23002 to print-sysroot-suffix.sh script.
23003
23004 2015-06-05 Tom de Vries <tom@codesourcery.com>
23005
23006 merge from gomp4 branch:
23007 2015-05-28 Tom de Vries <tom@codesourcery.com>
23008
23009 PR tree-optimization/65443
23010 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23011 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23012 (try_transform_to_exit_first_loop_alt): New function.
23013 (transform_to_exit_first_loop): Use
23014 try_transform_to_exit_first_loop_alt.
23015
23016 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
23017
23018 * builtins.c (expand_builtin_atomic_compare_exchange): Call
23019 emit_cmp_and_jump_insns with the mode of target.
23020
23021 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23022
23023 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23024
23025 2015-06-04 DJ Delorie <dj@redhat.com>
23026
23027 * config/msp430/msp430.md (movsi_s): New. Special case for
23028 storing a 20-bit symbol into a 32-bit register.
23029 * config/msp430/msp430.c (msp430_subreg): Add support for it.
23030 * config/msp430/predicates.md (msp430_symbol_operand): New.
23031
23032 2015-06-04 Sriraman Tallam <tmsriram@google.com>
23033
23034 * c-family/c-common.c (noplt): New attribute.
23035 (handle_noplt_attribute): New handler.
23036 * calls.c (prepare_call_address): Check for noplt
23037 attribute.
23038 * config/i386/i386.c (ix86_expand_call): Check
23039 for noplt attribute.
23040 (ix86_nopic_noplt_attribute_p): New function.
23041 (ix86_output_call_insn): Output indirect call for non-pic
23042 no plt calls.
23043 * doc/extend.texi (noplt): Document new attribute.
23044 * doc/invoke.texi: Document new attribute.
23045
23046 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
23047
23048 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23049 real.h, and fixed-value.h when included in host source files.
23050 * double-int.h: Remove redundant #includes listed above.
23051 * fixed-value.h: Likewise.
23052 * real.h: Likewise.
23053 * wide-int.h: Likewise.
23054 * inchash.h: Likewise.
23055 * rtl.h: Add some include files When included from a generator file.
23056 * target.h: Remove wide-int.h and insn-modes.h from the include list.
23057 * internal-fn.h: Don't include coretypes.h.
23058 * alias.c: Adjust includes for restructured coretypes.h.
23059 * asan.c: Likewise.
23060 * attribs.c: Likewise.
23061 * auto-inc-dec.c: Likewise.
23062 * auto-profile.c: Likewise.
23063 * bb-reorder.c: Likewise.
23064 * bt-load.c: Likewise.
23065 * builtins.c: Likewise.
23066 * caller-save.c: Likewise.
23067 * calls.c: Likewise.
23068 * ccmp.c: Likewise.
23069 * cfg.c: Likewise.
23070 * cfganal.c: Likewise.
23071 * cfgbuild.c: Likewise.
23072 * cfgcleanup.c: Likewise.
23073 * cfgexpand.c: Likewise.
23074 * cfghooks.c: Likewise.
23075 * cfgloop.c: Likewise.
23076 * cfgloop.h: Likewise.
23077 * cfgloopanal.c: Likewise.
23078 * cfgloopmanip.c: Likewise.
23079 * cfgrtl.c: Likewise.
23080 * cgraph.c: Likewise.
23081 * cgraphbuild.c: Likewise.
23082 * cgraphclones.c: Likewise.
23083 * cgraphunit.c: Likewise.
23084 * cilk-common.c: Likewise.
23085 * combine-stack-adj.c: Likewise.
23086 * combine.c: Likewise.
23087 * compare-elim.c: Likewise.
23088 * convert.c: Likewise.
23089 * coverage.c: Likewise.
23090 * cppbuiltin.c: Likewise.
23091 * cprop.c: Likewise.
23092 * cse.c: Likewise.
23093 * cselib.c: Likewise.
23094 * data-streamer-in.c: Likewise.
23095 * data-streamer-out.c: Likewise.
23096 * data-streamer.c: Likewise.
23097 * dbxout.c: Likewise.
23098 * dce.c: Likewise.
23099 * ddg.c: Likewise.
23100 * debug.c: Likewise.
23101 * df-core.c: Likewise.
23102 * df-problems.c: Likewise.
23103 * df-scan.c: Likewise.
23104 * df.h: Likewise.
23105 * dfp.c: Likewise.
23106 * dojump.c: Likewise.
23107 * dominance.c: Likewise.
23108 * domwalk.c: Likewise.
23109 * double-int.c: Likewise.
23110 * dse.c: Likewise.
23111 * dumpfile.c: Likewise.
23112 * dwarf2asm.c: Likewise.
23113 * dwarf2cfi.c: Likewise.
23114 * dwarf2out.c: Likewise.
23115 * dwarf2out.h: Likewise.
23116 * emit-rtl.c: Likewise.
23117 * et-forest.c: Likewise.
23118 * except.c: Likewise.
23119 * explow.c: Likewise.
23120 * expmed.c: Likewise.
23121 * expr.c: Likewise.
23122 * final.c: Likewise.
23123 * fixed-value.c: Likewise.
23124 * fold-const.c: Likewise.
23125 * function.c: Likewise.
23126 * fwprop.c: Likewise.
23127 * gcc-plugin.h: Likewise.
23128 * gcse.c: Likewise.
23129 * generic-match-head.c: Likewise.
23130 * ggc-page.c: Likewise.
23131 * gimple-builder.c: Likewise.
23132 * gimple-expr.c: Likewise.
23133 * gimple-fold.c: Likewise.
23134 * gimple-iterator.c: Likewise.
23135 * gimple-low.c: Likewise.
23136 * gimple-match-head.c: Likewise.
23137 * gimple-pretty-print.c: Likewise.
23138 * gimple-ssa-isolate-paths.c: Likewise.
23139 * gimple-ssa-strength-reduction.c: Likewise.
23140 * gimple-streamer-in.c: Likewise.
23141 * gimple-streamer-out.c: Likewise.
23142 * gimple-streamer.h: Likewise.
23143 * gimple-walk.c: Likewise.
23144 * gimple.c: Likewise.
23145 * gimplify-me.c: Likewise.
23146 * gimplify.c: Likewise.
23147 * godump.c: Likewise.
23148 * graph.c: Likewise.
23149 * graphite-blocking.c: Likewise.
23150 * graphite-dependences.c: Likewise.
23151 * graphite-interchange.c: Likewise.
23152 * graphite-isl-ast-to-gimple.c: Likewise.
23153 * graphite-optimize-isl.c: Likewise.
23154 * graphite-poly.c: Likewise.
23155 * graphite-scop-detection.c: Likewise.
23156 * graphite-sese-to-poly.c: Likewise.
23157 * graphite.c: Likewise.
23158 * haifa-sched.c: Likewise.
23159 * hooks.h: Likewise.
23160 * hw-doloop.c: Likewise.
23161 * ifcvt.c: Likewise.
23162 * incpath.c: Likewise.
23163 * init-regs.c: Likewise.
23164 * internal-fn.c: Likewise.
23165 * ipa-chkp.c: Likewise.
23166 * ipa-comdats.c: Likewise.
23167 * ipa-cp.c: Likewise.
23168 * ipa-devirt.c: Likewise.
23169 * ipa-icf-gimple.c: Likewise.
23170 * ipa-icf.c: Likewise.
23171 * ipa-inline-analysis.c: Likewise.
23172 * ipa-inline-transform.c: Likewise.
23173 * ipa-inline.c: Likewise.
23174 * ipa-polymorphic-call.c: Likewise.
23175 * ipa-profile.c: Likewise.
23176 * ipa-prop.c: Likewise.
23177 * ipa-pure-const.c: Likewise.
23178 * ipa-ref.c: Likewise.
23179 * ipa-reference.c: Likewise.
23180 * ipa-split.c: Likewise.
23181 * ipa-utils.c: Likewise.
23182 * ipa-visibility.c: Likewise.
23183 * ipa.c: Likewise.
23184 * ira-build.c: Likewise.
23185 * ira-color.c: Likewise.
23186 * ira-conflicts.c: Likewise.
23187 * ira-costs.c: Likewise.
23188 * ira-emit.c: Likewise.
23189 * ira-lives.c: Likewise.
23190 * ira.c: Likewise.
23191 * jump.c: Likewise.
23192 * langhooks.c: Likewise.
23193 * lcm.c: Likewise.
23194 * loop-doloop.c: Likewise.
23195 * loop-init.c: Likewise.
23196 * loop-invariant.c: Likewise.
23197 * loop-iv.c: Likewise.
23198 * loop-unroll.c: Likewise.
23199 * lower-subreg.c: Likewise.
23200 * lra-assigns.c: Likewise.
23201 * lra-coalesce.c: Likewise.
23202 * lra-constraints.c: Likewise.
23203 * lra-eliminations.c: Likewise.
23204 * lra-lives.c: Likewise.
23205 * lra-remat.c: Likewise.
23206 * lra-spills.c: Likewise.
23207 * lra.c: Likewise.
23208 * lto-cgraph.c: Likewise.
23209 * lto-compress.c: Likewise.
23210 * lto-opts.c: Likewise.
23211 * lto-section-in.c: Likewise.
23212 * lto-section-out.c: Likewise.
23213 * lto-streamer-in.c: Likewise.
23214 * lto-streamer-out.c: Likewise.
23215 * lto-streamer.c: Likewise.
23216 * mcf.c: Likewise.
23217 * mode-switching.c: Likewise.
23218 * modulo-sched.c: Likewise.
23219 * omega.c: Likewise.
23220 * omp-low.c: Likewise.
23221 * optabs.c: Likewise.
23222 * opts-global.c: Likewise.
23223 * passes.c: Likewise.
23224 * plugin.c: Likewise.
23225 * postreload-gcse.c: Likewise.
23226 * postreload.c: Likewise.
23227 * predict.c: Likewise.
23228 * print-rtl.c: Likewise.
23229 * print-tree.c: Likewise.
23230 * profile.c: Likewise.
23231 * real.c: Likewise.
23232 * realmpfr.c: Likewise.
23233 * realmpfr.h: Likewise.
23234 * recog.c: Likewise.
23235 * ree.c: Likewise.
23236 * reg-stack.c: Likewise.
23237 * regcprop.c: Likewise.
23238 * reginfo.c: Likewise.
23239 * regrename.c: Likewise.
23240 * regs.h: Likewise.
23241 * regstat.c: Likewise.
23242 * reload.c: Likewise.
23243 * reload1.c: Likewise.
23244 * reorg.c: Likewise.
23245 * resource.c: Likewise.
23246 * rtl-chkp.c: Likewise.
23247 * rtlanal.c: Likewise.
23248 * rtlhooks.c: Likewise.
23249 * sanopt.c: Likewise.
23250 * sched-deps.c: Likewise.
23251 * sched-ebb.c: Likewise.
23252 * sched-rgn.c: Likewise.
23253 * sched-vis.c: Likewise.
23254 * sdbout.c: Likewise.
23255 * sel-sched-dump.c: Likewise.
23256 * sel-sched-ir.c: Likewise.
23257 * sel-sched.c: Likewise.
23258 * sese.c: Likewise.
23259 * shrink-wrap.c: Likewise.
23260 * shrink-wrap.h: Likewise.
23261 * simplify-rtx.c: Likewise.
23262 * stack-ptr-mod.c: Likewise.
23263 * statistics.c: Likewise.
23264 * stmt.c: Likewise.
23265 * stor-layout.c: Likewise.
23266 * store-motion.c: Likewise.
23267 * stringpool.c: Likewise.
23268 * symtab.c: Likewise.
23269 * target-globals.c: Likewise.
23270 * targhooks.c: Likewise.
23271 * toplev.c: Likewise.
23272 * tracer.c: Likewise.
23273 * trans-mem.c: Likewise.
23274 * tree-affine.c: Likewise.
23275 * tree-affine.h: Likewise.
23276 * tree-browser.c: Likewise.
23277 * tree-call-cdce.c: Likewise.
23278 * tree-cfg.c: Likewise.
23279 * tree-cfgcleanup.c: Likewise.
23280 * tree-chkp-opt.c: Likewise.
23281 * tree-chkp.c: Likewise.
23282 * tree-chrec.c: Likewise.
23283 * tree-complex.c: Likewise.
23284 * tree-data-ref.c: Likewise.
23285 * tree-dfa.c: Likewise.
23286 * tree-diagnostic.c: Likewise.
23287 * tree-dump.c: Likewise.
23288 * tree-eh.c: Likewise.
23289 * tree-emutls.c: Likewise.
23290 * tree-if-conv.c: Likewise.
23291 * tree-inline.c: Likewise.
23292 * tree-into-ssa.c: Likewise.
23293 * tree-iterator.c: Likewise.
23294 * tree-loop-distribution.c: Likewise.
23295 * tree-nested.c: Likewise.
23296 * tree-nrv.c: Likewise.
23297 * tree-object-size.c: Likewise.
23298 * tree-outof-ssa.c: Likewise.
23299 * tree-parloops.c: Likewise.
23300 * tree-phinodes.c: Likewise.
23301 * tree-predcom.c: Likewise.
23302 * tree-pretty-print.c: Likewise.
23303 * tree-pretty-print.h: Likewise.
23304 * tree-profile.c: Likewise.
23305 * tree-scalar-evolution.c: Likewise.
23306 * tree-sra.c: Likewise.
23307 * tree-ssa-address.c: Likewise.
23308 * tree-ssa-alias.c: Likewise.
23309 * tree-ssa-ccp.c: Likewise.
23310 * tree-ssa-coalesce.c: Likewise.
23311 * tree-ssa-copy.c: Likewise.
23312 * tree-ssa-copyrename.c: Likewise.
23313 * tree-ssa-dce.c: Likewise.
23314 * tree-ssa-dom.c: Likewise.
23315 * tree-ssa-dse.c: Likewise.
23316 * tree-ssa-forwprop.c: Likewise.
23317 * tree-ssa-ifcombine.c: Likewise.
23318 * tree-ssa-live.c: Likewise.
23319 * tree-ssa-loop-ch.c: Likewise.
23320 * tree-ssa-loop-im.c: Likewise.
23321 * tree-ssa-loop-ivcanon.c: Likewise.
23322 * tree-ssa-loop-ivopts.c: Likewise.
23323 * tree-ssa-loop-manip.c: Likewise.
23324 * tree-ssa-loop-niter.c: Likewise.
23325 * tree-ssa-loop-prefetch.c: Likewise.
23326 * tree-ssa-loop-unswitch.c: Likewise.
23327 * tree-ssa-loop.c: Likewise.
23328 * tree-ssa-loop.h: Likewise.
23329 * tree-ssa-math-opts.c: Likewise.
23330 * tree-ssa-operands.c: Likewise.
23331 * tree-ssa-phiopt.c: Likewise.
23332 * tree-ssa-phiprop.c: Likewise.
23333 * tree-ssa-pre.c: Likewise.
23334 * tree-ssa-propagate.c: Likewise.
23335 * tree-ssa-reassoc.c: Likewise.
23336 * tree-ssa-sccvn.c: Likewise.
23337 * tree-ssa-scopedtables.c: Likewise.
23338 * tree-ssa-sink.c: Likewise.
23339 * tree-ssa-strlen.c: Likewise.
23340 * tree-ssa-structalias.c: Likewise.
23341 * tree-ssa-tail-merge.c: Likewise.
23342 * tree-ssa-ter.c: Likewise.
23343 * tree-ssa-threadedge.c: Likewise.
23344 * tree-ssa-threadupdate.c: Likewise.
23345 * tree-ssa-uncprop.c: Likewise.
23346 * tree-ssa-uninit.c: Likewise.
23347 * tree-ssa.c: Likewise.
23348 * tree-ssanames.c: Likewise.
23349 * tree-stdarg.c: Likewise.
23350 * tree-streamer-in.c: Likewise.
23351 * tree-streamer-out.c: Likewise.
23352 * tree-streamer.c: Likewise.
23353 * tree-switch-conversion.c: Likewise.
23354 * tree-tailcall.c: Likewise.
23355 * tree-vect-data-refs.c: Likewise.
23356 * tree-vect-generic.c: Likewise.
23357 * tree-vect-loop-manip.c: Likewise.
23358 * tree-vect-loop.c: Likewise.
23359 * tree-vect-patterns.c: Likewise.
23360 * tree-vect-slp.c: Likewise.
23361 * tree-vect-stmts.c: Likewise.
23362 * tree-vectorizer.c: Likewise.
23363 * tree-vrp.c: Likewise.
23364 * tree.c: Likewise.
23365 * tsan.c: Likewise.
23366 * ubsan.c: Likewise.
23367 * valtrack.c: Likewise.
23368 * value-prof.c: Likewise.
23369 * var-tracking.c: Likewise.
23370 * varasm.c: Likewise.
23371 * varpool.c: Likewise.
23372 * vmsdbgout.c: Likewise.
23373 * vtable-verify.c: Likewise.
23374 * web.c: Likewise.
23375 * wide-int-print.cc: Likewise.
23376 * wide-int-print.h: Likewise.
23377 * wide-int.cc: Likewise.
23378 * xcoffout.c: Likewise.
23379 * config/aarch64/aarch64-builtins.c: Likewise.
23380 * config/aarch64/aarch64.c: Likewise.
23381 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23382 * config/alpha/alpha.c: Likewise.
23383 * config/arc/arc.c: Likewise.
23384 * config/arm/aarch-common.c: Likewise.
23385 * config/arm/arm-builtins.c: Likewise.
23386 * config/arm/arm-c.c: Likewise.
23387 * config/arm/arm.c: Likewise.
23388 * config/avr/avr-c.c: Likewise.
23389 * config/avr/avr-log.c: Likewise.
23390 * config/avr/avr.c: Likewise.
23391 * config/bfin/bfin.c: Likewise.
23392 * config/c6x/c6x.c: Likewise.
23393 * config/cr16/cr16.c: Likewise.
23394 * config/cris/cris.c: Likewise.
23395 * config/darwin-c.c: Likewise.
23396 * config/darwin.c: Likewise.
23397 * config/default-c.c: Likewise.
23398 * config/epiphany/epiphany.c: Likewise.
23399 * config/epiphany/mode-switch-use.c: Likewise.
23400 * config/epiphany/resolve-sw-modes.c: Likewise.
23401 * config/fr30/fr30.c: Likewise.
23402 * config/frv/frv.c: Likewise.
23403 * config/ft32/ft32.c: Likewise.
23404 * config/glibc-c.c: Likewise.
23405 * config/h8300/h8300.c: Likewise.
23406 * config/i386/i386-c.c: Likewise.
23407 * config/i386/i386.c: Likewise.
23408 * config/i386/msformat-c.c: Likewise.
23409 * config/i386/winnt-cxx.c: Likewise.
23410 * config/i386/winnt-stubs.c: Likewise.
23411 * config/i386/winnt.c: Likewise.
23412 * config/ia64/ia64-c.c: Likewise.
23413 * config/ia64/ia64.c: Likewise.
23414 * config/iq2000/iq2000.c: Likewise.
23415 * config/lm32/lm32.c: Likewise.
23416 * config/m32c/m32c-pragma.c: Likewise.
23417 * config/m32c/m32c.c: Likewise.
23418 * config/m32r/m32r.c: Likewise.
23419 * config/m68k/m68k.c: Likewise.
23420 * config/mcore/mcore.c: Likewise.
23421 * config/mep/mep-pragma.c: Likewise.
23422 * config/mep/mep.c: Likewise.
23423 * config/microblaze/microblaze-c.c: Likewise.
23424 * config/microblaze/microblaze.c: Likewise.
23425 * config/mips/mips.c: Likewise.
23426 * config/mmix/mmix.c: Likewise.
23427 * config/mn10300/mn10300.c: Likewise.
23428 * config/moxie/moxie.c: Likewise.
23429 * config/msp430/msp430-c.c: Likewise.
23430 * config/msp430/msp430.c: Likewise.
23431 * config/nds32/nds32-cost.c: Likewise.
23432 * config/nds32/nds32-fp-as-gp.c: Likewise.
23433 * config/nds32/nds32-intrinsic.c: Likewise.
23434 * config/nds32/nds32-isr.c: Likewise.
23435 * config/nds32/nds32-md-auxiliary.c: Likewise.
23436 * config/nds32/nds32-memory-manipulation.c: Likewise.
23437 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23438 * config/nds32/nds32-predicates.c: Likewise.
23439 * config/nds32/nds32.c: Likewise.
23440 * config/nios2/nios2.c: Likewise.
23441 * config/nvptx/nvptx.c: Likewise.
23442 * config/pa/pa.c: Likewise.
23443 * config/pdp11/pdp11.c: Likewise.
23444 * config/rl78/rl78-c.c: Likewise.
23445 * config/rl78/rl78.c: Likewise.
23446 * config/rs6000/rs6000-c.c: Likewise.
23447 * config/rs6000/rs6000.c: Likewise.
23448 * config/rx/rx.c: Likewise.
23449 * config/s390/s390-c.c: Likewise.
23450 * config/s390/s390.c: Likewise.
23451 * config/sh/sh-c.c: Likewise.
23452 * config/sh/sh-mem.cc: Likewise.
23453 * config/sh/sh.c: Likewise.
23454 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23455 * config/sh/sh_treg_combine.cc: Likewise.
23456 * config/sol2-c.c: Likewise.
23457 * config/sol2-cxx.c: Likewise.
23458 * config/sol2-stubs.c: Likewise.
23459 * config/sol2.c: Likewise.
23460 * config/sparc/sparc-c.c: Likewise.
23461 * config/sparc/sparc.c: Likewise.
23462 * config/spu/spu-c.c: Likewise.
23463 * config/spu/spu.c: Likewise.
23464 * config/stormy16/stormy16.c: Likewise.
23465 * config/tilegx/mul-tables.c: Likewise.
23466 * config/tilegx/tilegx-c.c: Likewise.
23467 * config/tilegx/tilegx.c: Likewise.
23468 * config/tilepro/mul-tables.c: Likewise.
23469 * config/tilepro/tilepro-c.c: Likewise.
23470 * config/tilepro/tilepro.c: Likewise.
23471 * config/v850/v850-c.c: Likewise.
23472 * config/v850/v850.c: Likewise.
23473 * config/vax/vax.c: Likewise.
23474 * config/visium/visium.c: Likewise.
23475 * config/vms/vms-c.c: Likewise.
23476 * config/vms/vms.c: Likewise.
23477 * config/vxworks.c: Likewise.
23478 * config/winnt-c.c: Likewise.
23479 * config/xtensa/xtensa.c: Likewise.
23480 * common/config/bfin/bfin-common.c: Likewise.
23481
23482 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
23483
23484 * tree.h (tree_code_for_canonical_type_merging): New function.
23485 * tree.c (gimple_canonical_types_compatible_p): Use
23486 tree_code_for_canonical_type_merging..
23487
23488 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23489
23490 PR c++/66192
23491 PR target/66200
23492 * doc/tm.texi: Regenerate.
23493 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23494 * target.def (TARGET_RELAXED_ORDERING): Likewise.
23495 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23496 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23497 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23498 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23499 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23500 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23501 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23502
23503 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23504
23505 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23506 register fma steering pass.
23507 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23508 AARCH64_TUNE_FMA_STEERING.
23509
23510 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
23511
23512 * tree.c (verify_type_variant): Verify that type and variant is
23513 compatible.
23514 (gimple_canonical_types_compatible_p): Look for main variants.
23515
23516 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23517
23518 * config.gcc (powerpc*-*-*): Add support for a new configure
23519 option --with-advance-toolchain=<xxx> which overrides using the
23520 default header files, libraries and dynamic linker.
23521
23522 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23523 specs to support the configure --with-advance-toolchain=<xxx>
23524 option.
23525 (INCLUDE_EXTRA_SPEC): Likewise.
23526 (LINK_OS_EXTRA_SPEC32): Likewise.
23527 (LINK_OK_EXTRA_SPEC64): Likewise.
23528 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23529 (DYNAMIC_LINKER_PREFIX): Likewise.
23530 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23531 toolchain support.
23532 (GLIBC_DYNAMIC_LINKER32): Likewise.
23533 (GLIBC_DYNAMIC_LINKER64): Likewise.
23534 (LINK_OS_LINUX_SPEC32): Likewise.
23535 (LINK_OS_LINUX_SPEC64): Likewise.
23536
23537 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23538 configuration option.
23539
23540 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
23541
23542 PR target/66275
23543 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23544 to determine current function ABI.
23545 (ix86_function_value_regno_p): Ditto.
23546
23547 2015-06-03 Martin Liska <mliska@suse.cz>
23548
23549 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23550 * bitmap.h (struct bitmap_usage): Likewise.
23551 * ggc-common.c (struct ggc_usage): Likewise.
23552 * mem-stats.h (struct mem_location): Likewise.
23553 (struct mem_usage): Likewise.
23554 * vec.c (struct vec_usage): Likewise.
23555
23556 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
23557
23558 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23559 -Bsymbolic.
23560
23561 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
23562
23563 * doc/plugins.texi (enum plugin_event): New event.
23564 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23565 and PLUGIN_FINISH_FUNCTION.
23566 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23567 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23568
23569 2015-06-03 Richard Biener <rguenther@suse.de>
23570
23571 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23572 compute GROUP_GAP for the first element.
23573 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23574 on in-group gaps.
23575
23576 2015-06-03 Nick Clifton <nickc@redhat.com>
23577
23578 * config/rl78/rl78-real.md: Add peepholes to avoid a register
23579 copy when calling a function.
23580 * config/rl78/rl78.c (need_to_save): Do not push the frame
23581 pointer in an interrupt handler prologue if it is never used.
23582
23583 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23584
23585 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23586
23587 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23588
23589 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23590 reference when cloning alias node.
23591
23592 2015-06-03 Martin Liska <mliska@suse.cz>
23593
23594 * alloc-pool.h (struct pool_usage): Correct space padding.
23595 * ggc-page.c (ggc_print_statistics): Align columns in a report.
23596 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23597 * tree.c (dump_tree_statistics): Align columns in a report.
23598
23599 2015-06-03 Martin Liska <mliska@suse.cz>
23600
23601 * alloc-pool.c (allocate_pool_descriptor): Remove.
23602 (struct pool_output_info): Likewise.
23603 (print_alloc_pool_statistics): Likewise.
23604 (dump_alloc_pool_statistics): Likewise.
23605 * alloc-pool.h (struct pool_usage): New struct.
23606 (pool_allocator::initialize): Change usage of memory statistics
23607 to a new interface.
23608 (pool_allocator::release): Likewise.
23609 (pool_allocator::allocate): Likewise.
23610 (pool_allocator::remove): Likewise.
23611 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23612 for a pool allocator.
23613 * mem-stats.h (struct mem_location): Add new ctor.
23614 (struct mem_usage): Add counter for number of
23615 instances.
23616 (mem_alloc_description::register_descriptor): New overload of
23617 * mem-stats.h (mem_location::to_string): New function.
23618 * bitmap.h (struct bitmap_usage): Use this new function.
23619 * ggc-common.c (struct ggc_usage): Likewise.
23620 the function.
23621
23622 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23623
23624 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23625 of GCC_INSN_FLAGS_H block.
23626
23627 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23628
23629 * explow.c (plus_constant): Update check after force_const_mem call
23630 to see if the value returned is not a NULL_RTX.
23631
23632 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23633
23634 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23635 remove instumentation thunks calling reachable functions.
23636 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23637 * lto/lto-partition.c (privatize_symbol_name_1): New.
23638 (privatize_symbol_name): Privatize both decl and orig_decl
23639 names for instrumented functions.
23640 * cgraph.c (cgraph_node::verify_node): Add transparent
23641 alias chain check for instrumented node.
23642
23643 2015-06-03 Marek Polacek <polacek@redhat.com>
23644
23645 PR c/64223
23646 PR c/29358
23647 * tree.c (attribute_value_equal): Handle attribute format.
23648 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23649
23650 2015-06-03 Richard Biener <rguenther@suse.de>
23651
23652 PR tree-optimization/63916
23653 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23654 Forward-propagate non-invariant addresses by splicing their
23655 reference ops if the result isn't going to be used by PRE.
23656 (vn_reference_lookup_3): Remove pointless assert.
23657
23658 2015-06-03 Richard Biener <rguenther@suse.de>
23659
23660 PR tree-optimization/66375
23661 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23662 add to the evolution before following SSA edges.
23663
23664 2015-06-03 Bin Cheng <bin.cheng@arm.com>
23665
23666 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23667 (dump_use, dump_cand, find_induction_variables): Pass new argument
23668 to dump_iv.
23669 (record_use): Preserve the ssa name information in IV.
23670
23671 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23672
23673 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23674 NO_MODE_TEST.
23675 (add_mode_tests): Don't add mode tests if the predicate only
23676 accepts scalar constant integers. Otherwise, allow the mode
23677 of "op" to be VOIDmode if the predicate does accept such integers.
23678
23679 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
23680
23681 PR target/66258
23682 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23683 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23684 (aarch64_secondary_reload): Likewise
23685 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23686 to !TARGET_FLOAT.
23687 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23688 Likewise.
23689
23690 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
23691 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23692
23693 PR target/65768
23694 * cprop.c (try_replace_reg): Check cost of constants before propagating.
23695
23696 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23697
23698 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23699 provide access to the IBM extended double floating point mode if
23700 long double is IEEE 128-bit floating point.
23701 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23702 point if long double is the IBM extended double type.
23703
23704 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23705 enable adding IEEE 128-bit floating point support.
23706 (-mfloat128-software): Likewise.
23707 (-mfloat128-sw): Likewise.
23708
23709 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23710 128-bit floating point types to occupy any register if
23711 -mlong-double-64. Do not allow use of IFmode/KFmode unless
23712 -mfloat128-software is enabled.
23713 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23714 support.
23715 (rs6000_option_override_internal): Add -mfloat128-* support.
23716 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23717
23718 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23719 and float128 type nodes.
23720 (ieee128_float_type_node): Likewise.
23721 (ibm128_float_type_node): Likewise.
23722
23723 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23724
23725 PR target/66136
23726 * config/aarch64/geniterators.sh: Rewrite in awk.
23727
23728 2015-06-02 Martin Liska <mliska@suse.cz>
23729
23730 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23731 values to avoid -Wmaybe-uninitialized errors.
23732
23733 2015-06-02 Richard Biener <rguenther@suse.de>
23734
23735 PR debug/65549
23736 * dwarf2out.c (lookup_context_die): New function.
23737 (resolve_addr): Avoid forcing a full DIE for the
23738 target of a DW_TAG_GNU_call_site during late compilation.
23739 Instead create a stub DIE without a type if we have a
23740 context DIE present.
23741
23742 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
23743
23744 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23745
23746 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23747
23748 PR tree-optimization/48052
23749 * cfgloop.h (struct control_iv): New.
23750 (struct loop): New field control_ivs.
23751 * tree-ssa-loop-niter.c : Include "stor-layout.h".
23752 (number_of_iterations_lt): Set no_overflow information.
23753 (number_of_iterations_exit): Init control iv in niter struct.
23754 (record_control_iv): New.
23755 (estimate_numbers_of_iterations_loop): Call record_control_iv.
23756 (loop_exits_before_overflow): New. Interface factored out of
23757 scev_probably_wraps_p.
23758 (scev_probably_wraps_p): Factor loop niter related code into
23759 loop_exits_before_overflow.
23760 (free_numbers_of_iterations_estimates_loop): Free control ivs.
23761 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23762
23763 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
23764
23765 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23766 the target doesn't belong to the current function.
23767
23768 2015-06-02 Marek Polacek <polacek@redhat.com>
23769
23770 PR middle-end/66345
23771 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23772 get_maxval_strlen does not produce an INTEGER_CST.
23773
23774 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
23775
23776 * config/arc/constraints.md: Use lower-case names in match_code.
23777 * config/mmix/constraints.md: Likewise.
23778
23779 2015-06-02 Richard Biener <rguenther@suse.de>
23780
23781 PR tree-optimization/65961
23782 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23783 check and clarify dump message.
23784 (vect_build_slp_tree): If all children are built up from scalars
23785 build up the parent from scalars instead.
23786 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23787
23788 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
23789
23790 PR other/65366
23791 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
23792 instead of print ... .
23793
23794 2015-06-02 Alan Modra <amodra@gmail.com>
23795
23796 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23797 2014-08-11 change.
23798
23799 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23800
23801 PR tree-optimization/52563
23802 PR tree-optimization/62173
23803 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
23804 (alloc_iv, set_iv): New parameter.
23805 (determine_biv_step): Delete.
23806 (find_bivs): Inline original determine_biv_step. Pass new
23807 argument to set_iv.
23808 (idx_find_step): Use no_overflow information for conversion.
23809 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23810 resolve_mixers handle folded_casts.
23811 (instantiate_scev_name): Change bool parameter to bool pointer.
23812 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23813 (instantiate_array_ref, instantiate_scev_not): Ditto.
23814 (instantiate_scev_3, instantiate_scev_2): Ditto.
23815 (instantiate_scev_1, instantiate_scev_r): Ditto.
23816 (instantiate_scev_convert, ): Change parameter. Pass argument
23817 to chrec_convert_aggressive.
23818 (instantiate_scev): Change argument.
23819 (resolve_mixers): New parameter and set it.
23820 (scev_const_prop): New argument.
23821 * tree-scalar-evolution.h (resolve_mixers): New parameter.
23822 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23823 of chrec_conert_1.
23824 (chrec_convert): New parameter. Move definition below.
23825 (chrec_convert_aggressive): New parameter and set it. Call
23826 convert_affine_scev.
23827 * tree-chrec.h (chrec_convert): New parameter.
23828 (chrec_convert_aggressive): Ditto.
23829
23830 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23831
23832 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23833 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23834 the LHS of a no-return call if its type has variable size.
23835 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23836 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23837
23838 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
23839
23840 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23841 * config.in: Regenerate.
23842
23843 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23844
23845 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23846 consecutive accesses within outer-loop with force_vectorize
23847 for references with zero step in inner-loop.
23848
23849 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23850
23851 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23852 rather than from gcc/build directory.
23853
23854 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23855
23856 PR target/65697
23857 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23858 for __sync memory models, emit initial loads and final barriers as
23859 appropriate.
23860
23861 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23862
23863 PR target/65697
23864 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23865 (aarch64_split_atomic_op): Check for __sync memory models, emit
23866 appropriate initial loads and final barriers.
23867
23868 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23869
23870 * Makefile.in: Fix gcov dependencies that should
23871 not point to a build folder.
23872
23873 2015-06-01 Richard Biener <rguenther@suse.de>
23874
23875 Revert
23876 2015-05-29 Richard Biener <rguenther@suse.de>
23877
23878 PR tree-optimization/66314
23879 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23880 parameter that says which loop the new block belongs to.
23881 (ssa_create_duplicates): Blocks duplicated for the threaded
23882 path belong to the loop of the thread destination.
23883
23884 2015-06-01 Martin Liska <mliska@suse.cz>
23885
23886 * sched-deps.c: Include pool-alloc.h before
23887 cselib.h header file is included.
23888
23889 2015-06-01 Richard Biener <rguenther@suse.de>
23890
23891 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23892 functions.
23893
23894 2015-06-01 Martin Liska <mliska@suse.cz>
23895
23896 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23897 a function local variable.
23898
23899 2015-06-01 Martin Liska <mliska@suse.cz>
23900
23901 * alloc-pool.c (create_alloc_pool): Remove.
23902 (empty_alloc_pool): Likewise.
23903 (free_alloc_pool): Likewise.
23904 (free_alloc_pool_if_empty): Likewise.
23905 (pool_alloc): Likewise.
23906 (pool_free): Likewise.
23907 * alloc-pool.h: Remove old declarations.
23908
23909 2015-06-01 Martin Liska <mliska@suse.cz>
23910
23911 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23912 (ira_create_object): Likewise.
23913 (ira_create_allocno): Likewise.
23914 (ira_create_live_range): Likewise.
23915 (copy_live_range): Likewise.
23916 (ira_finish_live_range): Likewise.
23917 (ira_free_allocno_costs): Likewise.
23918 (finish_allocno): Likewise.
23919 (finish_allocnos): Likewise.
23920 (initiate_prefs): Likewise.
23921 (ira_create_pref): Likewise.
23922 (finish_pref): Likewise.
23923 (finish_prefs): Likewise.
23924 (initiate_copies): Likewise.
23925 (ira_create_copy): Likewise.
23926 (finish_copy): Likewise.
23927 (finish_copies): Likewise.
23928 (finish_prefs): Likewise.
23929
23930 2015-06-01 Martin Liska <mliska@suse.cz>
23931
23932 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23933 (allocate_and_init_ipcp_value): Likewise.
23934 (ipcp_lattice::add_value): Likewise.
23935 (merge_agg_lats_step): Likewise.
23936 (ipcp_driver): Likewise.
23937 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23938 (ipa_free_all_structures_after_iinln): Likewise.
23939 * ipa-prop.h: Likewise.
23940
23941 2015-06-01 Martin Liska <mliska@suse.cz>
23942
23943 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23944 pool allocator.
23945 (set_hint_predicate): Likewise.
23946 (inline_summary_alloc): Likewise.
23947 (reset_inline_edge_summary): Likewise.
23948 (reset_inline_summary): Likewise.
23949 (set_cond_stmt_execution_predicate): Likewise.
23950 (set_switch_stmt_execution_predicate): Likewise.
23951 (compute_bb_predicates): Likewise.
23952 (estimate_function_body_sizes): Likewise.
23953 (inline_free_summary): Likewise.
23954
23955 2015-06-01 Martin Liska <mliska@suse.cz>
23956
23957 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23958 (ipa_edge_duplication_hook): Likewise.
23959 (ipa_free_all_structures_after_ipa_cp): Likewise.
23960 (ipa_free_all_structures_after_iinln): Likewise.
23961
23962 2015-06-01 Martin Liska <mliska@suse.cz>
23963
23964 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23965 (ipa_profile_generate_summary): Likewise.
23966 (ipa_profile_read_summary): Likewise.
23967 (ipa_profile): Likewise.
23968
23969 2015-06-01 Martin Liska <mliska@suse.cz>
23970
23971 * tree-ssa-structalias.c (new_var_info): Use new type-based
23972 pool allocator.
23973 (new_constraint): Likewise.
23974 (init_alias_vars): Likewise.
23975 (delete_points_to_sets): Likewise.
23976
23977 2015-06-01 Martin Liska <mliska@suse.cz>
23978
23979 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23980 (free_strinfo): Likewise.
23981 (pass_strlen::execute): Likewise.
23982
23983 2015-06-01 Martin Liska <mliska@suse.cz>
23984
23985 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23986 pool allocator.
23987 (vn_reference_insert_pieces): Likewise.
23988 (vn_phi_insert): Likewise.
23989 (visit_reference_op_call): Likewise.
23990 (copy_phi): Likewise.
23991 (copy_reference): Likewise.
23992 (process_scc): Likewise.
23993 (allocate_vn_table): Likewise.
23994 (free_vn_table): Likewise.
23995
23996 2015-06-01 Martin Liska <mliska@suse.cz>
23997
23998 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23999 pool allocator.
24000 (add_repeat_to_ops_vec): Likewise.
24001 (get_ops): Likewise.
24002 (maybe_optimize_range_tests): Likewise.
24003 (init_reassoc): Likewise.
24004 (fini_reassoc): Likewise.
24005
24006 2015-06-01 Martin Liska <mliska@suse.cz>
24007
24008 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24009 pool allocator.
24010 (bitmap_set_new): Likewise.
24011 (get_or_alloc_expr_for_constant): Likewise.
24012 (get_or_alloc_expr_for): Likewise.
24013 (phi_translate_1): Likewise.
24014 (compute_avail): Likewise.
24015 (init_pre): Likewise.
24016 (fini_pre): Likewise.
24017
24018 2015-06-01 Martin Liska <mliska@suse.cz>
24019
24020 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24021 (delete_dep_node): Likewise.
24022 (create_deps_list): Likewise.
24023 (free_deps_list): Likewise.
24024 (sched_deps_init): Likewise.
24025 (sched_deps_finish): Likewise.
24026
24027 2015-06-01 Martin Liska <mliska@suse.cz>
24028
24029 * regcprop.c (free_debug_insn_changes): Use new type-based
24030 pool allocator.
24031 (replace_oldest_value_reg): Likewise.
24032 (pass_cprop_hardreg::execute): Likewise.
24033
24034 2015-06-01 Martin Liska <mliska@suse.cz>
24035
24036 * ira-build.c (initiate_cost_vectors): Use new type-based
24037 pool allocator.
24038 (ira_allocate_cost_vector): Likewise.
24039 (ira_free_cost_vector): Likewise.
24040 (finish_cost_vectors): Likewise.
24041
24042 2015-06-01 Martin Liska <mliska@suse.cz>
24043
24044 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24045 pool allocator.
24046 (free_sched_pools): Likewise.
24047 * sel-sched-ir.h (_list_alloc): Likewise.
24048 (_list_remove): Likewise.
24049
24050 2015-06-01 Martin Liska <mliska@suse.cz>
24051
24052 * stmt.c (add_case_node): Use new type-based pool allocator.
24053 (expand_case): Likewise.
24054 (expand_sjlj_dispatch_table): Likewise.
24055
24056 2015-06-01 Martin Liska <mliska@suse.cz>
24057
24058 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24059 (free_bb): Likewise.
24060 (pass_cse_reciprocals::execute): Likewise.
24061
24062 2015-06-01 Martin Liska <mliska@suse.cz>
24063
24064 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24065 (sra_deinitialize) Likewise.
24066 (create_access_1) Likewise.
24067 (build_accesses_from_assign) Likewise.
24068 (create_artificial_child_access) Likewise.
24069
24070 2015-06-01 Martin Liska <mliska@suse.cz>
24071
24072 * dse.c (get_group_info):Use new type-based pool allocator.
24073 (dse_step0) Likewise.
24074 (free_store_info) Likewise.
24075 (delete_dead_store_insn) Likewise.
24076 (free_read_records) Likewise.
24077 (record_store) Likewise.
24078 (replace_read) Likewise.
24079 (check_mem_read_rtx) Likewise.
24080 (scan_insn) Likewise.
24081 (dse_step1) Likewise.
24082 (dse_step7) Likewise.
24083
24084 2015-06-01 Martin Liska <mliska@suse.cz>
24085
24086 * df-scan.c (struct df_scan_problem_data):Use new type-based
24087 pool allocator.
24088 (df_scan_free_internal) Likewise.
24089 (df_scan_alloc) Likewise.
24090 (df_grow_reg_info) Likewise.
24091 (df_free_ref) Likewise.
24092 (df_insn_create_insn_record) Likewise.
24093 (df_mw_hardreg_chain_delete) Likewise.
24094 (df_insn_info_delete) Likewise.
24095 (df_free_collection_rec) Likewise.
24096 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24097 (df_sort_and_compress_mws) Likewise.
24098 (df_ref_create_structure) Likewise.
24099 (df_ref_record) Likewise.
24100
24101 2015-06-01 Martin Liska <mliska@suse.cz>
24102
24103 * df-problems.c (df_chain_create):Use new type-based pool allocator.
24104 (df_chain_unlink_1) Likewise.
24105 (df_chain_unlink) Likewise.
24106 (df_chain_remove_problem) Likewise.
24107 (df_chain_alloc) Likewise.
24108 (df_chain_free) Likewise.
24109 * df.h (struct dataflow) Likewise.
24110
24111 2015-06-01 Martin Liska <mliska@suse.cz>
24112
24113 * cselib.c (new_elt_list):Use new type-based pool allocator.
24114 (new_elt_loc_list) Likewise.
24115 (unchain_one_elt_list) Likewise.
24116 (unchain_one_elt_loc_list) Likewise.
24117 (unchain_one_value) Likewise.
24118 (new_cselib_val) Likewise.
24119 (cselib_init) Likewise.
24120 (cselib_finish) Likewise.
24121
24122 2015-06-01 Martin Liska <mliska@suse.cz>
24123
24124 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24125 (sh_reorg) Likewise.
24126
24127 2015-06-01 Martin Liska <mliska@suse.cz>
24128
24129 * cfg.c (initialize_original_copy_tables):Use new type-based
24130 pool allocator.
24131 (free_original_copy_tables) Likewise.
24132 (copy_original_table_clear) Likewise.
24133 (copy_original_table_set) Likewise.
24134
24135 2015-06-01 Martin Liska <mliska@suse.cz>
24136
24137 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24138 pool allocator.
24139 (asan_mem_ref_new) Likewise.
24140 (free_mem_ref_resources) Likewise.
24141
24142 2015-06-01 Martin Liska <mliska@suse.cz>
24143
24144 * var-tracking.c (variable_htab_free):Use new type-based
24145 pool allocator.
24146 (attrs_list_clear) Likewise.
24147 (attrs_list_insert) Likewise.
24148 (attrs_list_copy) Likewise.
24149 (shared_hash_unshare) Likewise.
24150 (shared_hash_destroy) Likewise.
24151 (unshare_variable) Likewise.
24152 (var_reg_delete_and_set) Likewise.
24153 (var_reg_delete) Likewise.
24154 (var_regno_delete) Likewise.
24155 (drop_overlapping_mem_locs) Likewise.
24156 (variable_union) Likewise.
24157 (insert_into_intersection) Likewise.
24158 (canonicalize_values_star) Likewise.
24159 (variable_merge_over_cur) Likewise.
24160 (dataflow_set_merge) Likewise.
24161 (remove_duplicate_values) Likewise.
24162 (variable_post_merge_new_vals) Likewise.
24163 (dataflow_set_preserve_mem_locs) Likewise.
24164 (dataflow_set_remove_mem_locs) Likewise.
24165 (variable_from_dropped) Likewise.
24166 (variable_was_changed) Likewise.
24167 (set_slot_part) Likewise.
24168 (clobber_slot_part) Likewise.
24169 (delete_slot_part) Likewise.
24170 (loc_exp_insert_dep) Likewise.
24171 (notify_dependents_of_changed_value) Likewise.
24172 (emit_notes_for_differences_1) Likewise.
24173 (vt_emit_notes) Likewise.
24174 (vt_initialize) Likewise.
24175 (vt_finalize) Likewise.
24176
24177 2015-06-01 Martin Liska <mliska@suse.cz>
24178
24179 * ira-color.c (init_update_cost_records):Use new type-based
24180 pool allocator.
24181 (get_update_cost_record) Likewise.
24182 (free_update_cost_record_list) Likewise.
24183 (finish_update_cost_records) Likewise.
24184 (initiate_cost_update) Likewise.
24185
24186 2015-06-01 Martin Liska <mliska@suse.cz>
24187
24188 * lra.c (init_insn_regs): Use new type-based pool allocator.
24189 (new_insn_reg) Likewise.
24190 (free_insn_reg) Likewise.
24191 (free_insn_regs) Likewise.
24192 (finish_insn_regs) Likewise.
24193 (init_insn_recog_data) Likewise.
24194 (init_reg_info) Likewise.
24195 (finish_reg_info) Likewise.
24196 (lra_free_copies) Likewise.
24197 (lra_create_copy) Likewise.
24198 (invalidate_insn_data_regno_info) Likewise.
24199
24200 2015-06-01 Martin Liska <mliska@suse.cz>
24201
24202 * lra-lives.c (free_live_range): Use new type-based pool allocator.
24203 (free_live_range_list) Likewise.
24204 (create_live_range) Likewise.
24205 (copy_live_range) Likewise.
24206 (lra_merge_live_ranges) Likewise.
24207 (remove_some_program_points_and_update_live_ranges) Likewise.
24208 (lra_live_ranges_init) Likewise.
24209 (lra_live_ranges_finish) Likewise.
24210
24211 2015-06-01 Martin Liska <mliska@suse.cz>
24212
24213 * et-forest.c (et_new_occ): Use new type-based pool allocator.
24214 (et_new_tree): Likewise.
24215 (et_free_tree): Likewise.
24216 (et_free_tree_force): Likewise.
24217 (et_free_pools): Likewise.
24218 (et_split): Likewise.
24219
24220 2015-06-01 Martin Liska <mliska@suse.cz>
24221
24222 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24223 to header file.
24224 * alloc-pool.h (pool_allocator::pool_allocator): New function.
24225 (pool_allocator::release): Likewise.
24226 (inline pool_allocator::release_if_empty): Likewise.
24227 (inline pool_allocator::~pool_allocator): Likewise.
24228 (pool_allocator::allocate): Likewise.
24229 (pool_allocator::remove): Likewise.
24230
24231 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24232
24233 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24234 in comment.
24235
24236 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24237
24238 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24239 to fusible_ops.
24240 * config/arm/arm.c (arm_print_tune_info): Likewise.
24241 (arm_macro_fusion_p): Likewise.
24242 (arm_macro_fusion_pair_p): Likewise.
24243
24244 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24245
24246 * config/aarch64/aarch64-protos.h (tune_params): Rename
24247 fuseable_ops to fusible_ops.
24248 * config/aarch64/aarch64.c (generic_tunings): Rename
24249 fuseable_ops to fusible_ops.
24250 (cortexa53_tunings): Likewise.
24251 (cortexa57_tunings): Likewise.
24252 (thunderx_tunings): Likewise.
24253 (xgene1_tunings): Likewise.
24254 (aarch64_macro_fusion_p): Likewise.
24255 (aarch64_macro_fusion_pair_p): Likewise.
24256
24257 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
24258
24259 * config/s390/driver-native.c: New file.
24260 * config/s390/x-native: New file.
24261 * config.host: Add new files for s390.
24262 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24263 and -march=native
24264 * config.gcc: Likewise.
24265 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24266 * config/s390/s390-opts.h (enum processor_type): Ditto.
24267 * config/s390/s390.c (s390_option_override): Catch unhandled
24268 PROCESSOR_NATIVE
24269
24270 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
24271
24272 PR target/65527
24273 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24274 redirection for instrumented calls.
24275 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24276 (append_compiler_options): Append -fcheck-pointer-bounds.
24277 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24278 (chkp_redirect_edge): New.
24279 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24280 (chkp_redirect_edge): New.
24281
24282 2015-06-01 Richard Biener <rguenther@suse.de>
24283
24284 PR tree-optimization/66280
24285 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24286 def-use walking.
24287
24288 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24289
24290 * config/aarch64/aarch64.md
24291 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24292 logic_shift_imm.
24293
24294 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24295
24296 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24297 Remove obsolete kludge.
24298
24299 2015-06-01 Richard Biener <rguenther@suse.de>
24300
24301 * tree-ssa-reassoc.c (get_rank): Simplify.
24302
24303 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
24304
24305 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24306 * configure: Regenerated.
24307
24308 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
24309
24310 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24311 issue (add space between string literal and macro).
24312 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24313
24314 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24315
24316 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24317 implict or explicit -fPIE or -fpie.
24318
24319 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24320
24321 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24322
24323 2015-05-28 DJ Delorie <dj@redhat.com>
24324
24325 * expmed.c (extract_bit_field_1): Avoid clobbering a
24326 yet-to-be-used base/index register.
24327
24328 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24329
24330 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24331 (alias_stats): Add num_universal.
24332 (alias_set_subset_of): Special case pointers; be ready for NULL
24333 children.
24334 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24335 children.
24336 (init_alias_set_entry): Break out from ...
24337 (record_alias_subset): ... here; propagate new fields;
24338 allocate children only when really needed.
24339 (get_alias_set): Do less generous pointer globbing.
24340 (dump_alias_stats_in_alias_c): Update statistics.
24341
24342 2015-05-30 Alan Modra <amodra@gmail.com>
24343
24344 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24345 correct block for use of r12.
24346 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24347
24348 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24349
24350 PR target/66215
24351 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24352 with -mhotpatch=.
24353
24354 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24355
24356 PR tree-optimization/66142
24357 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24358 virtual phis that feed themselves.
24359
24360 2015-05-29 Richard Biener <rguenther@suse.de>
24361
24362 PR tree-optimization/66314
24363 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24364 parameter that says which loop the new block belongs to.
24365 (ssa_create_duplicates): Blocks duplicated for the threaded
24366 path belong to the loop of the thread destination.
24367
24368 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24369
24370 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24371 to cleanup-saved-temps.
24372 * doc/sourcebuild.texi (Clean up generated test files): Expand
24373 introduction.
24374 (dg-keep-saved-temps): Document new proc.
24375 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24376 cleanup-saved-temps): Remove.
24377
24378 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24379
24380 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24381 gcc_AC_CHECK_DECLS.
24382 * configure: Regenerate.
24383
24384 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24385
24386 * config/nios2/linux.h (CPP_SPEC): Define.
24387
24388 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24389
24390 * config/microblaze/linux.h (CPP_SPEC): Define.
24391
24392 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24393
24394 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24395 -pthread is specified.
24396
24397 2015-05-28 Richard Biener <rguenther@suse.de>
24398
24399 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24400 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24401 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24402 after pattern recog.
24403 (vect_create_epilog_for_reduction): Properly handle reductions
24404 with patterns.
24405 (vectorizable_reduction): Likewise.
24406 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24407 reduction chains.
24408 (vect_get_constant_vectors): Create the correct number of
24409 initial values for reductions.
24410 (vect_schedule_slp_instance): Handle reduction chains that are
24411 type changing properly.
24412 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24413
24414 2015-05-28 Richard Biener <rguenther@suse.de>
24415
24416 PR tree-optimization/66142
24417 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24418 values better in memcpy destination handling. Handle non-aliasing
24419 we discover here.
24420
24421 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24422
24423 PR target/63810
24424 * config/darwin-c.c (version_components): New global enum.
24425 (parse_version, version_as_legacy_macro)
24426 (version_as_modern_macro, macosx_version_as_macro): New functions.
24427 (version_as_macro): Remove.
24428 (darwin_cpp_builtins): Use new function.
24429
24430 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24431
24432 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24433 with ATTRIBUTE_UNUSED.
24434
24435 2015-05-28 Julian Brown <julian@codesourcery.com>
24436
24437 PR libgomp/65742
24438
24439 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24440 sequence for !ACCEL_COMPILER.
24441
24442 2015-05-28 Nick Clifton <nickc@redhat.com>
24443
24444 * config/rx/rx.c (push_regs): New function. Extracts code from...
24445 (rx_expand_prologue): ... here. Use push_regs to push even small
24446 spans of registers.
24447 (pop_regs): New function.
24448 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24449 registers.
24450
24451 2015-05-28 Richard Biener <rguenther@suse.de>
24452
24453 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24454 member.
24455 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24456 (vect_update_slp_costs_according_to_vf): Likewise.
24457 (vect_slp_analyze_operations): Update prototype.
24458 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24459 vect_update_slp_costs_according_to_vf, adjust.
24460 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24461 (vect_analyze_slp_cost_1): Likewise.
24462 (vect_analyze_slp_cost): Likewise. Properly deal with
24463 widening reduction ops. Commit body costs.
24464 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24465 cost for loops from here.
24466 (vect_slp_analyze_operations): But do it from here when
24467 the vectorization factor is known and stmts are analyzed.
24468 (vect_bb_vectorization_profitable_p): Simplify.
24469 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24470 (vect_update_slp_costs_according_to_vf): Remove.
24471
24472 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24473 H.J. Lu <hongjiu.lu@intel.com>
24474
24475 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24476 (BUILD_CFLAGS): Likewise.
24477 (BUILD_CXXFLAGS): Likewise.
24478 (LINKER): Add @NO_PIE_FLAG@.
24479 (BUILD_LDFLAGS): Likewise.
24480 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24481 --enable-default-pie.
24482 * common.opt (fPIE): Initialize to -1.
24483 (fpie): Likewise.
24484 (no-pie): New option.
24485 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24486 * configure.ac: Add --enable-default-pie.
24487 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
24488 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
24489 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
24490 * gcc.c (NO_PIE_SPEC): New.
24491 (PIE_SPEC): Likewise.
24492 (NO_FPIE1_SPEC): Likewise.
24493 (FPIE1_SPEC): Likewise.
24494 (NO_FPIE2_SPEC): Likewise.
24495 (FPIE2_SPEC): Likewise.
24496 (NO_FPIE2_SPEC): Likewise.
24497 (FPIE_SPEC): Likewise.
24498 (NO_FPIE_SPEC): Likewise.
24499 (NO_FPIC1_SPEC): Likewise.
24500 (FPIC1_SPEC): Likewise.
24501 (NO_FPIC2_SPEC): Likewise.
24502 (FPIC2_SPEC): Likewise.
24503 (NO_FPIC2_SPEC): Likewise.
24504 (FPIC_SPEC): Likewise.
24505 (NO_FPIC_SPEC): Likewise.
24506 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24507 (FPIE1_OR_FPIC1_SPEC): Likewise.
24508 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24509 (FPIE2_OR_FPIC2_SPEC): Likewise.
24510 (NO_FPIE_AND_FPIC_SPEC): Likewise.
24511 (FPIE_OR_FPIC_SPEC): Likewise.
24512 (LD_PIE_SPEC): Likewise.
24513 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
24514 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24515 * config/darwin.h (PIE_SPEC): Renamed to ...
24516 (DARWIN_PIE_SPEC): This.
24517 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24518 * config/darwin9.h (PIE_SPEC): Renamed to ...
24519 (DARWIN_PIE_SPEC): This.
24520 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24521 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24522 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24523 FPIE2_OR_FPIC2_SPEC.
24524 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24525 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24526 * config/sol2.h (ASM_PIC_SPEC): Likewise.
24527 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24528 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24529 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24530 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24531 * config/m32r/m32r.h (ASM_SPEC): Likewise.
24532 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24533 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24534 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24535 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24536 * config/sparc/linux.h (ASM_SPEC): Likewise.
24537 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24538 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24539 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24540 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24541 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24542 * config/sparc/sparc.h (ASM_SPEC): Likewise.
24543 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24544 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24545 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24546 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24547 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24548 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24549 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24550 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24551 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24552 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24553 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24554 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24555 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24556 * config/vax/linux.h (ASM_SPEC): Likewise.
24557 * doc/install.texi: Document --enable-default-pie.
24558 * doc/invoke.texi: Document -no-pie.
24559 * config.in: Regenerated.
24560 * configure: Likewise.
24561
24562 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24563
24564 PR rtl-optimization/66168
24565 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24566 can_move_invariant_reg.
24567
24568 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
24569
24570 PR target/66148
24571 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24572 REG_EQUAL note when doing insert.
24573
24574 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24575 instead of "%d" for 'o' operand.
24576
24577 2015-05-27 Nathan Sidwell <nathan@acm.org>
24578
24579 PR c++/66270
24580 * tree.c (build_pointer_type_for_mode): Canonical type does not
24581 inherit can_alias_all.
24582 (build_reference_type_for_mode): Likewise.
24583
24584 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
24585
24586 * expr.h (array_at_struct_end_p): Move to...
24587 (array_ref_element_size): Likewise.
24588 (component_ref_field_offset): Likewise.
24589 * tree.h (array_ref_element_size): ...here.
24590 (array_at_struct_end_p): Likewise.
24591 (component_ref_field_offset): Likewise.
24592 * expr.c (array_ref_element_size): Move to...
24593 (array_ref_low_bound): Likewise.
24594 (array_at_struct_end_p): Likewise.
24595 (array_ref_up_bound): Likewise.
24596 (component_ref_field_offset): Likewise.
24597 * tree.c (array_ref_element_size): ...here.
24598 (array_ref_low_bound): Likewise.
24599 (array_ref_up_bound): Likewise.
24600 (array_at_struct_end_p): Likewise.
24601 (component_ref_field_offset): Likewise.
24602
24603 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24604 Szabolcs Nagy <szabolcs.nagy@arm.com>
24605
24606 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24607
24608 2015-05-27 Jason Merrill <jason@redhat.com>
24609
24610 PR bootstrap/66304
24611 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24612 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24613 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24614
24615 2015-05-22 Aditya Kumar <hiraditya@msn.com>
24616
24617 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24618 is true.
24619
24620 * statistics.c (statistics_fini_pass): Print pass name.
24621
24622 2015-05-27 Richard Biener <rguenther@suse.de>
24623
24624 PR tree-optimization/66272
24625 Revert parts of
24626 2014-08-15 Richard Biener <rguenther@suse.de>
24627
24628 PR tree-optimization/62031
24629 * tree-data-ref.c (dr_analyze_indices): Do not set
24630 DR_UNCONSTRAINED_BASE.
24631 (dr_may_alias_p): All indirect accesses have to go the
24632 formerly DR_UNCONSTRAINED_BASE path.
24633 * tree-data-ref.h (struct indices): Remove
24634 unconstrained_base member.
24635 (DR_UNCONSTRAINED_BASE): Remove.
24636
24637 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
24638
24639 * dwarf2out.c: Remove block_map.
24640 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24641 (gen_lexical_block_die): Same.
24642 (dwarf2out_function_decl): Remove block_map use.
24643 (dwarf2out_c_finalize): Same.
24644 * tree-core.h (struct tree_block): Add die field.
24645 * tree.h (BLOCK_DIE): New.
24646
24647 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24648
24649 PR target/65358
24650 * expr.c (memory_load_overlap): New function.
24651 (emit_push_insn): When pushing partial args to the stack would
24652 clobber the register part load the overlapping part into a pseudo
24653 and put it into the hard reg after pushing. Change return type
24654 to bool. Add bool argument.
24655 * expr.h (emit_push_insn): Change return type to bool.
24656 Add bool argument.
24657 * calls.c (expand_call): Cancel sibcall optimization when encountering
24658 partial argument on targets with ARGS_GROW_DOWNWARD and
24659 !STACK_GROWS_DOWNWARD.
24660 (emit_library_call_value_1): Update callsite of emit_push_insn.
24661 (store_one_arg): Likewise.
24662
24663 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24664
24665 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24666
24667 2015-05-27 Martin Liska <mliska@suse.cz>
24668
24669 * Makefile.in: Add additional dependencies related to memory report
24670 enhancement.
24671 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24672 * bitmap.c (struct bitmap_descriptor_d): Remove.
24673 (struct loc): Likewise.
24674 (struct bitmap_desc_hasher): Likewise.
24675 (bitmap_desc_hasher::hash): Likewise.
24676 (bitmap_desc_hasher::equal): Likewise.
24677 (get_bitmap_descriptor): Likewise.
24678 (bitmap_register): User new memory descriptor API.
24679 (register_overhead): Likewise.
24680 (bitmap_find_bit): Register nsearches and search_iter statistics.
24681 (struct bitmap_output_info): Remove.
24682 (print_statistics): Likewise.
24683 (dump_bitmap_statistics): Use new memory descriptor.
24684 * bitmap.h (struct bitmap_usage): New class.
24685 * genmatch.c: Extend header file inclusion.
24686 * genpreds.c: Likewise.
24687 * ggc-common.c (struct ggc_usage): New class.
24688 (struct ggc_loc_desc_hasher): Remove.
24689 (ggc_loc_desc_hasher::hash): Likewise.
24690 (ggc_loc_desc_hasher::equal): Likewise.
24691 (struct ggc_ptr_hash_entry): Likewise.
24692 (struct ptr_hash_hasher): Likewise.
24693 (ptr_hash_hasher::hash): Likewise.
24694 (ptr_hash_hasher::equal): Likewise.
24695 (make_loc_descriptor): Likewise.
24696 (ggc_prune_ptr): Likewise.
24697 (dump_ggc_loc_statistics): Use new memory descriptor.
24698 (ggc_record_overhead): Likewise.
24699 (ggc_free_overhead): Likewise.
24700 (final_cmp_statistic): Remove.
24701 (cmp_statistic): Likewise.
24702 (ggc_add_statistics): Liekwise.
24703 (ggc_prune_overhead_list): Likewise.
24704 * hash-map-traits.h: New file.
24705 * hash-map.h (struct default_hashmap_traits): Move the traits to a
24706 separate header file.
24707 * hash-set.h: Pass memory statistics info to ctor.
24708 * hash-table.c (void dump_hash_table_loc_statistics): New function.
24709 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24710 (hash_table::~hash_table): Register memory release operation.
24711 (hash_table::alloc_entries): Handle memory allocation operation.
24712 (hash_table::expand): Likewise.
24713 * inchash.c (iterative_hash_hashval_t): Move implementation to header
24714 file.
24715 (iterative_hash_host_wide_int): Likewise.
24716 * inchash.h (class hash): Likewise.
24717 * mem-stats-traits.h: New file.
24718 * mem-stats.h: New file.
24719 (mem_location): Add new class.
24720 (mem_usage): Likewise.
24721 (mem_alloc_description): Likewise.
24722 * sese.c: Add new header file inclusision.
24723 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24724 and hash_set.
24725 * tree-sra.c: Add new header file inclusision.
24726 * vec.c (struct vec_descriptor): Remove.
24727 (hash_descriptor): Likewise.
24728 (struct vec_usage): Likewise.
24729 (struct ptr_hash_entry): Likewise.
24730 (hash_ptr): Likewise.
24731 (eq_ptr): Likewise.
24732 (vec_prefix::register_overhead): Use new memory descriptor API.
24733 (vec_prefix::release_overhead): Likewise.
24734 (add_statistics): Remove.
24735 (dump_vec_loc_statistics): Use new memory descriptor API.
24736 * vec.h (struct vec_prefix): Likewise.
24737 (va_heap::reserve): Likewise.
24738 (va_heap::release): Likewise.
24739 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24740
24741 2015-05-27 Richard Biener <rguenther@suse.de>
24742
24743 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24744 earlier and remove ??? comment.
24745 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24746 and got called from loop analysis bail out. Always pass the SLP
24747 node to the vectorizable_* functions.
24748 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24749 the premature SLP check here.
24750 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24751 detected SLP stmts.
24752 (vect_detect_hybrid_slp_1): Likewise.
24753
24754 2015-05-26 Jeff Law <law@redhat.com>
24755
24756 * combine.c (find_split_point): Verify that the shift count is a
24757 constant when choosing (plus (ashift ...)) as a split point.
24758
24759 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24760 No functional changes.
24761
24762 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
24763
24764 * ipa-polymorphic-call.c
24765 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24766 case when call target is already known.
24767
24768 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
24769
24770 PR target/65979
24771 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24772 take into account the case that operands[1] and operands[2]
24773 are the same register.
24774
24775 2015-05-26 Michael Matz <matz@suse.de>
24776
24777 PR middle-end/66251
24778
24779 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24780 stores.
24781 (vect_create_vectorized_demotion_stmts): Always set
24782 STMT_VINFO_VEC_STMT, also with SLP.
24783 (vectorizable_store): Handle strided group stores.
24784
24785 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24786
24787 PR target/66049
24788 * config/aarch64/aarch64.md
24789 (*adds_shift_imm_<mode>): New pattern.
24790 (*subs_shift_imm_<mode>): Likewise.
24791 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24792 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24793 (*add_uxt<mode>_shift2): Likewise.
24794 (*add_uxtsi_shift2_uxtw): Likewise.
24795 (*sub_uxt<mode>_shift2): Likewise.
24796 (*sub_uxtsi_shift2_uxtw): Likewise.
24797
24798 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
24799
24800 * config/rs6000/constraints.md (Y, U): Use match_test.
24801
24802 2015-05-26 Christian Bruel <christian.bruel@st.com>
24803
24804 PR target/52144
24805 * config/arm/arm.c (arm_option_check_internal)
24806 (arm_option_params_internal): Check opts->target_flags to set macros.
24807 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24808 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24809 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24810 (builtin_define): Replaced with def_or_undef_macro.
24811 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24812 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24813 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24814 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24815 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24816 (TARGET_ARM_FEATURE_LDREX_P)
24817 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24818 * config/arm/arm-c.c (def_or_undef_macro): New function.
24819 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24820
24821 2015-05-26 Christian Bruel <christian.bruel@st.com>
24822
24823 * c-common.h (builtin_define_with_int_value)
24824 (builtin_define_type_sizeof): Declare.
24825 * c-cppbuiltin.c (builtin_define_with_int_value)
24826 (builtin_define_type_sizeof): Externalize.
24827 (builtin_define_std): Cleanup declaration.
24828 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24829 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24830 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24831 (builtin_define, builtin_assert): New macros.
24832
24833 2015-05-26 Richard Biener <rguenther@suse.de>
24834
24835 PR tree-optimization/66142
24836 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24837 MEM_REFs for the same base address.
24838
24839 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24840
24841 PR ipa/66181
24842 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24843
24844 2015-05-26 Jason Merrill <jason@redhat.com>
24845
24846 * configure.ac: Set CXXFLAGS for ISL test.
24847 * configure: Regenerate.
24848
24849 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
24850 strstr and basename.
24851 * configure: Regenerate.
24852
24853 2015-05-26 Richard Biener <rguenther@suse.de>
24854
24855 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24856 X % C -> X & (C - 1) for C being a power-of two to ...
24857 * match.pd: ... patterns.
24858
24859 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
24860
24861 * match.pd (swapped_tcc_comparison): New operator list.
24862 (-A CMP -B): New simplification.
24863 * fold-const.c (fold_comparison): Remove corresponding code.
24864
24865 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24866
24867 * caller-save.c (init_caller_save): Base temporary register numbers
24868 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24869 * cfgloopanal.c (init_set_costs): Likewise.
24870 * dojump.c (prefer_and_bit_test): Likewise.
24871 * expr.c (init_expr_target): Likewise.
24872 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24873 * lower-subreg.c (init_lower_subreg): Likewise.
24874 * postreload.c (reload_cse_regs_1): Likewise.
24875
24876 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24877
24878 * gensupport.h (compute_test_codes): Declare.
24879 * gensupport.c (compute_predicate_codes): Rename to...
24880 (compute_test_codes): ...this. Generalize error message.
24881 (process_define_predicate): Update accordingly.
24882 * genpreds.c (compute_maybe_allows): Delete.
24883 (add_constraint): Use compute_test_codes to determine whether
24884 something can accept a SUBREG, REG or MEM.
24885
24886 2015-05-26 Torvald Riegel <triegel@redhat.com>
24887
24888 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24889 'memory model' to align with C++11; fix description of memory orders;
24890 fix a few typos.
24891
24892 2015-05-26 Richard Biener <rguenther@suse.de>
24893
24894 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24895 (vect_analyze_loop_operations): ... here. Remove slp parameter,
24896 detect whether we apply SLP. Remove call to
24897 vect_update_slp_costs_according_to_vf.
24898 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24899 vect_update_slp_costs_according_to_vf from here. Dispatch
24900 to vect_slp_analyze_operations to analyze SLP stmts.
24901 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24902 unused bb_vec_info parameter, adjust assert.
24903 (vect_slp_analyze_operations): Pass in the slp instance tree
24904 instead of bb_vec_info.
24905 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24906 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24907
24908 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24909
24910 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24911 Q_REGS. Expand comment.
24912 (REG_CLASS_NAMES): Ditto.
24913 (REG_CLASS_CONTENTS): Ditto.
24914
24915 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
24916
24917 PR target/66274
24918 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24919 when LEGACY_INT_REGNO_P is processed.
24920
24921 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24922
24923 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24924
24925 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24926
24927 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24928 register if not marked dead/unused, before return.
24929
24930 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24931
24932 PR lto/66180
24933 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24934 is set; check for assembler name at LTO time.
24935 (type_in_anonymous_namespace): Remove hacks, check that all
24936 anonymous types are called "<anon>"
24937 (odr_type_p): Simplify; add check for "<anon>"
24938 (odr_subtypes_equivalent): Add odr_type_p check.
24939 * tree.c (need_assembler_name_p): Even anonymous namespace needs
24940 assembler name.
24941
24942 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24943
24944 * ipa-utils.h (method_class_type): Remove.
24945 * cgraphunit.c (walk_polymorphic_call_targets): Use
24946 TYPE_METHOD_BASETYPE.
24947 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24948 on main variants only.
24949 (method_class_type): Remove.
24950 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24951 (build_type_inheritance_graph): Likewise.
24952 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24953 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24954 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24955
24956 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24957
24958 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24959 is_typedef_decl, typedef_variant_p): Constify.
24960 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24961 is_typedef_decl, typedef_variant_p): Constify.
24962
24963 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24964
24965 * defaults.h (gen_tablejump): New function.
24966 (HAVE_tablejump): Add default value.
24967 * expr.c: Adjust.
24968 * stmt.c: Likewise.
24969
24970 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24971
24972 * defaults.h (gen_store_multiple): New function.
24973 (HAVE_store_multiple): Add default value.
24974 * expr.c (move_block_from_reg): Adjust.
24975
24976 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24977
24978 * defaults.h (gen_load_multiple): New function.
24979 (HAVE_load_multiple): Add default value.
24980 * expr.c (move_block_to_reg): Adjust.
24981
24982 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24983
24984 * defaults.h (gen_mem_signal_fence): New function.
24985 (HAVE_mem_signal_fence): Add default value.
24986 * optabs.c: Adjust.
24987
24988 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24989
24990 * defaults.h (gen_memory_barrier): New function.
24991 (HAVE_memory_barrier): Add default value.
24992 * optabs.c: Adjust.
24993
24994 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24995
24996 * defaults.h (gen_mem_thread_fence): New function.
24997 (HAVE_mem_thread_fence): Add default definition.
24998 * optabs.c: Adjust.
24999
25000 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25001
25002 * combine.c (find_split_point): Check the value of HAVE_lo_sum
25003 instead of if it is defined.
25004 (combine_simplify_rtx): Likewise.
25005 * lra-constraints.c (process_address_1): Likewise.
25006 * config/darwin.c: Adjust.
25007 * genconfig.c (main): Always define HAVE_lo_sum.
25008
25009 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25010
25011 * genmatch.c (parser::parse_operation): Reject expanding
25012 operator-list inside 'for'.
25013
25014 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25015
25016 * genmatch.c (parser::parse_for): Reject iterator if used as
25017 operator-list.
25018
25019 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25020
25021 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25022 after end of id-list.
25023
25024 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25025
25026 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25027 we do not try to compute canonical type for type that does not need
25028 alias set.
25029 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25030 FUNCITON_TYPE.
25031 * tree.h (type_with_alias_set_p): New.
25032
25033 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25034
25035 * tree.c (gimple_canonical_types_compatible_p): Do not compare
25036 function attributes.
25037 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25038
25039 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
25040
25041 * Makefile.in (check_gcc_parallelize): Delete.
25042 (lang_checks_parallelized): Update comment.
25043
25044 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
25045
25046 PR rtl-optimization/66237
25047 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25048 location of an "as_a" cast.
25049
25050 2015-05-22 Jeff Law <law@redhat.com>
25051
25052 * config/pa/pa.md (non-canonical shift-add insns): Remove.
25053 (peepholes with non-canonical RTL sources): Remove.
25054 (peepholes for indexed stores of FP regs in integer modes): Match and
25055 generate canonical RTL.
25056
25057 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25058
25059 PR tree-optimization/63387
25060 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25061 ((x ord x) & (y ord y) -> (x ord y),
25062 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25063 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25064 vectors like scalars.
25065
25066 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25067
25068 * convert.c (convert_to_integer, convert_to_vector): Include the
25069 types in the error message.
25070
25071 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25072
25073 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25074 simplifications.
25075
25076 2015-05-22 Jeff Law <law@redhat.com>
25077
25078 * config/pa/pa.md (integer_indexed_store splitters): Use
25079 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
25080 insns -- adjusting the constant 2nd operand accordingly.
25081
25082 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25083 (plus (ashift X log2) Y) if it is a split point.
25084
25085 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25086 out of hppa_legitimize_address to handle both forms of a multiply
25087 by 2, 4 or 8.
25088 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25089 Always generate the ASHIFT variant as the result is not directly
25090 used in a MEM. Update comments and refactor slightly to improve
25091 readability.
25092
25093 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25094
25095 PR target/65491
25096 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25097 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
25098 (aarch64_composite_type_p): Return false if given type and mode are
25099 for a short vector.
25100
25101 2015-05-22 Richard Biener <rguenther@suse.de>
25102
25103 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25104 member.
25105 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25106 patterns when determining whether SLP is pure.
25107 (vect_is_slp_reduction): Remove check for pattern stmts.
25108 (vect_is_simple_reduction_1): Remove dead code.
25109 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25110 (vect_get_and_check_slp_defs): Pass in the stmt number.
25111 Allow the first def in a reduction to be not a pattern stmt when
25112 the rest of the stmts def are patterns.
25113 (vect_build_slp_tree_1): Allow tcc_expression codes like
25114 SAD_EXPR and DOT_PROD_EXPR.
25115 (vect_build_slp_tree): Adjust.
25116 (vect_analyze_slp): Refactor and move BB vect error message ...
25117 (vect_slp_analyze_bb_1): ... here.
25118
25119 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
25120
25121 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25122 for CSWTCH temporary.
25123
25124 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25125
25126 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25127 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
25128 unknown unspecs.
25129
25130 2015-05-22 Richard Biener <rguenther@suse.de>
25131
25132 PR tree-optimization/66251
25133 * tree-vect-stmts.c (vectorizable_conversion): Properly
25134 set STMT_VINFO_VEC_STMT even for the SLP case.
25135
25136 2015-05-22 Marek Polacek <polacek@redhat.com>
25137
25138 * doc/extend.texi: Use @pxref instead of @xref.
25139
25140 2015-05-22 hiraditya <hiraditya@msn.com>
25141
25142 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25143 redundant if.
25144
25145 2015-05-22 Richard Biener <rguenther@suse.de>
25146
25147 PR tree-optimization/65701
25148 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25149 Move peeling cost models into one place. Peel for alignment
25150 for single loads only if an aligned load is cheaper than
25151 an unaligned load.
25152
25153 2015-05-22 Marek Polacek <polacek@redhat.com>
25154
25155 PR c/47043
25156 * doc/extend.texi (Enumerator Attributes): New section.
25157 Document syntax of enumerator attributes.
25158
25159 2015-05-22 Richard Biener <rguenther@suse.de>
25160
25161 * tree-vect-loop.c (get_reduction_op): New function.
25162 (vect_model_reduction_cost): Use it, add reduc_index parameter.
25163 Make ready for BB reductions.
25164 (vect_create_epilog_for_reduction): Use get_reduction_op.
25165 (vectorizable_reduction): Init reduc_index to a valid value.
25166 Adjust vect_model_reduction_cost call.
25167 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25168 operand for reduction defaults. Add SAD_EXPR support.
25169 Assert we have a neutral op for SLP reductions.
25170 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25171 walking pattern stmt ops only recurse to SSA names.
25172
25173 2015-05-22 Richard Biener <rguenther@suse.de>
25174
25175 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25176 assert with guard, remove check on detected reduction.
25177 (vect_recog_sad_pattern): Likewise.
25178 (vect_recog_widen_sum_pattern): Likewise.
25179
25180 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25181
25182 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25183 __always_inline__ attribute.
25184 (vaesdq_u8): Likewise.
25185 (vaesmcq_u8): Likewise.
25186 (vaesimcq_u8): Likewise.
25187 (vsha1cq_u32): Likewise.
25188 (vsha1mq_u32): Likewise.
25189 (vsha1pq_u32): Likewise.
25190 (vsha1h_u32): Likewise.
25191 (vsha1su0q_u32): Likewise.
25192 (vsha1su1q_u32): Likewise.
25193 (vsha256hq_u32): Likewise.
25194 (vsha256h2q_u32): Likewise.
25195 (vsha256su0q_u32): Likewise.
25196 (vsha256su1q_u32): Likewise.
25197 (vmull_p64): Likewise.
25198 (vmull_high_p64): Likewise.
25199
25200 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25201
25202 * final.c (final_scan_insn): Don't check HAVE_peephole with the
25203 preprocessor.
25204 * output.h: Likewise.
25205 * genconfig.c (main): Alwways define HAVE_peephole.
25206 * genpeep.c: Don't emit checks of HAVE_peephole.
25207
25208 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25209
25210 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25211 check HAVE_conditional_move with the preprocessor.
25212
25213 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25214
25215 * genconfig.c (main): Always define HAVE_conditional_move.
25216 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25217 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25218 is defined.
25219
25220 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25221
25222 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25223 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25224 and FRAME_POINTER_REGNUM with the preprocessor.
25225
25226 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25227
25228 * defaults.h: Add default for STACK_PUSH_CODE.
25229 * expr.c: Don't redefine STACK_PUSH_CODE.
25230 * recog.c: Likewise.
25231
25232 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25233
25234 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25235 sched-deps.c: Use if instead of preprocessor checks with
25236 STACK_GROWS_DOWNWARD.
25237
25238 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25239
25240 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25241 is defined.
25242 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25243 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25244 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25245 * doc/tm.texi: Regenerate.
25246
25247 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
25248
25249 PR target/66232
25250 * config/i386/constraints.md (Bg): New constraint for GOT memory
25251 operand.
25252 * config/i386/i386.md (*call_got_x32): New pattern.
25253 (*call_value_got_x32): Likewise.
25254 * config/i386/predicates.md (GOT_memory_operand): New predicate.
25255
25256 2015-05-21 Jakub Jelinek <jakub@redhat.com>
25257
25258 PR tree-optimization/66233
25259 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25260 Simplify.
25261
25262 2015-05-21 Jeff Law <law@redhat.com>
25263
25264 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25265 than MULT for shadd sequences.
25266
25267 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
25268
25269 * alias.c (alias_stats): New static var.
25270 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25271 (dump_alias_stats_in_alias_c): New function.
25272 * alias.h (dump_alias_stats_in_alias_c): Declare.
25273 * tree-ssa-alias.c (dump_alias_stats): Call it.
25274
25275 2015-05-08 Michael Matz <matz@suse.de>
25276
25277 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25278 to strided_p.
25279 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25280 (STMT_VINFO_STRIDED_P): ... this.
25281 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25282 (vect_verify_datarefs_alignment): Likewise.
25283 (vect_enhance_data_refs_alignment): Likewise.
25284 (vect_analyze_data_ref_access): Likewise.
25285 (vect_analyze_data_refs): Accept strided stores.
25286 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25287 (vect_model_load_cost): Adjust for macro rename.
25288 (vectorizable_mask_load_store): Likewise.
25289 (vectorizable_load): Likewise.
25290 (vectorizable_store): Open code strided stores.
25291
25292 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25293
25294 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25295 Document sqrt_insn.
25296
25297 2015-05-21 Richard Biener <rguenther@suse.de>
25298
25299 PR c++/66211
25300 * match.pd: Guard pattern optimzing (int)(float)int
25301 conversions to apply only on GIMPLE.
25302
25303 2015-05-21 Jeff Law <law@redhat.com>
25304
25305 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25306 multiply-accumulate/shift-add insn generation.
25307
25308 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
25309
25310 PR target/54236
25311 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25312 operands[1] are the same.
25313
25314 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25315
25316 PR middle-end/66221
25317 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25318 build_distinct_type_copy to copy bounds.
25319
25320 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25321
25322 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25323 Change to unsigned int.
25324
25325 2015-05-20 Jeff Law <law@redhat.com>
25326
25327 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25328 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25329 (pa_shadd_constant_p): Allow constants for shadd insns rather
25330 than valid scaling constants for memory addresses.
25331 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25332 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25333 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25334 (shift-add insns using ASHIFT): New patterns.
25335
25336 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25337
25338 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25339 feasible.
25340 (fix_up_fall_thru_edges): Likewise.
25341 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25342 from to rtx_insn to rtx_code_label where feasible.
25343 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25344 gen_move_insn (returned type changed to rtx_insn).
25345 * builtins.c (expand_errno_check): Fix arguments of
25346 do_compare_rtx_and_jump (now expects rtx_code_label).
25347 (expand_builtin_acc_on_device): Likewise.
25348 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25349 invert_jump (now exprects rtx_jump_insn).
25350 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25351 (construct_init_block): Use rtx_code_label.
25352 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25353 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25354 calling redirect_jump.
25355 (patch_jump_insn): Likewise.
25356 (redirect_branch_edge): Likewise.
25357 (force_nonfallthru_and_redirect): Likewise.
25358 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25359 when suitable.
25360 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25361 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25362 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25363 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25364 to store the value retured by gen_label_rtx.
25365 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25366 rtx_jump_insn.
25367 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25368 (split_branches): Fix calls of redirect_jump.
25369 * dojump.c (jumpifnot): Promote argument type from rtx to
25370 rtx_code_label.
25371 (jumpifnot_1): Likewise.
25372 (jumpif): Likewise.
25373 (jumpif_1): Likewise.
25374 (do_jump_1): Likewise.
25375 (do_jump): Likewise. Use rtx_code_label when feasible.
25376 (do_jump_by_parts_greater_rtx): Likewise.
25377 (do_jump_by_parts_zero_rtx): Likewise.
25378 (do_jump_by_parts_equality_rtx): Likewise.
25379 (do_compare_rtx_and_jump): Likewise.
25380 * dojump.h: Update function prototypes.
25381 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25382 returns rtx_insn).
25383 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25384 rtx_jump_insn.
25385 (emit_label_before): Likewise.
25386 (emit_jump_insn_after_noloc): Likewise.
25387 (emit_jump_insn_after_setloc): Likewise.
25388 (emit_jump_insn_after): Likewise
25389 (emit_jump_insn_before_setloc): Likewise.
25390 (emit_jump_insn_before): Likewise.
25391 (emit_label_before): Promote return type to rtx_code_label.
25392 (emit_label): Likewise.
25393 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25394 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25395 gen_move_insn.
25396 (emit_stack_restore): Likewise.
25397 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25398 (do_cmp_and_jump): Likewise.
25399 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25400 from rtx to rtx_code_label.
25401 (gen_move_insn_uncast): New function.
25402 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25403 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25404 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25405 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25406 invert_jump_1 and redirect_jump_1.
25407 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25408 do_compare_rtx_and_jump.
25409 (expand_addsub_overflow): Likewise.
25410 (expand_neg_overflow): Likewise.
25411 (expand_mul_overflow): Likewise.
25412 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25413 return value of gen_move_insn.
25414 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25415 * loop-doloop.c (add_test): Use rtx_code_label.
25416 (doloop_modify): Likewise.
25417 (doloop_optimize): Likewise.
25418 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25419 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25420 by gen_move_insn.
25421 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25422 (split_reg): Likewise.
25423 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25424 gen_move_insn.
25425 * optabs.c (expand_binop_directly): Remove casts of values returned by
25426 maybe_gen_insn.
25427 (expand_unop_direct): Likewise.
25428 (expand_abs): Likewise.
25429 (maybe_emit_unop_insn): Likewise.
25430 (maybe_gen_insn): Promote return type to rtx_insn.
25431 * optabs.h: Update prototype of maybe_gen_insn.
25432 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25433 redundant cast.
25434 * recog.c (struct peep2_insn_data): Promote type of insn field to
25435 rtx_insn.
25436 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25437 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25438 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25439 * recog.h (struct insn_gen_fn): Promote return types of function
25440 pointers and operator ().from rtx to rtx_insn.
25441 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25442 (fill_eager_delay_slots): Likewise.
25443 (relax_delay_slots): Likewise.
25444 (make_return_insns): Likewise.
25445 (dbr_schedule): Likewise.
25446 (optimize_skips): Likewise.
25447 (reorg_redirect_jump): Likewise.
25448 (fill_slots_from_thread): Likewise.
25449 * reorg.h: Update prototypes.
25450 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25451 rtx_jump_insn instead of check. Use it's jump_target method.
25452 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25453 (rtx_jump_insn::jump_target): Define new method.
25454 (rtx_jump_insn::set_jump_target): Define new method.
25455 * rtlanal.c (tablejump_p): Promote type of one local variable.
25456 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25457 (sched_analyze_insn): Likewise.
25458 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25459 (print_insn): Likewise.
25460 * stmt.c (label_rtx): Promote return type to rtx_insn.
25461 (force_label_rtx): Likewise.
25462 (jump_target_rtx): Define new function.
25463 (expand_label): Use it, get rid of one cast.
25464 (expand_naked_return): Promote rtx to rtx_code_label.
25465 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25466 (expand_case): Use rtx_code_label instread of rtx where feasible.
25467 (expand_sjlj_dispatch_table): Likewise.
25468 (emit_case_nodes): Likewise.
25469 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25470 * store-motion.c (insert_store): Make use of new return type of
25471 gen_move_insn and remove a cast.
25472 (replace_store_insn): Likewise.
25473
25474 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25475
25476 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25477 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25478
25479 2015-05-20 Jeff Law <law@redhat.com>
25480
25481 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25482 dispose of the jump thread path when the jump threading
25483 opportunity is cancelled.
25484
25485 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
25486
25487 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25488 when printing the caret character.
25489
25490 2015-05-20 Marek Polacek <polacek@redhat.com>
25491
25492 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25493
25494 2015-05-20 Marek Polacek <polacek@redhat.com>
25495
25496 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25497 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25498 * gimple-fold.c (canonicalize_bool): Likewise.
25499 (same_bool_result_p): Likewise.
25500 * tree-if-conv.c (parse_predicate): Likewise.
25501
25502 2015-05-20 Marek Polacek <polacek@redhat.com>
25503
25504 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25505 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25506
25507 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25508
25509 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25510 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25511 values.
25512
25513 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
25514
25515 * config/mips/mips.h (micromips_globals): Declare.
25516
25517 2015-05-20 David Malcolm <dmalcolm@redhat.com>
25518
25519 * timevar.def (TV_INITIALIZE_RTL): New.
25520 * toplev.c (initialize_rtl): Use an auto_timevar to account this
25521 function's time to TV_INITIALIZE_RTL.
25522
25523 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25524
25525 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25526 gimple_build_nop calls.
25527 (chkp_find_bounds_for_elem): Likewise.
25528 (chkp_get_zero_bounds): Likewise.
25529 (chkp_get_none_bounds): Likewise.
25530 (chkp_get_bounds_by_definition): Likewise.
25531 (chkp_generate_extern_var_bounds): Likewise.
25532 (chkp_get_bounds_for_decl_addr): Likewise.
25533 (chkp_get_bounds_for_string_cst): Likewise.
25534
25535 2015-05-20 Bin Cheng <bin.cheng@arm.com>
25536
25537 PR tree-optimization/65447
25538 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25539 (dump_use, dump_uses): Support to dump sub use.
25540 (record_use): New parameters to support sub use. Remove call to
25541 dump_use.
25542 (record_sub_use, record_group_use): New functions.
25543 (compute_max_addr_offset, split_all_small_groups): New functions.
25544 (group_address_uses, rewrite_use_address): New functions.
25545 (strip_offset): New declaration.
25546 (find_interesting_uses_address): Call record_group_use.
25547 (add_candidate): New assertion.
25548 (infinite_cost_p): Move definition forward.
25549 (add_costs): Check INFTY cost and return immediately.
25550 (get_computation_cost_at): Clear setup cost and dependent bitmap
25551 for sub uses.
25552 (determine_use_iv_cost_address): Compute cost for sub uses.
25553 (rewrite_use_address_1): Rename from old rewrite_use_address.
25554 (free_loop_data): Free sub uses.
25555 (tree_ssa_iv_optimize_loop): Call group_address_uses.
25556
25557 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25558 Jim Wilson <jim.wilson@linaro.org>
25559
25560 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25561 new fields loadv and storev.
25562 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25563 Initialize loadv and storev.
25564 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25565 (cortexa53_extra_costs): Likewise.
25566 (cortexa57_extra_costs): Likewise.
25567 (xgene1_extra_costs): Likewise.
25568 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25569 rtx_costs.
25570
25571 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25572
25573 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25574 storev.
25575 (cortexa8_extra_costs): Likewise.
25576 (cortexa5_extra_costs): Likewise.
25577 (cortexa7_extra_costs): Likewise.
25578 (cortexa12_extra_costs): Likewise.
25579 (cortexa15_extra_costs): Likewise.
25580 (v7m_extra_costs): Likewise.
25581
25582 2015-05-20 Jeff Law <law@redhat.com>
25583
25584 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25585 instead of open-coded version. Also delete the jump thread created
25586 within this function.
25587
25588 2015-05-20 Alan Modra <amodra@gmail.com>
25589
25590 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25591 stack adjusting insn. Formatting.
25592 (rs6000_emit_prologue): Track stack adjusting insn, and use of
25593 r12. If possible, emit first -fsplit-stack arg pointer insn
25594 before stack adjust. Don't use r12 to save cr if split-stack.
25595
25596 2015-05-20 Alan Modra <amodra@gmail.com>
25597
25598 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25599 Define.
25600 (rs6000_supports_split_stack): New function.
25601 * config/rs6000/rs6000.c (machine_function): Add
25602 split_stack_arg_pointer.
25603 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25604 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25605 rather than virtual_incoming_args_rtx.
25606 (rs6000_va_start): Likewise.
25607 (split_stack_arg_pointer_used_p): New function.
25608 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25609 (morestack_ref): New var.
25610 (gen_add3_const, rs6000_expand_split_stack_prologue,
25611 rs6000_internal_arg_pointer, rs6000_live_on_entry,
25612 rs6000_split_stack_space_check): New functions.
25613 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25614 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25615 (UNSPECV_SPLIT_STACK_RETURN): Define.
25616 (split_stack_prologue, load_split_stack_limit,
25617 load_split_stack_limit_di, load_split_stack_limit_si,
25618 split_stack_return, split_stack_space_check): New expands and insns.
25619 * config/rs6000/rs6000-protos.h
25620 (rs6000_expand_split_stack_prologue): Declare.
25621 (rs6000_split_stack_space_check): Declare.
25622
25623 2015-05-20 Alan Modra <amodra@gmail.com>
25624
25625 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25626 (direct_return): Test vrsave_size rather than vrsave_mask.
25627 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
25628 (rs6000_emit_epilogue): Likewise.
25629
25630 2015-05-20 Alan Modra <amodra@gmail.com>
25631
25632 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25633 when not saving registers.
25634 (debug_stack_info): Adjust to omit printing unused offsets,
25635 as before.
25636 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25637 expression.
25638
25639 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25640
25641 PR c++/65835
25642 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25643 value_type to const char *.
25644
25645 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
25646
25647 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25648 to build a biarch toolchain again.
25649
25650 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25651
25652 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25653 or implicit declarations.
25654 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25655 into it.
25656 (get_odr_type): Check type has linkage before adding bases.
25657 (register_odr_type): Check that type has linkage before adding it.
25658 (type_known_to_have_no_deriavations_p): Rename to ..
25659 (type_known_to_have_no_derivations_p): This one.
25660 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25661 (type_known_to_have_no_derivations_p): This one.
25662 * ipa-polymorphic-call.c
25663 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25664 type has linkage.
25665
25666 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25667
25668 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25669 (layout_type): Use RECORD_OR_UNION_TYPE_P.
25670
25671 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25672
25673 * config/s390/s390.c (s390_vector_bool_type_p): New function.
25674 (s390_invalid_binary_op): New function.
25675 (TARGET_INVALID_BINARY_OP): Define macro.
25676
25677 2015-05-19 David Sherwood <david.sherwood@arm.com>
25678
25679 * loop-invariant.c (create_new_invariant): Don't calculate address cost
25680 if mode is not a scalar integer.
25681 (get_inv_cost): Increase computational cost for unused invariants.
25682
25683 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25684
25685 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
25686 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
25687 * config/s390/s390-builtin-types.def: New file.
25688 * config/s390/s390-builtins.def: New file.
25689 * config/s390/s390-builtins.h: New file.
25690 * config/s390/s390-c.c: New file.
25691 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25692 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25693 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25694 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25695 prototypes.
25696 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25697 Include.
25698 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25699 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25700 variable definitions.
25701 (s390_const_operand_ok): New function.
25702 (s390_expand_builtin): Rewrite.
25703 (s390_init_builtins): New function.
25704 (s390_handle_vectorbool_attribute): New function.
25705 (s390_attribute_table): Add s390_vector_bool attribute.
25706 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25707 (s390_branch_condition_mask): Generate masks for new modes.
25708 (s390_expand_vec_compare_cc): New function.
25709 (s390_mangle_type): Add mangling for vector bool types.
25710 (enum s390_builtin): Remove.
25711 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25712 efpc builtins.
25713 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25714 s390_cpu_cpp_builtins.
25715 (REGISTER_TARGET_PRAGMAS): New macro.
25716 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25717 (insn_cmp mode attribute): Add new CC modes.
25718 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25719 (lcbb): New pattern definition.
25720 * config/s390/s390intrin.h: Include vecintrin.h.
25721 * config/s390/t-s390: New file.
25722 * config/s390/vecintrin.h: New file.
25723 * config/s390/vector.md: Include vx-builtins.md.
25724 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25725 support.
25726
25727 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25728
25729 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25730 CCVFHE.
25731 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25732 (s390_select_ccmode): Likewise.
25733 (s390_canonicalize_comparison): Swap operands if necessary.
25734 (s390_expand_vec_compare_scalar): Expand DFmode compare using
25735 single element vector instructions.
25736 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25737 (s390_branch_condition_mask): Generate CC masks for the new modes.
25738 * config/s390/s390.md (v0, vf, vd): New mode attributes.
25739 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25740 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25741 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25742 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25743 (*extend<DSF:mode><BFP:mode>2): New insn definition.
25744 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25745 (extend<DSF:mode><BFP:mode>2): Turn into expander.
25746 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25747 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25748 (sqrt<mode>2): Add vector instruction.
25749
25750 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25751
25752 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25753 constraints.
25754 * config/s390/predicates.md (const0_operand, constm1_operand)
25755 (constable_operand): Accept vector operands.
25756 * config/s390/s390-modes.def: Add supported vector modes.
25757 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25758 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25759 (s390_bytemask_vector_p, s390_expand_vec_strlen)
25760 (s390_expand_vec_compare, s390_expand_vcond)
25761 (s390_expand_vec_init): Add prototypes.
25762 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25763 (s390_vector_mode_supported_p): New function.
25764 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25765 (s390_contiguous_bitmask_vector_p): New function.
25766 (s390_bytemask_vector_p): New function.
25767 (s390_split_ok_p): Vector regs don't work either.
25768 (regclass_map): Add VEC_REGS.
25769 (s390_legitimate_constant_p): Handle vector constants.
25770 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25771 (legitimate_reload_vector_constant_p): New function.
25772 (s390_preferred_reload_class): Handle CONST_VECTOR.
25773 (s390_reload_symref_address): Likewise.
25774 (s390_secondary_reload): Vector memory instructions only support
25775 short displacements. Rename reload*_nonoffmem* to reload*_la*.
25776 (s390_emit_ccraw_jump): New function.
25777 (s390_expand_vec_strlen): New function.
25778 (s390_expand_vec_compare): New function.
25779 (s390_expand_vcond): New function.
25780 (s390_expand_vec_init): New function.
25781 (s390_dwarf_frame_reg_mode): New function.
25782 (print_operand): Handle addresses with 'O' and 'R' constraints.
25783 (NR_C_MODES, constant_modes): Add vector modes.
25784 (s390_output_pool_entry): Handle vector constants.
25785 (s390_hard_regno_mode_ok): Handle vector registers.
25786 (s390_class_max_nregs): Likewise.
25787 (s390_cannot_change_mode_class): New function.
25788 (s390_invalid_arg_for_unprototyped_fn): New function.
25789 (s390_function_arg_vector): New function.
25790 (s390_function_arg_float): Remove size variable.
25791 (s390_pass_by_reference): Handle vector arguments.
25792 (s390_function_arg_advance): Likewise.
25793 (s390_function_arg): Likewise.
25794 (s390_return_in_memory): Vector values are returned in a VR if
25795 possible.
25796 (s390_function_and_libcall_value): Handle vector arguments.
25797 (s390_gimplify_va_arg): Likewise.
25798 (s390_call_saved_register_used): Consider the arguments named.
25799 (s390_conditional_register_usage): Disable v16-v31 for non-vec
25800 targets.
25801 (s390_preferred_simd_mode): New function.
25802 (s390_support_vector_misalignment): New function.
25803 (s390_vector_alignment): New function.
25804 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25805 (TARGET_VECTOR_MODE_SUPPORTED_P)
25806 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25807 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25808 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25809 (TARGET_VECTOR_ALIGNMENT): Define target macro.
25810 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25811 (FIRST_PSEUDO_REGISTER): Increase value.
25812 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25813 (VECTOR_REG_P): Define macros.
25814 (FIXED_REGISTERS, CALL_USED_REGISTERS)
25815 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25816 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25817 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25818 Add vector registers.
25819 (CANNOT_CHANGE_MODE_CLASS): Call C function.
25820 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25821 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25822 memory.
25823 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25824 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25825 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25826 (VR*_REGNUM): New constants.
25827 (ALL): New mode iterator.
25828 (INTALL): Remove mode iterator.
25829 Include vector.md.
25830 (movti): Implement TImode moves for VRs.
25831 Disable TImode splitter for VR targets.
25832 Implement splitting TImode GPR<->VR moves.
25833 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25834 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25835 reload<mode>_la_in, reload<mode>_la_out.
25836 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25837 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25838 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25839 (mov<mode> SF SD): Prefer lder, lde for loading.
25840 Add lrl and strl instructions.
25841 Add vector instructions.
25842 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25843 Call s390_expand_vec_strlen on z13.
25844 (*cc_to_int): Change predicate to nonimmediate_operand.
25845 (addti3): Rename to *addti3. New expander.
25846 (subti3): Rename to *subti3. New expander.
25847 * config/s390/vector.md: New file.
25848
25849 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25850
25851 * common/config/s390/s390-common.c (processor_flags_table): Add
25852 z13.
25853 * config.gcc: Add z13.
25854 * config/s390/s390-opts.h (enum processor_type): Add
25855 PROCESSOR_2964_Z13.
25856 * config/s390/s390.c (s390_adjust_priority): Check for
25857 PROCESSOR_2964_Z13.
25858 (s390_reorg): Likewise.
25859 (s390_sched_reorder): Likewise.
25860 (s390_sched_variable_issue): Likewise.
25861 (s390_loop_unroll_adjust): Likewise.
25862 (s390_option_override): Likewise. Default to -mvx when available.
25863 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25864 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25865 (TARGET_VX_ABI): Define macros.
25866 macros.
25867 (TARGET_DEFAULT): Add MASK_OPT_VX.
25868 * config/s390/s390.md ("cpu" attribute): Add z13.
25869 ("cpu_facility" attribute): Add vec.
25870 * config/s390/s390.opt (processor_type): Add z13.
25871 (mvx): New options.
25872 * doc/invoke.texi: Add z13 option for -march.
25873
25874 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25875
25876 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25877 mode check to make sure that only scalar integer values are
25878 accepted.
25879
25880 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25881
25882 * tree.c (verify_type_variant): Fix #undef.
25883 (gimple_canonical_types_compatible_p): Move here from lto.c
25884 (verify_type): Verify TYPE_CANONICAL compatibility.
25885 * tree.h (gimple_canonical_types_compatible_p): Declare.
25886
25887 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25888
25889 PR middle-end/66199
25890 * tree.h (OMP_TEAMS_COMBINED): Define.
25891 * gimplify.c (enum gimplify_omp_var_data): Add
25892 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25893 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25894 (omp_notice_variable): Accept both ORT_TEAMS
25895 and ORT_COMBINED_TEAMS. Don't recurse if
25896 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25897 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25898 GOVD_FIRSTPRIVATE.
25899 (omp_no_lastprivate): New function.
25900 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25901 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25902 notice_outer and set appropriate bits, otherwise make
25903 sure default(none) combined constructs won't complain.
25904 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25905 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25906 omp_no_lastprivate either remove the clause or turn it
25907 into OMP_CLAUSE_PRIVATE.
25908 (gimplify_omp_for): Fix up handling of implicit
25909 lastprivate or linear iterators.
25910 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25911 ORT_COMBINED_TEAMS.
25912 * omp-low.c (lower_omp_for_lastprivate): For combined
25913 for simd use fd.loop.n2 from the for rather than simd.
25914
25915 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25916
25917 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25918 instead of gen_rtx_raw_REG.
25919 (cris_expand_epilogue): Likewise.
25920 * config/microblaze/microblaze.c (microblaze_classify_address):
25921 Likewise.
25922 * config/sparc/sparc.md: Likewise.
25923
25924 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
25925
25926 * config/alpha/alpha.c (alpha_legitimize_reload_address)
25927 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25928 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25929 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25930 Use CASE_CONST_SCALAR_INT.
25931 (print_operand) <case 'M'>: Use mode_width_operand to check the
25932 value of the constant.
25933 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25934 * config/alpha/predicates.md (input_operand): Use general_operand
25935 instead of match_code as operand check.
25936 (symbolic_operand): Use match_code with subexpression digits.
25937 * config/alpha/constraints.md (Q): Ditto.
25938
25939 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25940
25941 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25942
25943 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25944
25945 * config/s390/s390.c (s390_secondary_reload): Fix check for
25946 load/store relative.
25947
25948 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25949
25950 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
25951 alternative_mask to uint64_t.
25952
25953 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25954
25955 PR tree-optimization/66187
25956 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25957 Pass TYPE_SIGN to tree_int_cst_min_precision. If
25958 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25959
25960 2015-05-19 David Malcolm <dmalcolm@redhat.com>
25961
25962 * diagnostic.c (diagnostic_report_current_module): Strengthen
25963 local "new_map" from const line_map * to
25964 const line_map_ordinary *.
25965 * genmatch.c (error_cb): Likewise for local "map".
25966 (output_line_directive): Likewise for local "map".
25967 * input.c (expand_location_1): Likewise for local "map".
25968 Pass NULL rather than &map to
25969 linemap_unwind_to_first_non_reserved_loc, since the value is never
25970 read from there, and the value written back not read from here.
25971 (is_location_from_builtin_token): Strengthen local "map" from
25972 const line_map * to const line_map_ordinary *.
25973 (dump_location_info): Strengthen locals "map" from
25974 line_map *, one to const line_map_ordinary *, the other
25975 to const line_map_macro *.
25976 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25977 const line_map * to const line_map_macro *.
25978 (maybe_unwind_expanded_macro_loc): Add a call to
25979 linemap_check_macro when writing to the "map" field of the
25980 loc_map_pair.
25981 Introduce local const line_map_ordinary * "ord_map", using it in
25982 place of "map" in the part of the function where we know we have
25983 an ordinary map. Strengthen local "m" from const line_map * to
25984 const line_map_ordinary *.
25985
25986 2015-05-19 Nick Clifton <nickc@redhat.com>
25987
25988 PR target/66156
25989 * config/msp430/msp430.md (zero_extendhisi2): Add support for
25990 separate source and destination registers.
25991
25992 2015-05-19 Richard Biener <rguenther@suse.de>
25993
25994 PR tree-optimization/66165
25995 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25996 for no load permutation.
25997
25998 PR tree-optimization/66185
25999 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26000 when building the SLP node from scalars.
26001
26002 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26003 Tristan Gingold <gingold@adacore.com>
26004
26005 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26006 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26007 (expand_stack_restore): Call record_new_stack_level.
26008 (expand_stack_save): Do not call do_pending_stack_adjust.
26009 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26010 * calls.c (expand_call): Call record_new_stack_level for alloca.
26011 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26012 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26013 (update_sjlj_context): New global function.
26014 * except.h (update_sjlj_context): Declare.
26015 * explow.c (record_new_stack_level): New global function.
26016 (allocate_dynamic_stack_space): Call record_new_stack_level.
26017 * explow.h (record_new_stack_level): Declare.
26018 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26019 * cfgrtl.c (duplicate_insn_chain): Likewise.
26020
26021 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26022
26023 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26024 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26025 STACK_GROWS_DOWNWARD as normal if.
26026 (expand_call): Likewise.
26027
26028 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
26029
26030 PR target/54236
26031 * config/sh/sh.md (*round_int_even): New insn_and_split and
26032 accompanying new unnamed split.
26033
26034 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26035
26036 * bitmap.c (bitmap_set_range): Handle count==1 specially.
26037 (bitmap_clear_range): Likewise.
26038 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26039 bitmap_set_range unconditionally.
26040 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26041 * df-scan.c (df_mark_reg): Likewise.
26042 * haifa-sched.c (setup_ref_regs): Likewise.
26043 * sched-rgn.c (update_live_1): Likewise.
26044
26045 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26046
26047 * regs.h (END_HARD_REGNO): Delete.
26048 (END_REGNO): Move to...
26049 * rtl.h: ...here.
26050 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26051 * caller-save.c (mark_set_regs): Likewise.
26052 * combine.c (move_deaths, distribute_notes): Likewise.
26053 * cse.c (invalidate, invalidate_for_call): Likewise.
26054 * df-scan.c (df_ref_record): Likewise.
26055 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26056 (record_last_reg_set_info): Likewise.
26057 * reg-stack.c (convert_regs_exit): Likewise.
26058 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26059 * resource.c (update_live_status): Likewise.
26060 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26061
26062 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26063
26064 * rtl.h (reg_info): Add an nregs field.
26065 (REG_NREGS): Use it.
26066 (SET_REGNO_RAW): Delete.
26067 (set_regno_raw): New function.
26068 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26069 (END_REGNO): Redefine in terms of REG_NREGS.
26070 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26071 SET_REGNO_RAW.
26072 * emit-rtl.c (set_mode_and_regno): Likewise.
26073 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26074 instead of SET_REGNO_RAW.
26075
26076 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26077
26078 * rtl.h (PUT_MODE_RAW): New macro.
26079 (PUT_REG_NOTE_KIND): Use it.
26080 (set_mode_and_regno): Declare.
26081 (gen_raw_REG): Change regno to "unsigned int".
26082 (gen_rtx_REG): Change "unsigned" to "unsigned int".
26083 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26084 use set_mode_and_regno to change the mode of registers.
26085 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26086 * emit-rtl.c (set_mode_and_regno): New function.
26087 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
26088 * caller-save.c (reg_save_code): Use set_mode_and_regno.
26089 * expr.c (init_expr_target): Likewise.
26090 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26091 * postreload.c (reload_cse_simplify_operands): Likewise.
26092
26093 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26094
26095 * caller-save.c (init_caller_save): Use word_mode and
26096 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26097 * expr.c (init_expr_target): Likewise.
26098 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26099 * postreload.c (reload_cse_regs_1): Likewise.
26100
26101 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26102
26103 * rtl.def (REG): Change format to "r".
26104 * rtl.h (rtunion): Remove rt_reg.
26105 (reg_info): New structure.
26106 (rtx_def): Add reg field to main union.
26107 (X0REGATTR): Delete.
26108 (REG_CHECK): New macro.
26109 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26110 * rtl.c (rtx_format): Document "r".
26111 (rtx_code_size): Handle REG specially.
26112 * gengenrtl.c (special_format): Return true for formats
26113 that include 'r'.
26114 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26115 Deal with REG_ATTRS after the field loop.
26116 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26117 * expmed.c (init_expmed): Call gen_raw_REG instead of
26118 gen_rtx_raw_REG.
26119 * expr.c (init_expr_target): Likewise.
26120 * regcprop.c (maybe_mode_change): Likewise.
26121 * varasm.c (make_decl_rtl): Likewise.
26122 * final.c (leaf_renumber_regs_insn): Return early after
26123 handling REGs.
26124 * genemit.c (gen_exp): Handle 'r' fields.
26125 * genpeep.c (match_rtx): Likewise.
26126 * gensupport.c (subst_pattern_match): Likewise.
26127 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26128 (alter_constraints, subst_dup): Likewise.
26129 * read-rtl.c (read_rtx_code): Likewise.
26130 * print-rtl.c (print_rtx): Likewise.
26131 * genrecog.c (find_operand, find_matching_operand): Likewise.
26132 (validate_pattern, match_pattern_2): Likewise.
26133 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26134 (rtx_test::regno_field): New function.
26135 (operator ==, safe_to_hoist_p, transition_parameter_type)
26136 (parameter_type_string, print_parameter_value)
26137 (print_nonbool_test, print_test): Handle new enum values.
26138 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26139 * lra-constraints.c (operands_match_p): Likewise.
26140
26141 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26142
26143 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26144 Change type of new_regno to unsigned int.
26145 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26146 new_regno to unsigned int.
26147 (df_ref_change_reg_with_loc): Remove old_regno parameter.
26148 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
26149 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26150 (SET_REGNO_RAW): Add space after ",".
26151
26152 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26153
26154 * rtl.h (REG_NREGS): New macro
26155 * alias.c (record_set): Use it.
26156 * cfgcleanup.c (mark_effect): Likewise.
26157 * combine.c (likely_spilled_retval_1): Likewise.
26158 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26159 (move_deaths, distribute_notes): Likewise.
26160 * cselib.c (cselib_record_set): Likewise.
26161 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26162 * df-scan.c (df_mark_reg): Likewise.
26163 * dse.c (look_for_hardregs): Likewise.
26164 * dwarf2out.c (reg_loc_descriptor): Likewise.
26165 (multiple_reg_loc_descriptor): Likewise.
26166 * expr.c (write_complex_part, read_complex_part): Likewise.
26167 (emit_move_complex): Likewise.
26168 * haifa-sched.c (setup_ref_regs): Likewise.
26169 * ira-lives.c (mark_hard_reg_live): Likewise.
26170 * lra.c (lra_set_insn_recog_data): Likewise.
26171 * mode-switching.c (create_pre_exit): Likewise.
26172 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26173 (reload_combine_recognize_pattern): Likewise.
26174 (reload_combine_note_use, move2add_record_mode): Likewise.
26175 (reload_cse_move2add): Likewise.
26176 * reg-stack.c (subst_stack_regs_pat): Likewise.
26177 * regcprop.c (kill_value, copy_value): Likewise.
26178 (copyprop_hardreg_forward_1): Likewise.
26179 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26180 (build_def_use): Likewise.
26181 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26182 (deps_analyze_insn): Likewise.
26183 * sched-rgn.c (check_live_1, update_live_1): Likewise.
26184 * sel-sched.c (count_occurrences_equiv): Likewise.
26185 * valtrack.c (dead_debug_insert_temp): Likewise.
26186
26187 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26188
26189 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26190 * dse.c (note_add_store): Likewise.
26191 * ira-lives.c (mark_hard_reg_dead): Likewise.
26192 * loop-invariant.c (mark_reg_store): Likewise.
26193 (mark_reg_death): Likewise.
26194 * postreload.c (reload_combine): Likewise.
26195 (reload_combine_note_store): Likewise.
26196 (reload_combine_note_use): Likewise.
26197 * recog.c (peep2_reg_dead_p): Likewise.
26198
26199 2015-05-19 Alan Modra <amodra@gmail.com>
26200
26201 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26202 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26203 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26204 unused predicates.
26205 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26206 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
26207 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26208 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26209
26210 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
26211
26212 * config/mips/mips.md (JOIN_MODE): New mode iterator.
26213 (join2_load_Store<JOIN_MODE:mode>): New pattern.
26214 (join2_loadhi): Likewise.
26215 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26216 load-load and store-stores.
26217 * config/mips/mips.opt (mload-store-pairs): New option.
26218 (TARGET_LOAD_STORE_PAIRS): New macro.
26219 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26220 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26221 * config/mips/mips.c (mips_load_store_bonding_p): New function.
26222
26223 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
26224
26225 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26226 explicit swaps.
26227 * dojump.c (do_compare_rtx_and_jump): Likewise.
26228 * expmed.c (emit_store_flag_1): Likewise.
26229 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26230 * final.c (sprint_ul): Use std::reverse for reversing a string.
26231 * fold-const.c (extract_muldiv_1): Use std::swap.
26232 * genmodes.c (emit_mode_int_n): Likewise.
26233 * ifcvt.c (dead_or_predicable): Likewise.
26234 * ira-build.c (ira_merge_live_ranges): Likewise.
26235 (swap_allocno_copy_ends_if_necessary): Likewise.
26236 * ira.c (ira_setup_alts): Likewise.
26237 * loop-iv.c (iv_analyze_expr): Likewise.
26238 (implies_p): Likewise.
26239 (canon_condition): Likewise.
26240 * lra-constraints.c (swap_operands): Likewise.
26241 * lra-lives.c (lra_merge_live_ranges): Likewise.
26242 * omega.c (swap): Remove.
26243 (bswap): Remove.
26244 (omega_unprotect_1): Use std::swap.
26245 (omega_solve_geq): Likewise.
26246 * optabs.c (expand_binop_directly): Likewise.
26247 (expand_binop): Likewise.
26248 (emit_conditional_move): Likewise.
26249 (emit_conditional_add): Likewise.
26250 * postreload.c (reload_cse_simplify_operands): Likewise.
26251 * reg-stack.c (emit_swap_insn): Likewise.
26252 (swap_to_top): Likewise.
26253 (compare_for_stack_reg): Likewise.
26254 (subst_asm_stack_regs): Likewise.
26255 * reload.c (find_reloads): Likewise.
26256 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26257 * sel-sched.c (invoke_reorder_hooks): Likewise.
26258 (create_block_for_bookkeeping): Likewise.
26259 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26260 (lambda_matrix_right_hermite): Use std::swap.
26261 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26262 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26263 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26264 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26265 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26266 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26267 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26268 * tree-vrp.c (compare_ranges): Likewise.
26269 * var-tracking.c (add_with_sets): Likewise.
26270 (vt_find_locations): Likewise.
26271
26272 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
26273
26274 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26275 pie executables.
26276 (FBSD_ENDFILE_SPEC): Likewise.
26277 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26278 config/freebsd-spec.h.
26279 (ENDFILE_SPEC): Likewise.
26280
26281 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
26282 Richard Henderson <rth@redhat.com>
26283
26284 PR target/57032
26285 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26286 Check for a memory location that is not a reference (using an AND)
26287 to an unaligned location here.
26288 * config/alpha/predicates.md (normal_memory_operand): Remove.
26289
26290 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
26291
26292 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26293 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26294
26295 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
26296
26297 * config/mips/mips.c (micromips_globals): New variable.
26298 (mips_set_compression_mode): Save and reinitialize target-dependent
26299 state for microMIPS.
26300
26301 2015-05-18 Martin Liska <mliska@suse.cz>
26302
26303 * dbgcnt.def: Add new counter.
26304 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26305
26306 2015-05-18 Martin Liska <mliska@suse.cz>
26307
26308 * dbgcnt.def: Sort counters.
26309 * opts.c (common_handle_option): Do not compile if
26310 -fdbg-cnt-list is enabled.
26311
26312 2015-05-18 Tom de Vries <tom@codesourcery.com>
26313
26314 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26315 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26316 address operator to va_list operand.
26317 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26318 unconditionally.
26319 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26320 operand.
26321 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26322 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26323 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26324
26325 2015-05-18 Tom de Vries <tom@codesourcery.com>
26326
26327 * tree-ssa-tail-merge.c: Fix whitespace.
26328
26329 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26330
26331 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26332 cortex-a17, and cortex-a17.cortex-a7.
26333
26334 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26335
26336 PR target/54236
26337 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26338
26339 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26340
26341 PR target/66174
26342 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26343 QImode inner modes for TARGET_AVX512BW. Force mask operand
26344 to a register for AVX512F modes.
26345
26346 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26347
26348 * toplev.c (emit_debug_global_declarations): Do not output debug info
26349 when doing slim LTO objects.
26350
26351 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26352
26353 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26354 odr_types_equivalent_p): Declare.
26355 (odr_type_p): Use gcc_checking_assert.
26356 (type_in_anonymous_namespace_p) Declare.
26357 (type_with_linkage_p): Declare.
26358 * common.opt (Wlto-type-mismatch): New warning.
26359 * ipa-devirt.c (compound_type_base): New function.
26360 (odr_or_derived_type_p): New function.
26361 (odr_types_equivalent_p): New function.
26362 (add_type_duplicate): Simplify.
26363 (type_with_linkage_p): Add hack to prevent false positives on C types
26364 (type_in_anonymous_namespace_p): Likewise.
26365 * tree.c (need_assembler_name_p): Use type_with_linkage.
26366 * tree.h (type_in_anonymous_namespace_p): Remove.
26367 * doc/invoke.texi (-Wlto-type-mismatch): Document
26368
26369 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26370
26371 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26372 (verify_type): Verify STRING_FLAG.
26373
26374 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26375
26376 PR fortran/44054
26377 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26378 with accessor function.
26379 * tree-diagnostic.c (diagnostic_report_current_function): Use
26380 diagnostic_location function.
26381 (maybe_unwind_expanded_macro_loc): Likewise.
26382 (virt_loc_aware_diagnostic_finalizer): Likewise.
26383 (default_tree_printer): Replace locus pointer with accessor function.
26384 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26385 (diagnostic_set_info_translated): Initialize second location.
26386 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26387 (diagnostic_show_locus): Handle two locations. Call
26388 diagnostic_print_caret_line.
26389 (diagnostic_print_caret_line): New.
26390 (default_diagnostic_starter): Use diagnostic_location function.
26391 (diagnostic_report_diagnostic): Use diagnostic_location function.
26392 (verbatim): Do not set text.locus.
26393 * diagnostic.h (struct diagnostic_info): Remove location field.
26394 (struct diagnostic_context): Make caret_chars an array of two.
26395 (diagnostic_location): New inline.
26396 (diagnostic_expand_location): Handle two locations.
26397 (diagnostic_same_line): New inline.
26398 (diagnostic_print_caret_line): Declare.
26399 (CARET_LINE_MARGIN): New constant.
26400 * pretty-print.c (pp_printf): Do not set text.locus.
26401 (pp_verbatim): Do not set text.locus.
26402 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26403 (struct text_info): Replace locus pointer with locations
26404 array. Add accessor functions.
26405
26406 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26407 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26408
26409 PR target/65768
26410 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26411 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26412 large constants in register instead of splitting them.
26413
26414 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26415
26416 PR target/66140
26417 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26418 replacements in memory addresses.
26419 (get_unaligned_address): Ditto.
26420
26421 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26422
26423 * config/ft32/*: New files for FT32 port.
26424 * doc/install.texi: Add FT32 information.
26425 * doc/invoke.texi: Add FT32 information.
26426 * doc/md.texi: Add FT32 information.
26427 * doc/contrib.texi: Self added.
26428
26429 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26430
26431 PR tree-optimization/64454
26432 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26433 (-1 - A -> ~A): Remove unnecessary condition.
26434
26435 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26436
26437 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26438 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26439 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26440
26441 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26442
26443 * ipa-chkp.h (chkp_wrap_function): New.
26444 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26445 (chkp_wrap_function_name): New.
26446 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26447 to get wrapper name.
26448 * lto-cgraph.c: Include ipa-chkp.h.
26449 (input_cgraph_1): Avoid alias chain for wrappers.
26450
26451 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26452
26453 PR middle-end/66134
26454 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26455 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26456
26457 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26458
26459 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26460 (AARCH64_FL_SLOWMUL): Delete.
26461 (AARCH64_FL_CRC): Redefine to 1<<3.
26462 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26463
26464 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26465
26466 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26467 casting.
26468
26469 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26470
26471 * config/alpha/alpha.md (extendqidi2): Use general_operand
26472 instead of some_operand for operand[1] predicate.
26473 (extendhidi2): Ditto.
26474 (cbranchdi4): Use general_operand instead of some_operand
26475 for operand[1] and operands[2] predicates.
26476 (cstoredi4): Ditto.
26477 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26478 (some_ni_operand): Ditto.
26479
26480 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26481
26482 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26483 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
26484 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26485 low part of the constant using alpha_emit_set_const_1.
26486 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26487
26488 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
26489
26490 * varasm.c (output_constant_pool_1): Pass down alignment from
26491 constant pool entry's descriptor to output_constant_pool_2.
26492 (output_object_block): Add comment prior to call to
26493 output_constant_pool_1.
26494
26495 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
26496
26497 PR rtl-optimization/65862
26498 * target.def (ira_change_pseudo_allocno_class): New hook.
26499 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26500 value of the hook.
26501 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26502 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26503 hook.
26504 * ira-costs.c (find_costs_and_classes): Call the hook and change
26505 classes when it is necessary.
26506 * doc/tm.texi: Update.
26507
26508 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
26509
26510 * config/i386/i386.md (sibcall_memory): Check that register with
26511 callee address is not also used as one of the arguments, instead
26512 of checking that it is not live after the sibcall.
26513 (sibcall_pop_memory): Ditto.
26514 (sibcall_value_memory): Ditto.
26515 (sibcall_value_pop_memory): Ditto.
26516
26517 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
26518
26519 * generic-match-head.c (types_match): Handle non-types.
26520 * gimple-match-head.c (types_match): Likewise.
26521 * match.pd: Remove unnecessary TREE_TYPE for types_match.
26522
26523 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
26524
26525 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26526 (csneg3<mode>_insn): Enable expansion of pattern.
26527
26528 2015-05-14 Nick Clifton <nickc@redhat.com>
26529
26530 * config/rl78/rl78.c (rl78_select_section): Select the correct
26531 default section based upon the category of the decl.
26532
26533 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26534
26535 PR rtl-optimization/30967
26536 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26537 destination mode for the cost of scc patterns.
26538
26539 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26540
26541 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26542 using SWIM248 mode iterator.
26543 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26544 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
26545 for operand[2] constraint.
26546 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26547
26548 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26549
26550 PR middle-end/66133
26551 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26552 make sure it is never noreturn, even when the task body does not
26553 return.
26554 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26555 right before GIMPLE_OMP_RETURN.
26556 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26557 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
26558 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26559
26560 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26561
26562 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26563 * tree-ssa-math-opts.c: Include params.h
26564 (pow_synth_sqrt_info): New struct.
26565 (representable_as_half_series_p): New function.
26566 (get_fn_chain): Likewise.
26567 (print_nested_fn): Likewise.
26568 (dump_fractional_sqrt_sequence): Likewise.
26569 (dump_integer_part): Likewise.
26570 (expand_pow_as_sqrts): Likewise.
26571 (gimple_expand_builtin_pow): Use above to attempt to expand
26572 pow as series of square roots. Removed now unused variables.
26573
26574 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26575
26576 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26577 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26578 Remove *p0 and *p1 arguments. Rewrite function.
26579 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26580 (alpha_split_const_mov): Update calls to alpha_extract_integer and
26581 alpha_emit_set_long_const.
26582 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26583 (alpha_output_mi_thunk_osf): Ditto.
26584 * config/alpha/alpha.md (movti): Do not check operands[1]
26585 for CONST_DOUBLE.
26586
26587 2015-05-13 Richard Biener <rguenther@suse.de>
26588
26589 PR tree-optimization/66129
26590 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26591 commutative.
26592 (vect_schedule_slp_instance): Fix typo.
26593
26594 2015-05-13 David Malcolm <dmalcolm@redhat.com>
26595
26596 * common.opt (fdump-internal-locations): New option.
26597 * input.c: Include diagnostic-core.h.
26598 (get_end_location): New function.
26599 (write_digit): New function.
26600 (write_digit_row): New function.
26601 (dump_location_range): New function.
26602 (dump_labelled_location_range): New function.
26603 (dump_location_info): New function.
26604 * input.h (dump_location_info): New prototype.
26605 * toplev.c (compile_file): Handle flag_dump_locations.
26606
26607 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
26608
26609 * gimple-expr.h (is_gimple_constant): Reorder.
26610 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26611
26612 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26613
26614 * combine.c (simplify_set): When generating a CC set, if the
26615 source already is in the correct mode, do not wrap it in a
26616 compare. Simplify the rest of that code.
26617
26618 2015-05-13 Richard Biener <rguenther@suse.de>
26619
26620 PR tree-optimization/66123
26621 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26622 a taken edge.
26623
26624 2015-05-13 Richard Biener <rguenther@suse.de>
26625
26626 PR middle-end/66110
26627 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26628 specially.
26629 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26630
26631 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26632
26633 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26634 * aclocal.m4: Regenerated with automake-1.11.6.
26635
26636 2015-05-13 Tom de Vries <tom@codesourcery.com>
26637
26638 PR tree-optimization/66010
26639 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26640 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26641 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
26642 and rval based on do_deref.
26643
26644 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26645
26646 PR target/65103
26647 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26648 link time constants into adress expressions and therefore set
26649 their cost to 0.
26650
26651 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26652
26653 PR target/66112
26654 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26655 Use SWI248 iterator instead of SWI.
26656 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
26657 Use eq_attr "alternative" "0" instead of match_test in
26658 length_immediate attribute computation.
26659 (*mulvhi4, *mulvhi4_1): New define_insns.
26660
26661 PR target/66112
26662 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26663 SIGNED to get precision of non-negative value.
26664
26665 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26666
26667 PR target/66048
26668 * function.c (diddle_return_value_1): Process bounds first.
26669 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26670 register.
26671
26672 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26673
26674 PR rtl-optimization/64616
26675 * loop-invariant.c (can_move_invariant_reg): New.
26676 (move_invariant_reg): Call above new function to decide whether
26677 instruction can just be moved, skipping creation of temporary
26678 register.
26679
26680 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26681
26682 PR target/pr66047.c
26683 * i386.c (ix86_function_sseregparm): Only return -1 if local function
26684 with implied regparm is called from -mno-sse function.
26685 (init_cumulative_args): Output error if ix86_function_sseregparm
26686 return -1 and SSE register would be needed.
26687 (function_arg_advance_32): Likewise.
26688 (function_arg_32): Likewise.
26689 * i386.h (ix86_args): Add decl field.
26690
26691 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26692
26693 PR ipa/65873
26694 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26695 inlines across optimization boundary.
26696
26697 2015-05-12 Jason Merrill <jason@redhat.com>
26698
26699 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26700 string literal and macro name.
26701
26702 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
26703
26704 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26705 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26706 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26707
26708 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26709
26710 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26711 (-Wmisleading-indentation): New option.
26712 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26713
26714 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
26715
26716 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26717 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26718 (alpha_extract_integer): Ditto.
26719 (alpha_legitimate_constant_p): Ditto.
26720 (alpha_split_tmode_pair): Ditto.
26721 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26722 (alpha_expand_mov): Ditto.
26723 (print_operand): Remove handling of 'H' modifier.
26724 <case 'm'>: Remove CONST_DOUBLE handling.
26725 (summarize_insn): Handle CONST_WIDE_INT.
26726 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26727 (anddi3): Ditto.
26728 (movti): Handle CONST_WIDE_INT.
26729 * config/alpha/constraints.md ('H'): Remove constraint definition.
26730 ('G'): Do not match MODE_FLOAT class.
26731 * config/alpha/predicates.md (const0_operand): Also match
26732 const_wide_int.
26733 (non_add_const_operand): Ditto.
26734 (non_zero_const_operand): Ditto.
26735 (some_operand): Ditto.
26736 (input_operand): Ditto. Handle CONST_WIDE_INT.
26737 (and_operand): Do not match const_double.
26738 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26739
26740 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
26741
26742 PR target/65697
26743 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26744 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26745 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26746 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26747 is_mm_seq_cst, is_mm_sync): New accessor functions.
26748 * builtins.c (expand_builtin_sync_operation,
26749 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26750 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26751 (get_memmodel, expand_builtin_atomic_compare_exchange,
26752 expand_builtin_atomic_load, expand_builtin_atomic_store,
26753 expand_builtin_atomic_clear): Use new accessor routines.
26754 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26755 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26756 (maybe_emit_sync_lock_test_and_set): Use new accessors and
26757 MEMMODEL_SYNC_ACQUIRE.
26758 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26759 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26760 expand_atomic_store): Use new accessors.
26761 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26762 * tsan.c (instrument_builtin_call): Update check for memory model beyond
26763 final enum to use MEMMODEL_LAST.
26764 * c-family/c-common.c: Use new accessor for memmodel_base.
26765 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26766 accessors.
26767 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26768 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26769 mem_thread_fence, *dmb): Likewise.
26770 * config/alpha/alpha.c (alpha_split_compare_and_swap,
26771 alpha_split_compare_and_swap_12): Likewise.
26772 * config/arm/arm.c (arm_expand_compare_and_swap,
26773 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26774 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26775 atomic_loaddi): Likewise.
26776 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26777 Likewise.
26778 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26779 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26780 use new accessors.
26781 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26782 atomic_store<mode>, atomic_compare_and_swap<mode>,
26783 atomic_exchange<mode>): Use new accessors.
26784 * config/mips/mips.c (mips_process_sync_loop): Likewise.
26785 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26786 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26787 rs6000_post_atomic_barrier): Add new cases.
26788 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26789 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26790 (atomic_load<mode>): Add new cases and use new accessors.
26791 (store_quadpti): Add new cases.
26792 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26793 accessors.
26794 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26795 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26796 model, not 8.
26797
26798 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26799
26800 * ipa-devirt.c (type_with_linkage_p): New function.
26801 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26802 type has linkage.
26803 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26804 (can_be_name_hashed_p): Simplify.
26805 (hash_odr_name): Check that type has linkage before checking if it is
26806 anonymous.
26807 (types_same_for_odr): Likewise.
26808 (odr_name_hasher::equal): Likewise.
26809 (odr_subtypes_equivalent_p): Likewise.
26810 (warn_types_mismatch): Likewise.
26811 (get_odr_type): Likewise.
26812 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26813 * ipa-utils.h (odr_type_p): Move offline.
26814 * tree.c (need_assembler_name_p): Fix handling of types
26815 without linkages.
26816 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26817
26818 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26819
26820 * timevar.c (timevar_enable): Delete in favor of...
26821 (g_timer): New global.
26822 (struct timevar_def): Move to timevar.h inside class timer.
26823 (struct timevar_stack_def): Likewise.
26824 (timevars): Delete global in favor of field "m_timevars" within
26825 class timer in timevar.h
26826 (stack): Likewise, in favor of field "m_stack".
26827 (unused_stack_instances): Likewise, in favor of field
26828 "m_unused_stack_instances".
26829 (start_time): Likewise, in favor of field "m_start_time".
26830 (get_time): Eliminate check for timevar_enable.
26831 (timer::timer): New function, built from part of timevar_init.
26832 (timevar_init): Rewrite idempotency test from using
26833 "timevar_enable" bool to using dynamic allocation of "g_timer".
26834 Move rest of implementation into timer's constructor.
26835 (timevar_push_1): Rename to...
26836 (timer::push): ...this, adding "m_" prefixes to variables that
26837 are now fields of timer.
26838 (timevar_pop_1): Likewise, rename to...
26839 (timer::pop): ...this, and add "m_" prefixes.
26840 (timevar_start): Replace test for "timevar_enable" with one for
26841 "g_timer", and move bulk of implementation to...
26842 (timer::start): ...here, adding "m_" prefixes.
26843 (timevar_stop): Likewise, from here...
26844 (timer::stop): ...to here.
26845 (timevar_cond_start): Likewise, from here...
26846 (timer::cond_start): ...to here.
26847 (timevar_cond_stop): Likewise, from here...
26848 (timer::cond_stop): ...to here.
26849 (validate_phases): Rename to...
26850 (timer::validate_phases): ...this, and add "m_" prefixes. Make
26851 locals "total" and "tv" const.
26852 (timevar_print): Rename to...
26853 (timer::print): ...this, and add "m_" prefixes. Make locals
26854 "total" and "tv" const. Eliminate test for timevar_enable.
26855 * timevar.h (timevar_enable): Eliminate.
26856 (g_timer): New declaration.
26857 (timevar_push_1): Eliminate.
26858 (timevar_pop_1): Eliminate.
26859 (timevar_print): Eliminate.
26860 (class timer): New class.
26861 (timevar_push): Rewrite to use g_timer.
26862 (timevar_pop): Likewise.
26863 * toplev.c (toplev::~toplev): Likewise.
26864
26865 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
26866
26867 * arm-protos.h (arm_sched_autopref): Delete.
26868 (tune_params): Re-organize, use enums for flag values.
26869 (FUSE_OPS): New macro.
26870 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26871 (ARM_PREFETCH_BENEFICIAL): Likewise.
26872 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26873 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26874 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26875 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26876 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26877 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
26878 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26879 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26880 format.
26881 (arm_option_override, thumb2_reorg, arm_print_tune_info)
26882 (aarch_macro_fusion_pair_p): Update uses of current_tune.
26883 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26884
26885 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
26886
26887 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26888 "break".
26889
26890 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
26891 Sandra Loosemore <sandra@codesourcery.com>
26892
26893 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26894 value.
26895 (REG_CLASS_NAMES): Add "IJMP_REGS".
26896 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26897 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26898 use new "c" register constraint.
26899 * config/nios2/constraint.md (c): New register constraint
26900 corresponding to IJMP_REGS.
26901
26902 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26903
26904 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26905 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26906 define_splits): Delete, revamp, transmogrify into ...
26907 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26908 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26909 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26910 New.
26911
26912 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26913
26914 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26915 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26916
26917 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26918
26919 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26920 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26921 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26922 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26923 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26924 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26925 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26926 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26927 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26928 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26929 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26930 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26931 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26932 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26933 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26934 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26935 and 30 corresponding splitters): Delete.
26936
26937 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26938
26939 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26940 zero_extract.
26941
26942 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26943
26944 * combine.c (recog_for_combine_1): New function, factored out
26945 from recog_for_combine.
26946 (change_zero_ext): New function.
26947 (recog_for_combine): If recog fails, try again with the pattern
26948 modified by change_zero_ext; if that still fails, restore the
26949 pattern.
26950
26951 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26952
26953 * combine.c (get_undo_marker): New function.
26954 (undo_to_marker): New function, largely factored out from ...
26955 (undo_all): ... this. Adjust.
26956
26957 2015-05-12 Richard Biener <rguenther@suse.de>
26958
26959 PR tree-optimization/66101
26960 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26961 fixup if we turn a loop exit edge to a fallthru edge.
26962
26963 2015-05-12 Richard Biener <rguenther@suse.de>
26964
26965 PR tree-optimization/37021
26966 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26967 (SLP_TREE_TWO_OPERATORS): New define.
26968 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26969 SLP_TREE_TWO_OPERATORS.
26970 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26971 SLP node.
26972 (vect_build_slp_tree): Adjust.
26973 (vect_analyze_slp_cost_1): Likewise.
26974 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26975 emitting two vector stmts and mixing the results.
26976
26977 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26978
26979 * call.c (print_z_candidates): Remove dead code.
26980
26981 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26982
26983 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26984 and zEC12_simple_fp.
26985 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26986 to 1.
26987
26988 2015-05-12 Tom de Vries <tom@codesourcery.com>
26989
26990 PR tree-optimization/66010
26991 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26992 ifn_va_arg.
26993 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26994 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
26995 va_lists are passed, and remove corresponding handling.
26996 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
26997 do_deref argument to ifn_va_arg.
26998 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26999 ifn_va_arg.
27000
27001 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27002
27003 PR target/65955
27004 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27005 REG before taking its REGNO.
27006
27007 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27008
27009 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27010 rsp->sign_bit_copies and rsp->nonzero_bits into ...
27011 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
27012 present to get more accurate information about the number of sign bit
27013 copies and non zero bits.
27014
27015 2015-05-12 Richard Biener <rguenther@suse.de>
27016
27017 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27018 do not allow unrolling.
27019
27020 2015-05-11 Richard Henderson <rth@redhat.com>
27021
27022 * config/i386/i386-modes.def (CCP): New.
27023 * config/i386/i386.c (put_condition_code): Handle it.
27024 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27025
27026 2015-05-11 Richard Henderson <rth@redhat.com>
27027
27028 * target.def (md_asm_clobbers): Replace with...
27029 (md_asm_adjust): this.
27030 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27031 (TARGET_MD_ASM_ADJUST): New.
27032 * tm.texi: Rebuild.
27033 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27034 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27035 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27036
27037 * cfgexpand.c (check_operand_nalternatives): Accept vector of
27038 constraints instead of lists of outputs and inputs.
27039 (expand_asm_stmt): Save and restore input_location around the
27040 body of the function. Move asm data into vectors instead of
27041 building tree lists. Generate cleanup sequences as needed,
27042 rather than waiting til the end. Use new md_asm_adjust hook.
27043
27044 * config/vxworks.c: Include vec.h before target.h.
27045 * gimple.c: Likewise.
27046 * incpath.c: Likewise.
27047 * mode-switching.c: Likewise.
27048
27049 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27050 (cris_md_asm_adjust): this.
27051 (TARGET_MD_ASM_CLOBBERS): Remove.
27052 (TARGET_MD_ASM_ADJUST): New.
27053 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27054 (ix86_md_asm_adjust): this.
27055 (TARGET_MD_ASM_CLOBBERS): Remove.
27056 (TARGET_MD_ASM_ADJUST): New.
27057 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27058 (mn10300_md_asm_adjust): this.
27059 (TARGET_MD_ASM_CLOBBERS): Remove.
27060 (TARGET_MD_ASM_ADJUST): New.
27061 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27062 (rs6000_md_asm_adjust): this.
27063 (TARGET_MD_ASM_CLOBBERS): Remove.
27064 (TARGET_MD_ASM_ADJUST): New.
27065 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27066 (visium_md_asm_adjust): this.
27067 (TARGET_MD_ASM_CLOBBERS): Remove.
27068 (TARGET_MD_ASM_ADJUST): New.
27069
27070 2015-05-11 Richard Henderson <rth@redhat.com>
27071
27072 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27073 if noutputs is zero.
27074 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27075
27076 * cfgexpand.c (expand_asm_operands): Merge into...
27077 (expand_asm_stmt): ... here.
27078
27079 * cfgexpand.c (expand_asm_operands): Don't call
27080 resolve_asm_operand_names.
27081 * stmt.c (resolve_asm_operand_names): Clarify block comment.
27082
27083 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
27084
27085 * dwarf2out.c (gen_member_die): Sanity check that we access
27086 TYPE_MAIN_VARIANT for TYPE_METHODS.
27087 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27088 checking TYPE_METHODS.
27089 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27090 if non-null.
27091 (build_distinct_type_copy): Clear TYPE_METHODS.
27092 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27093 (verify_type): Allow TYPE_METHODS to be error_mark_node.
27094 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27095
27096 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
27097
27098 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27099 (emit_pattern_before_setloc): Likewise.
27100
27101 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27102
27103 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27104 for define_peephole2s.
27105 (get_peephole2_pattern): New function.
27106 (main): Use it. Call validate_pattern.
27107
27108 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27109
27110 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27111 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27112 (Last callee saved reg is different for AVR_TINY architecture)
27113
27114 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27115
27116 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27117 when looking for memory references.
27118
27119 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27120
27121 PR target/65753
27122 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27123 via function pointers.
27124
27125 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27126
27127 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27128 indirect call by forcing address into a pseudo with -fno-plt.
27129 * common.opt (flag_plt): New option.
27130 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27131 ([-fno-plt]): Document.
27132
27133 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
27134
27135 PR bootstrap/66105
27136 * config/rs6000/option-defaults.h: Add space between string literal
27137 and macro name.
27138
27139 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27140
27141 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27142 accross ARM targets.
27143
27144 2015-05-11 Christian Bruel <christian.bruel@st.com>
27145
27146 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27147 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27148
27149 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27150
27151 PR rtl-optimization/66076
27152 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27153 Don't grow the heap array if it is already big enough from a
27154 previous iteration.
27155
27156 2015-05-11 Christian Bruel <christian.bruel@st.com>
27157
27158 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27159 (is_called_in_ARM_mode): Remove.
27160 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27161 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27162 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27163 arm_declare_function_name.
27164
27165 2015-05-11 Christian Bruel <christian.bruel@st.com>
27166
27167 * config/arm/arm.c (arm_option_override): Reoganized and split into :
27168 (arm_option_params_internal); New function.
27169 (arm_option_check_internal): New function.
27170 (arm_option_override_internal): New function.
27171 (thumb_code, thumb1_code): Remove.
27172 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27173 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27174 (thumb_code, thumb1_code): Remove.
27175 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27176
27177 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27178
27179 * config/alpha/alpha.c (alpha_emit_set_const_1)
27180 (alpha_emit_set_long_const, alpha_extract_integer)
27181 (alpha_legitimate_constant_p, alpha_split_const_mov)
27182 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27183 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27184 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27185 HOST_WIDE_INT_1U.
27186 * config/alpha/predicates.md (mode_mask_operand): Do not match
27187 const_double RTX.
27188 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27189 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27190 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27191 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27192 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27193
27194 2015-05-11 Jakub Jelinek <jakub@redhat.com>
27195
27196 PR target/65780
27197 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27198 default_binds_local_p_2.
27199 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27200 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27201
27202 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27203
27204 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27205
27206 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27207
27208 Patch by Richard Biener
27209 * coverage.c (coverage_obj_init): Delay building of type variant
27210 until the type is finished.
27211
27212 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27213
27214 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27215 mismatch between C and C++ type; compoare correctly ARG_TYPES
27216 for non-prototypes and output correctly parameter index for METHOD_TYPE.
27217 (odr_types_equivalent_p): Fix wording of warning about attributes;
27218 it is OK to match prototype and non-prototype.
27219
27220 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27221
27222 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27223 TYPE_ARG_TYPES list.
27224 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27225 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27226
27227 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27228
27229 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27230 * tree.h (is_lang_specific): Constify.
27231
27232 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
27233
27234 PR tree-optimization/64454
27235 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27236 Rewrite.
27237
27238 2015-05-08 Jason Merrill <jason@redhat.com>
27239
27240 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27241 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27242 config/darwin.h, config/darwin9.h, config/elfos.h,
27243 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27244 config/microblaze/microblaze.h, config/mips/mips.h,
27245 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27246 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27247 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27248 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27249 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27250 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27251 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27252 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27253 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27254 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27255 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27256 between string literal and macro name.
27257
27258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27259
27260 * jump.c: Change argument types to rtx_insn *.
27261 * rtl.h: Adjust.
27262
27263 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27264
27265 * lra-constraints.c: Change argument type to rtx_insn *.
27266
27267 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27268
27269 * df-problems.c: Change argument type to rtx_insn *.
27270
27271 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27272
27273 * combine.c: Change argument type to rtx_insn *.
27274
27275 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27276
27277 * rtl.h: Adjust.
27278 * rtlanal.c: Change argument type to rtx_insn *.
27279
27280 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27281
27282 * sched-deps.c: Change argument types to rtx_insn *.
27283 * sched-int.h: Adjust.
27284
27285 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27286
27287 * dwarf2cfi.c: Change argument type to rtx_insn *.
27288
27289 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27290
27291 * ira.c (decrease_live_ranges_number): Changetype of local
27292 variable to rtx_insn *.
27293 * recog.c: Change argument types to rtx_insn *.
27294 * recog.h: Adjust.
27295
27296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27297
27298 * reorg.c: Change argument types to rtx_insn *.
27299
27300 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27301
27302 * ira-color.c: Change argument types to rtx_insn *.
27303 * lra-eliminations.c: Likewise.
27304 * ira.h: Adjust.
27305
27306 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27307
27308 * gcse.c: Change argument types to rtx_insn *.
27309
27310 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27311
27312 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27313
27314 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27315
27316 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27317 rtx_insn *.
27318 * rtl.h: Adjust.
27319
27320 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27321
27322 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27323 * rtl.h: Adjust.
27324
27325 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27326
27327 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27328 * rtl.h: Adjust.
27329
27330 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27331
27332 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27333 * rtl.h: Adjust.
27334
27335 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27336
27337 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27338 * rtl.h: Adjust.
27339
27340 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27341
27342 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27343 to rtx_insn *.
27344 * rtl.h: Adjust.
27345
27346 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27347
27348 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27349 to rtx_insn *.
27350 * rtl.h: Likewise.
27351
27352 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27353
27354 * except.c (can_nonlocal_goto): Change type of argument to
27355 rtx_insn *.
27356 * rtl.h: Adjust.
27357
27358 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27359
27360 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27361 * rtl.h: Adjust.
27362
27363 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27364
27365 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27366 * cfgrtl.c (can_delete_label_p): Adjust.
27367 * rtl.h: likewise.
27368
27369 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27370
27371 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27372
27373 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27374
27375 * except.c (make_reg_eh_region_note): Change argument to
27376 rtx_insn *.
27377 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27378 * except.h: Adjust.
27379
27380 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27381
27382 * mode-switching.c (commit_mode_sets): Change type of local
27383 variable from rtx to rtx_insn *.
27384
27385 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27386
27387 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27388 Add ^ to grep command.
27389 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27390 arg to last gimple_simplify declaration. Add missing gimple_build
27391 declaration for built-in function case with four tree args.
27392
27393 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27394 Szabolcs Nagy <szabolcs.nagy@arm.com>
27395
27396 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27397 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27398 (GNU_USER_DYNAMIC_LINKERN32): Update.
27399
27400 2015-05-08 Richard Biener <rguenther@suse.de>
27401
27402 PR tree-optimization/66036
27403 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27404 Handle strided group loads.
27405 (vect_verify_datarefs_alignment): Likewise.
27406 (vect_enhance_data_refs_alignment): Likewise.
27407 (vect_analyze_group_access): Likewise.
27408 (vect_analyze_data_ref_access): Likewise.
27409 (vect_analyze_data_ref_accesses): Likewise.
27410 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27411 (vectorizable_load): Likewise.
27412
27413 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27414
27415 * config/rs6000/rs6000.md: Require operand inequality in one
27416 of the peepholes.
27417
27418 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27419 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27420
27421 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27422 from (set ...).
27423 * config/rx/rx.md (movdi, movdf): Likewise.
27424 Likewise for define_peephole2s.
27425
27426 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27427
27428 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27429 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27430 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27431 vtst_u64): Rewrite using gcc vector extensions.
27432
27433 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27434
27435 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27436 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27437
27438 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27439
27440 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27441
27442 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27443
27444 * config/glibc-stdint.h (OPTION_MUSL): Define.
27445 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27446 Change the definition based on OPTION_MUSL for 64 bit targets.
27447 * config/linux.h (OPTION_MUSL): Redefine.
27448 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27449 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27450 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27451
27452 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27453 Szabolcs Nagy <szabolcs.nagy@arm.com>
27454
27455 * config.gcc (LIBC_MUSL): New tm_defines macro.
27456 * config/linux.h (OPTION_MUSL): Define.
27457 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27458 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27459 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27460 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27461 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27462 * config/linux.opt (mmusl): New option.
27463 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27464 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27465 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27466 * configure: Regenerate.
27467
27468 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27469 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27470
27471 PR target/48904
27472 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27473 * config/i386/knetbsd-gnu64.h: New file.
27474
27475 2015-05-08 Marek Polacek <polacek@redhat.com>
27476
27477 PR c/64918
27478 * doc/invoke.texi: Document -Woverride-init-side-effects.
27479
27480 2015-05-07 Marek Polacek <polacek@redhat.com>
27481
27482 PR c/65179
27483 * doc/invoke.texi: Document -Wshift-negative-value.
27484
27485 2015-05-06 Aditya Kumar <hiraditya@msn.com>
27486
27487 * gcov-tool.c (do_merge): Refactore to remove int ret.
27488 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27489 !type == FUNC to type != FUNC.
27490 * reload.h (struct target_reload): Changee to type of
27491 x_spill_indirect_levels from bool to unsigned char.
27492
27493 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
27494
27495 * rtl.h (always_void_p): New function.
27496 * gengenrtl.c (always_void_p): Likewise.
27497 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27498 with code foo are always VOIDmode.
27499 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27500 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27501 compare-elim.c, config/aarch64/aarch64.c,
27502 config/aarch64/aarch64.md, config/alpha/alpha.c,
27503 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27504 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27505 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27506 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27507 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27508 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27509 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27510 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27511 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27512 config/ia64/vect.md, config/iq2000/iq2000.c,
27513 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27514 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27515 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27516 config/mep/mep.c, config/microblaze/microblaze.c,
27517 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27518 config/mn10300/mn10300.c, config/msp430/msp430.c,
27519 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27520 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27521 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27522 config/rs6000/altivec.md, config/rs6000/rs6000.c,
27523 config/rs6000/rs6000.md, config/rs6000/vector.md,
27524 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27525 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27526 config/sh/sh.md, config/sh/sh_treg_combine.cc,
27527 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27528 config/spu/spu.md, config/stormy16/stormy16.c,
27529 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27530 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27531 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27532 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27533 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27534 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27535 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27536 var-tracking.c: Update calls accordingly.
27537
27538 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27539
27540 PR middle-end/192
27541 PR middle-end/54303
27542 * varasm.c (function_mergeable_rodata_prefix): New function.
27543 (mergeable_string_section): Use it.
27544 (mergeable_constant_section): Use it.
27545
27546 2015-05-07 Jeff Law <law@redhat.com>
27547
27548 PR target/39726
27549 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27550 simplifier to narrow arithmetic.
27551 * generic-match-head.c: (types_match, single_use): New functions.
27552 * gimple-match-head.c: (types_match, single_use): New functions.
27553
27554 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27555
27556 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27557 rtx type.
27558
27559 2015-05-07 Richard Biener <rguenther@suse.de>
27560
27561 PR tree-optimization/66002
27562 * passes.def: Schedule another pass_merge_phi after ifcombine, right
27563 before phiopt.
27564
27565 2015-05-07 Marek Polacek <polacek@redhat.com>
27566 Martin Uecker <uecker@eecs.berkeley.edu>
27567
27568 * doc/invoke.texi: Document -fsanitize=bounds-strict.
27569 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27570 into SANITIZE_NONDEFAULT.
27571 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27572
27573 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
27574
27575 PR target/66015
27576 * config/alpha/alpha.c (alpha_override_options_after_change): New.
27577 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27578 (alpha_override_options): Move align_loops, align_jumps and
27579 align_functions handling into alpha_override_options_after_change.
27580
27581 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
27582 Chris Jones <chrisj@nvidia.com>
27583 Joshua Conner <jconner@nvidia.com>
27584
27585 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27586 linking of crtfastmath.o.
27587 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27588
27589 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27590
27591 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27592 (cstore<mode>4_unsigned_imm): New expander.
27593 (cstore<mode>4): Remove empty constraint strings. Use the new
27594 expanders.
27595
27596 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
27597
27598 PR target/64208
27599 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27600 alternatives.
27601
27602 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
27603
27604 * config/aarch64/geniterators.sh: Use standard BRE in sed.
27605
27606 2015-05-06 Alan Modra <amodra@gmail.com>
27607
27608 PR target/66033
27609 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27610 (UNSPEC_NOP): Define.
27611 (reload_vsx_from_gpr<mode>): Add missing DONE.
27612 (reload_gpr_from_vsx<mode>): Likewise.
27613 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27614 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27615
27616 2015-05-06 Christian Bruel <christian.bruel@st.com>
27617
27618 PR target/66015
27619 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27620 align_jumps, align_functions into aarch64_override_options_after_change.
27621
27622 2015-05-06 Richard Biener <rguenther@suse.de>
27623
27624 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27625 vect_transform_slp_perm_load to check if we support a permutation
27626 for basic-block vectorization.
27627
27628 2015-05-06 Nick Clifton <nickc@redhat.com>
27629
27630 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27631 used, even if it is not being used as a frame pointer.
27632
27633 2015-05-05 Jason Merrill <jason@redhat.com>
27634
27635 * dwarf2out.c (gen_member_die): Don't emit anything for an
27636 anonymous class constructor.
27637
27638 2015-05-05 David Malcolm <dmalcolm@redhat.com>
27639
27640 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27641 that it reflects the block structure.
27642 (afdo_propagate_edge): Likewise.
27643 (afdo_calculate_branch_prob): Likewise.
27644 (afdo_annotate_cfg): Likewise.
27645 * cfgcleanup.c (equal_different_set_p): Likewise.
27646 (try_crossjump_to_edge): Likewise.
27647 * cgraph.c (cgraph_node::verify_node): Likewise.
27648 * cgraphunit.c (expand_all_functions): Likewise.
27649 * config/i386/i386.c (ix86_expand_copysign): Likewise.
27650 (exact_dependency_1): Likewise.
27651 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27652 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27653 * gensupport.c (process_define_subst): Likewise.
27654 * lto-wrapper.c (merge_and_complain): Likewise.
27655 * tree-if-conv.c (if_convertible_bb_p): Likewise.
27656 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27657 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27658 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27659 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27660 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27661 * tree-vect-stmts.c (vectorizable_shift): Likewise.
27662 * tree-vrp.c (vrp_finalize): Likewise.
27663 * tree.c (variably_modified_type_p): Likewise.
27664
27665 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
27666
27667 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27668 on darwin12 and later.
27669 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27670 file to pass -rdynamic on darwin12 and later.
27671 * config/darwin.opt (rdynamic): Add.
27672
27673 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27674
27675 * doc/extend.texi (C Extensions): Update menu for moved Variable
27676 Attributes and Type Attributes sections.
27677
27678 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27679
27680 PR target/65990
27681 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27682 if rep_8byte stringop strategy was specified for 32-bit target.
27683
27684 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
27685
27686 PR target/65915
27687 * config/i386/i386.md (vector convert to float spltiter): Check for
27688 xmm16+, when splitting scalar float conversion.
27689 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27690
27691 2015-05-05 Nick Clifton <nickc@redhat.com>
27692
27693 * config/msp430/msp430-opts.h (enum msp430_regions): New.
27694 * config/msp430/msp430.c (msp430_override_options): Complain if
27695 -mcode-region or -mdata-region is used on a non MSP430X.
27696 (msp430_section_attr): New function. Checks lower, upper and
27697 either attributes.
27698 (msp430_attribute_table): Add lower, upper and either.
27699 (gen_prefix): New function. Generates a prefix for a section
27700 name.
27701 (msp430_select_section): New function - handles the choice of
27702 section for an object. Takes into account memory region
27703 attributes and options.
27704 (msp430_function_section): Use gen_prefix.
27705 (TARGET_SECTION_TYPE_FLAGS): Define.
27706 (msp430_section_type_flags): New function.
27707 (TARGET_ASM_UNIQUE_SECTION): Define.
27708 (msp430_unique_section): New function.
27709 (msp430_output_aligned_decl_common): New function.
27710 (msp430_do_not_relax_short_jumps): New function.
27711 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27712 Define.
27713 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27714 * config/msp430/msp430-protos.h
27715 (msp430_do_not_relax_short_jumps): New prototype.
27716 (msp430_output_aligned_decl_common): New prototype.
27717 * config/msp430/msp430.md (length): New attribute.
27718 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27719 then use a long code sequence for short jumps.
27720 * config/msp430/msp430.opt (mcode-region): New.
27721 (mdata-region): New.
27722 * doc/invoke.texi: Document new options.
27723 * doc/extend.texi: Document new attributes.
27724
27725 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27726
27727 * config/aarch64-protos.h (struct cpu_branch_cost): New.
27728 (tune_params): Add field branch_costs.
27729 (aarch64_branch_cost): Declare.
27730 * config/aarch64.c (generic_branch_cost): New.
27731 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27732 (cortexa53_tunings): Likewise.
27733 (cortexa57_tunings): Likewise.
27734 (thunderx_tunings): Likewise.
27735 (xgene1_tunings): Likewise.
27736 (aarch64_branch_cost): Define.
27737 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27738
27739 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27740
27741 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27742 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27743 * config/i386/i386.md: Ditto.
27744 * config/i386/winnt.c: Ditto.
27745
27746 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27747
27748 * doc/extend.texi (__atomic Builtins): Move implementation details
27749 to the end of the description, rewrite opening paragraphs, state
27750 difference with __sync builtins, state C11/C++11 assumptions,
27751 weaken itemized descriptions, add explanation of memory model
27752 behaviour, expand description of compare-exchange, simplify text.
27753
27754 2015-05-05 Renlin Li <renlin.li@arm.com>
27755
27756 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27757
27758 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
27759
27760 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27761 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27762 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27763 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27764 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27765 * configure: Regenerate.
27766 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27767 * doc/install.texi (aarch64*-*-*): Document new
27768 --enable-fix-cortex-a53-843419 option.
27769 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27770 and -mno-fix-cortex-a53-843419 options.
27771
27772 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27773
27774 PR target/65871
27775 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27776
27777 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
27778
27779 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27780 fix overactive TYPE_MIN_VALUE check and add FIXME for type
27781 compatibility problems.
27782
27783 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27784
27785 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27786 constraints.
27787 (cbranchsi4_reg): New.
27788 * config/microblaze/microblaze.c
27789 (microblaze_expand_conditional_branch_reg): New.
27790 * config/microblaze/microblaze-protos.h
27791 (microblaze_expand_conditional_branch_reg): New prototype.
27792
27793 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27794
27795 * config/microblaze/microblaze.md (peephole2): New.
27796
27797 2015-05-04 Jeff Law <law@redhat.com>
27798
27799 Revert:
27800 2015-05-04 Jeff Law <law@redhat.com>
27801
27802 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27803 simplifier to narrow arithmetic.
27804 * generic-match-head.c: (types_match, single_use): New functions.
27805 * gimple-match-head.c: (types_match, single_use): New functions.
27806
27807 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27808
27809 PR target/65987
27810 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27811 (split_branches): Likewise.
27812
27813 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
27814
27815 * common.opt (fdelete-null-pointer-checks): Init to -1.
27816 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27817 override flag_delete_null_pointer_checks default.
27818 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27819 behavior re address zero. Better document target-specific behavior.
27820 (-fisolate-errneous-paths-dereference): Mention relationship to
27821 -fdelete-null-pointer-checks.
27822
27823 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27824
27825 PR tree-optimization/65984
27826 * ubsan.c: Include tree-cfg.h.
27827 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27828 stmt_could_throw_p test, rename can_throw variable to ends_bb.
27829
27830 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27831
27832 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27833 to CONST_DOUBLE_P predicate.
27834 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27835 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27836 allow only operands that satisfy standard_sse_constant_p predicate.
27837 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27838 to CONST_DOUBLE_P predicate.
27839
27840 2015-05-04 Jeff Law <law@redhat.com>
27841
27842 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27843 simplifier to narrow arithmetic.
27844 * generic-match-head.c: (types_match, single_use): New functions.
27845 * gimple-match-head.c: (types_match, single_use): New functions.
27846
27847 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
27848
27849 * config/arm/arm.c: Restore bootstrap.
27850
27851 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27852
27853 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27854 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27855 as CONST_WIDE_INT, not CONST_DOUBLE.
27856 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27857 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27858 (ix86_find_base_term): Do not check for CONST_DOUBLE.
27859 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27860 (ix86_build_signbit_mask): Rewrite using wide ints.
27861 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27862 (ix86_rtx_costs): Handle CONST_WIDE_INT.
27863 (find_constant): Ditto.
27864 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27865 using gen_int_mode.
27866 * config/i386/predicates.md (x86_64_immediate_operand)
27867 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27868 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27869 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27870 (const0_operand): Also match const_wide_int.
27871 (constm1_operand): Ditto.
27872 (const1_operand): Ditto.
27873
27874 2015-05-04 Richard Biener <rguenther@suse.de>
27875
27876 PR tree-optimization/65965
27877 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27878 store groups at gaps.
27879
27880 2015-05-04 Richard Biener <rguenther@suse.de>
27881
27882 PR tree-optimization/65935
27883 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27884 then make sure to apply that swapping to the IL.
27885
27886 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27887
27888 * Makefile.in (PATCHLEVEL_c): New variable.
27889 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27890 expand the same way as if DEVPHASE_c was non-empty.
27891
27892 2015-05-04 Kai Tietz <ktietz@redhat.com>
27893
27894 PR target/65559
27895 * lto-wrapper.c (run_gcc): Open filename
27896 in binary-mode.
27897
27898 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
27899
27900 * doc/extend.texi (Variable Attributes, Type Attributes): Move
27901 sections up in file, to immediately after the Function Attributes
27902 section.
27903
27904 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
27905
27906 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27907
27908 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27909
27910 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27911 (insert_partition_copy_on_edge): Adjust.
27912 (insert_rtx_to_part_on_edge): Likewise.
27913 (insert_part_to_rtx_on_edge): Likewise.
27914
27915 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27916
27917 * function.c (set_return_jump_label): Change type of argument to
27918 rtx_insn *.
27919 * function.h (set_return_jump_label): Adjust.
27920
27921 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27922
27923 * reload.h (struct reg_equivs_t): Change type of init to
27924 rtx_insn *.
27925 * ira.c (fix_reg_equiv_init): Adjust.
27926 * reload1.c (eliminate_regs_1): Likewise.
27927 (init_eliminable_invariants): Likewise.
27928
27929 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27930
27931 * cselib.c (fp_setter_insn): Take a rtx_insn *.
27932 * cselib.h (fp_setter_insn): Adjust.
27933
27934 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27935
27936 * recog.c (struct validate_replace_src_data): Change type of
27937 insn field to rtx_insn *.
27938 (validate_replace_src_group): Change type of argument to rtx_insn *.
27939 * recog.h (validate_replace_src_group): Adjust.
27940
27941 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27942
27943 * haifa-sched.c: Change the type of some variables to rtx_insn *.
27944 * sched-deps.c: Likewise.
27945 * sched-int.h: Likewise.
27946 * sched-rgn.c: Likewise.
27947 * sel-sched.c: Likewise.
27948
27949 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27950
27951 to rtx_insn *.
27952 * config/i386/i386.c: Change the type of some arguments to
27953 rtx_insn *.
27954 * config/arm/arm.c: Likewise.
27955
27956 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27957
27958 * lra-constraints.c: Change type of some arguments to rtx_insn *.
27959
27960 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27961
27962 * regcprop.c (kill_autoinc_value): Change type of argument to
27963 rtx_insn *.
27964
27965 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27966
27967 * genrecog.c (print_subroutine): Adjust.
27968 * recog.c (get_bool_attr_mask_uncached): Likewise.
27969 * recog.h (struct recog_data_d): Change the type of insn to
27970 rtx_insn *.
27971
27972 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27973
27974 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27975
27976 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27977
27978 * df-problems.c (df_set_note): Change type of argument to
27979 rtx_insn *.
27980
27981 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27982
27983 * builtins.c (expand_builtin_trap): Change type of local
27984 variable to rtx_insn *.
27985 (add_sched_insns_for_speculation): Likewise.
27986 (ix86_emit_save_regs): Likewise.
27987 (get_scratch_register_on_entry): Likewise.
27988 (ix86_emit_restore_reg_using_pop): Likewise.
27989 (ix86_emit_leave): Likewise.
27990 (ix86_emit_restore_regs_using_mov): Likewise.
27991 (ix86_expand_epilogue): Likewise.
27992 Likewise.
27993 (rl78_alloc_physical_registers_umul): Likewise.
27994 * cselib.c (discard_useless_locs): Likewise.
27995 (cselib_invalidate_regno): Likewise.
27996 (cselib_invalidate_mem): Likewise.
27997 * function.c (expand_function_start): Likewise.
27998 (emit_use_return_register_into_block): Likewise.
27999 * gcse.c: Likewise.
28000 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28001 * ifcvt.c (noce_get_alt_condition): Likewise.
28002 * loop-doloop.c (doloop_condition_get): Likewise.
28003 * lra-constraints.c (inherit_in_ebb): Likewise.
28004 * modulo-sched.c (sms_schedule_by_order): Likewise.
28005 * recog.c (next_insn_tests_no_inequality): Likewise.
28006 * reorg.c (emit_delay_sequence): Likewise.
28007 (update_reg_dead_notes): Likewise.
28008 (fix_reg_dead_note): Likewise.
28009 (fill_slots_from_thread): Likewise.
28010 (delete_computation): Likewise.
28011
28012 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
28013
28014 * doc/extend.texi (Variable Attributes): Add menu and proper
28015 @nodes to subsections. Move Microsoft Windows attributes to
28016 their own subsection.
28017 (Type Attributes): Reorganize introduction to remove duplicate
28018 list of attributes. Add menu and proper @nodes to subsections.
28019 Alphabetize the main table of common attributes.
28020
28021 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
28022
28023 * match.pd: New simplification patterns.
28024 (x + (x & 1)) -> ((x + 1) & ~1)
28025 (x & ~(x & y)) -> ((x & ~y))
28026 (x | ~(x | y)) -> ((x | ~y))
28027
28028 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28029
28030 * target.def (attribute_table): Mention that struct attribute_spec
28031 is defined in tree-core.h rather than tree.h
28032 * doc/tm.texi: Regenerate.
28033
28034 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
28035
28036 * genrecog.c (test): Rename to rtx_test. Update rest of file
28037 accordingly.
28038
28039 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
28040
28041 PR translation/65959
28042 * params.h (DEFPARAM): Rename msgid to nocmsgid.
28043
28044 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28045
28046 * config/aarch64/aarch64-protos.h (tune_params):
28047 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28048 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28049 Return value depending on target.
28050 (generic_tunings): Initialize new target settings.
28051 (cortexa53_tunings): Likewise.
28052 (cortexa57_tunings): Likewise.
28053 (thunderx_tunings): Likewise.
28054 (xgene1_tunings): Likewise.
28055
28056 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28057
28058 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28059 Make Cortex-A53 shift costs more accurate.
28060
28061 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28062
28063 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28064 UNSIGNED_FLOAT.
28065
28066 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28067
28068 * config/aarch64/aarch64.c (aarch64_rtx_costs):
28069 Calculate cost of op0 and op1 in PLUS and MINUS cases.
28070
28071 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28072
28073 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28074 Add cost of op0 in the compare-with-fpzero case.
28075
28076 2015-04-30 David Malcolm <dmalcolm@redhat.com>
28077
28078 * builtins.c (fold_builtin_1): Remove spurious second
28079 semicolon.
28080 * cgraph.h (symtab_node::get_availability): Likewise.
28081 * opts.c (common_handle_option): Remove spurious second semicolon.
28082 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28083 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28084
28085 2015-04-30 Caroline Tice <cmtice@google.com>
28086
28087 PR gcov-profile/65929
28088 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28089 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28090 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28091 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28092 * doc/tm.texi: Regenerate.
28093 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
28094 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28095 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
28096 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28097
28098 2015-04-30 Marek Polacek <polacek@redhat.com>
28099
28100 * varasm.c (handle_cache_entry): Fix logic.
28101
28102 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28103
28104 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28105 (*extrsi5_insn_uxtw_alt): Likewise.
28106 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28107 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28108 operations.
28109
28110 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28111
28112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28113 fabd in ABS case.
28114
28115 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28116
28117 * config/aarch64/aarch64.md
28118 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28119 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28120 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28121 appropriately. Handle alternative EON form.
28122
28123 2015-04-30 Renlin Li <renlin.li@arm.com>
28124
28125 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28126 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28127
28128 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28129
28130 PR ipa/65873
28131 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28132 -fstrict-aliasing boundaries.
28133
28134 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28135
28136 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28137 and [SU]MNEGL patterns.
28138
28139 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28140
28141 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28142 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28143 combined arithmetic-shift ops. Properly handle all shift and extend
28144 operations that can occur in combination with PLUS/MINUS.
28145 Rename maybe_fma to compound_p.
28146 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28147 arithmetic and shift operations.
28148
28149 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28150
28151 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28152 rather than arith_shift cost when costing ADD/MINUS of an
28153 extended value.
28154
28155 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28156
28157 PR lto/65948
28158 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28159 to itself.
28160
28161 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
28162
28163 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28164 are for the same position.
28165
28166 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
28167
28168 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
28169 vectorize_loops.
28170 (vectorize_loops): Use it.
28171
28172 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28173
28174 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28175 for aggregate types.
28176 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28177 type to be non_ODR.
28178 * tree.c (need_assembler_name_p): Compute mangled name for
28179 non-fundamental types and integer types.
28180
28181 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
28182
28183 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28184 manual swaps.
28185 * expr.c (expand_expr_real_2): Likewise.
28186
28187 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28188
28189 * tree.c (build_common_builtin_nodes): Do not build
28190 __builtin_alloca_with_align as equivalent of library alloca.
28191
28192 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28193
28194 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28195 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28196 bugus variants.
28197 * tree.c: Include print-tree.h and ipa-utils.h
28198 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28199 (free_lang_data_in_cgraph): Call verify_type.
28200 (verify_type_variant): New function.
28201 (verify_type): New function.
28202 * tree.h (verify_type): Declare.
28203
28204 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
28205
28206 * config/mips/mips-cpus.def: (mips4): Change default processor
28207 from PROCESSOR_R8000 to PROCESSOR_R10000.
28208
28209 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
28210
28211 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28212 la/jalr instead of jal.
28213
28214 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
28215
28216 PR target/65871
28217 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28218 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28219 (setcc+movzbl peephole2): Check also clobbered reg.
28220 (setcc+andl peephole2): Ditto.
28221
28222 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28223
28224 PR libgomp/65099
28225 * config/nvptx/mkoffload.c (target_ilp32): New variable.
28226 (main): Set it depending on "-foffload-abi=[...]".
28227 (compile_native, main): Use it to pass "-m32" or "-m64" to the
28228 compiler.
28229
28230 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28231
28232 PR target/65770
28233 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28234 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28235 Flip lane index back at assembly time for bigendian.
28236
28237 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28238
28239 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28240 * gimplify.c (gimplify_omp_workshare): Use it.
28241
28242 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28243
28244 * Makefile.in (build/genrecog.o): Depend on inchash.h.
28245 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28246 build/inchash.o
28247 * genrecog.c: Rewrite most of the code except for the third page.
28248
28249 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28250
28251 * inchash.h, inchash.c: Include bconfig.h for build objects.
28252 * Makefile.in (build/inchash.o): New rule.
28253
28254 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
28255
28256 PR target/65924
28257 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28258 number in type attribute expression.
28259
28260 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28261
28262 * loop-iv.c (canon_condition): Generalize to all types of integer
28263 constant.
28264
28265 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
28266
28267 * gimple-walk.c: Prune duplicate or unneeded includes.
28268 (walk_gimple_asm): Only call parse_input_constraint or
28269 parse_output_constraint if their findings are used.
28270 Honour parse_input_constraint and parse_output_constraint
28271 result.
28272
28273 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28274
28275 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28276
28277 2015-04-29 Tom de Vries <tom@codesourcery.com>
28278
28279 PR tree-optimization/65893
28280 * passes.def (pass_all_optimizations): Move pass_stdarg to after
28281 pass_dce.
28282
28283 2015-04-29 Richard Biener <rguenther@suse.de>
28284
28285 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28286 compute GROUP_SIZE for basic-block SLP.
28287 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28288 take into account gaps.
28289 (vect_get_mask_element): Properly reject references to previous
28290 vectors.
28291 (vect_transform_slp_perm_load): Likewise.
28292
28293 2015-04-29 Christian Bruel <christian.bruel@st.com>
28294
28295 PR target/64835
28296 * config/i386/i386.c (ix86_default_align): New function.
28297 (ix86_override_options_after_change): Call ix86_default_align.
28298 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28299 (ix86_override_options_after_change): New function.
28300
28301 2015-04-28 Jeff Law <law@redhat.com>
28302
28303 * tree-ssa-dom.c (record_equality); Fix comment typos.
28304
28305 2015-04-28 Tom de Vries <tom@codesourcery.com>
28306
28307 PR tree-optimization/65887
28308 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28309
28310 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
28311
28312 * doc/extend.texi (Declaring Attributes of Functions): Split into
28313 subsections by target. Alphabetize the table of common attributes.
28314 Rewrite some of the introductory text to reflect the new structure.
28315 Update some cross-references to point to the new subsections.
28316 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28317 duplicate copies in the discussion of function, label, and type
28318 attributes.
28319
28320 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28321
28322 PR bootstrap/65910
28323 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28324
28325 2015-04-28 Jason Merrill <jason@redhat.com>
28326
28327 PR c++/65734
28328 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28329 (finalize_type_size): Respect TYPE_USER_ALIGN.
28330 (layout_type) [ARRAY_TYPE]: Likewise.
28331
28332 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28333
28334 * config/arm/arm.md (*arm_movt): Fix type attribute.
28335 (*cmpsi_shiftsi): Likewise.
28336 (*cmpsi_shiftsi_swp): Likewise.
28337 (*movsicc_insn): Likewise.
28338 (*cond_move): Likewise.
28339 (*if_plus_move): Likewise.
28340 (*if_move_plus): Likewise.
28341 (*if_arith_move): Likewise.
28342 (*if_move_arith): Likewise.
28343 (*if_shift_move): Likewise.
28344 (*if_move_shift): Likewise.
28345 (*arm_movtas_ze): Likewise.
28346 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28347 redundancy and type attribute.
28348 (*thumb2_movsi_insn): Fix type attribute.
28349 (*thumb2_addsi_short): Likewise.
28350 (thumb2_addsi3_compare0): Likewise.
28351 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28352 attributes accordingly.
28353
28354 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28355
28356 PR other/65911
28357 * function.c (pad_to_arg_alignment): Add parentheses.
28358
28359 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28360
28361 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28362 libgcc/config/frv/elf-lib.h.
28363
28364 2015-04-28 Tom de Vries <tom@codesourcery.com>
28365
28366 * tree-call-cdce.c: Fix example in header comment.
28367
28368 2015-04-28 Richard Biener <rguenther@suse.de>
28369
28370 PR tree-optimization/62283
28371 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28372 fails fatally and we are vectorizing a basic-block simply
28373 cause the child to be constructed piecewise.
28374 (vect_analyze_slp_cost_1): Adjust.
28375 (vect_detect_hybrid_slp_stmts): Likewise.
28376 (vect_bb_slp_scalar_cost): Likewise.
28377 (vect_get_constant_vectors): For piecewise constructed
28378 constants place them after the last def.
28379 (vect_get_slp_defs): Adjust.
28380 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28381 externals for basic-block vectorization.
28382
28383 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28384
28385 PR target/63503
28386 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28387 aarch64-*-*.
28388 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28389 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28390 (AARCH64_TUNE_FMA_STEERING): Likewise.
28391 * config/aarch64/aarch64-cores.def: Set
28392 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28393 FMUL/FMADD instructions.
28394 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28395 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28396 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28397 * config/aarch64/cortex-a57-fma-steering.h: New file.
28398 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28399
28400 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28401
28402 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28403
28404 2015-04-28 Richard Biener <rguenther@suse.de>
28405
28406 PR tree-optimization/65851
28407 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28408 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28409 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28410 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28411 (ccp_visit_phi_node): Adjust.
28412 (evaluate_stmt): For simplifications to SSA names return its
28413 lattice value if that isn't VARYING. Return immediately when
28414 simplified to a constant.
28415 (visit_assignment): Adjust.
28416 (ccp_visit_stmt): Likewise.
28417
28418 2015-04-28 Tom de Vries <tom@codesourcery.com>
28419
28420 PR tree-optimization/65818
28421 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28422 evaluated.
28423
28424 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28425
28426 * calls.c (save_fixed_argument_area): Don't check
28427 ARGS_GROW_DOWNWARD with the preprocessor.
28428 (restore_fixed_argument_area): Likewise.
28429 (mem_overlaps_already_clobbered_arg_p): Likewise.
28430 (check_sibcall_argument_overlap): Likewise.
28431 (expand_call): Likewise.
28432 (emit_library_call_value_1): Likewise.
28433 (store_one_arg): Likewise.
28434 * function.c (assign_parms): Likewise.
28435 (locate_and_pad_parm): Likewise.
28436 (pad_to_arg_alignment): Likewise.
28437 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28438
28439 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28440
28441 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28442 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28443 * calls.c (save_fixed_argument_area): Don't chekc if
28444 ARGS_GROW_DOWNWARD is defined.
28445 (restore_fixed_argument_area): Likewise.
28446 (mem_overlaps_already_clobbered_arg_p): Likewise.
28447 (check_sibcall_argument_overlap): Likewise.
28448 (expand_call): Likewise.
28449 (emit_library_call_value_1): Likewise.
28450 (store_one_arg): Likewise.
28451 * function.c (assign_parms): Likewise.
28452 (locate_and_pad_parm): Likewise.
28453 (pad_to_arg_alignment): Likewise.
28454 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28455
28456 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28457
28458 * defaults.h (gen_epilogue): New function.
28459 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28460 defined.
28461 * cfgrtl.c (cfg_layout_finalize): Likewise.
28462 * df-scan.c: Likewise.
28463 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28464 (reposition_prologue_and_epilogue_notes): Likewise.
28465 * reorg.c (find_end_label): Likewise.
28466 * toplev.c: Likewise.
28467
28468 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28469
28470 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28471 * defaults.h (gen_simple_return): New function.
28472 (gen_simple_return): Likewise.
28473 (HAVE_return): Add default definition to false.
28474 (HAVE_simple_return): Likewise.
28475 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28476 HAVE_return and HAVE_simple_return are defined.
28477 * function.c (gen_return_pattern): Likewise.
28478 (convert_jumps_to_returns): Likewise.
28479 (thread_prologue_and_epilogue_insns): Likewise.
28480 * reorg.c (find_end_label): Likewise.
28481 (dbr_schedule): Likewise.
28482 * shrink-wrap.c: Likewise.
28483 * shrink-wrap.h: Likewise.
28484
28485 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28486
28487 * defaults.h (EPILOGUE_USES): Add default definition of false.
28488 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28489 * resource.c (init_resource_info): Likewise.
28490
28491 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28492
28493 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28494 to false.
28495 * dwarf2out.c (field_byte_offset): REmove check if
28496 PCC_BITFIELD_TYPE_MATTERS is defined.
28497 * stor-layout.c (layout_decl): Likewise.
28498 (update_alignment_for_field): Likewise.
28499 (place_field): Likewise.
28500
28501 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28502
28503 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28504 true.
28505 * regrename.c (check_new_reg_p): Remove check if
28506 HARD_REGNO_RENAME_OK is defined.
28507 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28508
28509 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28510
28511 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28512 * cse.c (fold_rtx): Likewise.
28513 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28514 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28515 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28516 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28517 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28518 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28519 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28520 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28521 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28522 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28523 * Likewise.
28524 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28525 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28526 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28527 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28528 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28529 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28530 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28531 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28532 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28533 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28534 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28535 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28536 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28537 * doc/tm.texi: Regenerate.
28538 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28539 either true or false.
28540
28541 2015-04-27 Jeff Law <law@redhat.com>
28542
28543 PR tree-optimization/65217
28544 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28545 of them has a single use, make sure it is the LHS of the implied
28546 copy.
28547
28548 2015-04-28 Alan Modra <amodra@gmail.com>
28549
28550 PR target/65810
28551 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28552 (offsettable_ok_by_alignment): Use minimum of decl and toc
28553 pointer alignment. Replace dead code with assertion.
28554 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
28555 case if size exceeds toc pointer alignment.
28556 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28557 (rs6000_emit_move): Likewise.
28558 * configure.ac: Add linker toc pointer alignment check.
28559 * configure: Regenerate.
28560 * config.in: Regenerate.
28561
28562 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
28563
28564 * config.gcc: Add h8300-*-linux.
28565 * config/h8300/linux.h: New.
28566 * config/h8300/t-linux: New.
28567 * config/h8300/h8300.c (h8300_option_override): Normal mode
28568 is not supported for h8300-*-linux.
28569 (h8300_file_start): Target priority change.
28570 (get_shift_alg): Likewise.
28571 (h8300_shift_need_scratch_p): Likewise.
28572 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28573 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28574
28575 2015-04-27 Caroline Tice <cmtice@google.com>
28576
28577 * final.c (final_scan_insn): Output cold_function_name as function
28578 type.
28579 * varasm.c (cold_function_name): Make global.
28580 (assemble_start_function): Re-set cold_function_name.
28581 (assemble_end_function): Output cold partition size.
28582 * varasm.h (cold_function_name): Declare global.
28583
28584 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
28585
28586 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28587 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28588 constraint.
28589 (*movxi_internal_avx512f): Ditto.
28590 (define_split): Check for xmm16+, when splitting scalar float_extend.
28591 (*extendsfdf2_mixed): Use "v" constraint.
28592 (define_split): Check for xmm16+, when splitting scalar float_truncate.
28593 (*truncdfsf_fast_sse): Use "v" constraint.
28594 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28595 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28596 (define_peephole2): Check for xmm16+, when converting scalar
28597 float_truncate.
28598 (define_peephole2): Check for xmm16+, when converting scalar
28599 float_extend.
28600 (*fop_<mode>_comm_mixed): Use "v" constraint.
28601 (*fop_<mode>_comm_sse): Ditto.
28602 (*fop_<mode>_1_mixed): Ditto.
28603 (*sqrt<mode>2_sse): Ditto.
28604 (*ieee_s<ieee_maxmin><mode>3): Ditto.
28605
28606 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28607
28608 * combine.c (simplify_if_then_else): Use std::swap instead
28609 of manually swapping.
28610 (known_cond): Likewise.
28611 (simplify_comparison): Likewise.
28612
28613 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
28614
28615 PR target/64579
28616 * config/rs6000/htm.md: Remove all define_expands.
28617 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28618 UNSPECV_HTM_TABORTWCI): Remove.
28619 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28620 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28621 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28622 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28623 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28624 tabortwci_internal): Remove define_insns.
28625 (tabort<wd>c, tabort<wd>ci): New define_insns.
28626 (tabort): Use gpc_reg_operand.
28627 (tcheck): Remove operand.
28628 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28629 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28630 expected value.
28631 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28632 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
28633 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28634 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28635 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28636 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28637 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28638 (tcheck): Remove builtin argument.
28639 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28640 not TARGET_64BIT.
28641 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
28642 tabortdc and tabortdci builtins when not in 64-bit mode.
28643 Modify code to handle the loss of the HTM define_expands.
28644 Emit code to copy the CR register to TARGET.
28645 (htm_init_builtins): Modify code to handle the loss of the HTM
28646 define_expands.
28647 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28648 (RS6000_BTC_64BIT): Likewise.
28649 (RS6000_BTC_CR): New macro.
28650 * doc/extend.texi: Update documentation for htm builtins.
28651
28652 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28653
28654 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28655 of manually swapping.
28656 (simplify_associative_operation): Likewise.
28657 (simplify_binary_operation): Likewise.
28658 (simplify_plus_minus): Likewise.
28659 (simplify_relational_operation): Likewise.
28660 (simplify_ternary_operation): Likewise.
28661
28662 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28663
28664 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28665 (xs_hi_nonmemory_operand): Remove error.
28666 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28667 general_operand rather than xs_hi_general_operand.
28668
28669 2015-04-27 Richard Biener <rguenther@suse.de>
28670
28671 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28672 (record_equivalences_from_stmt): Valueize rhs.
28673 (record_equality): Canonicalize x and y order via
28674 tree_swap_operands_p. Do not swap operands for same loop depth.
28675
28676 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
28677
28678 PR target/65296
28679 PR target/65895
28680 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28681 Add hint how to use own spec file.
28682
28683 2015-04-27 Jakub Jelinek <jakub@redhat.com>
28684
28685 PR tree-optimization/65875
28686 * tree-vrp.c (update_value_range): If in is_new case setting
28687 old_vr to VR_VARYING, also set new_vr to it. Remove
28688 old_vr->type == VR_VARYING test.
28689 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28690 SSA_PROP_INTERESTING if update_value_range returned true,
28691 but new range is VR_VARYING.
28692
28693 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
28694
28695 * combine.c (sign_extend_short_imm): New.
28696 (set_nonzero_bits_and_sign_copies): Use above new function for sign
28697 extension of src short immediate.
28698 (reg_nonzero_bits_for_combine): Likewise for tem.
28699
28700 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28701
28702 * stor-layout.c (self_referential_component_ref_p): New predicate.
28703 (copy_self_referential_tree_r): Use it.
28704 (self_referential_size): Punt for simple operations directly involving
28705 self-referential component references.
28706 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28707
28708 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28709
28710 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28711
28712 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28713
28714 * vec.h (vec): Make splice arguments const. Update definitions
28715 accordingly.
28716
28717 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
28718
28719 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28720 alternatives.
28721
28722 2015-04-26 Tom de Vries <tom@codesourcery.com>
28723
28724 PR tree-optimization/65826
28725 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28726
28727 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
28728
28729 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28730 (*madd3<mode>): Ditto.
28731 (*msub4<mode>): Ditto.
28732 (*msub3<mode>): Ditto.
28733 (*nmadd4<mode>): Ditto.
28734 (*nmadd3<mode>): Ditto.
28735 (*nmadd4<mode>_fastmath): Ditto.
28736 (*nmadd3<mode>_fastmath): Ditto.
28737 (*nmsub4<mode>): Ditto.
28738 (*nmsub3<mode>): Ditto.
28739 (*nmsub4<mode>_fastmath): Ditto.
28740 (*nmsub3<mode>_fastmath): Ditto.
28741
28742 2015-04-24 Jason Merrill <jason@redhat.com>
28743
28744 PR c++/50800
28745 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28746 down when building TYPE_CANONICAL.
28747 (build_pointer_type_for_mode): Likewise.
28748
28749 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
28750
28751 * genrecog.c (validate_pattern): Check matching constraint refers
28752 to a lower numbered operand.
28753
28754 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28755
28756 PR target/65849
28757 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28758 save to independent variables use the Save attribute. This will
28759 allow these options to be modified with the #pragma/attribute
28760 target support.
28761 (-mallow-movmisalign): Likewise.
28762 (-mallow-df-permute): Likewise.
28763 (-msched-groups): Likewise.
28764 (-malways-hint): Likewise.
28765 (-malign-branch-targets): Likewise.
28766 (-mvectorize-builtins): Likewise.
28767 (-msave-toc-indirect): Likewise.
28768
28769 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28770 can be set via the #pragma/attribute target support.
28771 (rs6000_opt_vars): Likewise.
28772 (rs6000_inner_target_options): If VSX was set, also set
28773 -mno-avoid-indexed-addresses.
28774
28775 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28776
28777 * config/arm/iterators.md (shiftable_ops): Rename to...
28778 (SHIFTABLE_OPS): ... This. Update use in comments.
28779 (ior_xor): Rename to...
28780 (IOR_XOR): ... This.
28781 (vqh_ops): Rename to...
28782 (VQH_OPS): ... This.
28783 (vqhs_ops): Rename to...
28784 (VQHS_OPS): ... This.
28785 (rshifts): Rename to...
28786 (RSHIFTS): ... This.
28787 (returns): Rename to...
28788 (RETURNS): ... This.
28789 * config/arm/arm.md: Update uses of the above.
28790 * config/arm/neon.md: Likewise.
28791
28792 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28793
28794 * config.host (case ${host}): Add aarch64*-*-linux case.
28795 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28796 fields to all the cores.
28797 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28798 Add MCPU_MTUNE_NATIVE_SPECS.
28799 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28800 field to all extensions.
28801 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28802 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28803 Adjust definition of AARCH64_OPT_EXTENSION.
28804 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28805 (MCPU_MTUNE_NATIVE_SPECS): Define.
28806 * config/aarch64/driver-aarch64.c: New file.
28807 * config/aarch64/x-arch64: New file.
28808 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28809 -mtune and -march.
28810
28811 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28812 Wei Mi <wmi@google.com>
28813
28814 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28815 * config/i386/i386.c (extract_base_offset_in_addr): New function.
28816 (ix86_operands_ok_for_move_multiple): Ditto.
28817 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28818 (movlpd/movhpd to movupd peephole2): Ditto.
28819
28820 2015-04-24 Marek Polacek <polacek@redhat.com>
28821
28822 PR c/61534
28823 * input.h (from_macro_expansion_at): Define.
28824
28825 PR c/63357
28826 * doc/invoke.texi: Update description of -Wlogical-op.
28827
28828 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28829
28830 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28831 ternary operator in fprintf and harmonize spacing.
28832
28833 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28834
28835 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28836 Mark operand1 commutative.
28837
28838 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28839
28840 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28841 input operands in memory.
28842 (*vec_concatv2si_sse4_1): Ditto.
28843 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28844 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28845 register_operand.
28846 (vec_extract_hi_v32hi): Ditto.
28847 (vec_extract_hi_v64hi): Ditto.
28848 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28849
28850 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28851 Steven Bosscher <steven@gcc.gnu.org>
28852
28853 PR rtl-optimization/34503
28854 * cprop.c (cprop_reg_p): New.
28855 (hash_scan_set): Use above function to check if register can be
28856 propagated.
28857 (find_avail_set): Return up to two sets, one whose source is a
28858 register and one whose source is a constant. Sets are returned in an
28859 array passed as parameter rather than as a return value.
28860 (cprop_insn): Use a do while loop rather than a goto. Try each of the
28861 sets returned by find_avail_set, starting with the one whose source is
28862 a constant. Use cprop_reg_p to check if register can be propagated.
28863 (do_local_cprop): Use cprop_reg_p to check if register can be
28864 propagated.
28865 (implicit_set_cond_p): Likewise.
28866
28867 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28868
28869 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28870 (sem_function::equals): IGNORED_NODES parameter is now unused;
28871 update call of equals_private.
28872 (sem_function::equals_private): Do not call equals_wpa; skip
28873 gimple body matching if there is no body.
28874 (sem_function::init): Add logic to hash tthunk info.
28875 (sem_function::parse): Also parse thunks.
28876 * ipa-icf.h (equals_private): Update declaration.
28877
28878 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28879
28880 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28881 asterisk from name so this can be generated directly.
28882 (*altivec_stvx_<mode>_internal): Likewise.
28883 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28884 that this is never called during or after reload/lra.
28885 (rs6000_frame_related): Remove split_reg
28886 argument and logic that references it.
28887 (emit_frame_save): Remove last parameter from call to
28888 rs6000_frame_related.
28889 (rs6000_emit_prologue): Remove last parameter from eight calls to
28890 rs6000_frame_related. Force generation of stvx instruction for
28891 Altivec register saves. Remove split_reg handling, which is no
28892 longer needed.
28893 (rs6000_emit_epilogue): Force generation of lvx instruction for
28894 Altivec register restores.
28895
28896 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28897
28898 * config/rs6000/rs6000.opt (mcrypto): Change option description to
28899 match category changes in ISA 2.07B.
28900
28901 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28902
28903 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28904 iterators.
28905 (cmp_op, cmp_type): New code attributes.
28906 (NEON_VCMP, NEON_VACMP): New int iterators.
28907 (cmp_op_unsp): New int attribute.
28908 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28909 (neon_vceq<mode>): Delete.
28910 (neon_vc<cmp_op><mode>_insn): New pattern.
28911 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28912 (neon_vcgeu<mode>): Delete.
28913 (neon_vcle<mode>): Likewise.
28914 (neon_vclt<mode>: Likewise.
28915 (neon_vcage<mode>): Likewise.
28916 (neon_vcagt<mode>): Likewise.
28917 (neon_vca<cmp_op><mode>): New define_expand.
28918 (neon_vca<cmp_op><mode>_insn): New pattern.
28919 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28920
28921 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28922
28923 * tree.h (attribute_value_equal): Declare.
28924 * tree.c (attribute_value_equal): Export.
28925
28926 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28927
28928 * ipa-icf.c (sem_item::compare_attributes): New function.
28929 (sem_item::compare_referenced_symbol_properties): Compare variable
28930 attributes.
28931 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28932 (sem_function::param_used_p): New function.
28933 (sem_function::equals_wpa): Fix attribute comparsion; match
28934 parameter type codes; do not compare paremter flags when
28935 they are not used; compare edge flags; compare indirect calls.
28936 (sem_item::update_hash_by_addr_refs): Hash reference type.
28937 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28938 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28939 reference use type.
28940 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28941 * ipa-icf.h (compare_attributes, param_used_p): Declare.
28942
28943 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28944
28945 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28946 cleanup.
28947 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28948 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28949 (sem_item::compare_referenced_symbol_properties): New.
28950 (sem_item::hash_referenced_symbol_properties): New.
28951 (sem_item::compare_cgraph_references): Rename to ...
28952 (sem_item::compare_symbol_references): ... this one; use
28953 compare_referenced_symbol_properties.
28954 (sem_function::equals_wpa): Do not compare
28955 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28956 DECL_IS_OPERATOR_NEW; compare pointer sizes.
28957 (sem_item::update_hash_by_addr_refs): Call
28958 hash_referenced_symbol_properties.
28959 (sem_item::update_hash_by_local_refs): Cleanup.
28960 (sem_function::merge): Do not mix up symbol properties.
28961 (sem_variable::equals_wpa): Use compare_symbol_references.
28962 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28963 (sem_item::hash_referenced_symbol_properties): New.
28964 (sem_item::compare_symbol_references): New.
28965 (sem_item::compare_cgraph_references): Remove.
28966
28967 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
28968
28969 PR target/26702
28970 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28971 Emit size of local.
28972
28973 2015-04-23 Nick Clifton <nickc@redhat.com>
28974
28975 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28976 ATTRIBUTE_UNUSED to x parameter.
28977 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28978
28979 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28980
28981 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28982 TARGET_CRYPTO to TARGET_P8_VECTOR>
28983 (crypto_vpermxor_<mode>): Likewise.
28984 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28985 (BU_CRYPTO_3A): Likewise.
28986 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28987 (BU_CRYPTO_OVERLOAD_3A): New #define.
28988 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28989 (VPMSUMH): Likewise.
28990 (VPMSUMW): Likewise.
28991 (VPMSUMD): Likewise.
28992 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28993 (VPERMXOR_V4SI): Likewise.
28994 (VPERMXOR_V8HI): Likewise.
28995 (VPERMXOR_V16QI): Likewise.
28996 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28997 BU_CRYPTO_OVERLOAD_2A.
28998 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28999 BU_CRYPTO_OVERLOAD_3A.
29000 * config/rs6000/rs6000.opt (mcrypto): Change description of
29001 option.
29002
29003 2015-04-23 Richard Biener <rguenther@suse.de>
29004
29005 * passes.def: Remove copy propagation passes run directly after CCP.
29006 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29007 SSA names.
29008 (ccp_visit_phi_node): Rework to handle first executable edge
29009 specially.
29010
29011 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
29012
29013 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29014 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29015 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29016 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29017 (thumb_legimitimize_reload_address): Remove.
29018 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29019 Remove.
29020 (thumb_legimitimize_reload_address): Remove.
29021
29022 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29023
29024 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29025
29026 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29027
29028 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29029 MAX_LDM_STM_OPS.
29030 (store_multiple): Likewise.
29031
29032 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29033
29034 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29035 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29036 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29037 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29038 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29039 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29040 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29041 Specify issue_rate value.
29042 (arm_issue_rate): Look up issue rate from tuning structs. Remove
29043 large switch statement.
29044 (arm_marvell_pj4_tune): New struct.
29045 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29046 struct.
29047
29048 2015-04-23 Richard Biener <rguenther@suse.de>
29049
29050 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29051 (vect_find_last_store_in_slp_instance): Rename to ...
29052 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29053 (vect_analyze_slp_cost_1): Use vector_load for constant defs
29054 and vec_construct for external defs when estimating prologue cost.
29055 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29056 Compute costs here only when vectorizing loops.
29057 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29058 have been determined.
29059 (vect_schedule_slp_instance): Simplify vectorized code placement
29060 and prepare for in-BB external defs.
29061 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29062 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29063 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29064 guard.
29065 (vect_model_load_cost): Likewise.
29066 (vectorizable_store): Instead add it here.
29067 (vectorizable_load): Likewise.
29068 (vect_is_simple_use): Dump def type textually.
29069
29070 2015-04-23 Richard Biener <rguenther@suse.de>
29071
29072 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29073 * cfgloop.c (verify_loop_structure): Verify the root loop node.
29074 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29075 instead of get_eh_region_from_lp_number.
29076 * loop-init.c (fix_loop_structure): If we removed a loop, reset
29077 the SCEV cache.
29078
29079 2015-04-23 Anton Blanchard <anton@samba.org>
29080
29081 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29082 need for -mprofile-kernel to save LR to stack.
29083
29084 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29085
29086 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29087 adjustments.
29088 (insn_is_swappable_p): Return 1 for a convert from double to
29089 single precision when all of its uses are splats of BE element
29090 zero.
29091
29092 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29093
29094 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29095
29096 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29097
29098 PR target/65456
29099 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
29100 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29101 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29102 option.
29103 (rs6000_builtin_mask_for_load): Return 0 for targets with
29104 efficient unaligned VSX accesses so that the vectorizer will use
29105 direct unaligned loads.
29106 (rs6000_builtin_support_vector_misalignment): Always return true
29107 for targets with efficient unaligned VSX accesses.
29108 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29109 stores on targets with efficient unaligned VSX accesses is almost
29110 always the same as the cost of an aligned load or store, so model
29111 it that way.
29112 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29113 unaligned vectors if we have efficient unaligned VSX accesses.
29114 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29115 undocumented option.
29116
29117 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29118
29119 Revert:
29120 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29121
29122 * config.gcc (LIBC_MUSL): New tm_defines macro.
29123 * config/linux.h (OPTION_MUSL): Define.
29124 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29125 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29126 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29127
29128 * config/linux.opt (mmusl): New option.
29129 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29130 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29131
29132 * configure: Regenerate.
29133
29134 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29135
29136 * config.gcc (LIBC_MUSL): New tm_defines macro.
29137 * config/linux.h (OPTION_MUSL): Define.
29138 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29139 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29140 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29141
29142 * config/linux.opt (mmusl): New option.
29143 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29144 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29145
29146 * configure: Regenerate.
29147
29148 2015-04-22 Yury Gribov <y.gribov@samsung.com>
29149
29150 * doc/invoke.texi (-fsanitize-sections): Update description.
29151 * asan.c (set_sanitized_sections): Parse incoming arg.
29152 (section_sanitized_p): Support wildcards.
29153
29154 2015-04-22 Tom de Vries <tom@codesourcery.com>
29155
29156 PR tree-optimization/65823
29157 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29158 equality between ap_copy and ap.
29159
29160 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29161
29162 PR target/47098
29163 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29164
29165 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29166
29167 PR target/47122
29168 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29169
29170 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29171
29172 PR target/55144
29173 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29174 remove already contained t-files.
29175
29176 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29177
29178 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29179 Remove unneeded forward declarations.
29180 (suitable_for_tail_call_opt_p): Commentary typo fix.
29181
29182 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29183
29184 * varasm.c (emit_bss): Remove redundant guard.
29185
29186 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29187
29188 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29189
29190 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29191
29192 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29193
29194 2015-04-22 Hale Wang <hale.wang@arm.com>
29195 Terry Guo <terry.guo@arm.com>
29196
29197 PR rtl-optimization/64818
29198 * combine.c (can_combine_p): Don't combine user-specified
29199 register if it is in an asm input.
29200
29201 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
29202
29203 PR ipa/65076
29204 * passes.def (early_optimizations): Add pass_dse.
29205
29206 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29207
29208 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29209 * reorg.c (redundant_insn): Remove ifdef
29210 INSN_REFERENCES_ARE_DELAYED.
29211 * resource.c (mark_referenced_resources): Likewise.
29212
29213 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29214
29215 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29216 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29217 * resource.c (mark_set_resources): Likewise.
29218
29219 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29220
29221 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29222 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29223 (flow_find_head_matching_sequence): Likewise.
29224 (try_head_merge_bb): Likewise.
29225 * combine.c (can_combine_p): Likewise.
29226 (try_combine): Likewise.
29227 (distribute_notes): Likewise.
29228 * df-problems.c (can_move_insns_across): Likewise.
29229 * final.c (final): Likewise.
29230 * gcse.c (insert_insn_end_basic_block): Likewise.
29231 * ira.c (find_moveable_pseudos): Likewise.
29232 * reorg.c (try_merge_delay_insns): Likewise.
29233 (fill_simple_delay_slots): Likewise.
29234 (fill_slots_from_thread): Likewise.
29235 * sched-deps.c (sched_analyze_2): Likewise.
29236
29237 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29238
29239 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29240 PIC_OFFSET_TABLE_REGNUM.
29241
29242 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29243
29244 * alias.c (init_alias_target): Remove ifdef
29245 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29246 * df-scan.c (df_insn_refs_collect): Likewise.
29247 (df_get_regular_block_artificial_uses): Likewise.
29248 (df_get_eh_block_artificial_uses): Likewise.
29249 (df_get_entry_block_def_set): Likewise.
29250 (df_get_exit_block_use_set): Likewise.
29251 * emit-rtl.c (gen_rtx_REG): Likewise.
29252 * ira.c (ira_setup_eliminable_regset): Likewise.
29253 * reginfo.c (init_reg_sets_1): Likewise.
29254 * regrename.c (rename_chains): Likewise.
29255 * reload1.c (reload): Likewise.
29256 (eliminate_regs_in_insn): Likewise.
29257 * resource.c (mark_referenced_resources): Likewise.
29258 (init_resource_info): Likewise.
29259
29260 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29261
29262 * defaults.h (MASK_RETURN_ADDR): New definition.
29263 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29264 MASK_RETURN_ADDR.
29265
29266 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29267
29268 * defaults.h (RETURN_ADDR_OFFSET): New definition.
29269 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29270 RETURN_ADDR_OFFSET.
29271 (expand_builtin_frob_return_addr): Likewise.
29272
29273 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29274
29275 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29276 (try_redirect_by_replacing_jump): Likewise.
29277 (rtl_tidy_fallthru_edge): Likewise.
29278 * combine.c (insn_a_feeds_b): Likewise.
29279 (find_split_point): Likewise.
29280 (simplify_set): Likewise.
29281 * cprop.c (cprop_jump): Likewise.
29282 * cse.c (cse_extended_basic_block): Likewise.
29283 * df-problems.c (can_move_insns_across): Likewise.
29284 * function.c (emit_use_return_register_into_block): Likewise.
29285 * haifa-sched.c (sched_init): Likewise.
29286 * ira.c (find_moveable_pseudos): Likewise.
29287 * loop-invariant.c (find_invariant_insn): Likewise.
29288 * lra-constraints.c (curr_insn_transform): Likewise.
29289 * postreload.c (reload_combine_recognize_const_pattern):
29290 * Likewise.
29291 * reload.c (find_reloads): Likewise.
29292 * reorg.c (delete_scheduled_jump): Likewise.
29293 (steal_delay_list_from_target): Likewise.
29294 (steal_delay_list_from_fallthrough): Likewise.
29295 (redundant_insn): Likewise.
29296 (fill_simple_delay_slots): Likewise.
29297 (fill_slots_from_thread): Likewise.
29298 (delete_computation): Likewise.
29299 * sched-rgn.c (add_branch_dependences): Likewise.
29300
29301 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29302
29303 * genconfig.c (main): Always define HAVE_cc0.
29304 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29305 HAVE_cc0.
29306 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29307 (flow_find_head_matching_sequence): Likewise.
29308 (try_head_merge_bb): Likewise.
29309 * cfgrtl.c (rtl_merge_blocks): Likewise.
29310 (try_redirect_by_replacing_jump): Likewise.
29311 (rtl_tidy_fallthru_edge): Likewise.
29312 * combine.c (do_SUBST_MODE): Likewise.
29313 (insn_a_feeds_b): Likewise.
29314 (combine_instructions): Likewise.
29315 (can_combine_p): Likewise.
29316 (try_combine): Likewise.
29317 (find_split_point): Likewise.
29318 (subst): Likewise.
29319 (simplify_set): Likewise.
29320 (distribute_notes): Likewise.
29321 * cprop.c (cprop_jump): Likewise.
29322 * cse.c (cse_extended_basic_block): Likewise.
29323 * df-problems.c (can_move_insns_across): Likewise.
29324 * final.c (final): Likewise.
29325 (final_scan_insn): Likewise.
29326 * function.c (emit_use_return_register_into_block): Likewise.
29327 * gcse.c (insert_insn_end_basic_block): Likewise.
29328 * haifa-sched.c (sched_init): Likewise.
29329 * ira.c (find_moveable_pseudos): Likewise.
29330 * loop-invariant.c (find_invariant_insn): Likewise.
29331 * lra-constraints.c (curr_insn_transform): Likewise.
29332 * optabs.c (prepare_cmp_insn): Likewise.
29333 * postreload.c (reload_combine_recognize_const_pattern):
29334 * Likewise.
29335 * reload.c (find_reloads): Likewise.
29336 (find_reloads_address_1): Likewise.
29337 * reorg.c (delete_scheduled_jump): Likewise.
29338 (steal_delay_list_from_target): Likewise.
29339 (steal_delay_list_from_fallthrough): Likewise.
29340 (try_merge_delay_insns): Likewise.
29341 (redundant_insn): Likewise.
29342 (fill_simple_delay_slots): Likewise.
29343 (fill_slots_from_thread): Likewise.
29344 (delete_computation): Likewise.
29345 (relax_delay_slots): Likewise.
29346 * sched-deps.c (sched_analyze_2): Likewise.
29347 * sched-rgn.c (add_branch_dependences): Likewise.
29348
29349 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29350
29351 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29352 that is trivially ded on non cc0 targets.
29353 (simplify_set): Likewise.
29354 (mark_used_regs_combine): Likewise.
29355 * cse.c (new_basic_block): Likewise.
29356 (fold_rtx): Likewise.
29357 (cse_insn): Likewise.
29358 (cse_extended_basic_block): Likewise.
29359 (set_live_p): Likewise.
29360 * rtlanal.c (canonicalize_condition): Likewise.
29361 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29362
29363 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29364
29365 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29366 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29367 * final.c: Likewise.
29368 * jump.c: Likewise.
29369 * recog.c: Likewise.
29370 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29371 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29372
29373 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29374
29375 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29376 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29377 * builtins.c (expand_builtin): Remove check if
29378 EH_RETURN_DATA_REGNO is defined.
29379 * df-scan.c (df_bb_refs_collect): Likewise.
29380 (df_get_exit_block_use_set): Likewise.
29381 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29382 * ira-lives.c (process_bb_node_lives): Likewise.
29383 * lra-lives.c (process_bb_lives): Likewise.
29384
29385 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29386
29387 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29388 FIRST_PSEUDO_REG): New.
29389 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29390 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29391 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29392 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29393 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29394 (FIRST_INT_REG): New.
29395 (LAST_INT_REG): New.
29396 (FIRST_*_REG): Define using *_REG.
29397 (LAST_*_REG): Ditto.
29398 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29399 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29400 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29401
29402 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29403
29404 * expmed.c: (synth_mult): Only assume overlapping
29405 shift with previous steps in alg_sub_t_m2 case.
29406
29407 2015-04-21 Richard Biener <rguenther@suse.de>
29408
29409 PR tree-optimization/65650
29410 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29411 transitions involving copies.
29412 (set_lattice_value): Adjust for copy lattice state.
29413 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29414 if that doesn't dominate the merge point.
29415 (bit_value_unop): Adjust what we treat as varying mask.
29416 (bit_value_binop): Likewise.
29417 (bit_value_assume_aligned): Likewise.
29418 (evaluate_stmt): When we simplified to a SSA name record a copy
29419 instead of dropping to varying.
29420 (visit_assignment): Simplify.
29421
29422 * gimple-match.h (gimple_simplify): Add another callback.
29423 * gimple-fold.c (fold_stmt_1): Adjust caller.
29424 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29425 for the 2nd callback.
29426 * gimple-match-head.c (gimple_simplify): Add a callback that is
29427 used to valueize the stmt operands and use it that way.
29428
29429 2015-04-21 Richard Biener <rguenther@suse.de>
29430
29431 PR tree-optimization/65788
29432 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29433
29434 2015-04-21 Richard Biener <rguenther@suse.de>
29435
29436 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29437 vec_construct cost by vec_stmt_cost.
29438
29439 2015-04-21 Richard Biener <rguenther@suse.de>
29440
29441 * cfghooks.h (create_basic_block): Replace with two overloads
29442 for RTL and GIMPLE.
29443 (split_block): Likewise.
29444 * cfghooks.c (split_block): Rename to ...
29445 (split_block_1): ... this.
29446 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29447 (split_block_after_labels): Call split_block_1.
29448 (create_basic_block): Rename to ...
29449 (create_basic_block_1): ... this.
29450 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29451 (create_empty_bb): Call create_basic_block_1.
29452 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29453 split_block_after_labels.
29454 * omp-low.c (expand_parallel_call): Likewise.
29455 (expand_omp_target): Likewise.
29456 (simd_clone_adjust): Likewise.
29457 * tree-chkp.c (chkp_get_entry_block): Likewise.
29458 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29459 create_basic_block overload.
29460 (cgraph_node::expand_thunk): Likewise.
29461 * tree-cfg.c (make_blocks): Likewise.
29462 (handle_abnormal_edges): Likewise.
29463 * tree-inline.c (copy_bb): Likewise.
29464
29465 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29466
29467 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29468 New pattern.
29469 (*xor_one_cmplsidi3_ze): Likewise.
29470
29471 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29472
29473 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29474 use df_remove_problem rather than manually removing problems, leaving
29475 holes in df->problems_in_order[].
29476
29477 2015-04-21 Tom de Vries <tom@codesourcery.com>
29478
29479 PR tree-optimization/65802
29480 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29481
29482 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29483
29484 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29485 Increase to 128.
29486 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29487 at '.'. Assert that there's enough space for everything.
29488
29489 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29490
29491 PR tree-optimization/64950
29492 Revert:
29493 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
29494
29495 PR target/41089
29496 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29497 as volatile.
29498
29499 2015-04-20 Shiva Chen <shiva0217@gmail.com>
29500
29501 PR rtl-optimization/64916
29502 * cfgcleanup.c (values_equal_p): New function.
29503 (can_replace_by): Use it.
29504
29505 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
29506
29507 PR c++/65801
29508 * doc/invoke.texi ([-Wnarrowing]): Update.
29509
29510 2015-04-20 Jeff Law <law@redhat.com>
29511
29512 PR tree-optimization/65658
29513 * tree-ssa-threadupdate.c (redirection_block_p): Remove
29514 redundant test for GIMPLE_ASSIGN in last change.
29515
29516 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
29517
29518 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29519 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29520 (legitimize_tls_address): Ditto.
29521 (ix86_expand_move): Ditto.
29522 (ix86_expand_binary_operator): Remove reload_in_progress checks.
29523 (ix86_expand_unary_operator): Ditto.
29524 * config/i386/predicates.md (index_register_operand): Ditto.
29525
29526 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
29527
29528 * reorg.c (try_merge_delay_insns): Improve correctness checking
29529 for targets with multiple delay slots.
29530
29531 2015-04-20 Jeff Law <law@redhat.com>
29532
29533 PR tree-optimization/65658
29534 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29535 statements too.
29536
29537 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29538
29539 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29540 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29541 Delete.
29542
29543 2015-04-20 Jakub Jelinek <jakub@redhat.com>
29544
29545 PR debug/65807
29546 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29547
29548 2015-04-20 Richard Biener <rguenther@suse.de>
29549
29550 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29551 * gimple-fold.c (gimple_build_valueize): New function.
29552 (gimple_build): Always use gimple_build_valueize as valueize hook.
29553
29554 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29555
29556 PR target/64134
29557 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29558 and overwrite variable parts if <= 1/2 the elements are variable.
29559
29560 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
29561
29562 PR rtl-optimization/65805
29563 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29564 Don't use difference of offset and previous offset if
29565 update_sp_offset is non-zero.
29566 (eliminate_regs_in_insn): Ditto.
29567 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29568 lra_eliminate_regs_1 call.
29569 * lra-constraints.c (get_equiv_with_elimination): Ditto.
29570
29571 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
29572
29573 * hash-table.h: Remove version of hash_table that stored value_type *.
29574 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29575 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29576 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29577 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29578 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29579 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29580 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29581 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29582 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29583 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29584 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29585 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29586 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29587 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29588 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29589 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29590
29591 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29592 Jakub Jelinek <jakub@redhat.com>
29593
29594 PR target/65787
29595 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29596 subsequent SH_NONE operand does not overwrite an existing *special
29597 value.
29598 (adjust_extract): Handle case where a vec_extract operation is
29599 wrapped in a PARALLEL.
29600
29601 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29602
29603 PR target/65780
29604 * config/i386/i386.c (ix86_binds_local_p): Define only if
29605 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29606
29607 2015-04-17 Jeff Law <law@redhat.com>
29608
29609 PR tree-optimization/47679
29610 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29611 * tree-ssa-scopedtables.c: New file.
29612 * tree-ssa-scopedtables.h: New file.
29613 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29614 (const_and_copies): Change name/type.
29615 (record_const_or_copy): Move into tree-ssa-scopedtables.c
29616 (record_const_or_copy_1): Similarly.
29617 (restore_vars_to_original_value): Similarly.
29618 (pass_dominator::execute): Create and destroy const_and_copies table.
29619 (thread_across_edge): Update passing of const_and_copies.
29620 (record_temporary_equivalence): Use method calls rather than
29621 manipulating const_and_copies directly.
29622 (record_equality, cprop_into_successor_phis): Similarly.
29623 (dom_opt_dom_walker::before_dom_children): Similarly.
29624 (dom_opt_dom_walker::after_dom_children): Similarly.
29625 (eliminate_redundant_computations): Similarly.
29626 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29627 (record_temporary_equivalence): Likewise.
29628 (invalidate_equivalences): Likewise.
29629 (record_temporary_equivalences_from_phis): Update due to type
29630 change of const_and_copies. Use method calls rather than
29631 manipulating the stack directly.
29632 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29633 (thread_through_normal_block, thread_across_edge): Likewise.
29634 (thread_across_edge): Likewise.
29635 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29636 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
29637 of equiv_stack.
29638 (identify_jump_threads): Update due to type change of equiv_stack.
29639 (finalize_jump_threads): Delete the equiv_stack when complete.
29640
29641 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
29642
29643 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29644 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29645 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29646
29647 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
29648
29649 PR target/65535
29650 * config.gcc: Exit with a comment when we do not have a major version
29651 number for the FreeBSD target.
29652
29653 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29654
29655 PR target/65689
29656 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29657 maybe_allows_mem bitfields.
29658 (maybe_allows_none_start, maybe_allows_none_end,
29659 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29660 maybe_allows_mem_end): New variables.
29661 (compute_maybe_allows): New function.
29662 (add_constraint): Use it to initialize maybe_allows_reg and
29663 maybe_allows_mem fields.
29664 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29665 is_address constraints such that those that allow neither mem nor
29666 reg come first, then those that only allow reg but not mem, then
29667 those that only allow mem but not reg, then the rest.
29668 (write_allows_reg_mem_function): New function.
29669 (write_tm_preds_h): Call it.
29670 * stmt.c (parse_output_constraint, parse_input_constraint): Use
29671 the generated insn_extra_constraint_allows_reg_mem function
29672 instead of always setting *allows_reg = true; *allows_mem = true;
29673 for unknown extra constraints.
29674
29675 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29676
29677 PR target/65780
29678 * output.h (default_binds_local_p_3): New.
29679 * varasm.c (default_binds_local_p_3): Make it public. Take an
29680 argument to indicate if common symbol may be local. If common
29681 symbol may be local, treat non-external variable as defined
29682 locally.
29683 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29684 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29685 * config/i386/i386.c (ix86_binds_local_p): New.
29686 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29687 ix86_binds_local_p.
29688
29689 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29690
29691 PR debug/65771
29692 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29693 trying mem_loc_descriptor on XEXP (rtl, 0).
29694
29695 2015-04-17 Martin Liska <mliska@suse.cz>
29696
29697 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29698 Release symbol_compare_collection.
29699 * ipa-reference.c: Add TODO that a vector should be released.
29700
29701 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29702
29703 PR target/65296
29704 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29705 to new AVR-LibC file layout (bug #44574).
29706 (*avrlibc_devicelib): Same.
29707 * config/avr/avr-mcus.def: Adjust comments.
29708 * config/avr/avr.opt (nodevicelib): Adjust help.
29709
29710 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
29711
29712 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29713
29714 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
29715
29716 PR c++/64527
29717 * gimplify.c (gimplify_init_constructor): Always emit a
29718 side-effecting constructor.
29719
29720 2015-04-17 Tom de Vries <tom@codesourcery.com>
29721
29722 PR tree-optimization/64950
29723 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29724 in cfun->curr_properties.
29725 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29726 if we generate an IFN_VA_ARG.
29727 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29728 function if PROP_gimple_lva is not set in src function.
29729
29730 2015-04-17 Tom de Vries <tom@codesourcery.com>
29731 Michael Matz <matz@suse.de>
29732
29733 PR tree-optimization/64950
29734 * gimple-iterator.c (update_modified_stmts): Remove static.
29735 * gimple-iterator.h (update_modified_stmts): Declare.
29736 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29737 (gimplify_va_arg_internal): New function.
29738 (gimplify_va_arg_expr): Use IFN_VA_ARG.
29739 * gimplify.h (gimplify_va_arg_internal): Declare.
29740 * internal-fn.c (expand_VA_ARG): New unreachable function.
29741 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29742 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29743 (expand_ifn_va_arg): New function.
29744 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29745 (pass_stdarg::execute): Call expand_ifn_va_arg.
29746 (pass_data_lower_vaarg): New pass_data.
29747 (pass_lower_vaarg): New gimple_opt_pass.
29748 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29749 (make_pass_lower_vaarg): New function.
29750 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29751 properties_required field.
29752 * passes.def (all_passes): Add pass_lower_vaarg.
29753 * tree-pass.h (PROP_gimple_lva): Add define.
29754 (make_pass_lower_vaarg): Declare.
29755
29756 2015-04-17 Tom de Vries <tom@codesourcery.com>
29757
29758 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29759 * calls.c (call_expr_flags): Same.
29760
29761 2015-04-17 Tom de Vries <tom@codesourcery.com>
29762
29763 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29764 (pass_stdarg::execute): ... here.
29765
29766 2015-04-17 Tom de Vries <tom@codesourcery.com>
29767 Michael Matz <matz@suse.de>
29768
29769 * tree-cfg.c (make_blocks_1): Factor out of ...
29770 (make_blocks): ... here.
29771 (make_edges_bb): Factor out of ...
29772 (make_edges): ... here.
29773 (gimple_find_sub_bbs): New function.
29774 * tree-cfg.h (gimple_find_sub_bbs): Declare.
29775
29776 2015-04-17 Tom de Vries <tom@codesourcery.com>
29777
29778 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29779
29780 2015-04-17 Yury Gribov <y.gribov@samsung.com>
29781
29782 * asan.c (set_sanitized_sections): New function.
29783 (section_sanitized_p): Ditto.
29784 (asan_protect_global): Optionally sanitize user-defined
29785 sections.
29786 * asan.h (set_sanitized_sections): Declare new function.
29787 * common.opt (fsanitize-sections): New option.
29788 * doc/invoke.texi (-fsanitize-sections): Document new option.
29789 * opts-global.c (handle_common_deferred_options): Handle new
29790 option.
29791
29792 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29793
29794 PR debug/65771
29795 * dwarf2out.c (loc_list_from_tree): Return NULL
29796 for DEBUG_EXPR_DECL.
29797
29798 2015-04-17 Christian Bruel <christian.bruel@st.com>
29799
29800 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29801 same attributes.
29802
29803 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29804
29805 * ira-color.c (setup_left_conflict_sizes_p): Do not process
29806 node itself when computing left conflict subnode size.
29807
29808 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29809
29810 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29811 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29812 *fop_<mode>_1_sse using enabled attribute. Use
29813 register_mixssei387nonimm_operand operand 1 predicate. Change
29814 alternative 3 constraints from "x" to "v".
29815
29816 2015-04-16 Richard Biener <rguenther@suse.de>
29817
29818 PR tree-optimization/65774
29819 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29820 bit-value tracking on.
29821
29822 2015-04-16 Richard Biener <rguenther@suse.de>
29823
29824 PR tree-optimization/64277
29825 * tree-vrp.c (check_array_ref): Fix anti-range handling,
29826 simplify upper bound handling.
29827 (search_for_addr_array): Simplify.
29828 (check_array_bounds): Handle ADDR_EXPRs here.
29829 (check_all_array_refs): Simplify.
29830
29831 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29832
29833 * config/i386/i386.c (print_reg): Rewrite function.
29834
29835 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29836
29837 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29838 Invert the condition.
29839
29840 2015-04-16 Renlin Li <renlin.li@arm.com>
29841
29842 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29843 simplifications for UNSIGNED_FLOAT.
29844
29845 2015-04-16 Nick Clifton <nickc@redhat.com>
29846
29847 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29848 MUL_UNINIT.
29849 (enum rl78_cpu_type): New.
29850 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29851 (umulhi3_shift_virt): Remove m constraint from operand 1.
29852 (umulqihi3_virt): Likewise.
29853 * config/rl78/rl78.c (rl78_option_override): Add code to process
29854 -mcpu and -mmul options.
29855 (rl78_alloc_physical_registers): Add code to handle divhi and
29856 divsi valloc attributes.
29857 (set_origin): Likewise.
29858 * config/rl78/rl78.h (RL78_MUL_G14): Define.
29859 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29860 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29861 __RL78_Gxx__.
29862 (ASM_SPEC): Pass -mcpu on to assembler.
29863 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29864 (mulqi3_rl78): Likewise.
29865 (mulhi3_g13): Likewise.
29866 (mulhi3): Generate the G13 or G14 versions of the insn directly.
29867 (mulsi3): Likewise.
29868 (mulhi3_g14): Add clobbers of AX and BC.
29869 (mulsi3_g14): Likewise.
29870 (mulsi3_g13): Likewise.
29871 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29872 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29873 * config/rl78/rl78.opt (mmul): Initialise value to
29874 RL78_MUL_UNINIT.
29875 (mcpu): New option.
29876 (m13, m14, mrl78): New option aliases.
29877 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29878 (MULTILIB_DIRNAMES): Add g13 and g14.
29879 * doc/invoke.texi: Document -mcpu and -mmul options.
29880
29881 2015-04-16 Richard Biener <rguenther@suse.de>
29882
29883 * tree-ssa-ccp.c (likely_value): See if we have operands that
29884 are marked as never simulate again and return CONSTANT in this
29885 case.
29886 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29887 not have any operands that will be simulated again as
29888 not being simulated again.
29889
29890 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
29891
29892 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29893 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29894 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29895 attribute.
29896 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29897 enabled attribute.
29898 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29899 *float<SWI48:mode><MODEF:mode>2_sse.
29900 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29901 enabled attribute.
29902 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29903 enabled attribute.
29904
29905 2015-04-15 Tom de Vries <tom@codesourcery.com>
29906
29907 PR other/65487
29908 * function.c (push_dummy_function): New function.
29909 (init_dummy_function_start): Use push_dummy_function.
29910 (pop_dummy_function): New function. Factored out of ...
29911 (expand_dummy_function_end): ... here.
29912 * function.h (push_dummy_function, pop_dummy_function): Declare.
29913 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29914 pop_dummy_function.
29915 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29916
29917 2015-04-15 Jeff Law <law@redhat.com>
29918
29919 PR tree-optimization/47679
29920 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29921 need for forward declaration in upcoming changes.
29922 (record_conditions, record_edge_info): Likewise.
29923
29924 PR rtl-optimization/42522
29925 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29926 SIGN_EXTRACT as a whole object rather than simplifying
29927 its operand.
29928
29929 2015-04-15 Jakub Jelinek <jakub@redhat.com>
29930
29931 PR ipa/65765
29932 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29933 and GIMPLE_PREDICT use break instead of return true. For
29934 GIMPLE_EH_DISPATCH, compare dispatch region.
29935
29936 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
29937
29938 * doc/extend.texi (__sync Builtins): Simplify some text. Update
29939 details about the implementation. Make clear preference for
29940 __atomic builtins. Reduce possibility of future change.
29941
29942 2015-04-15 Nick Clifton <nickc@redhat.com>
29943
29944 * config/rx/rx.opt (mallow-string-insns): New option.
29945 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29946 builtin if string instructions are denied.
29947 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29948 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29949 appropriate.
29950 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29951 * config/rx/rx.md (movstr): Enable pattern only if string
29952 instructions are allowed.
29953 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29954 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29955 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29956 (MULTILIB_DIRNAMES): Add no-strings.
29957 * doc/invoke.texi: Document -mno-allow-string-insns.
29958
29959 2015-04-15 Alan Modra <amodra@gmail.com>
29960
29961 PR target/65408
29962 PR target/58744
29963 PR middle-end/36043
29964 * calls.c (load_register_parameters): Don't load past end of
29965 mem unless suitably aligned.
29966
29967 2015-04-15 Nick Clifton <nickc@redhat.com>
29968
29969 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29970 decrement instruction as being frame related.
29971 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29972 based addresses.
29973 If zero extending a function address enclose the operation in
29974 %code(...).
29975 (rl78_preferred_reload_class): New function.
29976 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29977 * config/rl78/rl78.md: Remove useless constraints in expanders.
29978 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29979 (mulhi3_rl78): Likewise.
29980 (mulhi3_g13): Likewise.
29981 (mulsi3_rl78): Likewise.
29982 (es_addr): Move to before the multiply patterns.
29983
29984 2015-04-15 Alan Modra <amodra@gmail.com>
29985
29986 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29987 and sequence_stack. Add seq.
29988 (seq_stack): Delete.
29989 * function.c (prepare_function_start): Don't access x_last_insn.
29990 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29991 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29992 * emit_rtl.c (start_sequence, push_topmost_sequence,
29993 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29994 sequence accessors.
29995 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29996 remove_insn): Likewise. Simplify.
29997 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29998 and pop_topmost_sequence.
29999 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
30000 debug insns.
30001 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30002
30003 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
30004
30005 PR target/65729
30006 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30007 the assertiion.
30008
30009 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30010
30011 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30012 (LEGACY_INT_REGNO_P): Ditto.
30013 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30014 (ANY_MASK_REG_P): Remove.
30015 (BND_REG_P): Rename from ANY_BND_REG_P.
30016 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30017 legacy integer registers. Do not handle MMX_REG_P in a special way.
30018 Merge 64byte and 32byte SSE handling.
30019
30020 2015-04-14 Nick Clifton <nickc@redhat.com>
30021
30022 * expr.c (expand_assignment): Force an address offset computation
30023 into a register before changing its mode.
30024 (expand_expr_real_1): Likewise.
30025
30026 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
30027
30028 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30029 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30030 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30031 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30032 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30033 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30034 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30035 and __aarch64_vget_lane_any.
30036
30037 2015-04-14 Jakub Jelinek <jakub@redhat.com>
30038
30039 PR rtl-optimization/65761
30040 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30041 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30042
30043 2015-04-14 Richard Biener <rguenther@suse.de>
30044
30045 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30046 (graphite_can_represent_scev): Use POINTER_TYPE_P.
30047
30048 2015-04-14 Richard Biener <rguenther@suse.de>
30049
30050 PR tree-optimization/65758
30051 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30052 against -1.
30053 (ccp_lattice_meet): Likewise.
30054 (bit_value_unop): Likewise.
30055 (bit_value_binop): Likewise.
30056 (bit_value_assume_aligned): Likewise.
30057
30058 2015-04-14 Christian Bruel <christian.bruel@st.com>
30059
30060 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30061 function.
30062
30063 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
30064
30065 PR tree-optimization/63387
30066 * match.pd ((x unord x) | (y unord y) -> (x unord y),
30067 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30068
30069 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30070
30071 * config/i386/predicates.md (any_QIreg_operand): Rename from
30072 q_regs_operand. Do not process subregs.
30073 (QIreg_operand): Use QI_REGNO_P predicate.
30074 (ext_QIreg_operand): Ditto.
30075 (ext_register_operand): Ditto.
30076 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30077 (AND splitters): Ditto.
30078 (AND with -65536 splitter): Add SWI48 mode for operand 0.
30079 (AND with -256 splitter): Use any_QIreg_operand predicate and
30080 SWI248 mode for operand 0.
30081 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30082 mode for operand 0.
30083 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30084
30085 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
30086
30087 * doc/plugins.texi: Rewrite first introductory paragraph.
30088
30089 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30090
30091 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30092 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30093
30094 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30095
30096 * ipa-profie.c (ipa_profile): Check number of parameters
30097 and possible polymorphic call targets before
30098 devirtualizing.
30099
30100 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
30101
30102 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30103 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30104
30105 2015-04-13 Richard Biener <rguenther@suse.de>
30106
30107 PR tree-optimization/65204
30108 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30109 takens for bit-CCP.
30110
30111 2015-04-13 Richard Biener <rguenther@suse.de>
30112
30113 PR target/65660
30114 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30115 and cond_not_taken_branch_cost to 4 and 2.
30116 (bdver2_cost): Likewise.
30117 (bdver3_cost): Likewise.
30118 (bdver4_cost): Likewise.
30119
30120 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30121
30122 * hash-table.h (hash_table constructor): Add mem stats.
30123 (alloc_entries): Likewise.
30124
30125 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30126
30127 * ipa-cp.c (ipcp_driver): Relase prev_edge.
30128 * passes.c (execute_one_pass): Only add transform if pass has one.
30129
30130 2015-04-12 Joseph Myers <joseph@codesourcery.com>
30131
30132 * config/i386/i386.c (ix86_option_override_internal): Don't set
30133 -fprefetch-loop-arrays if optimizing for size.
30134
30135 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30136 Gerald Pfeifer <gerald@pfeifer.com>
30137
30138 * doc/contrib.texi (Contributors): Add Martin Jambor and
30139 Michael Matz.
30140
30141 2015-04-12 Jakub Jelinek <jakub@redhat.com>
30142
30143 * BASE-VER: Set to 6.0.0.
30144
30145 PR tree-optimization/65747
30146 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30147 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30148
30149 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30150
30151 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30152 sentence. Improve grammar.
30153
30154 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30155
30156 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30157
30158 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30159
30160 PR ipa/65743
30161 * ipa-inline-transform.c (speculation_removed): Remove static var.
30162 (check_speculations): New function.
30163 (clone_inlined_nodes): Do not check spculations.
30164 (inline_call): Call check_speculations.
30165 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30166 consider non-invariants.
30167
30168 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30169 Martin Liska <mliska@suse.cz>
30170
30171 PR ipa/65722
30172 * ipa-icf.c (sem_item::compare_cgraph_references): function and
30173 variable can not match.
30174 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30175 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30176
30177 2015-04-11 Jakub Jelinek <jakub@redhat.com>
30178
30179 PR tree-optimization/65735
30180 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30181 Remove visited_phis argument, add visited_bbs, avoid recursing into the
30182 same bb rather than just into the same phi node.
30183 (thread_through_normal_block): Adjust caller.
30184
30185 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30186
30187 * doc/contrib.texi (Contributors): Add Ira Rosen.
30188
30189 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
30190
30191 * gcov.c (find_source): Fix miswording in error message.
30192 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30193 (ix86_expand_sse_comi_round): Fix typo in error message.
30194
30195 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30196
30197 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30198
30199 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
30200
30201 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30202
30203 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30204
30205 PR target/65710
30206 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30207 Print bad_spills_num and insn_pseudos_num.
30208
30209 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30210
30211 PR target/65694
30212 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30213 when creating +1 values for SImode.
30214
30215 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30216
30217 PR target/65729
30218 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30219 assert.
30220
30221 2015-04-10 Jakub Jelinek <jakub@redhat.com>
30222 Iain Sandoe <iain@codesourcery.com>
30223
30224 PR target/65351
30225 * configure: Regenerate.
30226
30227 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30228
30229 PR target/65671
30230 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30231
30232 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
30233
30234 * doc/contrib.texi (Contributors): Add John Marino.
30235
30236 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30237
30238 PR tree-optimization/65709
30239 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30240 TREE_TYPE (TREE_TYPE (t)).
30241
30242 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
30243
30244 PR target/65710
30245 * lra-int.h (lra_bad_spill_regno_start): New.
30246 * lra.c (lra_bad_spill_regno_start): New.
30247 (lra): Set up lra_bad_spill_regno_start. Set up
30248 lra_constraint_new_regno_start unconditionally.
30249 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30250 spill preferences.
30251
30252 2015-04-09 Marek Polacek <polacek@redhat.com>
30253 Jakub Jelinek <jakub@redhat.com>
30254
30255 PR middle-end/65554
30256 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30257 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30258 of STRIP_NOPS.
30259
30260 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
30261
30262 PR rtl-optimization/65693
30263 * combine.c (is_parallel_of_n_reg_sets): Move outside of
30264 #ifndef HAVE_cc0.
30265
30266 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
30267
30268 PR target/65296
30269 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30270 device specs file if "device-specs%s" didn't resolve to a path.
30271
30272 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30273
30274 PR target/65676
30275 * config/i386/i386.c (fixup_modeless_constant): New.
30276 (ix86_expand_args_builtin): Fixup modeless constant operand.
30277 (ix86_expand_round_builtin): Ditto.
30278 (ix86_expand_special_args_builtin): Ditto.
30279 (ix86_expand_builtin): Ditto.
30280
30281 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30282
30283 PR target/65693
30284 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30285 any pow2 integer in between 2 and 0x80000000U inclusive.
30286
30287 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
30288
30289 PR rtl-optimization/65693
30290 * combine.c (is_parallel_of_n_reg_sets): Change first argument
30291 from an rtx_insn * to an rtx.
30292 (try_combine): Adjust both callers. Use it once more.
30293
30294 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30295
30296 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30297 (chkp_make_static_const_bounds): Search existing
30298 symbol by assembler name. Use make_decl_one_only.
30299 (chkp_get_zero_bounds_var): Remove node search which
30300 is now performed in chkp_make_static_const_bounds.
30301 (chkp_get_none_bounds_var): Likewise.
30302
30303 2015-04-08 Michael Witten <mfwitten@gmail.com>
30304
30305 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30306 to an example.
30307
30308 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30309
30310 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30311
30312 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30313
30314 * doc/extend.texi (__sync Builtins): Fix grammar.
30315
30316 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30317
30318 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30319
30320 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30321
30322 * varasm.c (emit_local): Move definition of align.
30323
30324 2015-04-08 Julian Brown <julian@codesourcery.com>
30325
30326 * config/nvptx/mkoffload.c (process): Support variable mapping.
30327
30328 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30329
30330 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30331 alpha_links **.
30332 (alpha_write_one_linkage): Correct typo.
30333
30334 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30335
30336 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30337
30338 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30339
30340 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30341
30342 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30343
30344 * tree-chkp.h (chkp_insert_retbnd_call): New.
30345 * tree-chkp.c (chkp_insert_retbnd_call): New.
30346 * ipa-split.c (insert_bndret_call_after): Remove.
30347 (split_function): Use chkp_insert_retbnd_call.
30348 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30349 bounds for instrumented functions.
30350
30351 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30352
30353 PR ipa/65540
30354 * calls.c (initialize_argument_information): When producing tail
30355 call also turn SSA_NAMES passed by references to original PARM_DECLs
30356
30357 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30358
30359 PR target/65648
30360 * lra-remat.c (do_remat): Process input and non-input insn
30361 registers separately.
30362
30363 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30364
30365 PR debug/65678
30366 * valtrack.c (debug_lowpart_subreg): New function.
30367 (dead_debug_insert_temp): Use it.
30368
30369 PR middle-end/65680
30370 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30371 into signed HOST_WIDE_INT the same as negative bit_offset.
30372
30373 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30374
30375 * ipa-comdats.c (ipa_comdats): Visit all thunks
30376 to set proper comdat group.
30377
30378 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30379
30380 PR target/65489
30381 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30382 on constants for NEON VSTRUCT modes.
30383
30384 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30385 Iain Sandoe <iain@codesourcery.com>
30386
30387 PR target/65351
30388 * configure: Regenerate.
30389
30390 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30391
30392 PR target/65614
30393 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30394 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30395 that LFD is used to load double constants instead of LFS. Add
30396 defaults for all costs structures. Add comments for missing
30397 initialization fields.
30398 (size32_cost): Likewise.
30399 (size64_cost): Likewise.
30400 (rs64a_cost): Likewise.
30401 (mpccore_cost): Likewise.
30402 (ppc403_cost): Likewise.
30403 (ppc405_cost): Likewise.
30404 (ppc440_cost): Likewise.
30405 (ppc476_cost): Likewise.
30406 (ppc601_cost): Likewise.
30407 (ppc603_cost): Likewise.
30408 (ppc604_cost): Likewise.
30409 (ppc604e_cost): Likewise.
30410 (ppc620_cost): Likewise.
30411 (ppc630_cost): Likewise.
30412 (ppccell_cost): Likewise.
30413 (ppc750_cost): Likewise.
30414 (ppc7450_cost): Likewise.
30415 (ppc8540_cost): Likewise.
30416 (ppce300c2c3_cost): Likewise.
30417 (ppce500mc_cost): Likewise.
30418 (ppce500mc64_cost): Likewise.
30419 (ppce5500_cost): Likewise.
30420 (ppce6500_cost): Likewise.
30421 (titan_cost): Likewise.
30422 (power4_cost): Likewise.
30423 (power6_cost): Likewise.
30424 (power7_cost): Likewise.
30425 (power8_cost): Likewise.
30426 (ppca2_cost): Likewise.
30427 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30428
30429 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30430 instead of XXLOR to copy SFmode to clear out dirty bits created
30431 when SFmode denormals are generated.
30432 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30433 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30434
30435 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30436
30437 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30438 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30439 * config/aarch64/aarch64-tune.md: Regenerate.
30440
30441 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30442
30443 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30444 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30445 * config/arm/arm-cores.def (exynos-m1): New core.
30446 * config/arm/arm-tune.md: Regenerate.
30447 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30448 * config/arm/bpabi.h: Likewise.
30449
30450 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30451
30452 * ipa-cp (set_single_call_flag): Remove too
30453 restrictive assert.
30454
30455 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30456
30457 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30458 GOMP_offload_unregister from the destructor.
30459
30460 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30461
30462 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30463 flags for instrumentation thunk.
30464 (chkp_produce_thunks): Likewise.
30465
30466 2015-04-05 Martin Liska <mliska@suse.cz>
30467
30468 PR ipa/65665
30469 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30470 has computed data structure.
30471 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30472
30473 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30474
30475 * invoke.texi (inline-unit-growth): Increase growth to 20%
30476 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30477
30478 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30479
30480 PR target/65647
30481 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
30482 value checking.
30483 (lra_rematerialization_iter): New.
30484 * lra.c (lra): Initialize lra_rematerialization_iter.
30485 Stop updating lra_constraint_new_regno_start after switching of
30486 inheritance and rematerialization.
30487 * lra-remat.c (lra_rematerialization_iter): New.
30488 (lra_remat): Add printing pass iteration. Do rematerialization
30489 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30490
30491 2015-04-04 Richard Biener <rguenther@suse.de>
30492
30493 PR tree-optimization/64909
30494 PR tree-optimization/65660
30495 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30496 to take a cost vector for scalar iteration cost.
30497 (vect_get_single_scalar_iteration_cost): Likewise.
30498 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30499 Compute the scalar iteration cost into a cost vector.
30500 (vect_get_known_peeling_cost): Use the scalar cost vector to
30501 account for the cost of the peeled iterations.
30502 (vect_estimate_min_profitable_iters): Likewise.
30503 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30504 Likewise.
30505
30506 2015-04-04 Alan Modra <amodra@gmail.com>
30507
30508 PR target/65576
30509 PR target/65240
30510 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30511 0.0 constant unless TARGET_VSX.
30512 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30513 alternative.
30514
30515 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30516
30517 PR ipa/65654
30518 * ipa-inline-transform.c (inline_call): Skip sanity check to work
30519 around the ICE
30520
30521 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30522
30523 PR ipa/65655
30524 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30525 speculative indirect edges to avoid ordering issue.
30526
30527 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30528
30529 PR ipa/65076
30530 * ipa-inline.c (edge_badness): Add combined size to the denominator.
30531
30532 2015-04-03 Jakub Jelinek <jakub@redhat.com>
30533
30534 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30535 TYPE_ARTIFICIAL on the .omp_data* types.
30536
30537 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30538
30539 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30540 instrumentation thunks.
30541
30542 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30543
30544 * config/i386/i386.c (ix86_expand_call): Avoid nested
30545 PARALLEL in returned call value.
30546
30547 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30548
30549 * lto-cgraph.c (input_cgraph_1): Always link instrumented
30550 assembler name with original one.
30551
30552 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30553
30554 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30555
30556 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30557
30558 Revert parts of r216820.
30559 * config/i386/i386.md (movqi_internal): Correct type calculation
30560 for alternatives 3 and 5.
30561
30562 2015-04-02 Jakub Jelinek <jakub@redhat.com>
30563
30564 PR preprocessor/61977
30565 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30566 predefine __vector/__bool/__pixel macros nor context sensitive
30567 macros for CLK_ASM.
30568 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30569
30570 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
30571
30572 * config/pa/pa.c (pa_output_move_double): Directly handle register
30573 indexed memory operand. Simplify handling of scaled register indexed
30574 memory operands.
30575
30576 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30577
30578 PR driver/65444
30579 * config/i386/linux-common.h (MPX_SPEC): New.
30580 (CHKP_SPEC): Add MPX_SPEC.
30581 * doc/invoke.texi (-fcheck-pointer-boudns): Document
30582 possible issues with '-z bndplt' support in linker.
30583
30584 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30585
30586 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30587 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30588 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30589 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30590 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30591
30592 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
30593
30594 * config/i386/sync.md (UNSPEC_MOVA): Remove.
30595 (atomic_load<mode>): Change operand 0 predicate to
30596 nonimmediate_operand and fix up the destination when needed.
30597 Use UNSPEC_LDA.
30598 (atomic_loaddi_fpu): Use UNSPEC_LDA.
30599 (atomic_store<mode>): Change operand 1 predicate to
30600 nonimmendate_operand and move the source to register when needed.
30601 Use UNSPEC_STA.
30602 (atomic_store<mode>_1): Use UNSPEC_STA.
30603 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30604 Fix moves from memory operand. Use UNSPEC_STA.
30605
30606 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30607
30608 * expmed.c (strict_volatile_bitfield_p): Check that the access will
30609 not cross a MODESIZE boundary.
30610 (store_bit_field, extract_bit_field): Added assertions in the
30611 strict volatile bitfields code path.
30612
30613 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
30614
30615 PR target/65624
30616 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30617 Increase args array size by one to avoid buffer overflow.
30618
30619 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30620
30621 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30622 split_part.
30623 * ipa-inline.c (edge_badness): Add wrapper penalty.
30624 (sum_callers): Move up.
30625 (inline_small_functions): Set single_caller.
30626 * ipa-inline.h (inline_summary): Add single_caller.
30627 * ipa-split.c (split_function): Set split_part.
30628 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30629 * cgraph.h (cgraph_node): Add split_part.
30630
30631 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
30632
30633 PR target/58945
30634 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30635 Do not split operands 0 and operands 2 to halfmode.
30636 (atomic_compare_and_swap<mode>): Update for
30637 atomic_compare_and_swap<dwi>_doubleword changes.
30638
30639 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30640
30641 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30642 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30643 no caching is done.
30644
30645 2015-03-31 Martin Liska <mliska@suse.cz>
30646
30647 PR ipa/65557
30648 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30649 has already filled up function summary.
30650 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30651
30652 2015-03-31 Richard Biener <rguenther@suse.de>
30653
30654 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30655 of types.
30656
30657 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
30658
30659 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30660 nested functions.
30661 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30662 (s390_asm_output_function_label): Adapt to new signature of
30663 s390_function_num_hotpatch_hw
30664 Optimise the code generating assembler output.
30665 Add comments to assembler file.
30666
30667 2015-03-31 Richard Biener <rguenther@suse.de>
30668
30669 PR middle-end/65626
30670 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30671 of the noreturn call so it is last and cleanup_control_flow_bb
30672 can do the CFG part.
30673
30674 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
30675
30676 PR target/65531
30677 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30678 same_comdat_group for external symbols.
30679 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30680 infinite same_comdat_group traversal loop.
30681
30682 2015-03-31 Jakub Jelinek <jakub@redhat.com>
30683
30684 PR plugins/61176
30685 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30686 automatically to $headers.
30687
30688 2015-03-30 Jakub Jelinek <jakub@redhat.com>
30689
30690 PR ipa/65610
30691 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30692 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30693 function.
30694 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30695 Use it.
30696 * ipa-prop.c (param_type_may_change_p): Likewise.
30697 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30698 (remove_unused_scope_block_p): Add in_ctor_dtor_block
30699 argument. Before inlining, preserve
30700 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30701 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
30702 recursive calls.
30703 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30704
30705 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30706
30707 PR ipa/65076
30708 * ipa-inline.c (edge_badness): Base denominator on callee's
30709 grwoth squared.
30710
30711 2015-03-27 Martin Jambor <mjambor@suse.cz>
30712
30713 PR ipa/65478
30714 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30715 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30716 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30717 node_calling_single_call.
30718 * ipa-cp.c (count_callers): New function.
30719 (set_single_call_flag): Likewise.
30720 (initialize_node_lattices): Count callers and set single_flag_call if
30721 necessary.
30722 (incorporate_penalties): New function.
30723 (good_cloning_opportunity_p): Use it, dump new flags.
30724 (propagate_constants_topo): Set node_within_scc flag if appropriate.
30725 * doc/invoke.texi (ipa-cp-recursion-penalty,
30726 ipa-cp-single-call-pentalty): Document.
30727
30728 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30729
30730 PR ipa/65588
30731 * symtab.c (symtab_node::get_partitioning_class): Register vars
30732 are duplicated.
30733 * varpool.c (symbol_table::output_variables) Do not assemble unefined
30734 decls for non-symbols.
30735
30736 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
30737
30738 PR target/65248
30739 * output.h (default_binds_local_p_2): New.
30740 * varasm.c (default_binds_local_p_2): Renamed to ...
30741 (default_binds_local_p_3): This. Don't return true on protected
30742 data symbol if protected data may be external.
30743 (default_binds_local_p): Use default_binds_local_p_3.
30744 (default_binds_local_p_1): Likewise.
30745 (default_binds_local_p_2): New.
30746 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30747 default_binds_local_p_2 if TARGET_MACHO is undefined.
30748
30749 2015-03-27 Jakub Jelinek <jakub@redhat.com>
30750
30751 PR target/65593
30752 * config/i386/i386.c (legitimize_pic_address): If base
30753 is SYMBOL_REF or LABEL_REF using %rip addressing, force
30754 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30755
30756 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30757
30758 PR target/65531
30759 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30760 comdat groups.
30761
30762 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30763
30764 PR ipa/65600
30765 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30766 of optimized out indirect call.
30767 (redirect_to_unreachable): Always build symbol table node for
30768 BUILT_IN_UNREACHABLE
30769
30770 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
30771
30772 PR target/65407
30773 * ira-costs.c (record_reg_classes): Process all constraint string
30774 containing 0-9.
30775
30776 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
30777
30778 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30779 memory_operand.
30780
30781 PR target/65052
30782 * config/c6x/constraints.md (S3): New constraint.
30783 * config/c6x/c6x.md (real_jump): Use it.
30784
30785 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30786
30787 PR middle-end/65595
30788 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30789 do redirection if the call is not optimized out.
30790
30791 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
30792
30793 PR target/65495
30794 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30795 (fchkp-check-incomplete-type): Add LTO.
30796 (fchkp-zero-input-bounds-for-main): Likewise.
30797 (fchkp-first-field-has-own-bounds): Likewise.
30798 (fchkp-narrow-bounds): Likewise.
30799 (fchkp-narrow-to-innermost-array): Likewise.
30800 (fchkp-use-static-bounds): Likewise.
30801 (fchkp-use-static-const-bounds): Likewise.
30802 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30803
30804 2015-03-27 Marek Polacek <polacek@redhat.com>
30805
30806 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30807
30808 2015-03-27 Marek Polacek <polacek@redhat.com>
30809
30810 PR sanitizer/65583
30811 * ubsan.c (ubsan_create_edge): New function.
30812 (instrument_bool_enum_load): Call it.
30813 (instrument_nonnull_arg): Likewise.
30814 (instrument_nonnull_return): Likewise.
30815 (instrument_object_size): Likewise.
30816
30817 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30818
30819 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30820 auto_vec.
30821
30822 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30823
30824 PR lto/65536
30825 * lto-streamer.h (class lto_location_cache): New.
30826 (struct data_in): Add location_cache.
30827 (lto_input_location): Update prototype.
30828 (stream_input_location_now): New.
30829 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30830 pointer to location.
30831 (stream_input_location): Update.
30832 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30833 (warn_odr): Apply location cache before warning.
30834 (lto_input_location): Update prototype.
30835 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30836 Use stream_input_location_now.
30837 * lto-streamer-in.c (lto_location_cache::current_cache): New static
30838 variable.
30839 (lto_location_cache::cmp_loc): New function.
30840 (lto_location_cache::apply_location_cache): New function.
30841 (lto_location_cache::accept_location_cache): New function.
30842 (lto_location_cache::revert_location_cache): New function.
30843 (lto_location_cache::input_location): New function.
30844 (lto_input_location): Do location caching.
30845 (stream_input_location_now): New function.
30846 (input_eh_region, input_struct_function_base): Use
30847 stream_input_location_now.
30848 (lto_data_in_create): use new.
30849 (lto_data_in_delete): Use delete.
30850 * tree-streamer-in.c (unpack_ts_block_value_fields,
30851 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30852 lto_input_ts_exp_tree_pointers): Update for cached location api.
30853
30854 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30855
30856 PR ipa/65076
30857 * passes.def: Add pass_nothrow.
30858 * ipa-pure-const.c: (pass_data_nothrow): New.
30859 (pass_nothrow): New.
30860 (pass_nothrow::execute): New.
30861 (make_pass_nothrow): New.
30862 * tree-pass.h (make_pass_nothrow): Declare.
30863
30864 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30865
30866 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30867 edge to change by speculation resolution or redirection.
30868 (edge_set_predicate): Likewise.
30869 (inline_summary_t::duplicate): Likewise.
30870 (remap_edge_summaries): Likewise.
30871
30872 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30873
30874 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30875 New macros.
30876 (can_inline_edge_p): Relax option matching for always inline functions.
30877
30878 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
30879
30880 PR target/65561
30881 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30882 Check operand 4 and operand 0 for equality.
30883 (avx512f_vextract<shuffletype>32x4_1_maskm):
30884 Check operand 6 and operand 0 for equality.
30885 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30886 for equality.
30887 (vec_extract_hi_<mode>_maskm): Ditto.
30888
30889 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30890
30891 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30892 dead calls back to live.
30893 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30894 cross check to ...
30895 (cgraph_node::verify_node): ... here; verify only callee edges,
30896 not caller.
30897 * cif-code.def (CILK_SPAWN): New code.
30898
30899 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30900
30901 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30902 (edge_set_predicate): Use it to mark unreachable edges.
30903 (inline_summary_t::duplicate): Remove unnecesary code.
30904 (remap_edge_summaries): Likewise.
30905 (dump_inline_summary): Report contains_cilk_spawn.
30906 (compute_inline_parameters): Compute contains_cilk_spawn.
30907 (inline_read_section, inline_write_summary): Stream
30908 contains_cilk_spawn.
30909 * ipa-inline.c (can_inline_edge_p): Do not touch
30910 DECL_STRUCT_FUNCTION that may not be available;
30911 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30912 remove check for callee_fun->can_throw_non_call_exceptions and
30913 replace it by optimization attribute check; check for flag_exceptions.
30914 * ipa-inline-transform.c (inline_call): Maintain
30915 DECL_FUNCTION_PERSONALITY
30916 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30917
30918 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30919
30920 PR tree-optimization/65551
30921 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30922 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30923
30924 2015-03-26 Richard Biener <rguenther@suse.de>
30925
30926 PR middle-end/65555
30927 * tree-cfg.c (verify_gimple_call): Do not require a call to
30928 have no LHS if it wasn't recognized as control altering yet.
30929
30930 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30931
30932 PR tree-optimization/64715
30933 * passes.def: Add another instance of pass_object_sizes before ccp1.
30934 * tree-object-size.c (pass_object_sizes::execute): In
30935 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30936 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30937 __bos result and the computed constant. Remove redundant
30938 checks, obsoleted by gimple_call_builtin_p test.
30939
30940 * var-tracking.c (variable_tracking_main_1): Don't track
30941 variables for targetm.no_register_allocation targets.
30942
30943 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
30944
30945 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30946 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30947
30948 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30949
30950 PR target/65569
30951 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30952 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
30953 0.0 is correctly setup.
30954 (extenddftf2_internal): Likewise.
30955
30956 2015-03-25 Sebastian Pop <s.pop@samsung.com>
30957
30958 PR tree-optimization/65177
30959 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30960 (bb_in_bbs): New.
30961 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
30962 edges not adjacent on the path to the original code.
30963
30964 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
30965
30966 PR bootstrap/65537
30967 * doc/install.texi (Building a native compiler): Document new
30968 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
30969 configuration assumes that the host supports the linker plugin.
30970
30971 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
30972
30973 PR target/65508
30974 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30975 chain for generated call.
30976
30977 2015-03-25 Richard Biener <rguenther@suse.de>
30978
30979 * passes.c (pass_manager::execute_early_local_passes): Guard
30980 execution of pass_chkp_instrumentation_passes with
30981 flag_check_pointer_bounds.
30982 (pass_chkp_instrumentation_passes::gate): Likewise.
30983
30984 2015-03-25 Martin Liska <mliska@suse.cz>
30985
30986 PR tree-optimization/65538
30987 * symbol-summary.h (function_summary::~function_summary):
30988 Relese memory for allocated summaries.
30989 (function_summary::release): New function.
30990
30991 2015-03-25 Jakub Jelinek <jakub@redhat.com>
30992
30993 PR lto/65515
30994 * lto-streamer-out.c (DFS::worklist): New struct.
30995 (DFS::worklist_vec): New data member.
30996 (DFS::next_dfs_num): Remove.
30997 (DFS::DFS): Rewritten using worklist instead of recursion,
30998 using most of code from DFS::DFS_write_tree.
30999 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31000 pass it to DFS_write_tree calls.
31001 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31002 quick initial checks push it into worklist_vec and return.
31003
31004 2015-03-25 Richard Biener <rguenther@suse.de>
31005
31006 PR middle-end/65519
31007 * genmatch.c (expr::gen_transform): Re-write to avoid
31008 using gimple_build.
31009
31010 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31011
31012 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31013
31014 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31015
31016 * config/arm/arm.opt (print_tune_info): New option.
31017 * config/arm/arm.c (arm_print_tune_info): New function.
31018 (arm_file_start): Call arm_print_tune_info.
31019 * config/arm/arm-protos.h (struct tune_params): Add comment.
31020 * doc/invoke.texi (@item -mprint-tune-info): New item.
31021 (-mtune): mention it in ARM Option Summary.
31022
31023 2015-03-25 DJ Delorie <dj@redhat.com>
31024
31025 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31026 correct clause.
31027
31028 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
31029 Martin Liska <mliska@suse.cz>
31030
31031 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31032 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31033 (sem_item::add_type): New function.
31034 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31035 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31036 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31037 (sem_function::equals_wpa): Fix typo.
31038 * ipa-icf.h (sem_item::add_type): New function.
31039 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31040 order.
31041
31042 2015-03-24 Jakub Jelinek <jakub@redhat.com>
31043
31044 PR tree-optimization/65533
31045 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31046 with swapped operands, call vect_free_slp_tree on
31047 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31048 vector.
31049
31050 2015-03-24 Richard Biener <rguenther@suse.de>
31051
31052 PR middle-end/65517
31053 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31054 for fixup if necessary.
31055
31056 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
31057
31058 * doc/extend.texi (Function Attributes): Add @cindex entries
31059 for all attributes and regularize their format. Delete text
31060 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
31061 information about "eightbit_data", "tiny_data", and "model"
31062 variable attributes to the Variable Attributes section. Fix
31063 some obvious typos and copy-editing issues.
31064 (Variable Attributes, Type Attributes): Likewise add/fix
31065 @cindex entries for all attributes.
31066
31067 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31068
31069 PR target/65523
31070 * tree-chkp.c (chkp_build_returned_bound): Ignore
31071 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31072
31073 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
31074
31075 PR target/65505
31076 * config/sh/predicates.md (simple_mem_operand,
31077 displacement_mem_operand): Add test for reg.
31078 (short_displacement_mem_operand): Test for displacement_mem_operand
31079 before invoking sh_disp_addr_displacement.
31080 * config/sh/constraints.md (Sdd, Sra): Simplify.
31081 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31082 Remove redundant displacement_mem_operand tests.
31083
31084 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
31085
31086 PR target/65296
31087 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31088 the same -mmcu=MCU more than once.
31089
31090 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31091
31092 PR bootstrap/65522
31093 * ipa-devirt.c: Remove duplicate demangle.h include.
31094
31095 PR target/65504
31096 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31097 on the pseudo.
31098 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31099 REG_POINTER on *destptr after adjusting it for prologue size.
31100
31101 PR ipa/65521
31102 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31103 ultimate_alias_target ()->order ints instead of
31104 ultimate_alias_target () pointers.
31105
31106 2015-03-23 Richard Biener <rguenther@suse.de>
31107
31108 PR tree-optimization/65518
31109 * tree-vect-stmts.c (vectorizable_load): Reject single-element
31110 interleaving cases we generate absymal code for.
31111
31112 2015-03-23 Richard Biener <rguenther@suse.de>
31113
31114 PR tree-optimization/65494
31115 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31116 matches here.
31117 (vect_analyze_slp_instance): But do that here, always and once.
31118
31119 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31120
31121 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31122 adding T or multiplying by T+1 and subracting T.
31123
31124 2015-03-22 Jeff Law <law@redhat.com>
31125
31126 PR rtl-optimization/64317
31127 * Makefile.in (OBJS): Add gcse-common.c
31128 * gcse.c: Include gcse-common.h
31129 (struct modify_pair_s): Move structure definition to gcse-common.h
31130 (compute_transp): Move function to gcse-common.c.
31131 (canon_list_insert): Similarly.
31132 (record_last_mem_set_info): Break out some code and put it into
31133 gcse-common.c. Call into the new common code.
31134 (compute_local_properties): Pass additional arguments to compute_transp.
31135 * postreload-gcse.c: Include gcse-common.h and df.h
31136 (modify_mem_list_set, blocks_with_calls): New variables.
31137 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31138 (get_bb_avail_insn): Pass in the expression index too.
31139 (alloc_mem): Allocate memory for the new bitmaps and lists.
31140 (free_mem): Free memory for the new bitmaps and lists.
31141 (insert_expr_in_table): Record a bitmap index for each entry we
31142 add to the table.
31143 (record_last_mem_set_info): Call into common code in gcse-common.c.
31144 (get_bb_avail_insn): If no available insn was found in the requested
31145 BB. If BB has a single predecessor, see if the expression is
31146 transparent in BB and available in that single predecessor.
31147 (compute_expr_transp): New wrapper for compute_transp.
31148 (eliminate_partially_redundant_load): Pass expression's bitmap_index
31149 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
31150 (gcse_after_reload_main): If there are elements in the hash table,
31151 then compute transparency for all the elements in the hash table.
31152 * gcse-common.h: New file.
31153 * gcse-common.c: New file.
31154
31155 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
31156
31157 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31158 as an adjective.
31159 (System Headers): Likewise.
31160 (Ifdef): Likewise.
31161 (Traditional macros): Likewise.
31162 (Invocation): Likewise.
31163 (Option Index): Likewise.
31164 * doc/cppopts.texi (-M): Likewise.
31165 (-finput-charset): Likewise.
31166 (--help): Likewise.
31167 * doc.invoke.texi (AVR Options): Likewise.
31168 (V850 Options): Likewise.
31169
31170 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
31171
31172 PR ipa/65475
31173 * ipa-devirt.c: Include demangle.h
31174 (odr_type_d): Add field rtti_broken.
31175 (odr_subtypes_equivalent_p): Do not require name to match.
31176 (compare_virtual_tables): Fix typo; if type already has ODR violation,
31177 bypass the tests; be ready for function referneces in vtables that are
31178 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31179 (warn_odr): Give up for nameless types.
31180 (warn_types_mismatch): Report mismatch in mangled names;
31181 report mismatch in anonymous namespaces; look into component types to
31182 give useful error; report when mismatch is dragged in from other ODR
31183 type.
31184 (odr_types_equivalent_p): Match types for being polymorphic; avoid
31185 duplicated diagnostics.
31186 (add_type_duplicate): Reorder checks so more informative ones come
31187 first; fix typo; do not output "the extra base is defined here" when
31188 we did not warn.
31189 (BINFO_N_BASE_BINFOS): Relax sanity check.
31190
31191 2015-03-22 Martin Liska <mliska@suse.cz>
31192 Jakub Jelinek <jakub@redhat.com>
31193
31194 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31195 masks that can potentially include a builtin.
31196 (ix86_add_new_builtins): Introduce fast filter for isa values
31197 that cannot trigger builtin inclusion.
31198
31199 2015-03-22 Martin Liska <mliska@suse.cz>
31200
31201 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31202 (sem_item::update_hash_by_local_refs): Likewise.
31203 (sem_variable::get_hash): Empty line is fixed.
31204 (sem_item_optimizer::execute): Include adding of hash references.
31205 (sem_item_optimizer::update_hash_by_addr_refs): New function.
31206 (sem_item_optimizer::build_hash_based_classes): Use local hash.
31207 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31208 (sem_item::update_hash_by_local_refs): Likewise.
31209
31210 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31211
31212 PR ipa/65502
31213 * ipa-comdats.c (enqueue_references): Walk through thunks.
31214 (ipa_comdats): Likewise.
31215 (set_comdat_group_1): New function.
31216
31217 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31218
31219 PR ipa/65475
31220 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31221 non-polymorphic
31222
31223 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
31224 Gerald Pfeifer <gerald@pfeifer.com>
31225
31226 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31227
31228 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31229 Sandra Loosemore <sandra@codesourcery.com>
31230
31231 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31232 function parameter declaration.
31233 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31234 Update arguments to nios2_adjust_call_address().
31235 (sibcall_internal): Rename from *sibcall.
31236 (sibcall_value_internal): Rename from *sibcall_value.
31237 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31238 (nios2_large_got_address): Add target temp reg parameter.
31239 (nios2_got_address): Adjust call to nios2_large_got_address, add
31240 force_reg around it.
31241 (nios2_load_pic_address): Add target temp reg parameter, replace call
31242 to nios2_got_address with corresponding code.
31243 (nios2_legitimize_constant_address): Update call to
31244 nios2_load_pic_address.
31245 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31246 to use temp reg for PIC loading purposes.
31247 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31248 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31249 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31250
31251 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31252
31253 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31254 usage of "the @option{...}".
31255 (-Wopenmp-simd): Likewise.
31256 (-fsanitize-recover): Likewise.
31257 (-fsanitize-undefined-trap-on-error): Likewise.
31258 (-flto): Likewise.
31259 (tracer-dynamic-coverage-feedback): Likewise.
31260 (reorder-block-duplicate-feedback): Likewise.
31261 (loop-unroll-jam-size): Likewise.
31262 (-B): Likewise.
31263 (-I-): Likewise.
31264 (-mabs=legacy): Likewise.
31265 (-mupper-regs-df): Likewise.
31266 (-mupper-regs-sf): Likewise.
31267 (-mpointers-to-nested-functions): Likewise.
31268
31269 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31270
31271 * doc/extend.texi (Cilk Plus Builtins): Add markup.
31272
31273 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31274
31275 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31276 additional index entries and cross-references.
31277 (-fchkp-check-incomplete-type): Likewise.
31278 (-fchkp-first-field-has-own-bounds): Likewise.
31279 (-fchkp-narrow-to-innermost-array): Likewise.
31280 (-fchkp-use-fast-string-functions): Likewise.
31281 (-fchkp-use-nochk-string-functions): Likewise.
31282 (-fchkp-use-static-const-bounds): Likewise.
31283 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31284 (-fchkp-instrument-marked-only): Likewise.
31285 (-fchkp-use-wrappers): Likewise.
31286 (-static-libmpx): Likewise.
31287 (-static-libmpxwrappers): Likewise.
31288 * doc/extend.texi (bnd_legacy): Likewise.
31289 (bnd_instrument): Likewise.
31290 (bnd_variable_size): Likewise.
31291 (Pointer Bounds Checker builtins): Likewise.
31292
31293 2015-03-21 Tom de Vries <tom@codesourcery.com>
31294
31295 PR tree-optimization/65458
31296 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31297 * cgraph.h (cgraph_node): Add parallelized_function field.
31298 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31299 (input_overwrite_node): Read parallelized_function field.
31300 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31301 parallelized_function on cgraph_node for child_fn.
31302 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31303 Remove include of gt-tree-parloops.h.
31304 (parallelized_functions): Remove static variable.
31305 (parallelized_function_p): Rewrite using parallelized_function field of
31306 cgraph_node.
31307 (create_loop_fn): Remove adding to parallelized_functions.
31308 * Makefile.in (GTFILES): Remove tree-parloops.c
31309
31310 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
31311
31312 PR rtl-optimization/64366
31313 * lra.c (lra_update_insn_regno_info): Consider regs in
31314 CALL_INSN_FUNCTION_USAGE memory.
31315
31316 2015-03-20 Richard Biener <rguenther@suse.de>
31317
31318 PR middle-end/64715
31319 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31320 for type comparison and gcc_checking_assert.
31321 (chrec_fold_plus_poly_poly): Likewise.
31322 (chrec_fold_multiply_poly_poly): Likewise.
31323 (chrec_convert_1): Likewise.
31324 * gimplify.c (gimplify_expr): Remove premature folding of
31325 &X + CST to &MEM[&X, CST].
31326
31327 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31328
31329 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31330 already is final.
31331 (ipa_inline): Recompute inline_failed codes.
31332 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31333 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31334 CIF_FINAL_ERROR.
31335
31336 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31337
31338 PR rtl-optimization/60851
31339 * recog.c (constrain_operands): Accept a pseudo register before reload
31340 for LRA enabled targets.
31341
31342 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31343
31344 PR target/65240
31345 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31346 -ffast-math handling that kept non-0 constants live in the RTL
31347 until reload. Remove logic testing the number of instructions it
31348 took to create a constant in a GPR that was never used, due to a
31349 test for soft-float earlier.
31350 (memory_fp_constant): Delete, no longer used.
31351
31352 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31353 alternatives for loading non-0 constants into GPRs for hard
31354 floating point that is no longer needed due to changes in
31355 easy_fp_constant. Add support for loading 0.0 into GPRs.
31356 (mov<mode>_hardfloat32): Likewise.
31357 (mov<mode>_hardfloat64): Likewise.
31358 (mov<mode>_64bit_dm): Likewise.
31359 (movtd_64bit_nodm): Likewise.
31360 (pre-reload move FP constant define_split): Delete define_split,
31361 since it is no longer used.
31362 (extenddftf2_internal): Remove GHF constraints that are not valid
31363 for extenddftf2.
31364
31365 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31366
31367 PR rtl-optimization/63491
31368 * lra-constraints.c (check_and_process_move): Use src instead of
31369 sreg. Remove some dead code.
31370
31371 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31372
31373 PR ipa/65380
31374 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31375 (sem_variable::merge): Likewise.
31376
31377 2015-03-19 Martin Liska <mliska@suse.cz>
31378
31379 PR ipa/65465
31380 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31381 all fields of cgraph_thunk_info.
31382
31383 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31384
31385 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31386 clone instrumented thunks.
31387
31388 2015-03-19 Richard Biener <rguenther@suse.de>
31389
31390 Revert
31391 2015-03-10 Richard Biener <rguenther@suse.de>
31392
31393 PR middle-end/63155
31394 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31395 * tree-ssa-coalesce.c: Include timevar.h.
31396 (attempt_coalesce): Handle graph being NULL.
31397 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31398 Split out abnormal coalescing to ...
31399 (perform_abnormal_coalescing): ... this function.
31400 (coalesce_ssa_name): Perform abnormal coalescing without computing
31401 live/conflict.
31402 (verify_ssa_coalescing_worker): New function.
31403 (verify_ssa_coalescing): Likewise.
31404
31405 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31406 Jakub Jelinek <jakub@redhat.com>
31407
31408 PR sanitizer/65400
31409 * tsan.c (instrument_gimple): Clear tail call flag on
31410 calls.
31411
31412 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31413
31414 PR sanitizer/65400
31415 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31416 call in the return bb.
31417 (find_split_points): Add RETURN_BB argument, don't call
31418 find_return_bb.
31419 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31420 if true append TSAN_FUNC_EXIT internal call after the call to
31421 the split off function.
31422 (execute_split_functions): Call find_return_bb here.
31423 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31424 Adjust find_split_points and split_function calls.
31425
31426 2015-03-18 DJ Delorie <dj@redhat.com>
31427
31428 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31429 (iorqi3_virt): Likewise.
31430
31431 2015-03-18 Tom de Vries <tom@codesourcery.com>
31432
31433 * tree-parloops.c (parallelize_loops): Make static.
31434 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31435
31436 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31437
31438 PR middle-end/64491
31439 Revert:
31440 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31441
31442 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31443 condition would be removed due to undefined behaviour.
31444
31445 2015-03-18 Martin Liska <mliska@suse.cz>
31446
31447 PR ipa/65432
31448 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31449 xstrdup_for_dump wrapper.
31450 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31451 sem_item::name.
31452 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31453 with xstrdup_for_dump.
31454 (sem_variable::equals): Likewise.
31455 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31456 sem_item::name.
31457 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31458 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31459 symtab_node::asm_name with xstrdup_for_dump.
31460 (congruence_class::dump): Use symtab_node::name instead of
31461 sem_item::name.
31462 * ipa-icf.h (symtab_node::name): Remove.
31463 (symtab_node::asm_name): Likewise.
31464
31465 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31466
31467 PR tree-optimization/65450
31468 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31469 function.
31470 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31471 it instead of duplicate_ssa_name_ptr_info.
31472
31473 PR target/65222
31474 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31475
31476 2015-03-18 Richard Biener <rguenther@suse.de>
31477
31478 * tree-data-ref.h (struct access_matrix): Remove.
31479 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31480 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31481 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31482 (am_vector_index_for_loop): Likewise.
31483 (struct data_reference): Remove access_matrix member.
31484 (DR_ACCESS_MATRIX): Remove.
31485 (lambda_vector_new): Add comment.
31486 (lambda_matrix_new): Use XOBNEWVEC.
31487
31488 2015-03-18 Richard Biener <rguenther@suse.de>
31489
31490 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31491 (pass_ch::execute): Cleanup the CFG only if we did sth.
31492 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31493
31494 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31495
31496 * expmed.c (synth_mult): Use std::swap instead of manually
31497 swapping algorithms.
31498
31499 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31500
31501 PR target/65078
31502 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31503
31504 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
31505
31506 PR target/65296
31507 * config/avr/avr.opt (-nodevicelib): New option.
31508 * doc/invoke.texi (AVR Options): Document it.
31509 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31510 libgcc.a, libc.a, libm.a.
31511 * config/avr/specs.h: Same.
31512 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31513 which don't (directly) depend on the device. Print more help.
31514 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31515 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31516 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31517 case of an error.
31518 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31519 for specs file name.
31520 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31521 * config/avr/avr-mcus.def: Adjust initializers and comments.
31522
31523 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
31524
31525 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31526 DECL_ONE_ONLY to check if decl is one only.
31527 * ipa-split.c (consider_split): Limit splitt of one only functions.
31528
31529 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31530
31531 PR tree-optimization/65427
31532 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31533 functions.
31534 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31535
31536 2015-03-16 Marek Polacek <polacek@redhat.com>
31537
31538 * cgraph.h (add_new_static_var): Remove declaration.
31539 * varpool.c (add_new_static_var): Remove function.
31540
31541 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31542
31543 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31544 instead of vec<tree> * with vec_alloc and release for args.
31545 Adjust all users.
31546
31547 PR middle-end/65431
31548 * omp-low.c (delete_omp_context): Only splay_tree_delete
31549 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31550 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
31551
31552 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
31553
31554 PR sanitizer/64820
31555 * cfgexpand.c (align_base): New function.
31556 (alloc_stack_frame_space): Call it.
31557 (expand_stack_vars): Align prev_frame to be sure
31558 data->asan_vec elements aligned properly.
31559
31560 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
31561
31562 PR middle-end/65409
31563 * expr.c (store_field): Do not do a direct block copy if the source is
31564 a PARALLEL with BLKmode.
31565
31566 2015-03-16 Tom de Vries <tom@codesourcery.com>
31567
31568 PR middle-end/65414
31569 Revert:
31570 2015-03-12 Tom de Vries <tom@codesourcery.com>
31571
31572 PR rtl-optimization/64895
31573 * lra-lives.c (check_pseudos_live_through_calls): Use
31574 actual_call_used_reg_set instead of call_used_reg_set, if available.
31575
31576 2015-03-16 Alan Modra <amodra@gmail.com>
31577
31578 PR target/63150
31579 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31580 Modify Z->r bswapdi splitter to use dest in place of scratch.
31581 In r->Z and Z->r bswapdi splitter rename word_high, word_low
31582 to word1, word2 and rearrange logic to suit.
31583 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31584 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
31585 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31586 Add one '?' on r->r. Modify Z->r splitter to avoid need for
31587 early clobber.
31588
31589 2015-03-14 Jakub Jelinek <jakub@redhat.com>
31590
31591 PR tree-optimization/65369
31592 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31593 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31594 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31595
31596 PR tree-optimization/65418
31597 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31598 are casts in the first PLUS_EXPR operand, ensure tbias and
31599 *totallowp are in the inner type.
31600
31601 PR rtl-optimization/65401
31602 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31603 argument. If true, adjust_address_nv of x with big-endian
31604 correction for the mode widening to GET_MODE (y).
31605 (make_field_assignment): Don't do MEM mode widening here.
31606 Use MEM_P instead of GET_CODE == MEM.
31607
31608 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
31609
31610 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31611 the external decls.
31612
31613 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31614
31615 PR target/64600
31616 * config/arm/arm.c (arm_gen_constant, AND case): Use
31617 ARM_SIGN_EXTEND when constructing AND mask.
31618
31619 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31620
31621 * graph.c (print_graph_cfg): Make function names visible and append
31622 parenthesis to it. Also make groups of basic blocks belonging to the
31623 same function visible.
31624
31625 2015-03-12 Richard Biener <rguenther@suse.de>
31626
31627 PR middle-end/44563
31628 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31629 to avoid quadratic behavior with inline expansion splitting blocks.
31630 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31631 with the successor if the predecessor will be merged with it.
31632 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31633 entry block with its successor.
31634
31635 2015-03-13 Richard Biener <rguenther@suse.de>
31636
31637 PR middle-end/44563
31638 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31639 (cleanup_tree_cfg_1): Do not call it.
31640 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31641 (fixup_noreturn_call): Mark the stmt as control altering.
31642 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31643 here.
31644 (pass_data_fixup_cfg): Produce a dump file.
31645 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31646 (need_noreturn_fixup): New global.
31647 (pass_dominator::execute): Fixup queued noreturn calls.
31648 (optimize_stmt): Queue calls that became noreturn for fixup.
31649 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31650 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31651 (el_to_fixup): New global.
31652 (eliminate_dom_walker::before_dom_childre): Queue calls that
31653 became noreturn for fixup.
31654 (eliminate): Fixup queued noreturn calls.
31655 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31656 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31657 (substitute_and_fold_dom_walker::before_dom_children): Queue
31658 alls that became noreturn for fixup.
31659 (substitute_and_fold): Fixup queued noreturn calls.
31660
31661 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
31662
31663 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31664 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31665 are building; for methods check ODR type of class they belong to if
31666 they may lead to a polymorphic call.
31667 (sem_function::compare_polymorphic_p): Be bit smarter about testing
31668 when function may lead to a polymorphic call.
31669 (sem_function::compare_type_list): Remove.
31670 (sem_variable::equals): Update use of compatible_types_p.
31671 (sem_variable::parse_tree_refs): Remove.
31672 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31673 cdtor.
31674 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31675 matching here.
31676 (func_checker::compatible_polymorphic_types_p): Break out from ...
31677 (unc_checker::compatible_types_p): ... here.
31678 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31679 Declare.
31680 (unc_checker::compatible_types_p): Update.
31681 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31682 Remove.
31683
31684 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31685
31686 PR rtl-optimization/65235
31687 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31688 When first element of vec_concat is const_int, calculate its size
31689 using second element.
31690
31691 2015-03-12 Richard Biener <rguenther@suse.de>
31692
31693 PR middle-end/65270
31694 * fold-const.c (operand_equal_p): Fix ordering of resetting
31695 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31696
31697 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31698
31699 * config/s390/s390.c (s390_reorg): Move code to output nops after label
31700 to s390_reorg ().
31701 (s390_asm_output_function_label): Likewise.
31702 * config/s390/s390.c (s390_asm_output_function_label):
31703 Fix function label alignment with -mhtopatch.
31704 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31705 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31706 ("nop_2_byte"): New define_insn.
31707 ("nop_4_byte"): Likewise.
31708 ("nop_6_byte"): Likewise.
31709 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31710 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31711
31712 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31713
31714 PR target/65103
31715 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31716 register.
31717
31718 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31719
31720 PR target/65044
31721 * toplev.c (process_options): Restrict Pointer Bounds Checker
31722 usage with Address Sanitizer.
31723
31724 2015-03-12 Richard Biener <rguenther@suse.de>
31725
31726 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31727 to split on.
31728 * omp-low.c (expand_omp_taskreg): Split block before removing
31729 the stmt.
31730 (expand_omp_target): Likewise.
31731 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31732 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31733 stmt to split_block.
31734
31735 2015-03-12 Tom de Vries <tom@codesourcery.com>
31736
31737 PR rtl-optimization/64895
31738 * lra-lives.c (check_pseudos_live_through_calls): Use
31739 actual_call_used_reg_set instead of call_used_reg_set, if available.
31740
31741 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31742
31743 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31744 (cgraph_node::remove): Likewise.
31745 (cgraph_node::get_untransformed_body): Likewise.
31746 * varpool.c (varpool_node::remove): Likewise.
31747 (varpool_node::get_constructor): Add sanity check.
31748
31749 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
31750
31751 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31752 old GCC versions.
31753 (-fabi-compat-version): Likewise.
31754 (-ffriend-injection): Likewise.
31755 (-Wdeclaration-after-statement): Likewise.
31756 (-fomit-frame-pointer): Likewise.
31757 (-ftree-coalesce-inlined-vars): Likewise.
31758 (-fvisibility=): Likewise.
31759 * doc/extend.texi (Typeof): Likewise.
31760 (Zero Length): Likewise.
31761 (Escaped Newlines): Likewise.
31762 (Compound Literals): Likewise.
31763 (Function Attributes): Likewise.
31764 (Label Attributes): Likewise.
31765 (Type Attributes): Likewise.
31766 (Function Names): Likewise.
31767 (Other Builtins): Likewise.
31768 (Function Specific Option Pragmas): Likewise.
31769 (C++ Interface): Likewise.
31770
31771 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
31772
31773 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31774
31775 2015-03-11 Marek Polacek <polacek@redhat.com>
31776
31777 PR tree-optimization/65388
31778 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31779
31780 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31781
31782 PR target/65296
31783 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31784 * configure: Regenerate.
31785 * config.in: Regenerate.
31786 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31787 [-mn-flash]: Document it.
31788 [__AVR_ARCH__]: Document avrtiny.
31789
31790 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31791 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31792 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31793
31794 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31795
31796 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31797
31798 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31799
31800 PR target/65242
31801 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31802 allow reloads of PLUS in floating point/VSX registers.
31803
31804 2015-03-11 Junmo Park <junmoz.park@samsung.com>
31805
31806 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31807 crypto_sha256_fast.
31808 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31809
31810 2015-03-11 Richard Biener <rguenther@suse.de>
31811
31812 PR tree-optimization/65310
31813 * tree-sra.c (build_ref_for_offset): Also preserve larger
31814 alignment.
31815
31816 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
31817
31818 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31819
31820 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31821
31822 PR target/65368
31823 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31824 new define_expand.
31825 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31826
31827 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31828
31829 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31830 (sem_function::equals_wpa): ... here.
31831
31832 2015-03-10 Marek Polacek <polacek@redhat.com>
31833 Jakub Jelinek <jakub@redhat.com>
31834
31835 PR sanitizer/65367
31836 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31837 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
31838 separately.
31839
31840 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31841
31842 PR target/65286
31843 * config/rs6000/t-linux: For powerpc64* target set
31844 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31845
31846 2015-03-10 Richard Biener <rguenther@suse.de>
31847
31848 PR middle-end/44563
31849 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31850 for redirect_all_calls.
31851
31852 2015-03-10 Marek Polacek <polacek@redhat.com>
31853
31854 * gdbinit.in (pcfun): Define and document.
31855
31856 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
31857
31858 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31859 of libgomp-plugin.h.
31860 (find_target_compiler): Support a case when the path to gcc is
31861 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31862 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31863 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31864 libgomp-plugin.h.
31865 (main): Use GCC_INSTALL_NAME as target_driver_name.
31866 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31867 define.
31868 (mkoffload.o): Remove obsolete include path and defines.
31869 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31870
31871 2015-03-10 Richard Biener <rguenther@suse.de>
31872
31873 PR middle-end/63155
31874 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31875 * tree-ssa-coalesce.c: Include timevar.h.
31876 (attempt_coalesce): Handle graph being NULL.
31877 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31878 Split out abnormal coalescing to ...
31879 (perform_abnormal_coalescing): ... this function.
31880 (coalesce_ssa_name): Perform abnormal coalescing without computing
31881 live/conflict.
31882 (verify_ssa_coalescing_worker): New function.
31883 (verify_ssa_coalescing): Likewise.
31884
31885 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31886
31887 PR target/65296
31888 * config.gcc (extra_options) [avr]: Remove.
31889 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31890 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31891 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31892
31893 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31894 (-mmcu=): Add Var and MissingArgError properties.
31895 (-march=): Remove.
31896 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31897 * config/avr/t-multilib: Regenerate.
31898 * config/avr/specs.h: New file.
31899 * config/avr/driver-avr.c: New file.
31900 * config/avr/genopt.sh: Remove file.
31901 * config/avr/avr-tables.opt: Remove file.
31902 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31903 * config/avr/avr-c.c: Same.
31904 * avr-arch.h: Same.
31905 (avr_current_device): Remove proto.
31906 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31907 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31908 (EXTRA_SPEC_FUNCTIONS): Define.
31909 (avr_devicespecs_file): New specs function proto.
31910 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31911 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31912 (avr_current_device): Remove definition and usage.
31913 (avr_set_core_architecture): New static function.
31914 (avr_option_override): Use it.
31915 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31916 (mcu_name): New static array.
31917 (comparator, avr_archs_str, avr_mcus_str): New static functions.
31918 (avr_inform_devices, avr_inform_core_architectures): New functions.
31919 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31920 (avrlibc.h) [WITH_AVRLIBC]: Include.
31921 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31922 (print_mcu): Rewrite from scratch.
31923 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31924 Forward to avr-specific specs defined in device-specs file.
31925 * config/avr/t-avr (driver-avr.o): New rule.
31926 (avr-devices.o): Depend on avr-arch.h.
31927 (avr-mcus): No more depend on avr-tables.opt.
31928 (avr-tables.opt): Remove rule.
31929 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31930
31931 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31932
31933 * c-family/c.opt (fchkp-use-wrappers): New.
31934 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31935 (chkp_wrap_function): New.
31936 (chkp_build_instrumented_fndecl): Support wrapped
31937 functions.
31938 * doc/invoke.texi (-fcheck-pointer-bounds): New.
31939 (-fchkp-check-incomplete-type): New.
31940 (-fchkp-first-field-has-own-bounds): New.
31941 (-fchkp-narrow-bounds): New.
31942 (-fchkp-narrow-to-innermost-array): New.
31943 (-fchkp-optimize): New.
31944 (-fchkp-use-fast-string-functions): New.
31945 (-fchkp-use-nochk-string-functions): New.
31946 (-fchkp-use-static-bounds): New.
31947 (-fchkp-use-static-const-bounds): New.
31948 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31949 (-fchkp-check-read): New.
31950 (-fchkp-check-write): New.
31951 (-fchkp-store-bounds): New.
31952 (-fchkp-instrument-calls): New.
31953 (-fchkp-instrument-marked-only): New.
31954 (-fchkp-use-wrappers): New.
31955 (-static-libmpx): New.
31956 (-static-libmpxwrappers): New.
31957
31958 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31959
31960 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31961 (CHKP_SPEC): Add wrappers library.
31962 * c-family/c.opt (static-libmpxwrappers): New.
31963
31964 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31965
31966 * config/i386/linux-common.h (LIBMPX_LIBS): New.
31967 (LIBMPX_SPEC): New.
31968 (CHKP_SPEC): New.
31969 * gcc.c (CHKP_SPEC): New.
31970 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31971 * c-family/c.opt (static-libmpx): New.
31972
31973 2015-03-10 Richard Biener <rguenther@suse.de>
31974
31975 PR middle-end/44563
31976 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31977 for compare_type.
31978 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31979 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31980 (cgraph_add_edge_to_call_site_hash): Likewise.
31981 (cgraph_node::get_edge): Likewise.
31982 (cgraph_edge::set_call_stmt): Likewise.
31983 (cgraph_edge::remove_caller): Likewise.
31984
31985 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
31986
31987 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31988 (callee_saved_gpr_regs_size): ... this.
31989 (callee_saved_regs_first_regno): Rename to ...
31990 (callee_saved_first_gpr_regno): ... this.
31991 (callee_saved_regs_last_regno) Rename to ...
31992 (callee_saved_last_gpr_regno): ... this.
31993 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31994 variables.
31995 (nds32_initial_elimination_offset): Likewise.
31996 (nds32_expand_prologue): Likewise.
31997 (nds32_expand_epilogue): Likewise.
31998 (nds32_expand_prologue_v3push): Likewise.
31999 (nds32_expand_epilogue_v3pop): Likewise.
32000 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32001 Adjust renamed variables.
32002 (nds32_output_stack_pop): Likewise.
32003
32004 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
32005
32006 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32007 code in comment.
32008
32009 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32010
32011 PR rtl-optimization/65321
32012 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32013 than shift mode.
32014 * var-tracking.c (use_narrower_mode): Likewise.
32015
32016 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32017
32018 PR tree-optimization/65355
32019 * varasm.c (notice_global_symbol): Do not produce RTL.
32020 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32021 anchor.
32022 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32023 check for section anchors.
32024
32025 2015-03-10 Alan Modra <amodra@gmail.com>
32026
32027 PR target/65286
32028 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32029 to be single-arch by default. Set cpu_is_64bit for powerpc64
32030 given --with-cpu=native.
32031 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32032 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32033 and powerpc64le.
32034 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32035 rs6000_isa_flags rather than TARGET_64BIT.
32036
32037 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
32038 Kaz Kojima <kkojima@gcc.gnu.org>
32039
32040 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32041
32042 2015-03-09 Jakub Jelinek <jakub@redhat.com>
32043
32044 PR lto/65361
32045 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32046 on a TREE_BINFO, instead use BINFO_TYPE.
32047
32048 2015-03-09 Richard Biener <rguenther@suse.de>
32049
32050 PR middle-end/65270
32051 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32052 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32053 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
32054 of that. When comparing dereferences compare alignment.
32055 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32056
32057 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32058
32059 * ipa-inline-analysis.c (check_callers): Check
32060 node->can_remove_if_no_direct_calls_and_refs_p.
32061 (growth_likely_positive): Reorganize to call
32062 can_remove_if_no_direct_calls_p later.
32063 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32064 will_be_removed_from_program_if_no_direct_calls_p): Add
32065 will_inline parameter.
32066 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32067 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32068 Handle inliner case correctly.
32069
32070 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32071
32072 PR tree-optimization/63743
32073 * cfgexpand.c (reorder_operands): Also reorder if only second operand
32074 had its definition forwarded by TER.
32075
32076 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32077
32078 PR lto/65316
32079 * ipa-utils.h (types_odr_comparable): Add strict argument.
32080 * ipa-devirt.c: Fix whitespace;
32081 (odr_hasher): Remove.
32082 (odr_name_hasher, odr_vtable_hasher): New hashers.
32083 (can_be_name_hashed_p): New predicate.
32084 (hash_type_name): remove.
32085 (hash_odr_name): New.
32086 (odr_name_hasher::hash): new.
32087 (can_be_vtable_hashed_p): New.
32088 (hash_odr_vtable): New.
32089 (odr_vtable_hasher::hash): New.
32090 (types_same_for_odr): Add strict parameter.
32091 (types_odr_comparable): Likewise.
32092 (odr_name_hasher::equal): New.
32093 (odr_vtable_hasher::equal): New.
32094 (odr_name_hasher::remove): New.
32095 (odr_hash_type): Change to hash_table<odr_name_hasher>.
32096 (odr_vtable_hash_type): New.
32097 (odr_vtable_hash): New.
32098 (odr_subtypes_equivalent_p): Do strict comparsion.
32099 (add_type_duplicate): Merge type names; cleanup; avoid type
32100 duplicates.
32101 (register_odr_type): Initialize vtable hash.
32102 (build_type_inheritance_graph): Likewise
32103 (get_odr_type): Reorg to use two hashes.
32104 (dump_possible_polymorphic_call_targets): Move sanity check after debug
32105 output.
32106 (ipa_devirt): Dump type_inheritance_graph.
32107 (types_same_for_odr): Add strict mode.
32108
32109 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32110
32111 PR ipa/65334
32112 * cgraph.h (symtab_node): Add definition_alignment,
32113 can_increase_alignment_p and increase_alignment.
32114 * symtab.c (symtab_node::can_increase_alignment_p,
32115 increase_alignment_1, symtab_node::increase_alignment,
32116 symtab_node::definition_alignment): New.
32117 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32118 can_increase_alignment_p.
32119 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32120 * tree-vect-stmts.c (ensure_base_align): Likewise.
32121 * varasm.c (function_section_1): Use definition_alignment.
32122 (assemble_start_function): Likewise.
32123 (emit_local): likewise.
32124 (build_constant_desc): Likewsie.
32125 (output_constant_def_contents): Likewise.
32126 (place_block_symbol): Likewise.
32127 (output_object_block): Likewise.
32128
32129 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32130
32131 PR ipa/65316
32132 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32133 when outputting debug.
32134
32135 2015-03-07 Marek Polacek <polacek@redhat.com>
32136 Martin Uecker <uecker@eecs.berkeley.edu>
32137
32138 PR sanitizer/65280
32139 * doc/invoke.texi: Update description of -fsanitize=bounds.
32140
32141 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
32142
32143 * tree-ssa-phiopt.c (neg_replacement): Remove.
32144 (tree_ssa_phiopt_worker): Remove negate optimization.
32145
32146 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32147
32148 PR ipa/65302
32149 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32150
32151 2015-03-06 Richard Biener <rguenther@suse.de>
32152
32153 PR middle-end/64928
32154 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32155 and liveout_obstack members.
32156 (calculate_live_on_exit): Remove.
32157 (calculate_live_ranges): Change declaration.
32158 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32159 (new_tree_live_info): Adjust.
32160 (calculate_live_ranges): Delete livein when not wanted.
32161 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32162 Deal with partly deleted live info.
32163 (loe_visit_block): Remove temporary bitmap by using
32164 bitmap_ior_and_compl_into.
32165 (live_worklist): Adjust accordingly.
32166 (calculate_live_on_exit): Make static.
32167 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32168 we do not need livein.
32169
32170 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
32171
32172 * real.c (real_from_string): Fix typo in assertion.
32173
32174 2015-03-06 Alex Velenko <alex.velenko@arm.com>
32175
32176 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32177 the patch.
32178
32179 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32180
32181 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32182
32183 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
32184
32185 PR target/64342
32186 * lra-assigns.c (find_hard_regno_for): Rename to
32187 find_hard_regno_for_1. Add a new parameter.
32188 (find_hard_regno_for): New function using find_hard_regno_for_1.
32189
32190 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32191
32192 PR rtl-optimization/65067
32193 * expmed.c (store_bit_field, extract_bit_field): Reworked the
32194 strict volatile bitfield handling.
32195
32196 2015-03-05 Martin Liska <mliska@suse.cz>
32197
32198 PR ipa/65318
32199 * ipa-icf.c (sem_variable::equals): Compare variables types.
32200
32201 2015-03-05 Richard Henderson <rth@redhat.com>
32202
32203 PR target/65121
32204 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32205 correctly check weak symbol binding.
32206
32207 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
32208
32209 PR middle-end/65315
32210 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32211 needed alignment.
32212
32213 2015-03-05 Martin Liska <mliska@suse.cz>
32214
32215 * ipa-inline.c (inline_small_functions): Set default value to
32216 prevent warning during bootstrap.
32217 * tree.h: Add pragma guard that ignores false positives during
32218 bootstrap.
32219
32220 2015-03-05 Richard Biener <rguenther@suse.de>
32221
32222 PR tree-optimization/65310
32223 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32224 Properly preserve alignment of the base of the access.
32225
32226 2015-03-05 Richard Biener <rguenther@suse.de>
32227
32228 PR ipa/65270
32229 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32230 Compare dependence info.
32231
32232 2015-03-05 Richard Biener <rguenther@suse.de>
32233
32234 PR middle-end/65233
32235 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32236 tree-into-ssa.h.
32237 (walk_ssa_copies): Revert last chage. Instead do not walk
32238 SSA names registered for SSA update.
32239
32240 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32241
32242 PR ipa/65270
32243 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32244 vtable references for their containing type.
32245 (sem_function::equals_wpa): Compare TYPE_RESTRICT
32246 and type attributes.
32247
32248 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
32249
32250 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32251 before negating it.
32252 * stor-layout.c (finalize_record_size): Revert latest change.
32253
32254 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
32255
32256 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32257
32258 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32259
32260 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32261 for correct comdat handling.
32262 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32263 Likewise.
32264 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32265 (used_from_object_file_p_worker): Remove.
32266 (cgraph_node::only_called_directly_or_alised): Add
32267 used_from_object_file_p.
32268 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32269 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32270 can_remove_if_no_direct_calls_and_refs_p.
32271
32272 2015-03-04 Nick Clifton <nickc@redhat.com>
32273
32274 * config/rl78/rl78.h (enum reg_class): Remove real registers from
32275 General register class.
32276 * config/rl78/rl78-real.md: Replace general register constraints
32277 with real+virtual register constraints.
32278
32279 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32280
32281 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32282 from checking for -mhtm option.
32283
32284 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32285
32286 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32287 (struct ipa_sra_check_caller_data): Add has_thunk field.
32288 (ipa_sra_check_caller): Check for thunk.
32289 (ipa_sra_preliminary_function_checks): Give up on function with
32290 thunks.
32291 (ipa_early_sra): Use call_for_symbol_and_aliases.
32292
32293 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
32294
32295 PR target/65249
32296 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32297 called for __stack_chk_guard symbol.
32298
32299 2015-03-03 DJ Delorie <dj@redhat.com>
32300
32301 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32302 inc/dec.
32303 (*addhi3_real): Likewise.
32304 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32305 pattern to match incrementing memory.
32306 * config/rl78/predicates.md (rl78_1_2_operand): New.
32307 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32308 it's the same and only mem.
32309 (rl78_alloc_physical_registers_op2): If there's effectively only
32310 one MEM, transcode it into HL.
32311 (rl78_far_p): Reject addresses that aren't legitimate.
32312
32313 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32314
32315 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32316 negating it.
32317
32318 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32319
32320 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32321
32322 Implement call0 ABI for xtensa
32323 * config/xtensa/constraints.md ("a" constraint): Include stack
32324 pointer in case of call0 ABI.
32325 ("q" constraint): Make empty in case of call0 ABI.
32326 ("D" constraint): Include stack pointer in case of call0 ABI.
32327 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32328 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32329 prototypes.
32330 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32331 variable.
32332 (xtensa_regno_to_class): Make it a local variable in the
32333 function xtensa_regno_to_class.
32334 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32335 macro, function prototype and implementation.
32336 (reg_nonleaf_alloc_order): Make it a local variable in the
32337 function order_regs_for_local_alloc.
32338 (xtensa_conditional_register_usage): New function.
32339 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32340 (xtensa_valid_move): Allow direct moves to stack pointer
32341 register in call0 ABI.
32342 (xtensa_setup_frame_addresses): Only spill register windows in
32343 windowed ABI.
32344 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32345 call0 ABI respectively.
32346 (xtensa_function_arg_1): Only mark a7 register for copying in
32347 windowed ABI.
32348 (xtensa_call_save_reg): New function.
32349 (compute_frame_size): Add space for callee saved register
32350 storage to the frame size in call0 ABI.
32351 (xtensa_expand_prologue): Generate code to set up stack frame
32352 and save callee-saved registers in call0 ABI.
32353 (xtensa_expand_epilogue): New function.
32354 (xtensa_set_return_address): New function.
32355 (xtensa_return_addr): Calculate return address in call0 ABI.
32356 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32357 emit copying code in windowed ABI.
32358 (order_regs_for_local_alloc): Add preferred register allocation
32359 order for non-leaf function in call0 ABI.
32360 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32361 (xtensa_asm_trampoline_template): Add trampoline generation for
32362 call0 ABI.
32363 (xtensa_trampoline_init): Add trampoline initialization for
32364 call0 ABI.
32365 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32366 functions.
32367 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32368 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32369 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32370 ABI call-used registers.
32371 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32372 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32373 call0 ABI.
32374 (REG_CLASS_CONTENTS): Include all registers into the preferred
32375 reload registers set, adjust the set in the
32376 xtensa_conditional_register_usage.
32377 (xtensa_regno_to_class): Drop variable declaration.
32378 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32379 function.
32380 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32381 respectively.
32382 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32383 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32384 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32385 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32386 location in call0 ABI.
32387 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32388 stack adjustment size when handling exception.
32389 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32390 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32391 definitions.
32392 ("return" pattern): Generate ret.n/ret in call0 ABI.
32393 ("epilogue" pattern): Expand epilogue.
32394 ("nonlocal_goto" pattern): Use default in call0 ABI.
32395 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32396 emit eh_set_a0_* depending on ABI.
32397 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32398 ("eh_set_a0_call0", "blockage"): New patterns.
32399
32400 2015-03-03 Martin Liska <mliska@suse.cz>
32401
32402 PR ipa/65287
32403 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32404
32405 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32406
32407 PR 65138/target
32408 * config/rs6000/rs6000-tables.opt: Regenerate table.
32409
32410 2015-03-03 Renlin Li <renlin.li@arm.com>
32411
32412 * doc/md.texi (@item ^): Change ? into ^.
32413
32414 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32415
32416 * doc/tm.texi: Regenerated.
32417
32418 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32419
32420 * builtins.c (expand_builtin_return_addr): Add
32421 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32422 surrounding #ifdef.
32423 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32424 definition to 1.
32425 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32426 Likewise.
32427 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32428 undefined.
32429 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32430 paragraph.
32431
32432 2015-03-03 Martin Jambor <mjambor@suse.cz>
32433 Eric Botcazou <ebotcazou@adacore.com>
32434
32435 * tree-sra.c (ipa_sra_check_caller_data): New type.
32436 (has_caller_p): Removed.
32437 (ipa_sra_check_caller): New function.
32438 (ipa_sra_preliminary_function_checks): Use it.
32439
32440 2015-03-03 Martin Liska <mliska@suse.cz>
32441
32442 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32443 instead of if branch.
32444
32445 2015-03-03 Martin Liska <mliska@suse.cz>
32446
32447 PR ipa/65282
32448 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32449
32450 2015-03-23 Jeff Law <law@redhat.com>
32451
32452 PR tree-optimization/65241
32453 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32454 hash table if INSERT is true.
32455
32456 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32457
32458 PR target/65296
32459 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32460
32461 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32462
32463 PR target/64331
32464 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32465 (avr_pass_data_recompute_notes): New static variable.
32466 (avr_pass_recompute_notes): New class.
32467 (avr_register_passes): New static function.
32468 (avr_option_override): Call it.
32469
32470 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32471
32472 Fix various problems with specs file generation.
32473
32474 PR target/65296
32475 * config.gcc (extra_gcc_objs) [avr]: Remove.
32476 * config/avr/driver-avr.c: Remove file.
32477 * config/avr/t-avr (driver-avr.o): Remove rule.
32478 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32479 INCLUDES to build. Depend on TM_H.
32480 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32481 build warnings. Fix non-matching types and non-existing %-codes.
32482 (tm.h): Include.
32483 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32484 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32485 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32486 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32487 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32488 (LIBGCC_SPEC): Remove definitions.
32489
32490 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32491
32492 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32493 to create a register in testing mode.
32494
32495 2015-03-03 Martin Liska <mliska@suse.cz>
32496 Jan Hubicka <hubicka@ucw.cz>
32497
32498 PR ipa/65263
32499 * cgraph.c (cgraph_node::has_thunk_p): New function.
32500 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32501 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32502 (sem_function::merge): Assert is changed.
32503
32504 2015-03-03 Martin Liska <mliska@suse.cz>
32505 Martin Jambor <mjambor@suse.cz>
32506
32507 PR ipa/65087
32508 * ipa-icf.c (sem_item_optimizer::execute): Change function
32509 return value to boolean.
32510 (sem_item_optimizer::merge_classes): Likewise.
32511 (ipa_icf_driver): Return TODO_remove_functions in case there's
32512 a merge operation processed.
32513 * ipa-icf.h: Change function return value to boolean.
32514
32515 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32516
32517 PR 65138/target
32518 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32519 processor type for 64-bit little endian PowerPC.
32520
32521 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32522 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
32523 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
32524 printing built-in mask so it does not pass NULL pointers.
32525
32526 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32527 -mcpu=powerpc64le.
32528
32529 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
32530
32531 PR target/58158
32532 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32533 !ISA_HAS_FP_CONDMOVE.
32534
32535 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
32536
32537 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32538 reload_completed.
32539
32540 2015-03-02 Ulrich Drepper <drepper@gmail.com>
32541
32542 * doc/invoke.texi (Options for Code Generation Conventions):
32543 Fix URL of DSO paper.
32544
32545 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32546
32547 PR ipa/65130
32548 * ipa-inline.c (check_callers): Looks for recursion.
32549 (inline_to_all_callers): Give up on uninlinable or recursive edges.
32550 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32551 summary of inline clones.
32552 (do_estimate_growth_1): Fix recursion check.
32553
32554 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32555
32556 PR ipa/64988
32557 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32558 comdat groups.
32559
32560 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32561 Aldy Hernandez <aldyh@redhat.com>
32562
32563 PR lto/65276
32564 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32565 when checking TYPE_BINFO.
32566
32567 2015-03-02 Richard Biener <rguenther@suse.de>
32568
32569 PR ipa/65270
32570 * ipa-icf-gimple.c: Include builtins.h.
32571 (func_checker::compare_memory_operand): Compare base alignment.
32572
32573 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32574
32575 PR target/65184
32576 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32577 passed by reference.
32578
32579 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32580
32581 PR target/65183
32582 * tree-chkp.c (chkp_check_lower): Don't check against
32583 zero bounds for already instrumented functions.
32584 (chkp_check_upper): Likewise.
32585 (chkp_fini): Clean pass local data to avoid wrong reusage.
32586
32587 2015-02-28 Martin Liska <mliska@suse.cz>
32588 Jan Hubicka <hubicka@ucw.cz>
32589
32590 * ipa-icf.c (sem_variable::equals): Improve debug output;
32591 get variable constructor.
32592 (sem_variable::parse): Do not filter out too early; give up on
32593 volatile and register vars.
32594 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32595 variables.
32596 * ipa-icf.h (sem_variable::init): Do not set ctor.
32597 (sem_variable::ctor): Remove.
32598
32599 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
32600
32601 PR middle-end/65233
32602 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32603
32604 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32605
32606 * ipa-icf.c: Include stor-layout.h
32607 (sem_function::compare_cgraph_references): Rename to ...
32608 (sem_item::compare_cgraph_references): ... this one.
32609 (sem_variable::equals_wpa): New function
32610 (sem_variable::equals): Do not check stuff already verified by
32611 equals_wpa.
32612 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32613 * ipa-icf.h (sem_item): Add compare_cgraph_references.
32614 (sem_function): Remove compare_cgraph_references.
32615 (sem_variable): Turns equals_wpa into non-inline.
32616
32617 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32618
32619 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32620 (sem_item::add_expr): New function.
32621 (sem_function::hash_stmt): Handle operands of most statements.
32622 (sem_variable::get_hash): Hash the actual constructor.
32623 * ipa-icf.h (sem_item): Add add_expr.
32624 (sem_function): Update prototype of hash_stmt
32625
32626 2015-02-28 Martin Liska <mliska@suse.cz>
32627 Jan Hubicka <hubicka@ucw.cz>
32628
32629 PR ipa/65245
32630 * ipa-icf-gimple.c (func_checker::compare_function_decl):
32631 Remove.
32632 (func_checker::compare_variable_decl): Skip symtab vars.
32633 (func_checker::compare_cst_or_decl): Update.
32634 * ipa-icf.c (sem_function::parse): Do not consider aliases.
32635 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32636 use correct symtab predicates.
32637 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32638 (sem_variable::parse): Update comment.
32639 (sem_item_optimizer::build_graph): Consider ultimate aliases
32640 for references.
32641
32642 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32643
32644 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32645 of OBJ_TYPE_REF.
32646
32647 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32648
32649 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32650 (sem_variable::merge) Likewise.
32651
32652 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32653
32654 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32655 target; also match flag_ipa_devirt.
32656
32657 2015-03-01 Martin Liska <mliska@suse.cz>
32658 Jan Hubicka <hubicka@ucw.cz>
32659
32660 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32661 Validate variable alignment.
32662 * ipa-icf.c (sem_function::equals_private): Be more precise
32663 about non-common function attributes.
32664 (sem_variable::equals): Likewise.
32665
32666 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32667
32668 PR ipa/65237
32669 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32670 across COMDAT group boundary.
32671
32672 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32673
32674 PR ipa/65232
32675 * ipa-icf.c (clear_decl_rtl): New function.
32676 (sem_function::merge): Clear RTL before forming alias.
32677 (sem_variable::merge): Clear RTL before forming alias.
32678
32679 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32680
32681 PR ipa/65236
32682 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32683
32684 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
32685
32686 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32687 to neon_to_gp<q>.
32688
32689 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32690
32691 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32692 a typo in the description.
32693
32694 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32695
32696 PR target/64317
32697 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32698 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32699 * lra-constraints.c: Include "params.h".
32700 (EBB_PROBABILITY_CUTOFF): Use
32701 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32702 (lra_inheritance): Use '<' instead of '<=' for
32703 EBB_PROBABILITY_CUTOFF.
32704 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32705 Document change.
32706
32707 2015-02-27 Martin Liska <mliska@suse.cz>
32708
32709 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32710 vector length condition.
32711
32712 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
32713
32714 * doc/extend.texi (x86 transactional memory intrinsics):
32715 Reorganize discussion of _xbegin. Clarify that the return
32716 value is a bit mask. Expand example and move to end of section.
32717
32718 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32719 Aldy Hernandez <aldyh@redhat.com>
32720
32721 PR rtl-optimization/65220
32722 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32723
32724 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32725
32726 PR target/65032
32727 * lra-remat.c (update_scratch_ops): New.
32728 (do_remat): Call it.
32729 * lra.c (lra_register_new_scratch_op): New. Take code from ...
32730 (remove_scratches): ... here.
32731 * lra-int.h (lra_register_new_scratch_op): New prototype.
32732
32733 2015-02-27 Marek Polacek <polacek@redhat.com>
32734
32735 PR c/65040
32736 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32737 -Wformat-signedness anymore.
32738
32739 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32740
32741 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32742 function.
32743 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32744
32745 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32746
32747 * config/s390/s390.c (enum s390_builtin):
32748 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32749 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32750 (s390_init_builtins): Generate new builtin functions.
32751 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32752 (s390_sfpc, s390_efpc): New pattern definitions.
32753
32754 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32755
32756 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32757 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32758 (s390_builtin_decls): New array.
32759 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32760 (s390_builtin_decl): New function.
32761 (TARGET_BUILTIN_DECL): Define macro.
32762
32763 2015-02-27 Richard Biener <rguenther@suse.de>
32764
32765 PR middle-end/63175
32766 * builtins.c (get_object_alignment_2): Make sure to re-apply
32767 the ANDed mask after recursing to its operand gets us a new
32768 misalignment bit position.
32769
32770 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
32771 Martin Liska <mliska@suse.cz>
32772
32773 PR bootstrap/65150
32774 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32775 Use address_matters_p.
32776 (redirect_all_callers, set_addressable): New functions.
32777 (sem_function::merge): Reorganize and fix merging issues.
32778 (sem_variable::merge): Likewise.
32779 (sem_variable::compare_sections): Remove.
32780 * common.opt (fmerge-all-constants, fmerge-constants): Remove
32781 Optimization flag.
32782 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32783 redirect them.
32784 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32785 decl is used.
32786 (address_matters_1): New function.
32787 (symtab_node::address_matters_p): New function.
32788 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32789 check for merged flag.
32790 * cgraph.h (address_matters_p): Declare.
32791 (symtab_node::address_taken_from_non_vtable_p): Remove.
32792 (symtab_node::address_can_be_compared_p): New method.
32793 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32794 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32795 Remove.
32796 (comdat_can_be_unshared_p_1) Use address_matters_p.
32797 (update_vtable_references): Fix formating.
32798 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32799 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32800 * cgraphclones.c: Preserve merged and icf_merged flags.
32801
32802 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
32803
32804 * doc/extend.texi (Function Attributes): Fix spelling and typos.
32805 (Label Attributes): Likewise.
32806 (Cilk Plus Builtins): Likewise.
32807 (ARC SIMD Built-in Functions): Likewise.
32808 (ARM C Language Extensions (ACLE)): Likewise.
32809 (PowerPC Built-in Functions): Likewise.
32810 (PowerPC Hardware Transactional Memory Built-in Functions):
32811 Likewise.
32812
32813 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32814
32815 PR tree-optimization/65216
32816 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32817 new stmt and new SSA_NAME for lhs whenever the arguments have
32818 changed and weren't just swapped. Fix comment typo.
32819
32820 PR tree-optimization/65215
32821 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32822 for PDP endian targets.
32823 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32824 Fix up formatting issues.
32825 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
32826 size is smaller than the original, adjust MEM_REF offset by the
32827 difference of sizes. Use is_gimple_mem_ref_addr instead of
32828 is_gimple_min_invariant test to avoid adding address temporaries.
32829
32830 2015-02-26 Martin Liska <mliska@suse.cz>
32831 Jan Hubicka <hubicka@ucw.cz>
32832
32833 PR ipa/64693
32834 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32835 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32836 (sem_item_optimizer::process_cong_reduction): Include division by
32837 sensitive references.
32838 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32839 * ipa-ref.c (ipa_ref::address_matters_p): New function.
32840 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32841
32842 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
32843
32844 PR target/65192
32845 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32846 Remove.
32847 * config/avr/avr.c: Same.
32848 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32849 Refuse any constant address not in 0..0xbf.
32850 * config/avr/avr.md (*mov<mode>, *movsf): Remove
32851 tiny_valid_direct_memory_access_range from insn conditions.
32852 (mov<mode>): Don't special-case expansion of avrtiny addresses.
32853
32854 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32855
32856 PR target/61142
32857 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32858 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32859 * config/sh/predicates.md (const_logical_operand): New predicate.
32860 * config/sh/sh.md: Add new peephole2 patterns.
32861
32862 2015-02-26 Marek Polacek <polacek@redhat.com>
32863
32864 PR ipa/65008
32865 * ipa-inline.c (early_inliner): Recompute inline parameters.
32866
32867 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32868
32869 PR target/65171
32870 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32871 instructions with TImode operands are included in the analysis.
32872
32873 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32874
32875 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32876 of an EDGE_FSM_THREAD.
32877
32878 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
32879
32880 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32881
32882 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
32883
32884 PR debug/46102
32885 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32886
32887 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32888
32889 PR tree-optimization/65048
32890 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32891 (thread_through_all_blocks): Call valid_jump_thread_path.
32892 Remove invalid FSM jump-thread paths.
32893
32894 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32895
32896 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32897 (ipa_write_optimization_summaries): Likewise.
32898 * tree-streamer.h: Include data-streamer.h.
32899 (streamer_mode_table): Declare extern variable.
32900 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32901 * lto-streamer-out.c (lto_output_init_mode_table,
32902 lto_write_mode_table): New functions.
32903 (produce_asm_for_decls): Call lto_write_mode_table when streaming
32904 offloading LTO.
32905 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32906 (lto_create_simple_input_block): Add mode_table argument to the
32907 lto_input_block constructors.
32908 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32909 Likewise.
32910 * data-streamer-in.c (string_for_index): Likewise.
32911 * ipa-inline-analysis.c (inline_read_section): Likewise.
32912 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32913 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32914 * lto-streamer-in.c (lto_read_body_or_constructor,
32915 lto_input_toplevel_asms): Likewise.
32916 (lto_input_mode_table): New function.
32917 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32918 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32919 Use bp_pack_machine_mode.
32920 * real.h (struct real_format): Add name field.
32921 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32922 (class lto_input_block): Add mode_table member.
32923 (lto_input_block::lto_input_block): Add mode_table_ argument,
32924 initialize mode_table.
32925 (struct lto_file_decl_data): Add mode_table field.
32926 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32927 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32928 unpack_ts_decl_common_value_fields,
32929 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32930 * tree-streamer.c (streamer_mode_table): New variable.
32931 * real.c (ieee_single_format, mips_single_format,
32932 motorola_single_format, spu_single_format, ieee_double_format,
32933 mips_double_format, motorola_double_format,
32934 ieee_extended_motorola_format, ieee_extended_intel_96_format,
32935 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32936 ibm_extended_format, mips_extended_format, ieee_quad_format,
32937 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32938 decimal_single_format, decimal_double_format, decimal_quad_format,
32939 ieee_half_format, arm_half_format, real_internal_format): Add name
32940 field.
32941 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32942
32943 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
32944
32945 PR target/65161
32946 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32947 reordering for selective scheduling.
32948
32949 2015-02-26 Terry Guo <terry.guo@arm.com>
32950
32951 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32952 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32953 (arm_arch_no_volatile_ce): Declare new global variable.
32954 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32955 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32956 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32957 (TARGET_NO_VOLATILE_CE): New macro.
32958 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32959 volatile memory access in IT block
32960
32961 2015-02-25 Kai Tietz <ktietz@redhat.com>
32962
32963 PR tree-optimization/61917
32964 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32965 that reduc_def_stmt is null.
32966
32967 2015-02-25 Martin Liska <mliska@suse.cz>
32968
32969 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32970 hard register variables.
32971
32972 2015-02-25 Kai Tietz <ktietz@redhat.com>
32973
32974 PR target/64212
32975 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32976 (symtab::noninterposable_alias): Likewise.
32977
32978 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
32979
32980 PR target/65167
32981 * config/i386/i386.c (ix86_function_arg_regno_p): Support
32982 bounds registers.
32983 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32984
32985 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
32986
32987 PR target/64997
32988 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32989 as split condition; force split via '#' in output pattern.
32990
32991 2015-02-25 Richard Biener <rguenther@suse.de>
32992 Kai Tietz <ktietz@redhat.com>
32993
32994 PR tree-optimization/61917
32995 * tree-vect-loop.c (vectorizable_reduction): Allow
32996 vect_internal_def without reduction to exit graceful.
32997
32998 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32999
33000 PR target/65196
33001 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33002 only with NONDEBUG_INSN_P.
33003
33004 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33005
33006 Use variadic macros with avr-log.c.
33007
33008 * config/avr/avr-protos.h (avr_vdump): New prototype.
33009 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33010 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33011 * config/avr/avr-log.c: Adjust comments.
33012 (avr_vdump): New function.
33013 (avr_vadump): Pass caller as 2nd argument instead of format string.
33014 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33015 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33016
33017 2015-02-25 Jakub Jelinek <jakub@redhat.com>
33018
33019 PR lto/64374
33020 * target.def (target_option_stream_in): New target hook.
33021 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33022 targetm.target_option.post_stream_in if non-NULL.
33023 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33024 * doc/tm.texi: Updated.
33025 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33026 function.
33027 (TARGET_OPTION_POST_STREAM_IN): Redefine.
33028
33029 2015-02-24 Jeff Law <law@redhat.com>
33030
33031 PR target/65117
33032 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33033 of operand 0 and operand 2.
33034 (zero_cost_loop_end, loop_end): Similarly.
33035
33036 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
33037
33038 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33039 CXX_MEM_STAT_INFO.
33040
33041 2015-02-24 DJ Delorie <dj@redhat.com>
33042
33043 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33044 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33045 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33046 instead of hardcoding SImode.
33047
33048 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
33049
33050 * omp-low.c (create_omp_child_function): Tag entrypoint
33051 functions with a special attribute.
33052
33053 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33054
33055 PR target/65058
33056 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33057
33058 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
33059
33060 PR rtl-optimization/65123
33061 * lra-remat.c (operand_to_remat): Check hard regs in insn
33062 definition too.
33063
33064 2015-02-24 Nick Clifton <nickc@redhat.com>
33065
33066 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33067 to the assembler.
33068
33069 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
33070
33071 PR libgomp/64625
33072 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33073 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33074 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33075 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33076 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33077 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33078 (BUILT_IN_GOACC_PARALLEL): Specify as
33079 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33080 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33081 * builtin-types.def
33082 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33083 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33084 Remove function types.
33085 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33086 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33087 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33088 New function types.
33089
33090 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
33091
33092 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33093
33094 2015-02-24 Jakub Jelinek <jakub@redhat.com>
33095
33096 PR tree-optimization/65170
33097 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33098 if val[1] < 0, clear also val[2] and return 3.
33099
33100 2015-02-24 Alan Modra <amodra@gmail.com>
33101
33102 PR target/65172
33103 * config/rs6000/rs6000.c (get_memref_parts): Only return true
33104 when *base is a reg. Handle nested plus addresses. Simplify
33105 pre_modify test.
33106
33107 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
33108
33109 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33110 use natural alignment when optimizing for size.
33111
33112 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
33113
33114 PR target/65153
33115 * config/sh/sh.md (movsicc_true+3): Remove peephole.
33116 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33117 * config/sh/sh.c (replace_n_hard_rtx): Remove.
33118
33119 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
33120
33121 PR fortran/63427
33122 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33123 too big for a wide_int. Implement missing wrapping operation.
33124
33125 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
33126
33127 PR target/65163
33128 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33129 instead of const_int 4294901760.
33130
33131 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
33132
33133 * config/avr/t-avr: Fix typo in comment.
33134
33135 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
33136
33137 * doc/rtl.texi (fma): Clarify documentation.
33138
33139 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
33140
33141 PR debug/58123
33142 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33143 over input_location.
33144
33145 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33146
33147 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33148 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33149 restrict alignments to absolute_biggest_alignment.
33150 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33151 Define.
33152 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33153 * doc/tm.texi: Regenerate.
33154 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33155
33156 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
33157
33158 PR target/64172
33159 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33160
33161 2015-02-20 Richard Biener <rguenther@suse.de>
33162
33163 PR tree-optimization/65136
33164 * tree-ssa-propagate.c: Include cfgloop.h.
33165 (replace_phi_args_in): Avoid replacing loop latch edge PHI
33166 arguments with constants.
33167
33168 2015-02-20 Jakub Jelinek <jakub@redhat.com>
33169 Martin Liska <mliska@suse.cz>
33170
33171 PR target/63892
33172 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33173 don't try to create_thunk if stdarg_p. If
33174 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33175 redirect_callers if possible.
33176 (sem_item_optimizer::execute): Call unregister_hooks here...
33177 (ipa_icf_driver): ... instead of here.
33178
33179 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33180
33181 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33182 Mark operand 0 as earlyclobber in 2nd alternative.
33183 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33184 Write negated shift amount into QI lowpart operand 0 and use it
33185 in the shift step.
33186 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33187
33188 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33189
33190 * cgraph.h (clone_function_name_1): Declare.
33191 * cgraphclones.c (clone_function_name_1): New function.
33192 (clone_function_name): Use it.
33193 * lto-partition.c: Include "stringpool.h".
33194 (must_not_rename, maybe_rewrite_identifier)
33195 (validize_symbol_for_target): New static functions.
33196 (privatize_symbol_name): Use must_not_rename.
33197 (promote_symbol): Call validize_symbol_for_target.
33198 (lto_promote_cross_file_statics): Likewise.
33199 (lto_promote_statics_nonwpa): Likewise.
33200
33201 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
33202
33203 PR target/64452
33204 * config/avr/avr.md (pushhi_insn): New insn.
33205 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33206
33207 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33208 Jakub Jelinek <jakub@redhat.com>
33209
33210 * tree-streamer.c (preload_common_nodes): Don't preload
33211 TI_VA_LIST* for offloading.
33212 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33213 in_lto_p.
33214
33215 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
33216
33217 * config/pa/pa.c (pa_emit_move_sequence): Always force
33218 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
33219 note on insn.
33220
33221 * config/pa/pa.c (pa_reloc_rw_mask): New function.
33222 (TARGET_ASM_RELOC_RW_MASK): Define.
33223 (pa_cannot_force_const_mem): Revert previous change.
33224
33225 2015-02-19 Martin Jambor <mjmabor@suse.cz>
33226 Jan Hubicka <hubicka@ucw.cz>
33227
33228 PR ipa/65028
33229 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33230 across jump functions.
33231
33232 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
33233
33234 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33235
33236 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
33237
33238 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33239
33240 2015-02-19 Richard Henderson <rth@redhat.com>
33241
33242 PR middle-end/65074
33243 * varasm.c (default_binds_local_p_2): Don't test node->definition;
33244 test DECL_EXTERNAL independent of symtab_node.
33245
33246 2015-02-19 Jakub Jelinek <jakub@redhat.com>
33247
33248 PR lto/65012
33249 * varpool.c (varpool_node::get_constructor): Return early
33250 if this->lto_file_data is NULL.
33251
33252 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33253
33254 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33255 (rank_for_schedule_debug): Update.
33256 (ready_sort): Make static. Move sorting logic to ...
33257 (ready_sort_debug, ready_sort_real): New static functions.
33258 (schedule_block): Sort both debug insns and real insns in preparation
33259 for ready list trimming. Improve debug output.
33260 * sched-int.h (ready_sort): Remove global declaration.
33261
33262 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
33263
33264 * ipa-icf.c (sem_function::equals_private): Adjust.
33265 (sem_function::bb_dict_test): Take a vec<int> * instead of
33266 auto_vec<int>.
33267 * ipa-icf.h (bb_dict_test): Likewise.
33268
33269 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33270
33271 PR gcov-profile/64634
33272 * tree-eh.c (frob_into_branch_around): Fix up typos
33273 in function comment.
33274 (lower_catch): Put eh_seq resulting from EH lowering of
33275 the cleanup sequence after the cleanup rather than before it.
33276
33277 2015-02-18 Tom de Vries <tom@codesourcery.com>
33278
33279 * common.opt (fstdarg-opt): New option.
33280 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33281 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33282 (@item -fstdarg-opt): New item.
33283
33284 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
33285
33286 PR target/65064
33287 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33288 for common symbols.
33289
33290 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33291
33292 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33293 insn-modes.h.
33294 (ALL_HOST_OBJS): Add mkoffload.o.
33295 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33296
33297 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
33298
33299 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33300 (compare_virtual_tables): Be smarter about skipping typeinfos;
33301 do sane output on virtual table table mismatch.
33302 (warn_odr): Be ready for forward declarations of enums;
33303 output sane info on base mismatch and virtual table mismatch.
33304 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33305 when only one type is polymorphic.
33306 (get_odr_type): Fix hashtable corruption.
33307 (dump_odr_type): Dump mangled names.
33308
33309 2015-02-18 Richard Biener <rguenther@suse.de>
33310
33311 PR tree-optimization/65063
33312 * tree-predcom.c (determine_unroll_factor): Return 1 if we
33313 have replaced looparound PHIs.
33314
33315 2015-02-18 Martin Liska <mliska@suse.cz>
33316
33317 * lto-streamer.c (lto_streamer_init): Encapsulate
33318 streamer_check_handled_ts_structures with checking macro.
33319
33320 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33321
33322 PR ipa/65087
33323 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33324 section if !implicit_section.
33325 (cgraph_node::create_version_clone_with_body): Likewise.
33326 * trans-mem.c (ipa_tm_create_version): Likewise.
33327
33328 2015-02-18 Richard Biener <rguenther@suse.de>
33329
33330 PR tree-optimization/62217
33331 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33332 into BIVs.
33333
33334 2015-02-18 Marek Polacek <polacek@redhat.com>
33335
33336 PR sanitizer/65081
33337 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33338 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33339 is in range [-16K, -1]. Don't issue run-time error if
33340 (ptr > ptr + offset).
33341
33342 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33343
33344 * doc/install.texi (nvptx-*-none): New section.
33345 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33346 * config/nvptx/nvptx.opt: Update.
33347
33348 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33349 (access_check): New functions, copied from
33350 config/i386/intelmic-mkoffload.c.
33351 (main): For non-installed testing, look in all COMPILER_PATHs for
33352 GCC_INSTALL_NAME.
33353
33354 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33355
33356 2015-02-18 Andrew Pinski <apinski@cavium.com>
33357 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33358
33359 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33360 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33361
33362 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33363
33364 * ipa-visibility.c (function_and_variable_visibility): Only
33365 check locality if node is not already local.
33366 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33367 call_for_symbol_and_aliases instead of
33368 call_for_symbol_thunks_and_aliases.
33369 (ipa_inline): Likewise.
33370 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33371 first walk aliases.
33372 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33373 call_for_symbol_and_aliases.
33374 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33375 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33376 (ipa_propagate_frequency): Update.
33377 (ipa_profile): Add opt_for_fn gueards.
33378
33379 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33380
33381 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33382 * doc/invoke.texi (SH options): Document it.
33383 * config/sh/sh.c (sh_insn_length_adjustment): Check
33384 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33385
33386 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33387
33388 * common.opt (fipa-cp-alignment): New.
33389 * ipa-cp.c (ipcp_store_alignment_results): Check
33390 flag_ipa_cp_alignment.
33391 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33392 -O2.
33393 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33394 * doc/invoke.texi: Document -fipa-cp-alignment.
33395
33396 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33397
33398 PR target/64793
33399 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33400 to nil. Adjust comments.
33401
33402 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33403
33404 * ipa-visibility.c (function_and_variable_visibility): Only
33405 check locality if node is not already local.
33406 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33407 call_for_symbol_and_aliases instead of
33408 call_for_symbol_thunks_and_aliases.
33409 (ipa_inline): Likewise.
33410 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33411 first walk aliases.
33412 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33413 call_for_symbol_and_aliases.
33414 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33415 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33416 (ipa_propagate_frequency): Update.
33417 (ipa_profile): Add opt_for_fn guards.
33418
33419 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33420
33421 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33422 skipping of "strange" tokens.
33423
33424 2015-02-17 Jeff Law <law@redhat.com>
33425
33426 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33427 obsolete comment.
33428
33429 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33430
33431 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33432 as forcing a HARD_DEP between instructions, thereby
33433 disallowing rewriting to break dependencies.
33434
33435 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33436
33437 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33438 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33439 variables in boundary that have no inlitalizer encoded and are
33440 not aliases.
33441 * varasm.c (default_binds_local_p_2): External definitions do not
33442 count as definitions here.
33443
33444 2015-02-16 Jeff Law <law@redhat.com>
33445
33446 PR tree-optimization/64823
33447 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33448 statements.
33449 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33450 threading through blocks with PHIs, but no statements.
33451 (thread_through_normal_block): Distinguish between blocks where
33452 we did not process all the statements and blocks with no statements.
33453
33454 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33455 James Greenhalgh <james.greenhalgh@arm.com>
33456
33457 PR ipa/64963
33458 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33459 section if not linkonce. Fix up formatting.
33460 (cgraph_node::create_version_clone_with_body): Copy section.
33461 * trans-mem.c (ipa_tm_create_version): Likewise.
33462
33463 2015-02-16 Richard Biener <rguenther@suse.de>
33464
33465 PR tree-optimization/65077
33466 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33467 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33468 (find_func_aliases): Allow float values to carry pointers again.
33469
33470 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33471
33472 * doc/install.texi (Specific): Reorder targets list to put
33473 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33474 from the top menu.
33475
33476 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33477 David Edelsohn <dje.gcc@gmail.com>
33478
33479 PR target/65058
33480 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33481 mapping class to external variable or function reference.
33482 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33483 mapping class.
33484
33485 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
33486
33487 PR target/53348
33488 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33489 ASM_WEAKEN_DECL if defined.
33490
33491 2015-02-16 Richard Biener <rguenther@suse.de>
33492
33493 PR lto/65015
33494 * varasm.c (default_file_start): For LTO produced units
33495 emit <artificial> as file directive.
33496
33497 2015-02-16 Richard Biener <rguenther@suse.de>
33498
33499 PR tree-optimization/63593
33500 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33501 stmts and releasing SSA names until...
33502 (execute_pred_commoning): ... after processing all chains.
33503
33504 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33505
33506 PR ipa/65059
33507 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33508 external functions.
33509
33510 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
33511
33512 * doc/bugreport.texi: Adjust section titles throughout the file
33513 to use "Title Case".
33514 * doc/extend.texi: Likewise.
33515 * doc/gcov.texi: Likewise.
33516 * doc/implement-c.texi: Likewise.
33517 * doc/implement-cxx.texi: Likewise.
33518 * doc/invoke.texi: Likewise.
33519 * doc/objc.texi: Likewise.
33520 * doc/standards.texi: Likewise.
33521 * doc/trouble.texi: Likewise.
33522
33523 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
33524
33525 * cgraph.h (symtab_node::has_aliases_p): Simplify.
33526 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33527 * tree.c (lookup_binfo_at_offset): Make static.
33528 (get_binfo_at_offset): Do not shadow offset; add explanatory
33529 comment.
33530
33531 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
33532
33533 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33534 for all floading point loads and stores except those using a register
33535 index address.
33536 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33537 to a register.
33538
33539 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33540
33541 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33542 (do_estimate_growth_1): Record if any uninlinable edge was seen.
33543 (estimate_growth): Handle uninlinable edges correctly.
33544 (check_callers): New.
33545 (growth_likely_positive): Handle aliases correctly.
33546
33547 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33548
33549 * ipa-chkp.c: Use iterate_direct_aliases.
33550 * symtab.c (resolution_used_from_other_file_p): Move inline.
33551 (symtab_node::create_reference): Fix formating.
33552 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33553 (symtab_node::iterate_reference): Move inline.
33554 (symtab_node::iterate_referring): Move inline.
33555 (symtab_node::iterate_direct_aliases): Move inline.
33556 (symtab_node::used_from_object_file_p_worker): Inline into ...
33557 (symtab_node::used_from_object_file_p): ... this one; move inline.
33558 (symtab_node::call_for_symbol_and_aliases): Move inline;
33559 use iterate_direct_aliases.
33560 (symtab_node::call_for_symbol_and_aliases_1): New method.
33561 (cgraph_node::call_for_symbol_and_aliases): Move inline;
33562 use iterate_direct_aliases.
33563 (cgraph_node::call_for_symbol_and_aliases_1): New method.
33564 (varpool_node::call_for_node_and_aliases): Rename to ...
33565 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33566 use iterate_direct_aliases.
33567 (varpool_node::call_for_symbol_and_aliases_1): New method.
33568 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33569 (ipa_discover_readonly_nonaddressable_var): Update.
33570 * ipa-devirt.c: Fix formating.
33571 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33572 Move inline.
33573 (cgraph_node::call_for_symbol_and_aliases): Move inline.
33574 (cgraph_node::call_for_symbol_and_aliases_1): New function..
33575 * cgraph.h (used_from_object_file_p_worker): Remove.
33576 (resolution_used_from_other_file_p): Move inline.
33577 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33578 (symtab_node::iterate_reference): Move inline.
33579 (symtab_node::iterate_referring): Move inline.
33580 (symtab_node::iterate_direct_aliases): Move inline.
33581 (symtab_node::used_from_object_file_p_worker): Inline into ...
33582 (symtab_node::used_from_object_file_p): Move inline.
33583 * tree-emutls.c (ipa_lower_emutls): Update.
33584 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33585 (varpool_node::call_for_node_and_aliases): Remove.
33586
33587 2015-02-14 Jakub Jelinek <jakub@redhat.com>
33588
33589 PR tree-optimization/62209
33590 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33591 op == range->exp, insert seq and gimplified code after labels
33592 instead of after the phi.
33593
33594 2015-02-13 Jeff Law <law@redhat.com>
33595
33596 PR bootstrap/65060
33597 Revert my change for tree-optimization/64823.
33598
33599 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33600
33601 PR tree-optimization/65053
33602 * tree-ssa-phiopt.c (value_replacement): When moving assign before
33603 cond, either reset VR on lhs or set it to phi result VR.
33604
33605 2015-02-13 Jeff Law <law@redhat.com>
33606
33607 PR tree-optimization/64823
33608 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33609 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33610 threading through blocks with PHIs, but no statements.
33611 (thread_through_normal_block): Distinguish between blocks where
33612 we did not process all the statements and blocks with no statements.
33613
33614 PR rtl-optimization/47477
33615 * match.pd (convert (plus/minus (convert @0) (convert @1): New
33616 simplifier to narrow arithmetic.
33617
33618 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
33619
33620 PR ipa/65028
33621 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33622 polymorphic call info when type is not known to be preserved.
33623
33624 2015-02-13 Maritn Jambor <mjambor@suse.cz>
33625
33626 PR ipa/65028
33627 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33628 (inline_call): Use it.
33629
33630 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
33631
33632 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33633 GOMP_DEVICE_NVIDIA_PTX.
33634
33635 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33636
33637 PR ipa/65034
33638 * stmt.c (emit_case_nodes): Use void_type_node instead of
33639 NULL_TREE as LABEL_DECL type.
33640
33641 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
33642
33643 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33644 constraints.
33645 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33646 symbolic references to data to be forced to constant memory on the
33647 SOM target.
33648
33649 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
33650
33651 PR tree-optimization/65002
33652 * tree-cfg.c (pass_data_fixup_cfg): Don't update
33653 SSA on start.
33654 * tree-sra.c (some_callers_have_no_vuse_p): New.
33655 (ipa_early_sra): Reject functions whose callers
33656 assume function is read only.
33657
33658 2015-02-13 Richard Biener <rguenther@suse.de>
33659
33660 PR lto/65015
33661 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33662 for LTO produced CUs.
33663
33664 2015-02-13 Bin Cheng <bin.cheng@arm.com>
33665
33666 PR tree-optimization/64705
33667 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33668 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33669 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33670 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33671 expand_simple_operations.
33672
33673 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
33674 Richard Henderson <rth@redhat.com>
33675
33676 PR rtl/32219
33677 * cgraphunit.c (cgraph_node::finalize_function): Set definition
33678 before notice_global_symbol.
33679 (varpool_node::finalize_decl): Likewise.
33680 * varasm.c (default_binds_local_p_2): Rename from
33681 default_binds_local_p_1, add weak_dominate argument. Use direct
33682 returns instead of assigning to local variable. Unify varpool and
33683 cgraph paths via symtab_node. Reject undef weak variables before
33684 testing visibility. Reorder tests for simplicity.
33685 (default_binds_local_p): Use default_binds_local_p_2.
33686 (default_binds_local_p_1): Likewise.
33687 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33688 via symtab_node.
33689 (default_elf_asm_output_external): Emit visibility when specified.
33690
33691 2015-02-13 Alan Modra <amodra@gmail.com>
33692
33693 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33694 code setting up r11 for out-of-line fp restore.
33695
33696 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
33697
33698 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33699 (muser-mode): Likewise.
33700
33701 2015-02-13 Alan Modra <amodra@gmail.com>
33702
33703 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33704 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33705
33706 2015-02-12 David Howells <dhowells@redhat.com>
33707
33708 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33709 warning.
33710 * tree-ssa-uninit.c (dump_predicates): Likewise.
33711 * opts.c (print_filtered_help): Likewise.
33712
33713 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33714
33715 * dwarf2out.c (output_die): Use "%s", name instead of name to
33716 avoid -Wformat-security warning.
33717
33718 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33719 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33720 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33721 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33722
33723 2015-02-12 Jason Merrill <jason@redhat.com>
33724
33725 * common.opt (-flifetime-dse): New.
33726
33727 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33728
33729 PR sanitizer/65019
33730 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33731
33732 PR tree-optimization/65014
33733 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33734 use original second operand of arg0 or arg1 instead of
33735 that adjusted by STRIP_NOPS.
33736
33737 2015-02-11 Jeff Law <law@redhat.com>
33738
33739 PR target/63347
33740 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33741 that needs to be queued, just queue it for a single cycle.
33742
33743 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
33744
33745 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33746 bodies of thunks; comment on why.
33747 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33748 symbols are extern.
33749
33750 2015-02-11 Richard Henderson <rth@redhat.com>
33751
33752 PR sanitize/65000
33753 * tree-eh.c (mark_reachable_handlers): Mark source and destination
33754 regions of __builtin_eh_copy_values.
33755
33756 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33757
33758 PR middle-end/65003
33759 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33760 ultimate alias is MEM with SYMBOL_REF satisfying
33761 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
33762 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33763
33764 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
33765
33766 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33767 "diagnostic-core.h".
33768 (main): Initialize progname, and call diagnostic_initialize.
33769
33770 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33771 instead of __OPENMP_TARGET__.
33772
33773 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33774 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33775 hard-coding PTX_ID.
33776
33777 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
33778
33779 * doc/sourcebuild.texi (pie_enabled): Document.
33780
33781 2015-02-11 Martin Liska <mliska@suse.cz>
33782
33783 PR ipa/64813
33784 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33785 a return value for call to a function that is noreturn.
33786
33787 2015-02-11 Richard Biener <rguenther@suse.de>
33788
33789 PR lto/65015
33790 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33791 and -fresolution.
33792
33793 2015-02-11 Andrew Pinski <apinski@cavium.com>
33794
33795 PR target/64893
33796 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33797 Change the first argument type to size_type_node and add another
33798 size_type_node.
33799 (aarch64_simd_expand_builtin): Handle the new argument to
33800 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33801 print an out when the first two arguments are not
33802 nonzero integer constants.
33803 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33804 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33805
33806 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33807
33808 PR target/61925
33809 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33810 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33811 (ix86_set_current_function): Rewritten.
33812 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33813 when creating builtin fndecls.
33814
33815 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33816
33817 PR ipa/65005
33818 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33819 function.
33820 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33821 have no comdat group.
33822 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33823 (lto_output_varpool_node): Always output alias info.
33824 (output_refs): Output refs of boundary aliases, too.
33825 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33826 (output_symtab): Output call eges in thunks in boundary.
33827 (get_alias_symbol): Remove.
33828 (input_node, input_varpool_node): Do not special case weakrefs.
33829 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33830 alias and thunks targets in the boundary; do not take removed symbols
33831 from their comdat groups.
33832 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33833 (cgraph_node::global_info): Remove.
33834 (cgraph_node::rtl_info): Look through aliases and thunks.
33835 * cgrpah.h (global_info): Remove.
33836 (non_local_p): Remove.
33837
33838 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33839 Sandra Loosemore <sandra@codesourcery.com>
33840
33841 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33842 to inline asm. List dialects in proper order.
33843
33844 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33845 Sandra Loosemore <sandra@codesourcery.com>
33846
33847 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33848
33849 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33850
33851 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33852 modified) reference to Solaris.
33853
33854 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
33855
33856 * doc/extend.texi (Extended Asm): Fix typos.
33857
33858 2015-02-10 Jakub Jelinek <jakub@redhat.com>
33859
33860 PR sanitizer/65004
33861 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33862
33863 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
33864
33865 PR target/64661
33866 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33867 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33868 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33869 * config/sh/constraints.md (Ara, Add): New constraints.
33870 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33871 predicates.
33872 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33873 atomic_mem_operand_0. Don't use force_reg on the memory address.
33874 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33875 Sra constraint. Convert to insn_and_split. Add workaround for
33876 PR 64974.
33877 (atomic_compare_and_swap<mode>_hard): Copy to
33878 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
33879 Use atomic_mem_operand_0 predicate.
33880 (atomic_compare_and_swap<mode>_soft_gusa,
33881 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33882 AraAdd constraints.
33883 (atomic_compare_and_swap<mode>_soft_tcb,
33884 atomic_compare_and_swap<mode>_soft_imask,
33885 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33886 atomic_mem_operand_0 predicate and SraSdd constraints.
33887 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33888 constraint.
33889 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33890 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
33891 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33892 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
33893 force_reg on the memory address.
33894 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33895 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33896 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33897 atomic_mem_operand_1 predicate and Sra constraint.
33898 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33899 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33900 Use atomic_mem_operand_1 predicate.
33901 (atomic_<fetchop_name><mode>_hard): Copy to
33902 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33903 Use atomic_mem_operand_1 predicate.
33904 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33905 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33906 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
33907 insn_and_split. Use atomic_mem_operand_1 predicate.
33908 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33909 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
33910 Use atomic_mem_operand_1 predicate.
33911 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33912 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33913 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33914 in generated insn with original mem operand before emitting the insn.
33915 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33916 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33917 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33918 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33919 Use atomic_mem_operand_1 predicate and AraAdd constraints.
33920 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33921 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33922 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33923 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33924 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33925 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33926 atomic_not_fetch<mode>_soft_tcb,
33927 atomic_<fetchop_name>_fetch<mode>_soft_imask,
33928 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33929 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33930 Use atomic_mem_operand_1 predicate and SraSdd constraints.
33931
33932 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
33933
33934 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33935 and 3 earlyclobber operands.
33936
33937 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33938
33939 * common.opt (fstack-reuse): Mark as optimization.
33940
33941 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33942
33943 PR ipa/64982
33944 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33945
33946 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
33947
33948 PR tree-optimization/64326
33949 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33950
33951 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
33952
33953 PR gcov-profile/61889
33954 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33955
33956 2015-02-10 Richard Biener <rguenther@suse.de>
33957
33958 PR tree-optimization/64995
33959 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33960 value we use is final.
33961 (visit_reference_op_store): Always valueize op.
33962 (visit_use): Properly valueize vuses.
33963
33964 2015-02-10 Richard Biener <rguenther@suse.de>
33965
33966 PR tree-optimization/64909
33967 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33968 pass a scalar-stmt count estimate to the cost model.
33969 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33970
33971 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
33972
33973 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33974 enabled by default together with var-tracking.
33975
33976 2015-02-10 Nick Clifton <nickc@redhat.com>
33977
33978 * config/rl78/rl78.c: Remove DIV attribute code accidentally
33979 included in previous rl78 commit.
33980
33981 2015-02-10 Richard Biener <rguenther@suse.de>
33982
33983 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33984 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33985 return the bitpack.
33986
33987 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33988
33989 PR gcov-profile/61889
33990 * config.in: regenerate.
33991 * configure.in: Likewise.
33992 * configure.ac: Check for ftw.h.
33993 * gcov-tool.c: Check for ftw.h before using nftw.
33994
33995 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33996
33997 PR lto/64076
33998 * ipa-visibility.c (update_visibility_by_resolution_info): Only
33999 assert when not in lto mode.
34000
34001 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34002
34003 * ira-color.c (setup_left_conflict_sizes_p): Simplify
34004 initialization/assignment of conflict_size.
34005
34006 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
34007
34008 PR ipa/64978
34009 * ipa-cp.c (gather_caller_stats): Skip thunks.
34010 (propagate_constants_topo): Skip aliases.
34011
34012 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
34013
34014 PR target/64761
34015 * config/sh/sh.c (sh_option_override): Don't change
34016 -freorder-blocks-and-partition to -freorder-blocks even when
34017 unwinding is enabled.
34018 (sh_can_follow_jump): Return false if the followee jump is
34019 a crossing jump when -freorder-blocks-and-partition is specified.
34020 * config/sh/sh.md (*jump_compact_crossing): New insn.
34021
34022 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
34023 Kaz Kojima <kkojima@gcc.gnu.org>
34024
34025 PR target/64761
34026 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34027 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34028 (sh_can_redirect_branch): Rename to ...
34029 (sh_can_follow_jump): ... this. Constify argument types.
34030 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34031 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34032 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34033 * doc/tm.texi: Regenerate.
34034
34035 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34036
34037 PR sanitizer/64981
34038 * builtins.c (expand_builtin): Call targetm.expand_builtin
34039 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34040
34041 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34042
34043 PR ipa/61548
34044 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34045
34046 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34047
34048 PR ipa/63566
34049 * ipa-icf.c (set_local): New function.
34050 (sem_function::merge): Use it.
34051
34052 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34053
34054 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34055 (add_type_duplicate): Fix comparison of BINFOs.
34056
34057 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34058
34059 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34060 on getting VOID pointer.
34061
34062 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34063
34064 PR target/64979
34065 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34066 va_list escapes.
34067
34068 2015-02-09 Richard Biener <rguenther@suse.de>
34069
34070 * genmatch.c (replace_id): Copy expr_type.
34071
34072 2015-02-09 Richard Biener <rguenther@suse.de>
34073
34074 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34075 (streamer_write_tree_bitfields): Declare.
34076 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34077 properly unpack padding.
34078 (unpack_value_fields): Inline ...
34079 (streamer_read_tree_bitfields): ... here.
34080 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34081 and properly add padding bits.
34082 (streamer_pack_tree_bitfields): Fold into ...
34083 (streamer_write_tree_bitfields): ... this new function,
34084 exposing the bitpack object.
34085 * lto-streamer-out.c (lto_write_tree_1): Call
34086 streamer_write_tree_bitfields.
34087
34088 2015-02-09 Richard Biener <rguenther@suse.de>
34089
34090 PR tree-optimization/54000
34091 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34092 (struct ivopts_data): Add loop_loc member.
34093 (tree_ssa_iv_optimize_loop): Dump loop location.
34094 (create_new_ivs): Likewise, also dump number of IVs generated.
34095
34096 2015-02-09 Martin Liska <mliska@suse.cz>
34097
34098 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34099 just if not yet registered.
34100 (ipa_icf_generate_summary): Register callgraph hooks.
34101
34102 2015-02-08 Andrew Pinski <apinski@cavium.com>
34103
34104 * config/aarch64/aarch64.c (gty_dummy): Delete.
34105
34106 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34107
34108 PR ipa/63566
34109 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34110 (cgraph_node::local_p): Remove thunk related FIXME.
34111
34112 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34113
34114 PR ipa/63566
34115 * i386.c (ix86_function_regparm): Look through aliases to see if callee
34116 is local and optimized.
34117 (ix86_function_sseregparm): Likewise; also use target's SSE math
34118 settings; error out instead of silently generating wrong code
34119 on mismatches.
34120 (init_cumulative_args): Look through aliases.
34121
34122 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34123
34124 PR ipa/63566
34125 * ipa-split.c (execute_split_functions): Split if function has aliases.
34126
34127 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34128
34129 PR ipa/63566
34130 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34131 aliases before trying to expand it.
34132 (cgraph_node::expand_thunk): Fix formating.
34133
34134 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
34135
34136 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34137 (Using Assembly Language with C): Expand introduction.
34138 (Basic Asm): Copy-edit. Add more information about uses of
34139 basic asm.
34140 (Extended Asm): Copy-edit. Document new escape syntax and
34141 %l[label] syntax.
34142 (Global Reg Vars): Copy-edit.
34143 (Local Reg Vars): Likewise.
34144
34145 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
34146
34147 PR debug/2714
34148 PR bootstrap/64256
34149 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34150 (DBX_CONTIN_CHAR): Define.
34151
34152 2015-02-06 Sebastian Pop <s.pop@samsung.com>
34153 Brian Rzycki <b.rzycki@samsung.com>
34154
34155 PR tree-optimization/64878
34156 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34157 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34158 Stop recursion at loop phi nodes after having visited a loop phi node.
34159
34160 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34161
34162 * toplev.c (process_options): Change flag_ipa_ra before creating
34163 optimization_{default,current}_node.
34164
34165 PR ipa/64896
34166 * cgraphunit.c (cgraph_node::expand_thunk): If
34167 restype is not is_gimple_reg_type nor the thunk_fndecl
34168 returns aggregate_value_p, set restmp to a temporary variable
34169 instead of resdecl.
34170
34171 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
34172
34173 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34174
34175 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34176
34177 PR target/64205
34178 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34179 add a general secondary reload handler for SDmode, unless we have
34180 both read/write support for SDmode.
34181
34182 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34183
34184 PR middle-end/64937
34185 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34186 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34187 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34188 1 before, push it to abstract_vec.
34189 (dwarf2out_abstract_function): Adjust caller. Don't call
34190 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34191 DECL_ABSTRACT_P flags for all abstract_vec elts.
34192
34193 2015-02-06 Renlin Li <renlin.li@arm.com>
34194
34195 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34196 complex gimple.
34197 * tree-ssa.c (execute_update_addresses_taken): Likewise.
34198
34199 2015-02-06 Jeff Law <law@redhat.com>
34200
34201 PR target/64889
34202 * config/h8300/h8300.c (push): New argument "in_prologue".
34203 Pass "in_prologue" along to "F".
34204 (h8300_push_pop): Corresponding changes.
34205 (h8300_expand_prologue): Likewise.
34206 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
34207
34208 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34209
34210 PR rtl-optimization/64957
34211 PR debug/64817
34212 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34213 IOR rather than for AND.
34214
34215 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
34216
34217 PR target/62631
34218 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34219 of shift-add and (add + shift) operations. Rename local variable.
34220
34221 2015-02-05 Jeff Law <law@redhat.com>
34222
34223 PR target/17306
34224 * config/h8300/constraints.md (U): Correctly dectect
34225 "eightbit_data" memory addresses.
34226 * config/h8300/h8300.c (eightbit_constant_address_p): Also
34227 handle (const (plus (symbol_ref (x)))) where x is declared
34228 as an 8-bit data memory address.
34229 * config/h8300/h8300.md (call, call_value): Correctly detect
34230 "funcvec" functions.
34231
34232 PR target/43264
34233 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34234 24 to 28 bits for the H8/300.
34235
34236 2015-02-06 Alan Modra <amodra@gmail.com>
34237
34238 PR target/64876
34239 * config/rs6000/rs6000.c (chain_already_loaded): New function.
34240 (rs6000_call_aix): Use it.
34241
34242 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
34243
34244 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34245 check.
34246
34247 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
34248
34249 * config/h8300/constraints.md ("U" constraint): Use strict
34250 variant of REG_OK_FOR_BASE_P after reload has started.
34251
34252 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
34253
34254 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34255 define to zero if !TARGET_NEON.
34256 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34257
34258 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34259 Trevor Saunders <tsaunders@mozilla.com>
34260
34261 PR ipa/61548
34262 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34263
34264 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34265
34266 PR ipa/61548
34267 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34268 when removing varpool nodes.
34269
34270 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34271
34272 PR ipa/61548
34273 * varpool.c (varpool_node::remove): Fix order of variables.
34274
34275 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34276
34277 PR ipa/64686
34278 * ipa-inline.c (inline_small_functions): Fix ordering issue between
34279 speculation resolution and key updates.
34280
34281 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34282
34283 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34284 about not letting any speculative edges unupdated.
34285
34286 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34287
34288 PR gcov/64123
34289 * gcov-io.c (gcov_var): Export.
34290
34291 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34292
34293 PR middle-end/64922
34294 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34295 edges that become speculative.
34296
34297 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34298
34299 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34300 or DW_LANG_Fortran08.
34301 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34302 DW_LANG_Fortran08.
34303 (gen_compile_unit_die): Handle "GNU Fortran2003" and
34304 "GNU Fortran2008" language strings.
34305 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34306 * langhooks.h (lang_GNU_Fortran): New prototype.
34307 * langhooks.c (lang_GNU_Fortran): New function.
34308 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34309 lang_GNU_Fortran.
34310
34311 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34312
34313 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34314 (RTX_OK_FOR_OLO10_P): Likewise.
34315
34316 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34317
34318 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34319
34320 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34321
34322 PR middle-end/64922
34323 * gimple.c: Include gimple-ssa.h.
34324 (maybe_remove_unused_call_args): New function.
34325 * gimple.h (maybe_remove_unused_call_args): Declare.
34326 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34327 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34328 * gimple-fold.c (gimple_fold_call): Likewise.
34329
34330 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34331
34332 PR rtl-optimization/64905
34333 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34334 pointer alignment if it isn't needed.
34335
34336 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34337
34338 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34339 cortex-a72.cortex-a53.
34340 * config/aarch64/aarch64-tune.md: Regenerate.
34341 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34342
34343 2015-02-04 Nick Clifton <nickc@redhat.com>
34344
34345 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34346 inside a MEM.
34347
34348 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34349
34350 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34351 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34352 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34353 of DEF_BUILTIN.
34354 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34355 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34356 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34357 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34358 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34359 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34360 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34361 * tree-core.h (enum built_in_function): In between
34362 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34363 for builtins that use DEF_BUILTIN_CHKP macro.
34364
34365 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34366
34367 PR debug/64817
34368 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34369 operands for tcc_comparison exprs. Fix typos.
34370
34371 PR debug/64817
34372 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34373 of two XORs that have an intervening AND or IOR.
34374
34375 PR debug/64817
34376 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34377 simplification of XOR of AND to not allocate new rtx before
34378 committing to a simplification.
34379
34380 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34381
34382 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34383 manual swaps in all peepholes.
34384
34385 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34386
34387 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34388 of manual swapping implementation.
34389 (aarch64_expand_vec_perm_const_1): Likewise.
34390
34391 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34392
34393 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34394 (generic_addrcost_table): Remove NAMED_PARAM.
34395 (cortexa57_addrcost_table): Likewise.
34396 (xgene1_addrcost_table): Likewise.
34397 (generic_regmove_table): Likewise.
34398 (cortexa53_regmove_table): Likewise.
34399 (xgene1_regmove_table): Likewise.
34400 (generic_vector_table): Likewise.
34401 (cortexa57_vector_table): Likewise.
34402 (xgene1_vector_table): Likewise.
34403 (generic_tunings): Likewise.
34404 (cortexa53_tunings): Likewise.
34405 (cortexa57_tunings): Likewise.
34406 (xgene1_tunings): Likewise.
34407
34408 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34409
34410 * config/arm/arm-cores.def: Add cortex-a72 and
34411 cortex-a72.cortex-a53.
34412 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34413 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34414 * config/arm/arm-tune.md: Regenerate.
34415 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34416 "cortex-a72.cortex-a53".
34417 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34418
34419 2015-02-04 Nick Clifton <nickc@redhat.com>
34420
34421 PR target/64408
34422 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34423 of accepted codes.
34424 (nonimmediate_di_operand): Likewise.
34425
34426 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34427 prefixes of known F5 using MSP430 MCUs.
34428
34429 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34430
34431 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34432 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34433 instead of __builtin_sqrt.
34434
34435 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34436
34437 * varasm.c (do_assemble_alias): Follow transparent alias
34438 chain for target.
34439 (default_assemble_visibility): Follow transparent alias
34440 chain for decl name.
34441
34442 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34443
34444 PR middle-end/62103
34445 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34446 to compute size of referenced value in the constant case.
34447
34448 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34449
34450 PR rtl-optimization/64756
34451 * cse.c (invalidate_dest): New function.
34452 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34453 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34454 invalidate and do not record it.
34455
34456 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34457
34458 PR target/64660
34459 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34460 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34461 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34462 atomic_nand<mode>_soft_tcb): New insns.
34463 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34464 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34465 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34466 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34467 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34468 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34469 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34470 atomic_not<mode>_hard if operands[0] is unused.
34471 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34472 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34473 if operands[0] is unused.
34474 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34475 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34476 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34477 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34478 unused.
34479 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34480 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34481 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34482 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34483 if operands[0] is unused.
34484 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
34485 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34486 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
34487 atomic_nand_fetchsi_hard if operands[0] is unused.
34488 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
34489 atomic_nand<mode>_hard if operands[0] is unused.
34490 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
34491 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34492 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
34493 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34494 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
34495 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34496 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34497 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34498 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
34499 atomic_not<mode>_hard if operands[0] is unused.
34500 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34501 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34502 unused.
34503 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34504 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34505 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
34506 atomic_nand<mode>_hard if operands[0] is unused.
34507 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34508 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34509
34510 2015-02-03 David Malcolm <dmalcolm@redhat.com>
34511
34512 PR jit/64810
34513 * Makefile.in (GCC_OBJS): Add gcc-main.o.
34514 * gcc-main.c: New file, containing "main" taken from gcc.c.
34515 * gcc.c (do_self_spec): Free decoded_options.
34516 (class driver): Move declaration to gcc.h.
34517 (main): Move declaration and implementation to new file
34518 gcc-main.c.
34519 (driver_get_configure_time_options): New function.
34520 * gcc.h (class driver): Move this declaration here, from
34521 gcc.c.
34522 (driver_get_configure_time_options): New declaration.
34523
34524 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
34525
34526 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34527 cross-module inlining.
34528 * cgraph.h (cgraph_node): Add flag merged.
34529 * ipa-icf.c (sem_function::merge): Maintain it.
34530
34531 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
34532
34533 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34534 instead of OBJECT_P.
34535
34536 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
34537
34538 PR target/62631
34539 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34540 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34541 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34542 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34543
34544 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34545
34546 PR other/63504
34547 * combine.c (reg_n_sets_max): New variable.
34548 (can_change_dest_mode, reg_nonzero_bits_for_combine,
34549 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34550 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34551 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34552 (rest_of_handle_combine): Initialize reg_n_sets_max.
34553
34554 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
34555
34556 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34557 if some always_inline was inlined, apply changes before inlining
34558 heuristically.
34559
34560 2015-02-02 David Malcolm <dmalcolm@redhat.com>
34561
34562 PR jit/64810
34563 * config/arm/arm.c (arm_option_override): Set
34564 arm_selected_arch/cpu/tune to NULL on entry.
34565
34566 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
34567 Andrew Pinski <pinskia@gcc.gnu.org>
34568 Jakub Jelinek <jakub@gcc.gnu.org>
34569
34570 PR target/64231
34571 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34572 integer typing for small model. Use IN_RANGE.
34573
34574 2015-02-02 Richard Biener <rguenther@suse.de>
34575
34576 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34577 * tree-vrp.c (vrp_valueize_1): Likewise.
34578
34579 2015-02-02 Alan Modra <amodra@gmail.com>
34580
34581 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34582 than mem for toc_restore.
34583 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34584 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34585 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34586
34587 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
34588
34589 PR target/64047
34590 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34591 explicit default options.
34592
34593 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
34594
34595 PR ipa/64872
34596 * ipa-utils.c (ipa_merge_profiles): Add release argument.
34597 * ipa-icf.c (sem_function::merge): Do not release body when merging.
34598 * ipa-utils.h (ipa_merge_profiles): Update prototype.
34599
34600 2015-02-01 Jakub Jelinek <jakub@redhat.com>
34601
34602 PR debug/64817
34603 * cfgexpand.c (deep_ter_debug_map): New variable.
34604 (avoid_deep_ter_for_debug): New function.
34605 (expand_debug_expr): If TERed SSA_NAME is in
34606 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34607 instead of trying to expand SSA_NAME's def stmt.
34608 (expand_debug_locations): When expanding debug bind
34609 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34610 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34611 value.
34612 (pass_expand::execute): Call avoid_deep_ter_for_debug on
34613 all debug bind stmts. Delete deep_ter_debug_map after
34614 expand_debug_location if non-NULL and clear it.
34615
34616 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
34617
34618 PR target/64851
34619 * config/sh/sync.md (atomic_fetch_notsi_hard,
34620 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34621 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34622 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34623 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34624 atomic_not_fetch<mode>_soft_imask): New insns.
34625
34626 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34627
34628 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34629 (rank_for_schedule_debug): Split from ...
34630 (rank_for_schedule): ... this.
34631 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34632 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34633
34634 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34635
34636 * doc/md.texi (Machine Constraints): Alphabetize table by target.
34637 * doc/extend.texi (x86 Variable Attributes): Move section to
34638 correct alphabetization after renaming.
34639 (x86 Type Attributes): Likewise.
34640 (Target Builtins): Re-alphabetize menu.
34641 (x86 Built-in Functions): Move section to correct alphabetization
34642 after renaming.
34643 (x86 transactional memory intrinsics): Likewise.
34644 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34645 and x86 Windows Options in table and menu.
34646 (x86 Options): Move section to correct alphabetization after
34647 renaming.
34648 (x86 Windows Options): Likewise.
34649
34650 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34651
34652 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34653 preferred names of the architecture and its 32- and 64-bit
34654 variants.
34655 * doc/invoke.texi: Likewise.
34656 * doc/md.texi: Likewise.
34657
34658 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34659
34660 PR target/64882
34661 * config/i386/predicates.md (address_no_seg_operand): Reject
34662 non-CONST_INT_P operands in invalid mode.
34663
34664 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34665
34666 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34667 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
34668 * config/i386/predicates.md (address_no_seg_operand): Call
34669 address_operand with VOIDmode.
34670 (vsib_address_operand): Ditto.
34671 (address_mpx_no_base_operand): Ditto.
34672 (address_mpx_no_index_operand): Ditto.
34673
34674 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34675
34676 PR target/64688
34677 * lra-constraints.c (original_subreg_reg_mode): New.
34678 (simplify_operand_subreg): Try to simplify subreg of const. Use
34679 original_subreg_reg_mode for it.
34680 (swap_operands): Update original_subreg_reg_mode.
34681 (curr_insn_transform): Set up original_subreg_reg_mode.
34682
34683 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34684
34685 PR target/64617
34686 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34687 function.
34688 (process_alt_operands): Use it.
34689 (curr_insn_transform): Check the optional reload pseudo class is
34690 ok for the mode.
34691
34692 2015-01-30 Joseph Myers <joseph@codesourcery.com>
34693
34694 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34695 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34696 prototype.
34697 * toplev.h (init_asm_output): Update comment on use of
34698 UNKNOWN_LOCATION with fatal_error.
34699 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34700 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34701 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34702 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34703 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34704 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34705 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34706 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34707 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34708 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34709 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34710 fatal_error changed to pass input_location as first argument.
34711
34712 2015-01-30 Martin Liska <mliska@suse.cz>
34713
34714 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34715 in #pragma GCC diagnostic guards.
34716
34717 2015-01-30 Richard Biener <rguenther@suse.de>
34718
34719 PR tree-optimization/64829
34720 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34721 not add a widening conversion pattern but hand off extra
34722 widenings to callers.
34723 (vect_recog_widen_mult_pattern): Handle extra widening produced
34724 by vect_handle_widen_op_by_const.
34725 (vect_recog_widen_shift_pattern): Likewise.
34726 (vect_pattern_recog_1): Remove excess vertical space in dumping.
34727 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34728 (vect_init_vector_1): Likewise.
34729 (vect_get_vec_def_for_operand): Likewise.
34730 (vect_finish_stmt_generation): Likewise.
34731 (vectorizable_load): Likewise.
34732 (vect_analyze_stmt): Likewise.
34733 (vect_is_simple_use): Likewise.
34734
34735 2015-01-29 Jeff Law <law@redhat.com>
34736
34737 * combine.c (try_combine): Fix typo in comment.
34738
34739 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
34740
34741 PR target/64580
34742 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34743 (rs6000_stack_info): Add assert.
34744 (rs6000_output_savres_externs): New function, split off from...
34745 (rs6000_output_function_prologue): ... here. Do not call it for
34746 thunks.
34747
34748 2015-01-29 Jeff Law <law@redhat.com>
34749
34750 PR target/15184
34751 * combine.c (try_combine): If I0 is a memory load and I3 a store
34752 to a related address, increase the "goodness" of doing a 4-insn
34753 combination with I0-I3.
34754 (make_field_assignment): Handle SUBREGs in the ior+and case.
34755
34756 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
34757
34758 PR tree-optimization/64746
34759 * tree-if-conv.c (mask_exists): New function.
34760 (predicate_mem_writes): Save created mask with given size for further
34761 use.
34762 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34763 (ifcvt_repair_bool_pattern): Collect all statements that are root
34764 of bool pattern and use iterative algorithm to remove multiple uses
34765 of predicates, display number of required iterations.
34766
34767 2015-01-29 Richard Biener <rguenther@suse.de>
34768
34769 PR tree-optimization/64853
34770 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34771 stmt will get simulated again.
34772 * tree-ssa-ccp.c (valueize_op_1): Likewise.
34773
34774 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34775
34776 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34777 return_in_pc. Remove redundant assignments.
34778 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34779 (arm_expand_epilogue): Don't compare boolean with true in if condition.
34780
34781 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
34782
34783 * config/i386/i386.c (ix86_mode_after): Make static.
34784
34785 2015-01-29 Richard Biener <rguenther@suse.de>
34786
34787 PR tree-optimization/64844
34788 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34789 dump cost model analysis.
34790 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34791 Do not register adjusted load/store costs here.
34792
34793 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34794 Uros Bizjak <ubizjak@gmail.com>
34795
34796 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34797 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34798 using x86_use_pseudo_pic_reg.
34799 * config/i386/i386.c (ix86_conditional_register_usage): Remove
34800 support for fixed PIC register.
34801 (ix86_use_pseudo_pic_reg): Not static any more.
34802
34803 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34804
34805 PR middle-end/64805
34806 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34807 to avoid error in cgraph node verification.
34808
34809 2015-01-29 Marek Polacek <polacek@redhat.com>
34810
34811 * doc/standards.texi: Reflect that the default for C is gnu11.
34812
34813 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
34814
34815 PR target/64761
34816 * reorg.c (switch_text_sections_between_p): New function.
34817 (relax_delay_slots): Call it when testing if the jump insn
34818 is removable. Use targetm.can_follow_jump when testing if
34819 the conditional branch can follow an unconditional jump.
34820
34821 2015-01-27 Caroline Tice <cmtice@google.com>
34822
34823 Committing VTV Cywin/Ming patch for Patrick Wollgast
34824 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34825 if -fvtable-verify=preinit/std is used.
34826 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34827 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34828 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34829 if -fvtable-verify=preinit/std is used.
34830 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34831 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34832 if -fvtable-verify=preinit/std is used.
34833 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34834 * config/i386/mingw32.h (LIB_SPEC): Likewise.
34835 * varasm.c (assemble_variable): Add code to properly set the comdat
34836 section and name for the .vtable_map_vars section in case the
34837 target is PE or COFF.
34838
34839 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34840
34841 PR ipa/64801
34842 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34843 make sane BB profile.
34844 (cgraph_node::expand_thunk): Make sane BB profile.
34845 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34846 * cgraph.h (init_lowered_empty_function): Update prototype.
34847 * config/i386/i386.c (make_resolver_func): Update call.
34848 * predict.c (gate): Disable branch prediction pass if
34849 profile is already there.
34850
34851 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34852
34853 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34854 * opth-gen.awk: Likewise.
34855 * common.opt: Mark flag_fp_contract_mode as Optimization.
34856
34857 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
34858
34859 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34860 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34861
34862 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
34863
34864 PR target/64659
34865 * config/sh/predicates.md (atomic_arith_operand,
34866 atomic_logical_operand): Remove.
34867 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34868 (atomic_arith_operand_0): New predicate.
34869 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34870 Use atomic_arith_operand_0 for input values.
34871 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34872 atomic_compare_and_swap<mode>_soft_gusa,
34873 atomic_compare_and_swap<mode>_soft_tcb,
34874 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34875 arith_reg_operand instead of register_operand.
34876 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
34877 atomic_arith_operand_0 for newval input.
34878 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34879 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34880 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34881 arith_reg_operand instead of register_operand.
34882 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34883 fetchop_predicate_1, fetchop_constraint_1_llcs,
34884 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34885 fetchop_constraint_1_imask): New code iterator attributes.
34886 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34887 register_operand. Use fetchop_predicate_1.
34888 (atomic_fetch_<fetchop_name>si_hard,
34889 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34890 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34891 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34892 and arith_reg_operand instead of register_operand. Use
34893 fetchop_predicate_1, fetchop_constraint_1_gusa.
34894 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34895 and arith_reg_operand instead of register_operand. Use
34896 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
34897 to allow R0 usage.
34898 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34899 and arith_reg_operand instead of register_operand. Use
34900 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
34901 to allow R0 usage.
34902 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34903 register_operand. Use atomic_logical_operand_1.
34904 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34905 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34906 arith_reg_operand instead of register_operand.
34907 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34908 Use arith_reg_dest and arith_reg_operand instead of register_operand.
34909 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
34910 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34911 register_operand. Use fetchop_predicate_1.
34912 (atomic_<fetchop_name>_fetchsi_hard,
34913 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34914 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34915 fetchop_constraint_1_llcs.
34916 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34917 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34918 fetchop_constraint_1_gusa.
34919 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34920 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34921 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
34922 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34923 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34924 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
34925 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34926 register_operand. Use atomic_logical_operand_1.
34927 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34928 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34929 arith_reg_operand instead of register_operand.
34930 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34931 arith_reg_operand instead of register_operand. Use logical_operand
34932 and K08. Adjust asm sequence to allow R0 usage.
34933 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34934 arith_reg_operand instead of register_operand. Use logical_operand
34935 and K08.
34936
34937 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34938
34939 PR other/63504
34940 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34941 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34942 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34943 only get_full_len HOST_WIDE_INTs from get_val () array rather than
34944 all bits in *val_wide.
34945
34946 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
34947
34948 * varpool.c (tls_model_names): Fix names.
34949 (varpool_node::dump): Dump tls- prefix for tls models.
34950
34951 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
34952 Bernd Schmidt <bernds@codesourcery.com>
34953 Nathan Sidwell <nathan@codesourcery.com>
34954
34955 * config/nvptx/mkoffload.c: New file.
34956 * config/nvptx/t-nvptx: Add build rules for it.
34957 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34958 (extra_programs): Add mkoffload.
34959 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34960 function.
34961 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34962
34963 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
34964
34965 PR middle-end/64809
34966 * cfgexpand.c (reorder_operands): Skip debug gimples.
34967
34968 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
34969
34970 PR tree-optimization/64277
34971 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34972 range info when possible to refine estimation.
34973
34974 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34975
34976 PR tree-optimization/64718
34977 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34978 be a 16bit unsigned integer when n->range is 16.
34979 (bswap_replace): Convert src to that type if necessary for all bswap
34980 sizes. Fix rotation right notation in nearby comment. Use bswap_type
34981 set in pass_optimize_bswap::execute ().
34982
34983 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
34984
34985 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34986 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34987 integer and floating point variants.
34988 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34989
34990 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
34991
34992 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34993 for all vector modes.
34994
34995 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34996
34997 PR bootstrap/64612
34998 * doc/sourcebuild.texi (comdat_group): Document.
34999
35000 2015-01-28 Terry Guo <terry.guo@arm.com>
35001
35002 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35003
35004 2015-01-27 David Malcolm <dmalcolm@redhat.com>
35005
35006 * toplev.c (print_version): Add param "show_global_state", and
35007 only print GGC and plugin information if it is true.
35008 (init_asm_output): Pass in "true" for the new param when calling
35009 print_version.
35010 (process_options): Likewise.
35011 (toplev::main): Likewise.
35012 * toplev.h (print_version): Add new param to decl.
35013
35014 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35015
35016 PR ipa/60871
35017 PR ipa/64139
35018 * tree.c (lookup_binfo_at_offset): New function.
35019 (get_binfo_at_offset): Use it.
35020
35021 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35022
35023 PR ipa/64282
35024 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35025 on vtable being vtable.
35026
35027 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35028
35029 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35030 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35031 -mhotpatch= option.
35032 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35033 -mno-hotpatch options. Change syntax of -mhotpatch= option.
35034 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35035 Renamed.
35036 (s390_hotpatch_trampoline_halfwords_max): Renamed.
35037 (s390_hotpatch_hw_max): New name.
35038 (s390_hotpatch_trampoline_halfwords): Renamed.
35039 (s390_hotpatch_hw_before_label): New name.
35040 (get_hotpatch_attribute): Removed.
35041 (s390_hotpatch_hw_after_label): New name.
35042 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35043 attribute.
35044 (s390_attribute_table): Ditto.
35045 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35046 (s390_function_num_hotpatch_hw): New name.
35047 Remove special handling of inline functions and hotpatching.
35048 Return number of nops before and after the function label.
35049 (s390_can_inline_p): Removed.
35050 (s390_asm_output_function_label): Emit a configurable number of nops
35051 after the function label.
35052 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35053 (TARGET_CAN_INLINE_P) Removed.
35054 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35055
35056 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35057 Jiong Wang <jiong.wang@arm.com>
35058
35059 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35060 of scratch reg.
35061 (cb<optab><mode>1): Likewise.
35062 * config/aarch64/iterators.md (bcond): New define_code_attr.
35063
35064 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35065
35066 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35067 memory accesses.
35068
35069 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35070
35071 * config/s390/s390.c (s390_register_move_cost): Increase costs for
35072 FPR->GPR moves.
35073
35074 2015-01-27 Richard Biener <rguenther@suse.de>
35075
35076 * tree-vrp.c (update_value_range): Intersect the range with
35077 old recorded SSA name range information.
35078
35079 2015-01-27 Nick Clifton <nickc@redhat.com>
35080
35081 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35082 BC, DE and HL registers directly, not via AX.
35083 When decrementing the stack pointer by a large amount, transfer SP
35084 into AX and perform the subtraction there.
35085 (rl78_expand_epilogue): Perform the inverse of the above
35086 enhancements.
35087
35088 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35089
35090 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35091
35092 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35093 Yury Gribov <y.gribov@samsung.com>
35094
35095 PR ubsan/64741
35096 * ubsan.c (ubsan_source_location): Refactor code.
35097 (ubsan_type_descriptor): Update type size. Refactor code.
35098
35099 2015-01-27 Richard Biener <rguenther@suse.de>
35100
35101 PR tree-optimization/56273
35102 PR tree-optimization/59124
35103 PR tree-optimization/64277
35104 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35105 from the first VRP pass.
35106
35107 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35108
35109 PR ipa/64776
35110 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35111 handle the first argument in the same loop as all the other arguments.
35112
35113 PR rtl-optimization/61058
35114 * jump.c (cleanup_barriers): Update basic block boundaries
35115 if BLOCK_FOR_INSN is non-NULL on PREV.
35116
35117 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
35118
35119 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35120 bounds narrowing, already instrumented calls and calls to
35121 not instrumentable functions.
35122
35123 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35124
35125 PR tree-optimization/64807
35126 * wide-int.cc (wi::divmod_internal): Clear
35127 b_dividend[dividend_blocks_needed].
35128
35129 2015-01-26 DJ Delorie <dj@redhat.com>
35130
35131 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35132 volatile memory references.
35133
35134 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
35135
35136 PR target/49263
35137 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35138 remove_insn.
35139 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35140 shifts if it already fits into K08.
35141
35142 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35143
35144 PR ipa/64730
35145 * ipa-inline.c (inline_small_functions): Print "unknown" even
35146 if edge->call_stmt is non-NULL, but has builtins or unknown
35147 location.
35148
35149 PR middle-end/64421
35150 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35151 with asterisk, skip the first character.
35152
35153 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35154
35155 PR target/64806
35156 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35157 order change.
35158
35159 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
35160
35161 PR target/64795
35162 * config/i386/i386.md (*movdi_internal): Also check operand 0
35163 to determine TYPE_LEA operand.
35164 (*movsi_internal): Ditto.
35165
35166 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35167
35168 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35169 OPTION_MASK_QUAD_MEMORY_ATOMIC.
35170
35171 2015-01-26 Renlin Li <renlin.li@arm.com>
35172
35173 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35174 the comment.
35175 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35176 for higher part.
35177
35178 2015-01-26 Richard Biener <rguenther@suse.de>
35179
35180 PR middle-end/64764
35181 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35182 combining two BIT_AND_EXPR predicates.
35183
35184 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35185
35186 PR bootstrap/64754
35187 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35188
35189 2015-01-26 Terry Guo <terry.guo@arm.com>
35190
35191 * config/arm/arm.c (arm_file_start): Update the assignment of
35192 Tag_ABI_HardFP_use.
35193
35194 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
35195
35196 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35197 pipeline model.
35198 config/arm/arm.md: Include the new Cortex-A57 model.
35199 (generic_sched): Don't use generic_sched when tuning for
35200 Cortex-A57.
35201
35202 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
35203 Uros Bizjak <ubizjak@gmail.com>
35204
35205 * config/i386/i386.c (get_builtin_code_for_version): Add
35206 support for BMI and BMI2 multiversion functions.
35207
35208 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35209
35210 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35211 (extract_bit_field): Likewise.
35212 (extract_low_bits): Likewise.
35213 (expand_mult): Likewise.
35214 (expand_mult_highpart_adjust): Likewise.
35215
35216 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35217
35218 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35219 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35220 * config/i386/i386.c (processor_model): Add
35221 M_INTEL_COREI7_BROADWELL.
35222 (arch_names_table): Add "broadwell".
35223
35224 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
35225
35226 PR target/49263
35227 PR target/53987
35228 PR target/64345
35229 PR target/59533
35230 PR target/52933
35231 PR target/54236
35232 PR target/51244
35233 * config/sh/sh-protos.h
35234 (sh_extending_set_of_reg::can_use_as_unextended_reg,
35235 sh_extending_set_of_reg::use_as_unextended_reg,
35236 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35237 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35238 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35239 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35240 (sh_treg_insns): New class.
35241 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35242 (scope_counter): New class.
35243 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35244 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35245 sh_extending_set_of_reg::can_use_as_unextended_reg,
35246 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35247 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35248 sh_split_treg_set_expr): New functions.
35249 (addsubcosts): Handle treg_set_expr.
35250 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35251 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35252 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35253 (sh_insn_operands_modified_between_p): Make non-static.
35254 * config/sh/predicates.md (zero_extend_movu_operand): Allow
35255 simple_mem_operand in addition to displacement_mem_operand.
35256 (zero_extend_operand): Don't allow zero_extend_movu_operand.
35257 (treg_set_expr, treg_set_expr_not_const01,
35258 arith_reg_or_treg_set_expr): New predicates.
35259 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35260 arith_or_int_operand instead of logical_operand. Convert to
35261 insn_and_split. Try to optimize constant operand in splitter.
35262 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
35263 (*tstqi_t_zero): Delete.
35264 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35265 (tstsi_t_and_not): Delete.
35266 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35267 Convert to insn_and_split.
35268 (unnamed split, tstsi_t_zero_extract_xor,
35269 tstsi_t_zero_extract_subreg_xor_little,
35270 tstsi_t_zero_extract_subreg_xor_big): Delete.
35271 (*tstsi_t_shift_mask): New insn_and_split.
35272 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35273 to recombine with surrounding insns when splitting.
35274 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35275 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35276 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35277 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35278 (*cbranch_div0s: Delete.
35279 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35280 Try to recombine with surrounding insns when splitting. Add operand
35281 order variants.
35282 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35283 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35284 *addc_r_r_msb, *addc_2r_msb): Delete.
35285 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
35286 order variant.
35287 (*addc_negreg_t): New insn_and_split.
35288 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35289 Try to recombine with surrounding insns when splitting.
35290 Add operand order variants.
35291 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35292 insn_and_split patterns.
35293 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
35294 surrounding insns when splitting.
35295 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35296 (*rotcl): Likewise. Add zero_extract variant.
35297 (*ashrsi2_31): New insn_and_split.
35298 (*negc): Convert to insn_and_split. Use treg_set_expr.
35299 (*zero_extend<mode>si2_disp_mem): Update comment.
35300 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35301 condition.
35302 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
35303 with surrounding insns when splitting.
35304 (any_treg_expr_to_reg): New insn_and_split.
35305 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35306 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35307 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35308 *zero_extract_2): New single bit zero extract patterns.
35309 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35310 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35311 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35312 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35313 set destination.
35314 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35315 register_operand for set source.
35316
35317 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35318
35319 * i386.opt (prefetch_sse): New targetsave.
35320 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35321 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35322 ix86_cost/ix86_tune_cost.
35323
35324 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35325
35326 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35327 Support the JIT by using 0 as the language type.
35328
35329 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35330
35331 PR target/64317
35332 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35333 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35334 (mark_regno_live, process_bb_lives): Pass new parameter value to
35335 make_hard_regno_born.
35336
35337 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35338
35339 PR rtl-optimization/63637
35340 PR rtl-optimization/60663
35341 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35342 if elt->cost is MAX_COST for ASM_OPERANDS.
35343 (find_sets_in_insn): Fix up comment typo.
35344 (cse_insn): Don't set src_volatile for all non-volatile
35345 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35346 or with "memory" clobber. Set elt->cost to MAX_COST
35347 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35348 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35349
35350 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35351
35352 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35353 alternative 1.
35354
35355 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35356
35357 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35358 libgcc/config/i386/elf-lib.h.
35359
35360 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35361
35362 PR driver/64737
35363 * gcc.c (print_configuration): Don't print a blank line at the end
35364 here...
35365 (run_attempt): ... but here unstead.
35366
35367 PR middle-end/64734
35368 * omp-low.c (scan_sharing_clauses): Don't ignore
35369 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35370 on target data/update constructs.
35371
35372 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35373
35374 PR target/50928
35375 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35376 (DEBUG_RELOAD): Removed define.
35377 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35378 (m32c_function_arg): Added a type cast.
35379 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35380 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35381 * config/m32c/bitops.md (andqi3_16): Likewise.
35382 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35383 (push_a01_l): Likewise.
35384
35385 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35386
35387 PR jit/64721
35388 * main.c (main): Construct toplev instances with init_signals=true.
35389 * toplev.c (general_init): Add param "init_signals", and use it to
35390 conditionalize the calls to signal and host_hooks.extra_signals.
35391 (toplev::toplev): Add param "init_signals".
35392 (toplev::main): When invoking general_init, pass m_init_signals
35393 to control whether signal-handlers are installed.
35394 * toplev.h (toplev::toplev): Add param "init_signals".
35395 (toplev::m_init_signals): New field.
35396
35397 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35398
35399 PR jit/64722
35400 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35401 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35402 latter may be affected by the former (e.g. on i686).
35403
35404 2015-01-23 Martin Liska <mliska@suse.cz>
35405
35406 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35407 false positive during profiledbootstrap.
35408
35409 2015-01-23 Tom de Vries <tom@codesourcery.com>
35410
35411 PR libgomp/64672
35412 * lto-opts.c (lto_write_options): Output non-explicit conservative
35413 -fno-openacc.
35414 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35415 (append_compiler_options): Pass -fopenacc through.
35416
35417 2015-01-23 Tom de Vries <tom@codesourcery.com>
35418
35419 PR libgomp/64707
35420 * lto-opts.c (lto_write_options): Output non-explicit conservative
35421 -fno-openmp.
35422 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35423 (append_compiler_options): Pass -fopenmp through.
35424
35425 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35426
35427 PR debug/64511
35428 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35429 GTY markup.
35430
35431 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35432 * diagnostic.def (DK_ICE_NOBT): New kind.
35433 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35434 like DK_ICE, but never print backtrace.
35435 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35436 (internal_error_no_backtrace): New function.
35437 * gcc.c (execute): Use internal_error_no_backtrace instead of
35438 internal_error.
35439
35440 2015-01-22 Jeff Law <law@redhat.com>
35441
35442 PR target/52076
35443 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35444 improve code density for small immediate to memory case.
35445 (insv): Better handle bitfield assignments when the field is
35446 being set to all ones.
35447 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35448 operand predicate.
35449
35450 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35451 Jakub Jelinek <jakub@redhat.com>
35452
35453 PR middle-end/64729
35454 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35455 for !TARGET_LIBC_PROVIDES_SSP version and
35456 -fstack-protector-{all,strong,explicit} otherwise.
35457 * config/freebsd.h (LINK_SSP_SPEC): Handle
35458 -fstack-protector-{strong,explicit}.
35459
35460 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35461 H.J. Lu <hongjiu.lu@intel.com>
35462
35463 PR ipa/64694
35464 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35465 heap.
35466
35467 2015-01-22 Wei Mi <wmi@google.com>
35468
35469 PR rtl-optimization/64557
35470 * dse.c (record_store): Call get_addr for mem_addr.
35471 (check_mem_read_rtx): Likewise.
35472
35473 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35474
35475 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35476
35477 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35478
35479 * toplev.c (init_local_tick): Process the failure when read
35480 fails for random_seed.
35481
35482 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35483 'pretty_name' to avoid memory overflow.
35484
35485 2015-01-22 Richard Biener <rguenther@suse.de>
35486
35487 PR middle-end/64728
35488 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35489 abnormal coalescing on undefined SSA names.
35490
35491 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
35492
35493 PR target/64688
35494 PR target/64477
35495 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35496 for alternative 3.
35497 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35498
35499 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
35500
35501 PR middle-end/63325
35502 * fold-const.c (fold_checksum_tree): Don't include value of
35503 expr->decl_with_vis.symtab_node in the checksum.
35504
35505 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35506
35507 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35508
35509 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
35510
35511 PR driver/64690
35512 * gcc.c (insert_comments): New function.
35513 (try_generate_repro): Call it.
35514 (append_text): Removed.
35515
35516 2015-01-22 Richard Biener <rguenther@suse.de>
35517
35518 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35519 with IL incompatible options. Properly honor user optimize
35520 attributes.
35521
35522 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
35523
35524 PR rtl-optimization/64682
35525 * combine.c (distribute_notes): When moving a death note for
35526 a register that is set in the new I2, make sure to put it
35527 before that new I2.
35528
35529 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
35530
35531 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35532 not TARGET_DEFAULT.
35533
35534 2015-01-21 Jakub Jelinek <jakub@redhat.com>
35535
35536 PR debug/64511
35537 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35538 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35539 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35540
35541 PR sanitizer/64706
35542 * doc/invoke.texi (-fsanitize=vptr): Document.
35543
35544 PR rtl-optimization/62078
35545 * dse.c: Include cfgcleanup.h.
35546 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35547 anything call purge_all_dead_edges and cleanup_cfg at the end
35548 of the pass.
35549
35550 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
35551
35552 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35553 edges.
35554
35555 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35556
35557 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35558 decl attribute.
35559
35560 2015-01-21 David Sherwood <david.sherwood@arm.com>
35561 Tejas Belagod <Tejas.Belagod@arm.com>
35562
35563 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35564 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35565 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35566 Removed.
35567
35568 2015-01-21 David Sherwood <david.sherwood@arm.com>
35569 Tejas Belagod <Tejas.Belagod@arm.com>
35570
35571 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35572 (aarch64_reverse_mask): New decls.
35573 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35574 (insn_count): New mode_attr.
35575 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35576 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35577 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35578 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35579 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35580 (aarch64_simd_st4): New patterns.
35581 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35582 (aarch64_reverse_mask): New functions.
35583
35584 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35585
35586 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35587 Declare.
35588 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35589 addressing modes for BE.
35590 (aarch64_print_operand): Add 'R' specifier.
35591 (aarch64_simd_disambiguate_copy): Delete.
35592 (aarch64_simd_emit_reg_reg_move): New function.
35593 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35594 in define_splits for structural moves.
35595 (mov<mode>): Use less restrictive predicates.
35596 (*aarch64_mov<mode>): Simplify and only allow for LE.
35597 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35598
35599 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35600
35601 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35602
35603 2015-01-21 Richard Henderson <rth@redhat.com>
35604
35605 PR target/64669
35606 * ccmp.c (used_in_cond_stmt_p): Remove.
35607 (expand_ccmp_expr): Don't use it.
35608
35609 2015-01-21 Nick Clifton <nickc@redhat.com>
35610
35611 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35612 PARALLELs.
35613
35614 2015-01-21 Richard Biener <rguenther@suse.de>
35615
35616 PR middle-end/64313
35617 * tree-core.h (builtin_info, builtin_info_type): Turn from
35618 an object with two arrays into an array of an object with
35619 decl and two flags, implicit_p and declared_p.
35620 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35621 set_builtin_decl, set_builtin_decl_implicit_p,
35622 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35623 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35624 * builtins.c (builtin_info): Adjust.
35625 * gimplify.c (gimplify_addr_expr): References to builtins
35626 that have been declared by the user makes them eligible for
35627 use by the compiler. Call set_builtin_decl_implicit_p on them.
35628
35629 2015-01-20 Jeff Law <law@redhat.com>
35630
35631 PR target/59946
35632 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35633 allow pc-relative addresses in operand predicates or constraints.
35634
35635 2015-01-21 Bin Cheng <bin.cheng@arm.com>
35636
35637 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35638 neon on aarch32 processors for stringops.
35639
35640 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35641
35642 PR ipa/63576
35643 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35644
35645 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35646
35647 PR lto/45375
35648 * ipa-inline.c: Include lto-streamer.h
35649 (report_inline_failed_reason): Output source file differences and
35650 flags on optimization/target node mismatch.
35651 (can_inline_edge_p): Consider caller to be the outer inline function;
35652 be less restrictive about matching opimize and optimize_size attributes.
35653 (inline_account_function_p): Break out from ...
35654 (inline_small_functions): ... here.
35655 * ipa-inline-transform.c (clone_inlined_nodes): Use
35656 inline_account_function_p.
35657 (inline_call): Use optimize attribution; use inline_account_function_p.
35658 (inline_transform): Use opt_for_fn.
35659 * ipa-inline.h (inline_account_function_p): Declare.
35660
35661 2015-01-20 Jakub Jelinek <jakub@redhat.com>
35662
35663 PR debug/64663
35664 * dwarf2out.c (decl_piece_node): Don't put bitsize into
35665 mode if bitsize <= 0.
35666 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35667 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35668 sizes and positions.
35669
35670 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
35671
35672 * config/nios2/nios2.c (nios2_asm_file_end): Implement
35673 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35674 needed.
35675 (TARGET_ASM_FILE_END): Define.
35676
35677 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35678
35679 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35680 (struct tune_params): Use the enum.
35681 * arm.c (arm_*_tune): Update.
35682 (arm_option_override): Update.
35683
35684 2015-01-20 Richard Biener <rguenther@suse.de>
35685
35686 PR ipa/64684
35687 * ipa-reference.c (add_static_var): Inline ...
35688 (analyze_function): ... here after splitting out from ...
35689 (is_proper_for_analysis): ... this.
35690
35691 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
35692
35693 PR target/64149
35694 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35695 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35696 replace the conditional with it's true branch.
35697 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35698 (arm_lra_p): Remove.
35699
35700 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
35701
35702 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35703
35704 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35705
35706 * config/tilegx/mul-tables.c: Move symtab.h include after
35707 coretypes.h include.
35708 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35709 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35710 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35711 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35712 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35713
35714 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
35715
35716 PR bootstrap/64676
35717 Revert:
35718 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35719
35720 PR rtl-optimization/64081
35721 * loop-iv.c (def_pred_latch_p): New function.
35722 (latch_dominating_def): Allow specific cases with non-single
35723 definitions.
35724 (iv_get_reaching_def): Likewise.
35725 (check_complex_exit_p): New function.
35726 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35727 with exits not executing on any iteration.
35728
35729 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35730
35731 PR lto/45375
35732 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35733 to set branch cost.
35734
35735 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35736
35737 PR lto/45375
35738 * i386.c (gate): Check flag_expensive_optimizations and
35739 optimize_size.
35740 (ix86_option_override_internal): Drop optimize_size condition
35741 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35742 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35743 MASK_PREFER_AVX128.
35744 (ix86_avx256_split_vector_move_misalign,
35745 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35746 * sse.md (all uses of TARGET_PREFER_AVX128): Add
35747 optimize_insn_for_speed_p check.
35748
35749 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
35750
35751 * config/mips/mips.h (FP_ASM_SPEC): New define.
35752 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35753 instead.
35754
35755 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
35756
35757 PR target/53988
35758 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35759 nullptr for insn when reaching the first insn.
35760 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35761 (sh_insn_operands_modified_between_p): Add nullptr check.
35762 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35763 sign extending mem load if the insn contains any UNSPEC or
35764 UNSPEC_VOLATILE.
35765
35766 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35767
35768 * params.def (inline-unit-growth): Drop to 15%.
35769 * invoke.texi (inline-unit-growth): Document change.
35770
35771 2015-01-19 Martin Liska <mliska@suse.cz>
35772
35773 PR ipa/64668
35774 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35775 function for second argument of OBJ_TYPE_REF.
35776
35777 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35778
35779 PR ipa/64218
35780 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35781 whether function is an alias.
35782
35783 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35784
35785 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35786 cases.
35787
35788 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
35789
35790 PR rtl-optimization/64671
35791 * lra-remat.c (operand_to_remat): Don't consider jump and call
35792 insns.
35793
35794 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
35795
35796 PR target/59828
35797 * config/rs6000/default64.h: Include rs6000-cpus.def.
35798 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35799 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35800 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35801 and POWER8.
35802 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35803 POWER8.
35804 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35805 pseudo-op to specify assembler dialect.
35806
35807 2015-01-19 Martin Liska <mliska@suse.cz>
35808
35809 PR ipa/64664
35810 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35811 Handle safe potentially removed nodes during filtering.
35812
35813 2015-01-19 Martin Liska <mliska@suse.cz>
35814
35815 * doc/extend.texi (no_icf): Add new attribute description.
35816 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35817 where the pass attempts to merge a function with no_icf attribute.
35818
35819 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35820
35821 PR target/64532
35822 * doc/md.texi (ARM Options): Document register constraints.
35823
35824 2015-01-19 Jiong Wang <jiong.wang@arm.com>
35825 Andrew Pinski <apinski@cavium.com>
35826
35827 PR target/64304
35828 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35829 (ashl<mode>3): Don't expand if operands[2] is not constant.
35830
35831 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35832
35833 PR target/64448
35834 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35835 Match xor-and-xor RTL pattern.
35836
35837 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35838
35839 PR rtl-optimization/64081
35840 * loop-iv.c (def_pred_latch_p): New function.
35841 (latch_dominating_def): Allow specific cases with non-single
35842 definitions.
35843 (iv_get_reaching_def): Likewise.
35844 (check_complex_exit_p): New function.
35845 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35846 with exits not executing on any iteration.
35847
35848 2015-01-19 Jakub Jelinek <jakub@redhat.com>
35849
35850 * common.opt (fgraphite): Fix a typo.
35851
35852 2015-01-19 Felix Yang <felix.yang@huawei.com>
35853
35854 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35855 pattern.
35856 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35857 uminp, smax_nanp, smin_nanp): New builtins.
35858 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35859 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35860 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35861 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35862 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35863 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35864 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35865 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35866 vpminnms_f32): Rewrite using builtin functions.
35867
35868 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
35869
35870 PR libgomp/64625
35871 * omp-low.c (offload_symbol_decl): Remove variable.
35872 (get_offload_symbol_decl): Remove function.
35873 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35874 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35875 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35876 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35877 BUILT_IN_GOACC_UPDATE don't pass it at all.
35878
35879 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35880
35881 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35882 callers.
35883
35884 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35885
35886 * ipa-chkp.c (chkp_produce_thunks): Add early param
35887 to split thunks production into two passes. Keep
35888 'always_inline' function bodies after the first pass.
35889 (pass_data_ipa_chkp_early_produce_thunks): New.
35890 (pass_ipa_chkp_early_produce_thunks): New.
35891 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35892 chkp_produce_thunks signature.
35893 (make_pass_ipa_chkp_early_produce_thunks): New.
35894 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35895 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35896 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35897
35898 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35899
35900 * cgraph.c (cgraph_node::dump): Dump profile flags.
35901
35902 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
35903
35904 PR target/64652
35905 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35906 reg appear first in the parallel.
35907
35908 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35909
35910 * ipa-reference.c (set_reference_optimization_summary,
35911 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35912 disabled.
35913 (ignore_module_statics): New static var.
35914 (propagate_bits): If ipa-reference is disabled, do not look into local
35915 properties.
35916 (analyze_function): Disable analysis when ipa_reference is disabled.
35917 (generate_summary): Do not dump when reference is disabled;
35918 collect vars accessed from functions with ipa-reference disabled.
35919 (get_read_write_all_from_node): When ipa-reference is disabled, use the
35920 node flags.
35921 (gate): Enable for LTO.
35922 (ignore_edge_p): New function.
35923 (propagate): Skip functions w/o ipa-reference analysis.
35924 * optc-save-gen.awk: Handle optimize_debug correctly.
35925 * opth-gen.awk: Likewise.
35926 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35927 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35928 fira-share-save-slots, fira-share-spill-slots,
35929 fmodulo-sched-allow-regmoves, fpartial-inlining,
35930 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35931 ftracer, ftree-parallelize-loops, fassociative-math,
35932 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35933 Optimization
35934 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35935 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35936 Optimization.
35937 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35938 Fix for IPA.
35939
35940 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35941
35942 PR ipa/64378
35943 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35944 flag correctly.
35945 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35946
35947 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
35948
35949 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35950 Remove duplicate option listings.
35951
35952 2015-01-18 Felix Yang <felix.yang@huawei.com>
35953
35954 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35955 (autofdo_source_profile::get_callsite_total_count,
35956 function_instance::get_function_instance_by_decl,
35957 string_table::get_index, string_table::get_index_by_decl,
35958 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35959 Fix comment typos. Reformatting and minor code rearrangement.
35960
35961 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35962
35963 * config/rs6000/rs6000.md (probe_stack): Delete.
35964 (probe_stack_address): New.
35965
35966 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35967
35968 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35969 to test for 32-bit ABIs, not !TARGET_POWERPC64.
35970
35971 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35972
35973 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35974 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
35975 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
35976 snafu.
35977 (rs6000_libcall_value): Use the new function.
35978
35979 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
35980
35981 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35982
35983 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
35984
35985 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35986 implement a more precise life analysis for it during backward scan.
35987
35988 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
35989
35990 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35991
35992 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
35993
35994 PR rtl-optimization/52773
35995 * calls.c (emit_library_call_value): When pushing arguments use
35996 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35997 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
35998 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35999
36000 2015-01-17 Jeff Law <law@redhat.com>
36001
36002 PR rtl-optimization/32790
36003 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36004 not ZERO_EXTEND in SET_DESTs.
36005
36006 2015-01-17 Alan Modra <amodra@gmail.com>
36007
36008 * cprop.c (do_local_cprop): Revert last change.
36009
36010 2015-01-16 DJ Delorie <dj@redhat.com>
36011 Nick Clifton <nickc@redhat.com>
36012
36013 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36014 (addhi3_real): Likewise. Fix [HL+0] syntax.
36015 (subqi3_real): Likewise.
36016 (subhi3_real): Likewise.
36017 (cbranchqi4_real): Likewise. Allow saddr,#imm.
36018 (cbranchhi4_real): Likewise.
36019 (cbranchhi4_real_inverted): Likewise.
36020 (cbranchsi4_real_lt): Likewise.
36021 (cbranchsi4_real_ge): Likewise.
36022 (cbranchsi4_real_ge): Likewise.
36023 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36024 (sub<mode>3_virt): Likewise.
36025 (cbranchqi4_virt): Likewise.
36026 (cbranchhi4_virt): Likewise.
36027 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36028 always use '[reg+imm]' even when imm is zero.
36029 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36030 (rl78_general_operand): New.
36031 (rl78_nonimmediate_operand): New.
36032 (rl78_nonfar_operand): Use them.
36033 (rl78_nonfar_nonimm_operand): Likewise.
36034 (rl78_stack_based_mem): Fix.
36035 * config/rl78/constraints.md (Ibqi): New.
36036 (IBqi): New.
36037 (Wsa): New.
36038 (Wsf): New.
36039 (Cs1): Fix.
36040 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36041 (iorqi3): Likewise.
36042 (xorqi3): Likewise.
36043 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36044
36045 * config/rl78/constrains (Qs8): New constraint.
36046 * config/rl78/rl78.c (rl78_flags_already_set): New function.
36047 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36048 * config/rl78/rl78-real.md (update_Z): New attribute.
36049 Update patterns to set it.
36050 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36051 shorter compare and branch sequence can be used.
36052 (cbranchhi4_real): Likewise.
36053 (cbranchhi4_real_inverted): Likewise.
36054
36055 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36056 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36057 address space.
36058 * config/rl78/rl78.c (rl78_get_name_encoding): New.
36059 (rl78_option_override): Allow -mes0 only if C.
36060 (characterize_address): Support subregs of symbol_refs.
36061 (rl78_addr_space_address_mode): Move. Add __near.
36062 (rl78_far_p): Likewise.
36063 (rl78_addr_space_pointer_mode): Likewise.
36064 (rl78_as_legitimate_address): Likewise.
36065 (rl78_addr_space_subset_p): Likewise.
36066 (rl78_addr_space_convert): Likewise.
36067 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36068 symbols with -mes0.
36069 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
36070 addressing.
36071 (rl78_alloc_physical_registers_op1): Change logic to prefer
36072 symbol[BC] addressing.
36073 (frodata_section): New.
36074 (rl78_asm_init_sections): Initialize it.
36075 (rl78_select_section): Put __far readonly symbols in .frodata.
36076 (rl78_make_type_far): New.
36077 (rl78_insert_attributes): Force all readonly symbols to be
36078 __far when -mes0.
36079 (rl78_asm_out_integer): New.
36080 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36081 * config/rl78/rl78.opt (-mes0): New.
36082
36083 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36084 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36085 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36086 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36087 (rl78_saddr_p): New.
36088 (rl78_output_aligned_common): New.
36089 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36090 (rl78_handle_saddr_attribute): New.
36091 (rl78_handle_naked_attribute): New.
36092 (rl78_attribute_table): Add saddr.
36093 (rl78_print_operand_1): Don't print '!' on saddr operands.
36094 (rl78_print_operand_1): Strip encodings.
36095 (rl78_sfr_p): New.
36096 (rl78_strip_name_encoding): New.
36097 (rl78_attrlist_to_encoding): New.
36098 (rl78_encode_section_info): New.
36099 (rl78_asm_init_sections): New.
36100 (rl78_select_section): New.
36101 (rl78_output_labelref): New.
36102 (rl78_output_aligned_common): New.
36103 (rl78_asm_out_integer): New.
36104 (rl78_asm_ctor_dtor): New.
36105 (rl78_asm_constructor): New.
36106 (rl78_asm_destructor): New.
36107
36108 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36109 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36110 (transcode_memory_rtx): Update.
36111 (rl78_expand_epilogue): Use A_REG instead of 0.
36112
36113 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36114
36115 * config/arm/arm-protos.h (struct tune_params): New field
36116 sched_autopref_queue_depth.
36117 * config/arm/arm.c (sched-int.h): Include header.
36118 (arm_first_cycle_multipass_dfa_lookahead_guard,)
36119 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36120 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36121 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36122 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36123 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36124 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36125 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36126 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
36127 * config/arm/t-arm (arm.o): Update.
36128 * haifa-sched.c (update_insn_after_change): Update.
36129 (rank_for_schedule): Use auto-prefetcher model, if requested.
36130 (autopref_multipass_init): New static function.
36131 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36132 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36133 variable for debug dumps.
36134 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36135 (autopref_multipass_dfa_lookahead_guard): New global function that
36136 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36137 (init_h_i_d): Update.
36138 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36139 * sched-int.h (enum autopref_multipass_data_status): New const enum.
36140 (autopref_multipass_data_): Structure for auto-prefetcher data.
36141 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36142 (struct _haifa_insn_data:autopref_multipass_data): New field.
36143 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36144 (autopref_multipass_dfa_lookahead_guard): Declare.
36145
36146 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36147
36148 * rtlanal.c (get_base_term): Handle SCRATCH.
36149
36150 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36151
36152 * config/aarch64/aarch64.c
36153 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36154 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36155 * config/arm/arm.c
36156 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36157 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36158
36159 2015-01-17 Alan Modra <amodra@gmail.com>
36160
36161 * cprop.c (do_local_cprop): Disallow replacement of fixed
36162 hard registers.
36163
36164 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36165
36166 PR target/62066
36167 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36168 early return 0.
36169
36170 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
36171
36172 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36173 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36174
36175 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36176
36177 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36178 * config/arm/thumb1.md: ... Here.
36179
36180 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36181
36182 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36183 TImode for TARGET_32BIT.
36184
36185 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36186
36187 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36188 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36189 as ...
36190 (rs6000_abi_word_mode): New function.
36191
36192 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36193
36194 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36195 instead of UNITS_PER_WORD to describe the size of stack slots.
36196
36197 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36198
36199 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36200 as rs6000_promote_function_mode. Move comment to there.
36201 (rs6000_promote_function_mode): New function.
36202
36203 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36204
36205 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36206 -mpowerpc64 is active.
36207
36208 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36209
36210 PR middle-end/64353
36211 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36212 virtuals on start.
36213
36214 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36215
36216 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36217 introduced in revision 219724.
36218
36219 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36220 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36221
36222 PR target/64263
36223 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36224 destination is not a GP reg.
36225 (*movdi_aarch64): Likewise.
36226
36227 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
36228
36229 PR target/64623
36230 * config/rs6000/default64.h: Revert ISA change.
36231
36232 2015-01-16 Richard Biener <rguenther@suse.de>
36233
36234 PR middle-end/64614
36235 * tree-ssa-uninit.c: Include tree-cfg.h.
36236 (MAX_SWITCH_CASES): New define.
36237 (convert_control_dep_chain_into_preds): Handle switch statements.
36238 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36239 (normalize_one_pred_1): Do not split bit-manipulations.
36240 Record (x & CST).
36241
36242 2015-01-16 Richard Biener <rguenther@suse.de>
36243
36244 PR tree-optimization/64568
36245 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36246 complex load rewriting for TARGET_MEM_REFs.
36247
36248 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
36249
36250 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36251
36252 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
36253
36254 PR target/64149
36255 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36256 variable.
36257 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36258 (aarch64_lra_p): Remove.
36259
36260 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36261
36262 PR target/64363
36263 * ipa-chkp.h (chkp_instrumentable_p): New.
36264 * ipa-chkp.c: Include tree-inline.h.
36265 (chkp_instrumentable_p): New.
36266 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36267 Fix processing of not instrumentable functions.
36268 (chkp_versioning): Use chkp_instrumentable_p. Warn about
36269 not instrumentable functions.
36270 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36271 chkp_instrumentable_p.
36272 * tree-inline.h (copy_forbidden): New.
36273 * tree-inline.c (copy_forbidden): Not static anymore.
36274
36275 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36276
36277 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36278 ptr1, ptr2 unused.
36279
36280 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36281
36282 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36283 type OP_OUT to OP_INOUT.
36284
36285 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36286
36287 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36288 (high x) y) to y if x and y have the same base.
36289
36290 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36291
36292 * config/arm/cortex-a57.md: New.
36293 * config/aarch64/aarch64.md: Include it.
36294 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36295 * config/aarch64/aarch64-tune.md: Regenerate.
36296
36297 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
36298
36299 PR target/64015
36300 * ccmp.c (expand_ccmp_next): New function.
36301 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36302 and compare insn sequence.
36303 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36304 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36305 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36306 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36307 (*ccmp_ior): Changed to ccmp_ior<mode>.
36308 (cmp<mode>): New pattern.
36309 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36310 parameters.
36311 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36312
36313 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
36314
36315 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36316 _mm256_bsrli_epi128): New.
36317 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36318
36319 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36320
36321 * expmed.c (store_bit_field_using_insv): Improve warning message.
36322 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36323
36324 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36325
36326 PR rtl-optimization/64011
36327 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36328 there is partial overflow.
36329
36330 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36331
36332 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36333 prototype.
36334 (nds32_expand_epilogue_v3pop): Likewise.
36335 * config/nds32/nds32.md (sibcall): Define this for sibling call
36336 optimization.
36337 (sibcall_register): Likewise.
36338 (sibcall_immediate): Likewise.
36339 (sibcall_value): Likewise.
36340 (sibcall_value_register): Likewise.
36341 (sibcall_value_immediate): Likewise.
36342 (sibcall_epilogue): Likewise.
36343 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36344 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36345 (nds32_expand_epilogue_v3pop): Likewise.
36346
36347 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36348
36349 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36350 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36351 (return_internal): New.
36352 (return): Define this named pattern.
36353 (simple_return): Define this named pattern.
36354 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36355 pattern instead of unspec_volatile_func_return.
36356 (nds32_expand_epilogue_v3pop): Likewise.
36357 (nds32_can_use_return_insn): New function.
36358
36359 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36360
36361 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36362 * config/nds32/nds32.md (pop25return): New.
36363 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36364 pop25return pattern.
36365
36366 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36367
36368 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36369 -mforbid-fp-as-gp, and -mex9 options.
36370
36371 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36372
36373 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36374 remove -mgp-direct option.
36375
36376 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36377
36378 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36379 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36380
36381 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36382
36383 * ipa-inline.c (inline_small_functions): Work around hints
36384 cache issue.
36385
36386 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36387
36388 PR target/59710
36389 * doc/invoke.texi (Option Summary): Document new Nios II
36390 -mgpopt= syntax.
36391 (Nios II Options): Likewise.
36392 * config/nios2/nios2.opt: Add -mgpopt= option support.
36393 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36394 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36395 * config/nios2/nios2.c (nios2_option_override): Adjust
36396 -mgpopt defaulting.
36397 (nios2_in_small_data_p): Return true for explicit small data
36398 sections even with -G0.
36399 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36400 option choices.
36401
36402 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36403
36404 PR ipa/64612
36405 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36406 of comdat locals.
36407 (inline_call): Fix removal of aliases.
36408
36409 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36410
36411 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36412 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36413 * opts.c (common_handle_option): Add -fsanitize=vptr.
36414 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36415 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36416 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36417 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36418 (ubsan_expand_vptr_ifn): New prototype.
36419 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36420 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36421 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36422 expand_LOOP_VECTORIZED): Make argument nameless, remove
36423 ATTRIBUTE_UNUSED.
36424 (expand_UBSAN_VPTR): New function.
36425 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36426 in fn spec.
36427 (UBSAN_VPTR): New internal function.
36428 * sanopt.c (tree_map_traits): Renamed to ...
36429 (sanopt_tree_map_traits): ... this.
36430 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36431 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36432 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36433 (maybe_optimize_ubsan_vptr_ifn): New function.
36434 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36435 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36436 -fsanitize=vptr.
36437 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36438 internal calls like pure functions for aliasing, even when they
36439 have other side-effects that prevent making them ECF_PURE.
36440 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36441 (ubsan_expand_vptr_ifn): New function.
36442
36443 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36444
36445 PR rtl-optimization/64110
36446 * stmt.c (parse_output_constraint): Process '^' and '$'.
36447 (parse_input_constraint): Ditto.
36448 * lra-constraints.c (process_alt_operands): Process the new
36449 constraints.
36450 * ira-costs.c (record_reg_classes): Process the new constraint
36451 '^'.
36452 * genoutput.c (indep_constraints): Add '^' and '$'.
36453 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36454 * doc/md.texi: Add description of the new constraints.
36455
36456 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36457 Bernd Schmidt <bernds@codesourcery.com>
36458 Cesar Philippidis <cesar@codesourcery.com>
36459 James Norris <jnorris@codesourcery.com>
36460 Tom de Vries <tom@codesourcery.com>
36461 Ilmir Usmanov <i.usmanov@samsung.com>
36462 Dmitry Bocharnikov <dmitry.b@samsung.com>
36463 Evgeny Gavrin <e.gavrin@samsung.com>
36464 Jakub Jelinek <jakub@redhat.com>
36465
36466 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36467 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36468 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36469 New function types.
36470 * builtins.c: Include "gomp-constants.h".
36471 (expand_builtin_acc_on_device): New function.
36472 (expand_builtin, is_inexpensive_builtin): Handle
36473 BUILT_IN_ACC_ON_DEVICE.
36474 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36475 New macros.
36476 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36477 flag_openmp.
36478 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36479 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36480 i386/intelmic-offload.h.
36481 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36482 to libgomp and its dependencies.
36483 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36484 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36485 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36486 * config/ia64/hpux.h (LIB_SPEC): Likewise.
36487 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36488 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36489 * doc/generic.texi: Update for OpenACC changes.
36490 * doc/gimple.texi: Likewise.
36491 * doc/invoke.texi: Likewise.
36492 * doc/sourcebuild.texi: Likewise.
36493 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36494 GF_OMP_FOR_KIND_OACC_LOOP.
36495 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36496 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36497 GF_OMP_TARGET_KIND_OACC_UPDATE,
36498 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36499 Dump more data.
36500 * gimple.c: Update comments for OpenACC changes.
36501 * gimple.def: Likewise.
36502 * gimple.h: Likewise.
36503 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36504 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36505 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36506 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36507 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36508 appropriate place.
36509 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36510 * gimplify.c: Include "gomp-constants.h".
36511 Update comments for OpenACC changes.
36512 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36513 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36514 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36515 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36516 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36517 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36518 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36519 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36520 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36521 OMP_CLAUSE_SEQ.
36522 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36523 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36524 OMP_CLAUSE_SET_MAP_KIND.
36525 (gimplify_oacc_cache): New function.
36526 (gimplify_omp_for): Handle OACC_LOOP.
36527 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36528 OACC_DATA.
36529 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36530 OACC_EXIT_DATA, OACC_UPDATE.
36531 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36532 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36533 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36534 (gimplify_body): Consider flag_openacc next to flag_openmp.
36535 * lto-streamer-out.c: Include "gomp-constants.h".
36536 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36537 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36538 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36539 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36540 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36541 (BUILT_IN_ACC_ON_DEVICE): New builtins.
36542 * omp-low.c: Include "gomp-constants.h".
36543 Update comments for OpenACC changes.
36544 (struct omp_context): Add reduction_map, gwv_below, gwv_this
36545 members.
36546 (extract_omp_for_data, use_pointer_for_field, install_var_field)
36547 (new_omp_context, delete_omp_context, scan_sharing_clauses)
36548 (create_omp_child_function, scan_omp_for, scan_omp_target)
36549 (check_omp_nesting_restrictions, lower_reduction_clauses)
36550 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36551 Update for OpenACC changes.
36552 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36553 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36554 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36555 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36556 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36557 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
36558 OMP_CLAUSE_MAP_*.
36559 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36560 Handle GF_OMP_FOR_KIND_OACC_LOOP.
36561 (expand_omp_target, lower_omp_target): Handle
36562 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36563 GF_OMP_TARGET_KIND_OACC_UPDATE,
36564 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36565 GF_OMP_TARGET_KIND_OACC_DATA.
36566 (pass_expand_omp::execute, execute_lower_omp)
36567 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36568 flag_openmp.
36569 (offload_symbol_decl): New variable.
36570 (oacc_get_reduction_array_id, oacc_max_threads)
36571 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36572 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36573 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36574 (oacc_gimple_assign, oacc_initialize_reduction_data)
36575 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36576 functions.
36577 (is_targetreg_ctx): Remove function.
36578 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36579 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36580 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36581 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36582 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36583 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36584 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36585 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36586 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36587 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36588 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36589 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36590 * tree-core.h: Update comments for OpenACC changes.
36591 (enum omp_clause_map_kind): Remove.
36592 (struct tree_omp_clause): Change type of map_kind member from enum
36593 omp_clause_map_kind to unsigned char.
36594 * tree-inline.c: Update comments for OpenACC changes.
36595 * tree-nested.c: Likewise. Include "gomp-constants.h".
36596 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36597 (convert_tramp_reference_stmt, convert_gimple_call): Update for
36598 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36599 OMP_CLAUSE_SET_MAP_KIND.
36600 * tree-pretty-print.c: Include "gomp-constants.h".
36601 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36602 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36603 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36604 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36605 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36606 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
36607 instead of OMP_CLAUSE_MAP_*.
36608 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36609 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36610 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36611 * tree-streamer-in.c: Include "gomp-constants.h".
36612 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36613 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
36614 * tree-streamer-out.c: Include "gomp-constants.h".
36615 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36616 OMP_CLAUSE_MAP_*.
36617 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36618 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36619 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36620 * tree.c (omp_clause_num_ops): Update accordingly.
36621 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36622 Likewise.
36623 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36624 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36625 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36626 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36627 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36628 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36629 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36630 (OMP_CLAUSE_SET_MAP_KIND): New macro.
36631 * varpool.c (varpool_node::get_create): Consider flag_openacc next
36632 to flag_openmp.
36633 * config/i386/intelmic-offload.h: New file.
36634 * config/nvptx/offload.h: Likewise.
36635
36636 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36637
36638 * explow.h: Remove duplicate contents.
36639 * dojump.h: Likewise.
36640
36641 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
36642
36643 * arm.c (arm_xgene_tune): Add default initializer for instruction
36644 fusion.
36645
36646 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36647
36648 PR ipa/64068
36649 PR ipa/64559
36650 * ipa.c (symbol_table::remove_unreachable_nodes):
36651 Do not put abstract origins into boundary.
36652
36653 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
36654
36655 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36656 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36657
36658 2015-01-15 Steve Ellcey <sellcey@mips.com>
36659
36660 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36661 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36662 builtins.def, and chkp-builtins.def.
36663
36664 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
36665
36666 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36667 ISA 2.7 (POWER8).
36668
36669 2015-01-15 Richard Biener <rguenther@suse.de>
36670
36671 PR tree-optimization/61743
36672 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36673 information on PHIs for some simple cases.
36674
36675 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36676
36677 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36678 Include xgene1.md.
36679 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36680 * config/arm/arm-cores.def (xgene1): New entry.
36681 * config/arm/arm-tables.opt: Regenerate.
36682 * config/arm/arm-tune.md: Regenerate.
36683 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36684
36685 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36686
36687 * tree-if-conv.c: Include hash-map.h.
36688 (aggressive_if_conv): New variable.
36689 (fold_build_cond_expr): Add simplification of non-zero condition.
36690 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36691 destination block is not always executed.
36692 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36693 than two predecessors if AGGRESSIVE_IF_CONV is true.
36694 (if_convertible_stmt_p): Fix commentary.
36695 (all_preds_critical_p): New function.
36696 (has_pred_critical_p): New function.
36697 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36698 BB can have more than two predecessors and all incoming edges can be
36699 critical.
36700 (predicate_bbs): Skip predication for loop exit block, use build2_loc
36701 to compute predicate for true edge.
36702 (find_phi_replacement_condition): Delete this function.
36703 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36704 Allow interchange PHI arguments if EXTENDED is false.
36705 Change check that block containing reduction statement candidate
36706 is predecessor of phi-block since phi may have more than two arguments.
36707 (phi_args_hash_traits): New helper structure.
36708 (struct phi_args_hash_traits): New type.
36709 (phi_args_hash_traits::hash): New function.
36710 (phi_args_hash_traits::equal_keys): New function.
36711 (gen_phi_arg_condition): New function.
36712 (predicate_scalar_phi): Add handling of phi nodes with more than two
36713 arguments, delete COND and TRUE_BB arguments, insert body of
36714 find_phi_replacement_condition to predicate ordinary phi nodes.
36715 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36716 delete call of find_phi_replacement_condition and invoke
36717 predicate_scalar_phi with two arguments.
36718 (insert_gimplified_predicates): Add assert that non-predicated block
36719 don't have statements to insert.
36720 (ifcvt_split_critical_edges): New function.
36721 (ifcvt_split_def_stmt): Likewise.
36722 (ifcvt_walk_pattern_tree): Likewise.
36723 (stmt_is_root_of_bool_pattern): Likewise.
36724 (ifcvt_repair_bool_pattern): Likewise.
36725 (ifcvt_local_dce): Likewise.
36726 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36727 is copy of inner or outer loop force_vectorize field, invoke
36728 ifcvt_split_critical_edges, ifcvt_local_dce and
36729 ifcvt_repair_bool_pattern for aggressive if-conversion.
36730
36731 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
36732
36733 * config/aarch64/aarch64.md: Include xgene1.md.
36734 * config/aarch64/xgene1.md: New file.
36735
36736 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36737
36738 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36739 xgene1 (APM XGene-1) core definition.
36740 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36741 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36742 * doc/invoke.texi: Document -mcpu=xgene1.
36743
36744 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36745
36746 * dojump.h: New header file.
36747 * explow.h: Likewise.
36748 * expr.h: Remove includes.
36749 Move expmed.c prototypes to expmed.h.
36750 Move dojump.c prototypes to dojump.h.
36751 Move alias.c prototypes to alias.h.
36752 Move explow.c prototypes to explow.h.
36753 Move calls.c prototypes to calls.h.
36754 Move emit-rtl.c prototypes to emit-rtl.h.
36755 Move varasm.c prototypes to varasm.h.
36756 Move stmt.c prototypes to stmt.h.
36757 (saved_pending_stack_adjust): Move to dojump.h.
36758 (adjust_address): Move to explow.h.
36759 (adjust_address_nv): Move to emit-rtl.h.
36760 (adjust_bitfield_address): Likewise.
36761 (adjust_bitfield_address_size): Likewise.
36762 (adjust_bitfield_address_nv): Likewise.
36763 (adjust_automodify_address_nv): Likewise.
36764 * explow.c (expr_size): Move to expr.c.
36765 (int_expr_size): Likewise.
36766 (tree_expr_size): Likewise.
36767 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36768 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36769 * genemit.c (main): Generate includes statistics.h, real.h,
36770 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36771 stmt.h.
36772 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36773 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36774 explow.h, emit-rtl.h, stmt.h.
36775 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36776 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36777 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36778 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36779 emit-rtl.h, varasm.h, stmt.h.
36780 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36781 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36782 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36783 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36784 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36785 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36786 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36787 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36788 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36789 tm.h tree.h varasm.h vec.h wide-int.h.
36790 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36791 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36792 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36793 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36794 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36795 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36796 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36797 * loop-iv.c: Likewise.
36798 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36799 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36800 statistics.h stmt.h tree.h varasm.h wide-int.h.
36801 * lra-constraints.c: Likewise.
36802 * lra-eliminations.c: Likewise.
36803 * lra-lives.c: Likewise.
36804 * lra-remat.c: Likewise.
36805 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36806 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36807 statistics.h stmt.h tree.h varasm.h wide-int.h.
36808 * hw-doloop.c: Likewise.
36809 * ira-color.c: Likewise.
36810 * ira-emit.c: Likewise.
36811 * loop-doloop.c: Likewise.
36812 * loop-invariant.c: Likewise.
36813 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36814 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36815 statistics.h stmt.h tree.h varasm.h wide-int.h.
36816 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36817 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36818 statistics.h stmt.h tree.h varasm.h wide-int.h.
36819 * combine-stack-adj.c: Likewise.
36820 * cse.c: Likewise.
36821 * ddg.c: Likewise.
36822 * ifcvt.c: Likewise.
36823 * ira-costs.c: Likewise.
36824 * jump.c: Likewise.
36825 * lra-coalesce.c: Likewise.
36826 * lra-spills.c: Likewise.
36827 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36828 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36829 stmt.h varasm.h wide-int.h.
36830 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36831 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36832 varasm.h.
36833 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36834 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36835 statistics.h stmt.h varasm.h wide-int.h.
36836 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36837 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36838 varasm.h wide-int.h.
36839 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36840 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36841 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36842 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36843 statistics.h stmt.h.
36844 * config/tilepro/tilepro.c: Likewise.
36845 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36846 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36847 * config/pdp11/pdp11.c: Likewise.
36848 * config/xtensa/xtensa.c: Likewise.
36849 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36850 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36851 varasm.h.
36852 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36853 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36854 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36855 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36856 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36857 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36858 * rtl-chkp.c: Likewise.
36859 * tree-chkp-opt.c: Likewise.
36860 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36861 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36862 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36863 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36864 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36865 statistics.h stmt.h.
36866 * tree-vect-data-refs.c: Likewise.
36867 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36868 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36869 rtl.h statistics.h stmt.h varasm.h.
36870 * internal-fn.c: Likewise.
36871 * ipa-icf-gimple.c: Likewise.
36872 * lto-section-out.c: Likewise.
36873 * tree-data-ref.c: Likewise.
36874 * tree-nested.c: Likewise.
36875 * tree-outof-ssa.c: Likewise.
36876 * tree-predcom.c: Likewise.
36877 * tree-pretty-print.c: Likewise.
36878 * tree-scalar-evolution.c: Likewise.
36879 * tree-ssa-strlen.c: Likewise.
36880 * tree-vect-loop.c: Likewise.
36881 * tree-vect-patterns.c: Likewise.
36882 * tree-vect-slp.c: Likewise.
36883 * tree-vect-stmts.c: Likewise.
36884 * tsan.c: Likewise.
36885 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36886 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36887 stmt.h.
36888 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36889 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36890 statistics.h stmt.h varasm.h.
36891 * loop-unroll.c: Likewise.
36892 * ubsan.c: Likewise.
36893 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36894 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36895 stmt.h varasm.h.
36896 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36897 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36898 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36899 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36900 statistics.h stmt.h.
36901 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36902 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36903 statistics.h stmt.h varasm.h.
36904 * gimple-match-head.c: Likewise.
36905 * lto-cgraph.c: Likewise.
36906 * lto-section-in.c: Likewise.
36907 * lto-streamer-in.c: Likewise.
36908 * lto-streamer-out.c: Likewise.
36909 * tree-affine.c: Likewise.
36910 * tree-cfg.c: Likewise.
36911 * tree-cfgcleanup.c: Likewise.
36912 * tree-if-conv.c: Likewise.
36913 * tree-into-ssa.c: Likewise.
36914 * tree-ssa-alias.c: Likewise.
36915 * tree-ssa-copyrename.c: Likewise.
36916 * tree-ssa-dse.c: Likewise.
36917 * tree-ssa-forwprop.c: Likewise.
36918 * tree-ssa-live.c: Likewise.
36919 * tree-ssa-math-opts.c: Likewise.
36920 * tree-ssa-pre.c: Likewise.
36921 * tree-ssa-sccvn.c: Likewise.
36922 * tree-tailcall.c: Likewise.
36923 * tree-vect-generic.c: Likewise.
36924 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36925 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36926 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36927 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36928 * varasm.c: Likewise.
36929 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36930 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36931 varasm.h.
36932 * init-regs.c: Likewise.
36933 * ira.c: Likewise.
36934 * omp-low.c: Likewise.
36935 * stack-ptr-mod.c: Likewise.
36936 * tree-ssa-reassoc.c: Likewise.
36937 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36938 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36939 varasm.h.
36940 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36941 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36942 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36943 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36944 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36945 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36946 * tree-ssa-phiopt.c: Likewise.
36947 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36948 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36949 * config/fr30/fr30.c: Likewise.
36950 * config/frv/frv.c: Likewise.
36951 * expr.c: Likewise.
36952 * final.c: Likewise.
36953 * optabs.c: Likewise.
36954 * passes.c: Likewise.
36955 * simplify-rtx.c: Likewise.
36956 * stmt.c: Likewise.
36957 * toplev.c: Likewise.
36958 * var-tracking.c: Likewise.
36959 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36960 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36961 * lower-subreg.c: Likewise.
36962 * postreload-gcse.c: Likewise.
36963 * ree.c: Likewise.
36964 * reginfo.c: Likewise.
36965 * store-motion.c: Likewise.
36966 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36967 fixed-value.h hashtab.h real.h stmt.h varasm.h.
36968 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36969 fixed-value.h hashtab.h statistics.h stmt.h.
36970 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36971 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36972 * except.c: Likewise.
36973 * explow.c: Likewise.
36974 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36975 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36976 varasm.h.
36977 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36978 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36979 * tree-ssa-structalias.c: Likewise.
36980 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36981 fixed-value.h insn-config.h real.h statistics.h.
36982 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36983 fixed-value.h insn-config.h real.h statistics.h stmt.h.
36984 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36985 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36986 * cfgbuild.c: Likewise.
36987 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36988 fixed-value.h real.h rtl.h statistics.h stmt.h.
36989 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36990 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36991 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36992 fixed-value.h real.h statistics.h stmt.h.
36993 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36994 fixed-value.h real.h statistics.h stmt.h varasm.h.
36995 * cprop.c: Likewise.
36996 * modulo-sched.c: Likewise.
36997 * postreload.c: Likewise.
36998 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36999 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37000 statistics.h stmt.h varasm.h.
37001 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37002 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37003 rtl.h statistics.h stmt.h varasm.h.
37004 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37005 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37006 varasm.h.
37007 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37008 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37009 varasm.h.
37010 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37011 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37012 varasm.h.
37013 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37014 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37015 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37016 function.h real.h statistics.h stmt.h varasm.h.
37017 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37018 insn-config.h real.h statistics.h stmt.h.
37019 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37020 statistics.h stmt.h.
37021 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37022 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37023 statistics.h stmt.h varasm.h.
37024 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37025 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37026 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37027 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37028 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37029 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37030 statistics.h stmt.h varasm.h.
37031 * ipa-polymorphic-call.c: Likewise.
37032 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37033 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37034 statistics.h stmt.h.
37035 * config/c6x/c6x.c: Likewise.
37036 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37037 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37038 statistics.h stmt.h varasm.h.
37039 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37040 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37041 stmt.h varasm.h.
37042 * ipa-split.c: Likewise.
37043 * tree-eh.c: Likewise.
37044 * tree-ssa-dce.c: Likewise.
37045 * tree-ssa-loop-niter.c: Likewise.
37046 * tree-vrp.c: Likewise.
37047 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37048 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37049 stmt.h.
37050 * config/nds32/nds32-fp-as-gp.c: Likewise.
37051 * config/nds32/nds32-intrinsic.c: Likewise.
37052 * config/nds32/nds32-isr.c: Likewise.
37053 * config/nds32/nds32-md-auxiliary.c: Likewise.
37054 * config/nds32/nds32-memory-manipulation.c: Likewise.
37055 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37056 * config/nds32/nds32-predicates.c: Likewise.
37057 * config/nds32/nds32.c: Likewise.
37058 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37059 fixed-value.h hashtab.h real.h statistics.h.
37060 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37061 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37062 * config/arm/arm.c: Likewise.
37063 * config/avr/avr.c: Likewise.
37064 * config/bfin/bfin.c: Likewise.
37065 * config/h8300/h8300.c: Likewise.
37066 * config/i386/i386.c: Likewise.
37067 * config/ia64/ia64.c: Likewise.
37068 * config/iq2000/iq2000.c: Likewise.
37069 * config/m32c/m32c.c: Likewise.
37070 * config/m32r/m32r.c: Likewise.
37071 * config/m68k/m68k.c: Likewise.
37072 * config/mcore/mcore.c: Likewise.
37073 * config/mep/mep.c: Likewise.
37074 * config/mips/mips.c: Likewise.
37075 * config/mn10300/mn10300.c: Likewise.
37076 * config/moxie/moxie.c: Likewise.
37077 * config/pa/pa.c: Likewise.
37078 * config/rl78/rl78.c: Likewise.
37079 * config/rx/rx.c: Likewise.
37080 * config/s390/s390.c: Likewise.
37081 * config/sh/sh.c: Likewise.
37082 * config/sparc/sparc.c: Likewise.
37083 * config/spu/spu.c: Likewise.
37084 * config/stormy16/stormy16.c: Likewise.
37085 * config/v850/v850.c: Likewise.
37086 * config/vax/vax.c: Likewise.
37087 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37088 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37089 * config/msp430/msp430.c: Likewise.
37090 * predict.c: Likewise.
37091 * value-prof.c: Likewise.
37092 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37093 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37094 * config/microblaze/microblaze.c: Likewise.
37095 * config/nios2/nios2.c: Likewise.
37096 * config/rs6000/rs6000.c: Likewise.
37097 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37098 insn-config.h real.h rtl.h statistics.h stmt.h.
37099 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37100 insn-config.h real.h statistics.h stmt.h.
37101 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37102 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37103 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37104 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37105 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37106 fixed-value.h real.h statistics.h stmt.h.
37107 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37108 fixed-value.h statistics.h stmt.h.
37109 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37110 stmt.h.
37111
37112 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37113
37114 * gengtype.c (create_user_defined_type): Workaround
37115 -Wmaybe-uninitialized false positives.
37116 * cse.c (fold_rtx): Likewise.
37117 * loop-invariant.c (gain_for_invariant): Likewise.
37118
37119 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
37120
37121 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37122 set the memory attributes in all cases but clear MEM_EXPR if need be.
37123
37124 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37125
37126 PR tree-optimization/64434
37127 * cfgexpand.c (reorder_operands): New function.
37128 (expand_gimple_basic_block): Insert call of reorder_operands if
37129 optimized is true.
37130
37131 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
37132
37133 * config/mips/micromips.md (*swp): Remove explicit parallel.
37134 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37135 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37136 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37137 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37138 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37139 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37140 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37141 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37142 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37143 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37144 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37145 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37146 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37147 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37148 (mips_wrdsp): Likewise.
37149 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37150 parallel.
37151 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37152 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37153 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37154 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37155 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37156 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37157 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37158 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37159 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37160
37161 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37162
37163 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37164 (mips_print_operand): Support 'y' to print exact log2 in decimal
37165 of a const_int.
37166 * config/mips/mips.h (ISA_HAS_LSA): New define.
37167 (ISA_HAS_DLSA): Likewise.
37168 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37169 * config/mips/predicates.md (const_immlsa_operand): New predicate.
37170
37171 2015-01-15 Martin Liska <mliska@suse.cz>
37172
37173 PR target/64377
37174 * optc-save-gen.awk: Add support for array types.
37175
37176 2015-01-15 Richard Biener <rguenther@suse.de>
37177
37178 PR middle-end/64365
37179 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37180 for MEM_REF access functions with the same base can never partially
37181 overlap.
37182
37183 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
37184
37185 * common.opt: New option -fstack-protector-explicit.
37186 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37187 (stack_protect_decl_phase): Handle stack_protect attribute for
37188 explicit stack protection requests.
37189 (expand_used_vars): Similarly.
37190 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37191 * doc/extend.texi: Add documentation for "stack_protect" attribute.
37192 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37193
37194 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
37195
37196 PR target/53988
37197 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37198 reg-reg copies.
37199 (sh_extending_set_of_reg): New struct.
37200 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37201 sh_remove_reg_dead_or_unused_notes): New Declarations.
37202 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37203 sh_find_extending_set_of_reg, sh_split_tst_subregs,
37204 sh_extending_set_of_reg::use_as_extended_reg): New functions.
37205 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37206 convert to insn_and_split and use new function sh_split_tst_subregs.
37207
37208 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
37209
37210 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37211 option.
37212 (Optimization Options): Move -fuse-ld documentation to...
37213 (Link Options): ...here.
37214
37215 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37216
37217 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37218 offsets.
37219 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37220 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37221 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37222 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37223 instead of ZR for the memory operand of LL/SC.
37224 (compare_and_swap_12, sync_add<mode>): Likewise.
37225 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37226 (sync_new_<optab>_12, sync_nand_12): Likewise.
37227 (sync_old_nand_12, sync_new_nand_12): Likewise.
37228 (sync_sub<mode>, sync_old_add<mode>): Likewise.
37229 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37230 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37231 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37232 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37233 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37234 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37235 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37236 * doc/md.texi (ZC): Update description.
37237
37238 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37239
37240 * builtins.c (expand_builtin_atomic_exchange): Remove error when
37241 memory model is CONSUME.
37242 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37243 expand_builtin_atomic_store): Change invalid memory model errors to
37244 warnings.
37245 (expand_builtin_atomic_clear): Change invalid model errors to warnings
37246 and issue warning for CONSUME.
37247
37248 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
37249
37250 * lto-cgraph: Update function comments for
37251 lto_symtab_encoder_encode_*.
37252
37253 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37254
37255 * Makefile.in (site.exp): Do not set ENABLE_LTO.
37256
37257 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37258
37259 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37260 * lto-cgraph.c (select_what_to_stream): Remove argument, use
37261 lto_stream_offload_p instead.
37262 * lto-streamer.h (select_what_to_stream): Remove argument.
37263 * passes.c (ipa_write_summaries): Likewise.
37264 * tree-pass.h (ipa_write_summaries): Likewise.
37265
37266 2015-01-14 Richard Biener <rguenther@suse.de>
37267
37268 PR tree-optimization/59354
37269 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37270 groups larger than the slp group size as having gaps.
37271
37272 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37273
37274 PR middle-end/59448
37275 * builtins.c (get_memmodel): Promote consume to acquire always.
37276
37277 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37278
37279 PR target/64386
37280 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37281 V32HImode.
37282
37283 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37284
37285 PR target/64393
37286 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37287 Enable AVX512BW.
37288 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37289 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37290 AVX512VBMI, as it implies AVX512BW.
37291
37292 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37293
37294 PR target/64387
37295 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37296 (vec_unpacks_hi_v16sf): Ditto.
37297
37298 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37299
37300 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37301 is not available.
37302
37303 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37304
37305 * doc/invoke.texi (mapcs): Mention deprecation.
37306 (mapcs-frame): Likewise.
37307
37308 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
37309
37310 PR target/64453
37311 * config/arm/arm.c (callee_saved_reg_p): Define.
37312 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37313 register is callee saved instead of !call_used_regs[reg].
37314 (thumb1_compute_save_reg_mask): Likewise.
37315
37316 2015-01-14 Hale Wang <hale.wang@arm.com>
37317
37318 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37319 Cortex-M7.
37320
37321 2015-01-14 Richard Biener <rguenther@suse.de>
37322
37323 PR lto/64415
37324 * tree-inline.c (insert_debug_decl_map): Check destination
37325 function MAY_HAVE_DEBUG_STMTS.
37326 (insert_init_debug_bind): Likewise.
37327 (insert_init_stmt): Remove redundant check.
37328 (remap_gimple_stmt): Drop debug stmts if the destination
37329 function has var-tracking assignments disabled.
37330
37331 2015-01-14 Martin Liska <mliska@suse.cz>
37332
37333 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37334 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37335
37336 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37337
37338 PR target/64460
37339 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37340 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37341
37342 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37343
37344 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37345 level from an ARCH; do not inject the default.
37346 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37347 MIPS_ISA_LEVEL_SPEC.
37348 (MIPS_ISA_NAN2008_SPEC): Update comment.
37349 (BASE_DRIVER_SELF_SPECS): Likewise.
37350 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37351 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37352 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37353 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37354 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37355
37356 2015-01-14 Richard Biener <rguenther@suse.de>
37357
37358 PR tree-optimization/64493
37359 PR tree-optimization/64495
37360 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37361 assign the proper vectorized PHI to the inner loop exit PHIs.
37362
37363 2015-01-14 Joey Ye <joey.ye@arm.com>
37364
37365 * config/arm/arm.c (arm_compute_save_reg_mask):
37366 Do not save lr in case of tail call.
37367 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37368
37369 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37370
37371 * tree-vrp.c (check_array_ref): Emit more warnings
37372 for warn_array_bounds >= 2.
37373 * common.opt: New option -Warray-bounds=.
37374 * doc/invoke.texi: Document -Warray-bounds=.
37375
37376 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37377
37378 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37379 (mforbid-fp-as-gp): Remove.
37380 (mex9): Remove.
37381 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37382 (nds32_symbol_load_store_p): Remove.
37383 (nds32_fp_as_gp_check_available): Clean up implementation.
37384 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37385 cases.
37386 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37387 fp-as-gp and ex9 cases.
37388
37389 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37390
37391 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37392 for bintuils bug 14342.
37393 (init_ic_make_global_vars): Likewise.
37394 (gimple_init_edge_profiler): Likewise.
37395 (gimple_gen_ic_func_profiler): Likewise.
37396
37397 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37398
37399 * ipa-inline.c (inline_small_functions): Swap the operands in
37400 enum.
37401
37402 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37403
37404 PR ipa/64481
37405 * ipa-inline-analysis.c (node_growth_cache): Remove.
37406 (initialize_growth_caches): Do not initialize it.
37407 (free_growth_caches): Do not free it.
37408 (do_estimate_growth): Rename to ...
37409 (estimate_growth): ... this one; drop growth cache code.
37410 (growth_likely_positive): Always go the heuristics way.
37411 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37412 (reset_edge_caches): Do not reset node growth.
37413 (heap_edge_removal_hook): Do not maintain cache.
37414 (inline_small_functions): Likewise; strenghten sanity check.
37415 (ipa_inline): Do not maintain caches.
37416 * ipa-inline.h (node_growth_cache): Remove.
37417 (do_estimate_growth): Remove to ...
37418 (estimate_growth): this one; remove inline version.
37419 (reset_node_growth_cache): Remove.
37420
37421 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37422
37423 PR ipa/64565
37424 * ipa-inline.c (inline_small_functions): Update callee keys after
37425 resolving speculation
37426 (inline_small_functions): Always check monotonicity of the queue.
37427
37428 2015-01-13 Marek Polacek <polacek@redhat.com>
37429
37430 PR middle-end/64391
37431 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37432
37433 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37434
37435 PR rtl-optimization/64286
37436 * ree.c (combine_reaching_defs): Move part of comment earlier,
37437 remove !SCALAR_INT_MODE_P check.
37438 (add_removable_extension): Don't add vector mode
37439 extensions if all uses of the source register aren't the same
37440 vector extensions.
37441
37442 2015-01-13 Renlin Li <renlin.li@arm.com>
37443
37444 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37445 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37446
37447 2015-01-13 Martin Liska <mliska@suse.cz>
37448
37449 * ipa-icf.c (sem_function::equals_private): Call new functions
37450 cl_target_option_print_diff and cl_optimization_print_diff.
37451 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37452 (cl_optimization_print_diff): Likewise.
37453 * opth-gen.awk: Likewise.
37454
37455 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37456
37457 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37458 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37459 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37460 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37461 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37462 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37463
37464 2015-01-13 Andrew Pinski <apinski@cavium.com>
37465
37466 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37467 instead of src mode.
37468
37469 2015-01-13 Richard Biener <rguenther@suse.de>
37470
37471 PR lto/64373
37472 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37473 DECL_CONTEXT.
37474
37475 2015-01-13 Andrew Pinski <apinski@cavium.com>
37476
37477 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37478 volatile mems.
37479 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37480
37481 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37482
37483 PR middle-end/63974
37484 * cfgexpand.c (expand_computed_goto): Don't call
37485 convert_memory_address here.
37486
37487 2015-01-13 Richard Biener <rguenther@suse.de>
37488
37489 PR tree-optimization/64406
37490 * tree-loop-distibution.c (pass_loop_distribution::execute):
37491 Reset the SCEV hashtable if we distributed anything.
37492
37493 2015-01-13 Richard Biener <rguenther@suse.de>
37494
37495 PR tree-optimization/64404
37496 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37497 SLP types for CSEd loads.
37498
37499 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37500
37501 PR tree-optimization/64436
37502 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37503 merge of two symbolic numbers for a bitwise OR to ...
37504 (perform_symbolic_merge): This. Also fix computation of the range and
37505 end of the symbolic number corresponding to the result of a bitwise OR.
37506
37507 2015-01-13 Richard Biener <rguenther@suse.de>
37508
37509 PR tree-optimization/64568
37510 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37511 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37512
37513 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37514
37515 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37516 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37517
37518 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37519
37520 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37521 target-specific symbol_ref flag.
37522 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37523 resides in rodata section.
37524 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37525 (nds32_encode_section_info): New function.
37526
37527 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37528
37529 * config/nds32/nds32.md (call): Use pseudo instruction bal which
37530 clobbers TA_REGNUM if large code model is specified.
37531 (call_register): Likewise.
37532 (call_immediate): Likewise.
37533 (call_value): Likewise.
37534 (call_value_register): Likewise.
37535 (call_value_immediate): Likewise.
37536
37537 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37538
37539 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37540 (TARGET_CMODEL_MEDIUM): New macro.
37541 (TARGET_CMODEL_LARGE): New macro.
37542 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37543 code model setting in assembly code.
37544
37545 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37546
37547 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37548 Remove MASK_GP_DIRECT flag.
37549 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37550 one of the multilib default options.
37551 * config/nds32/nds32.opt (mgp-direct): Remove.
37552 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37553 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
37554
37555 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37556
37557 * config/nds32/nds32.opt (mcmodel): Add new option.
37558 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37559 to describe code model.
37560
37561 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
37562
37563 PR target/64479
37564 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37565
37566 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
37567
37568 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37569 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37570 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37571 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37572 __builtin_sh_set_fpscr.
37573
37574 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37575
37576 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37577 after a funtion name just to indicate it is a function.
37578 ([-fsanitize-undefined-trap-on-error]): Likewise.
37579 ([-fdbg-cnt=]): Likewise.
37580 ([-mmemcpy]): Likewise.
37581 ([-mflush-func]): Likewise.
37582 ([-msynci]): Likewise.
37583
37584 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37585
37586 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37587 example.
37588
37589 2015-01-12 Jakub Jelinek <jakub@redhat.com>
37590
37591 PR tree-optimization/64563
37592 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37593 instead of != VR_VARYING.
37594
37595 PR target/64513
37596 * config/i386/i386.c (ix86_expand_prologue): Add
37597 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37598
37599 PR tree-optimization/64454
37600 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37601 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37602 for signed or [0, op1 - 1] for unsigned modulo.
37603 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37604 even if op1 does not satisfy integer_pow2p.
37605
37606 PR other/64370
37607 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37608
37609 2015-01-12 Jeff Law <law@redhat.com>
37610
37611 PR target/64461
37612 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37613 (trunchiqi2, truncsihi2): Similarly.
37614
37615 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37616 rather than calling F.
37617
37618 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
37619
37620 * tsan.c (instrument_expr): Use force_gimple_operand.
37621 Use may_be_nonaddressable_p instead of is_gimple_addressable.
37622
37623 2015-01-12 Richard Biener <rguenther@suse.de>
37624
37625 PR tree-optimization/64530
37626 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37627 back dr1.
37628
37629 2015-01-12 Richard Biener <rguenther@suse.de>
37630
37631 PR middle-end/64357
37632 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37633 latches properly.
37634
37635 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37636
37637 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37638 Cortex-A17 tuning parameters.
37639 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37640
37641 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37642
37643 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37644 * config/arm/arm.c (arm_macro_fusion_p): New function.
37645 (arm_macro_fusion_pair_p): Likewise.
37646 (TARGET_SCHED_MACRO_FUSION_P): Define.
37647 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37648 (ARM_FUSE_NOTHING): Likewise.
37649 (ARM_FUSE_MOVW_MOVT): Likewise.
37650 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37651 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37652 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37653 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37654 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37655 arm_cortex_a5_tune): Specify fuseable_ops value.
37656
37657 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
37658
37659 PR bootstrap/64561
37660 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37661 test for PIE with copy reloc.
37662 * configure: Regenerated.
37663
37664 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37665
37666 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37667 in gen_rtx_REG.
37668 (arm_tls_descseq_addr): Likewise.
37669 (arm_gen_movmemqi): Likewise.
37670 (arm_expand_epilogue_apcs_frame): Likewise.
37671 (arm_expand_epilogue): Likewise.
37672 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
37673 in gen_rtx_REG.
37674
37675 2015-01-12 Martin Liska <mliska@suse.cz>
37676
37677 PR ipa/64550
37678 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37679 volatility for correct operands.
37680
37681 2015-01-12 Martin Liska <mliska@suse.cz>
37682
37683 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37684 indication that a function is not leaf.
37685 (sem_function::compare_polymorphic_p): Likewise.
37686
37687 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37688
37689 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37690 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37691 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37692 fold-const.h, tree-check.h.
37693
37694 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37695
37696 PR ipa/63967
37697 PR ipa/64425
37698 * ipa-inline.c (compute_uninlined_call_time,
37699 compute_inlined_call_time): Use counts for extra precision when
37700 needed possible.
37701 (big_speedup_p): Fix formating.
37702 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37703 (relative_time_benefit): Remove.
37704 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37705 merge guessed and read profile paths.
37706 (inline_small_functions): Count only !optimize_size functions into
37707 initial size; be more lax about sanity check when profile is used;
37708 be sure to update inlined function profile when profile is read.
37709
37710 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37711
37712 PR ipa/63470
37713 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37714 cost when edge becomes direct.
37715 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37716 is resolved or when introducing new speculation.
37717
37718 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
37719
37720 PR ipa/64551
37721 PR ipa/64552
37722 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37723 '||' to fix typo issue.
37724
37725 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37726 accept and return NULL.
37727
37728 2015-01-12 Martin Liska <mliska@suse.cz>
37729
37730 * cgraph.c (cgraph_edge::remove_callee): Move function to header
37731 file for being inlined.
37732 (cgraph_set_edge_callee): Delete.
37733 (cgraph_edge::redirect_callee): Move function to header file
37734 for being inlined.
37735 (cgraph_edge::make_direct): Use new function.
37736 (cgraph_edge::dump_edge_flags): New function created from
37737 static dump_edge_flags function.
37738 (cgraph_node::dump): Use new function.
37739 (cgraph_edge::verify_count_and_frequency): New function created
37740 from verify_edge_count_and_frequency.
37741 (cgraph_edge::verify_corresponds_to_fndecl): New function created
37742 from verify_edge_corresponds_to_fndecl.
37743 (verify_edge_corresponds_to_fndecl): Delete.
37744 (cgraph_node::verify_node): Use new function.
37745 * cgraph.h (cgraph_edge::set_callee): New function.
37746 (cgraph_edge::dump_edge_flags): Likewise.
37747 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37748
37749 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
37750
37751 * ipa-utils.c (estimate_function_body_sizes): Do not
37752 free node params when called late with early=true.
37753
37754 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
37755
37756 * doc/md.texi (Instruction Patterns): Rewrite text for
37757 clarity.
37758 (Example): Likewise.
37759
37760 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
37761
37762 * doc/invoke.texi (Option Summary): Break long lines.
37763 [(-fdiagnostics-color)]: Put long literal in @smallexample
37764 instead of inline.
37765 [(-fsanitize-recover)]: Likewise.
37766 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37767 [(-ffast-math)]: Likewise.
37768 [(--param max-inline-insns-recursive)]: Likewise.
37769 [(--param max-inline-recursive-depth)]: Likewise.
37770 [(-mno-text-section-literals)]: Likewise.
37771
37772 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
37773
37774 * doc/install.texi: Update for libgomp being renamed from "GNU
37775 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37776 Runtime Library".
37777 * doc/sourcebuild.texi: Likewise.
37778
37779 2015-01-10 Anthony Green <green@moxielogic.com>
37780
37781 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37782 mul.x availability for moxiebox configuration.
37783
37784 2015-01-09 Anthony Green <green@moxielogic.com>
37785
37786 * config/moxie/moxie.md: Tabify assembly output.
37787
37788 2015-01-09 Anthony Green <green@moxielogic.com>
37789
37790 * config/moxie/moxie.md (CC_REG): Correct register definition.
37791
37792 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
37793
37794 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37795 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
37796 of log files.
37797
37798 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37799
37800 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37801
37802 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
37803 Jakub Jelinek <jakub@redhat.com>
37804
37805 PR middle-end/64412
37806 * lto-streamer.h (lto_stream_offload_p): New declaration.
37807 * lto-streamer.c (lto_stream_offload_p): New variable.
37808 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37809 at the same time as section_name_prefix.
37810 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37811 if lto_stream_offload_p.
37812 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37813 stream TREE_TARGET_OPTION if lto_stream_offload_p.
37814 (write_ts_function_decl_tree_pointers): Don't
37815 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37816 * tree-streamer-in.c (unpack_value_fields): Don't stream
37817 TREE_TARGET_OPTION in if ACCEL_COMPILER.
37818 (lto_input_ts_function_decl_tree_pointers): Don't stream
37819 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37820 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37821 instead of section_name_prefix string comparisons.
37822
37823 2015-01-09 Jakub Jelinek <jakub@redhat.com>
37824
37825 PR rtl-optimization/64536
37826 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37827 tablejumps.
37828
37829 2015-01-09 Michael Collison <michael.collison@linaro.org>
37830
37831 PR tree-optimization/64322
37832 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37833 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37834
37835 2015-01-09 Tom de Vries <tom@codesourcery.com>
37836
37837 PR rtl-optimization/64539
37838 * regcprop.c (kill_clobbered_values): Factor out of ...
37839 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
37840 instead of note_stores with kill_clobbered_value.
37841
37842 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37843
37844 * ginclude/unwind-arm-common.h: Revert previous commit.
37845
37846 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37847
37848 * config.gcc (arm*-*-freebsd*): New configuration.
37849 * config/arm/freebsd.h: New file.
37850 * config.host: Add extra components for arm*-*-freebsd*.
37851 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37852 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37853
37854 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37855
37856 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37857 for -mcpu=e6500.
37858 * config/rs6000/t-rtems: Add e6500 multilibs.
37859
37860 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37861
37862 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37863 MPC8540.
37864
37865 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37866
37867 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37868 MULTILIB_EXCEPTIONS.
37869
37870 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37871
37872 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37873 MULTILIB_EXCEPTIONS.
37874
37875 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37876
37877 * config/arm/t-rtems-eabi: Rename to...
37878 * config/arm/t-rtems: ...this.
37879 * config/arm/rtems-eabi.h: Rename to...
37880 * config/arm/rtems.h: ...this.
37881 * config.gcc (arm*-*-rtems*): Reflect changes above.
37882
37883 2015-01-09 Richard Biener <rguenther@suse.de>
37884
37885 PR tree-optimization/64410
37886 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37887 on the LHS.
37888 (execute_update_addresses_taken): Deal with that.
37889 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37890 loads/stores for complex variables.
37891
37892 2015-01-09 Martin Liska <mliska@suse.cz>
37893
37894 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37895 name comparison.
37896 (func_checker::compare_memory_operand): New function.
37897 (func_checker::compare_operand): Split case to newly
37898 added functions.
37899 (func_checker::compare_cst_or_decl): New function.
37900 (func_checker::compare_gimple_call): Identify
37901 memory operands.
37902 (func_checker::compare_gimple_assign): Likewise.
37903 * ipa-icf-gimple.h: New function.
37904
37905 2015-01-09 Martin Liska <mliska@suse.cz>
37906
37907 PR ipa/64503
37908 * sreal.c (sreal::dump): Change unsigned format to signed for
37909 m_exp value.
37910 (sreal::to_double): Replace exp2 with scalbln.
37911
37912 2015-01-09 Martin Liska <mliska@suse.cz>
37913
37914 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37915 * ipa-icf.c (sem_function::equals_private): Add support for target and
37916 (sem_item_optimizer::merge_classes): Remove redundant function
37917 optimization flags comparison.
37918 * tree.h (target_opts_for_fn): New function.
37919
37920 2015-01-09 Tom de Vries <tom@codesourcery.com>
37921
37922 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37923
37924 2015-01-09 Kito Cheng <kito@0xlab.org>
37925
37926 PR rtl-optimization/64348
37927 * lra-constraints.c (split_reg): Fix caller-save store/restore
37928 instruction generation.
37929
37930 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
37931
37932 PR gcov-profile/61790
37933 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37934 long long. Fallback to int64_t if host doesn't have long long and
37935 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
37936
37937 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37938
37939 PR tree-optimization/63989
37940 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37941 from 1000 to 10000.
37942 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37943 (get_stridx): If we don't have a record for certain SSA_NAME,
37944 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37945 constant offset, call get_stridx_plus_constant.
37946 (get_stridx_plus_constant): New function.
37947 (zero_length_string): Don't use get_stridx here.
37948
37949 PR target/55023
37950 PR middle-end/64388
37951 * dse.c (struct insn_info): Mention frame_read set also
37952 before reload for tail calls on some targets.
37953 (scan_insn): Revert 2014-12-22 change. Set frame_read
37954 also before reload for tail calls if
37955 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
37956 instead of add_non_frame_wild_read for non-const/memset
37957 tail calls after reload.
37958
37959 2015-01-08 Jason Merrill <jason@redhat.com>
37960
37961 * ubsan.c (do_ubsan_in_current_function): New.
37962 (pass_ubsan::gate): Use it.
37963 * ubsan.h: Declare it.
37964 * convert.c (convert_to_integer): Use it.
37965
37966 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37967
37968 PR target/64338
37969 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37970 compare_code when it is unconditionally overwritten afterwards.
37971 Use ix86_reverse_condition instead of reverse_condition. Don't
37972 change code if *reverse_condition* returned UNKNOWN and don't
37973 swap ct/cf and negate diff in that case.
37974
37975 2015-01-08 Mike Stump <mikestump@comcast.net>
37976
37977 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37978 (pass_tsan_O0::gate): Likewise.
37979 * extend.texi (Function Attributes): Add no_sanitize_thread
37980 documentation.
37981
37982 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
37983
37984 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37985 for registering builtins.
37986 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37987 add -fopenmp to the argv_obstack used when invoking
37988 compile_for_target.
37989
37990 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37991 add "-m32" or "-m64" to argv_obstack.
37992 (generate_host_descr_file): Likewise, when invoking host_compiler.
37993 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37994 ld.
37995
37996 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37997
37998 * config/sh/sh-mem.cc: Use constant as second operand when emitting
37999 tstsi_t insns.
38000
38001 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38002
38003 PR target/55212
38004 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38005 constant load if constant operand fits into I08.
38006
38007 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38008
38009 PR sanitizer/64336
38010 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38011 and TREE_THIS_VOLATILE for MEM_REFs.
38012 (build5_stat): Fix up initialization of TREE_READONLY and
38013 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38014
38015 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
38016
38017 PR target/64533
38018 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38019 of r for the second alternative of the destination operand.
38020
38021 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
38022
38023 PR target/36557
38024 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38025
38026 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38027
38028 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38029 keywords.
38030 ([-fivar-visibility], [-fvisibility]): Likewise.
38031
38032 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38033
38034 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38035 the file where @code, @command, etc is more appropriate.
38036
38037 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
38038
38039 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38040 of -mrecip= documentation.
38041
38042 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38043
38044 PR target/64505
38045 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38046 correct reload handler if -m32 -mpowerpc64 is used.
38047
38048 2015-01-06 Tom de Vries <tom@codesourcery.com>
38049
38050 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38051
38052 2015-01-08 Christian Bruel <christian.bruel@st.com>
38053
38054 PR target/64507
38055 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38056
38057 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
38058
38059 PR tree-optimization/63259
38060 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38061 if optab exists for 16bit byteswap.
38062
38063 2015-01-06 Jakub Jelinek <jakub@redhat.com>
38064
38065 * opts.c (common_handle_option): Add support for
38066 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38067 * doc/invoke.texi: Document -fno-sanitize=all,
38068 -f{,no-}sanitize-recover=all. Document that
38069 -fsanitize=float-cast-overflow is not enabled
38070 by -fsanitize=undefined. Fix up documentation
38071 of -f{,no-}sanitize-recover.
38072
38073 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
38074
38075 * config.gcc: Add Visium support.
38076 * configure.ac: Likewise.
38077 * configure: Regenerate.
38078 * doc/extend.texi (interrupt attribute): Add Visium.
38079 * doc/invoke.texi: Document Visium options.
38080 * doc/install.texi: Document Visium target.
38081 * doc/md.texi: Document Visium constraints.
38082 * common/config/visium: New directory.
38083 * config/visium: Likewise.
38084
38085 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38086
38087 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38088 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38089
38090 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38091
38092 * combine.c (combine_validate_cost): Do not count the cost of a
38093 split I2 twice. Do not display it twice in the dump, either.
38094
38095 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38096
38097 Revert parts of r219199.
38098 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38099 <inttypes.h>.
38100 ([-Wtraditional]): Restore markup on <limits.h>.
38101
38102 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
38103
38104 PR c++/31397
38105 * doc/invoke.texi: Document -Wsuggest-override.
38106
38107 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
38108
38109 PR rtl-optimization/64287
38110 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38111 (process_options): Disable flag_ipa_ra if profiling.
38112
38113 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
38114
38115 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38116
38117 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
38118
38119 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38120 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38121 put under #if TARGET_LOOPS guard.
38122
38123 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
38124
38125 * config/i386/i386.c (output_387_binary_op): Use std::swap.
38126
38127 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
38128
38129 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38130 * rtl.h (refers_to_regno_p): Add overload.
38131 * cse.c: Use it.
38132 * bt-load.c: Likewise.
38133 * combine.c: Likewise.
38134 * df-scan.c: Likewise.
38135 * sched-deps.c: Likewise.
38136 * config/s390/s390.c: Likewise.
38137 * config/m32r/m32r.c: Likewise.
38138 * config/rs6000/spe.md: Likewise.
38139 * config/rs6000/rs6000.c: Likewise.
38140 * config/pa/pa.c: Likewise.
38141 * config/stormy16/stormy16.c: Likewise.
38142 * config/cris/cris.c: Likewise.
38143 * config/arc/arc.md: Likewise.
38144 * config/arc/arc.c: Likewise.
38145 * config/sh/sh.md: Likewise.
38146 * config/sh/sh.c: Likewise.
38147 * config/frv/frv.c: Likewise.
38148
38149 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38150
38151 PR sanitizer/64265
38152 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38153 call as cleanup of the whole body.
38154 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38155 * tsan.c (replace_func_exit): New function.
38156 (instrument_func_exit): Moved earlier.
38157 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38158 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38159 been found.
38160 (tsan_pass): Don't call instrument_func_exit.
38161 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38162 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38163 inlining.
38164
38165 PR sanitizer/64344
38166 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38167 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38168 it to libubsan handler instead of EXPR. Fold comparisons earlier,
38169 if the result is integer_zerop, return NULL_TREE.
38170 * convert.c (convert_to_integer): Pass expr as ARG.
38171
38172 PR tree-optimization/64465
38173 * tree-inline.c (redirect_all_calls): During inlining
38174 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38175 changed the stmt to a non-throwing call.
38176
38177 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38178
38179 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38180 etc markup throughout the file.
38181
38182 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38183
38184 Enable experimental TSAN support for Ada.
38185 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38186
38187 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38188
38189 PR tree-optimization/64494
38190 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38191 clear SSA_NAME_ANTI_RANGE_P flag.
38192
38193 2015-01-05 Marek Polacek <polacek@redhat.com>
38194
38195 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38196
38197 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38198
38199 Update copyright years.
38200
38201 * gcc.c (process_command): Update copyright notice dates.
38202 * gcov-dump.c: Ditto.
38203 * gcov.c: Ditto.
38204 * doc/cpp.texi: Bump @copying's copyright year.
38205 * doc/cppinternals.texi: Ditto.
38206 * doc/gcc.texi: Ditto.
38207 * doc/gccint.texi: Ditto.
38208 * doc/gcov.texi: Ditto.
38209 * doc/install.texi: Ditto.
38210 * doc/invoke.texi: Ditto.
38211
38212 * auto-profile.c, auto-profile.h: Fix up Copyright line.
38213
38214 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
38215
38216 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38217 verb tense, etc.
38218 ([-fvtable-verify], [-fvtv-debug]): Likewise.
38219 ([-Wabi]): Likewise.
38220 ([-fmessage-length]): Likewise.
38221 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38222 ([-Wno-discarded-qualifiers]): Likewise.
38223 ([-Wnodiscarded-array-qualifiers]): Likewise.
38224 ([-Wno-virtual-move-assign]): Likewise.
38225 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38226 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38227 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38228 ([-fsanitize-undefined-trap-on-error]): Likewise.
38229 ([-floop-interchange]): Likewise.
38230 ([-ftree-coalesce-inlined-vars]): Likewise.
38231 ([-fvect-cost-model]): Likewise.
38232 ([-flto]): Likewise.
38233 ([--param]): Likewise.
38234 (Spec Files): Likewise.
38235 ([-mstrict-align]): Likewise.
38236 ([-mfix-cortex-a53-835769]): Likewise.
38237 ([-march], [-mtune]): Likewise.
38238 ([-mpic-register]): Likewise.
38239 ([-munaligned-access]): Likewise.
38240 ([-msp8]): Likewise.
38241 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38242 (AVR Built-in Macros): Likewise.
38243 ([-mpreferred-stack-boundary]): Likewise.
38244 ([-mtune-crtl]): Likewise.
38245 ([-mashf]): Likewise.
38246 ([-mmcu=]): Likewise.
38247 ([-minrt]): Likewise.
38248 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38249 ([-mupper-regs]): Likewise.
38250 ([-matomic-model]): Likewise.
38251 ([-mdiv]): Likewise.
38252 ([-mzdcbranch]): Likewise.
38253 ([-mdisable-callt]): Likewise.
38254 ([-msoft-float]): Likewise.
38255 ([-m8byte-align]): Likewise.
38256 ([-fstack-reuse]): Likewise.
38257
38258 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38259
38260 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38261 Fix markup, light copy-editing.
38262 ([-fauto-profile]): Rewrite to fix formatting and content
38263 problems.
38264
38265 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38266
38267 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38268 Copy-edit description.
38269 ([-fisolate-erroneous-paths-attribute]): Likewise.
38270 * common.opt (fisolate-erroneous-paths-dereference):
38271 Copy-edit description.
38272 (fisolate-erroneous-paths-attribute): Likewise.
38273
38274 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38275
38276 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38277 tidy grammar.
38278
38279 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38280
38281 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38282 ([-fvtv-debug]): Likewise.
38283 ([-Wc++-compat]): Likewise.
38284 ([-Wc++11-compat]): Likewise.
38285 ([-Wc++14-compat]): Likewise.
38286 ([-Wno-sized-deallocation]): Likewise.
38287 ([-femit-class-debug-always]): Likewise.
38288 ([-femit-struct-debug-detailed]): Likewise.
38289 ([-fno-keep-inline-dllexport]): Likewise.
38290 ([-fira-algorithm]): Likewise.
38291 ([-fira-region]): Likewise.
38292 ([-flra-remat]): Likewise.
38293 ([-fipa-ra]): Likewise.
38294 ([-fhoist-adjacent-loads]): Likewise.
38295 ([-fisolate-erroneous-paths-dereference]): Likewise.
38296 ([-fisolate-erroneous-paths-attribute]): Likewise.
38297 ([-ftree-switch-conversion]): Likewise.
38298 ([-ftree-tail-merge]): Likewise.
38299 ([-ftree-loop-if-convert]): Likewise.
38300 ([-ftree-loop-if-convert-stores]): Likewise.
38301 ([-ftree-loop-distribution]): Likewise.
38302 ([-ftree-loop-distribute-patterns]): Likewise.
38303 ([-flto-compression-level]): Likewise.
38304 ([-flto-report]): Likewise.
38305 ([-flto-report-wpa]): Likewise.
38306 ([-fuse-linker-plugin]): Likewise.
38307 ([-mfix-cortex-a53-835769]): Likewise.
38308 ([-mno-fix-cortex-a53-835769]): Likewise.
38309 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38310 explicit listing; add a note to the discussion indicating they
38311 exist. Reorder table to group similar options. Add missing
38312 @opindex entries. Add @need commands throughout the table to
38313 allow it to be split across multiple pages.
38314 ([-m8bit-idiv]): Fix @opindex.
38315 ([-mavx256-split-unaligned-load]): Likewise.
38316 ([-mavx256-split-unaligned-store]): Likewise.
38317 ([-mstack-protector-guard]): Likewise.
38318 ([-mcpu=]): Likewise.
38319 ([-mcpu]): Likewise.
38320 ([-mpointer-size=]): Likewise.
38321
38322 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38323
38324 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38325 instead of `m' constraint. Likewise for unnamed movb comparison
38326 patterns using reg_before_reload_operand predicate.
38327 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38328 predicate to reject register index and LO_SUM DLT memory forms
38329 after reload.
38330
38331 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38332
38333 * doc/invoke.texi (Option Summary): Fix spelling of
38334 -fdevirtualize-at-ltrans.
38335 ([-fdevirtualize]): Fix markup.
38336 ([-fdevirtualize-speculatively]): Fix typo.
38337 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38338 implementor-speaky.
38339 * common.opt (fdevirtualize-at-ltrans): Likewise.
38340 * ipa-devirt.c: Fix typos in comments throughout the file.
38341 (ipa_devirt): Fix typos in format strings for dump output.
38342
38343 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38344
38345 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38346 discussion of defaults, light copy-editing.
38347
38348 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38349
38350 * tsan.c (instrument_expr): corrected previous checkin.
38351
38352 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38353
38354 Instrument bit field and unaligned accesses for TSAN.
38355 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38356 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38357 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38358 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38359 unaligned memory regions.
38360
38361 2015-01-01 Anthony Green <green@moxielogic.com>
38362
38363 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38364 Restrict move source register offsets to 16 bits.
38365 \f
38366 Copyright (C) 2015 Free Software Foundation, Inc.
38367
38368 Copying and distribution of this file, with or without modification,
38369 are permitted in any medium without royalty provided the copyright
38370 notice and this notice are preserved.