]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Check for invalid FAILs
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2
3 * Makefile.in (GENSUPPORT_H): New macro.
4 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
6 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
7 (build/genconstants.o, build/genextract.o, build/genflags.o)
8 (build/gentarget-def.o): Use it.
9 (build/genemit.o): Likewise. Depend on internal-fn.def.
10 * genopinit.c: Move block comment to optabs.def.
11 (optab_tag, optab_def): Move to gensupport.h
12 (pattern): Likewise, renaming to optab_pattern.
13 (match_pattern): Move to gensupport.c
14 (gen_insn): Use find_optab.
15 (patterns, pattern_cmp): Replace pattern with optab_pattern.
16 (main): Likewise. Use num_optabs.
17 * optabs.def: Add comment that was previously in genopinit.c.
18 * gensupport.h (optab_tag): Moved from genopinit.c
19 (optab_def): Likewise, expanding commentary.
20 (optab_pattern): Likewise, after renaming from pattern.
21 (optabs, num_optabs, find_optab): Declare.
22 * gensupport.c (optabs): Moved from genopinit.c.
23 (num_optabs): New variable.
24 (match_pattern): Moved from genopinit.c.
25 (find_optab): New function, extracted from genopinit.c:gen_insn.
26 * genemit.c (nofail_optabs): New variable.
27 (emit_c_code): New function.
28 (gen_expand): Check whether the instruction is an optab that isn't
29 allowed to fail. Call emit_c_code.
30 (gen_split): Call emit_c_code here too.
31 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
32
33 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34
35 * config/s390/predicates.md (const_mask_operand): New predicate.
36 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
37 * config/s390/vector.md: Change predicate from immediate_operand
38 to either const_int_operand or const_mask_operand. Add special
39 insn conditions on patterns which have to exclude certain values.
40 * config/s390/vx-builtins.md: Likewise.
41
42 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
43
44 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
45 mode from DI to SI.
46
47 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
48
49 * config/s390/s390-builtin-types.def: New builtin types added.
50 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
51 * config/s390/s390.c (s390_expand_builtin): Always truncate
52 constants to the mode in the pattern.
53 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
54 respective builtin __builtin_s390_vec_splat_*.
55
56 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
57
58 * config/s390/s390-builtin-types.def: Sort builtin types.
59
60 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
61
62 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
63 condition for the RT flag.
64
65 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
66
67 * config/s390/constraints.md ("jKK"): New constraint.
68 * config/s390/s390.c (tm-constrs.h): Include for
69 satisfies_constraint_*.
70 (s390_legitimate_constant_p): Allow jKK constants. Use
71 satisfies_constraint_* also for the others.
72 (legitimate_reload_vector_constant_p): Likewise.
73 (print_operand): Allow h output modifier on vectors.
74 * config/s390/vector.md ("mov<mode>"): Add vrepi.
75
76 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
77
78 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
79 latter I->K.
80
81 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
82
83 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
84 strvg.
85 ("bswaphi2"): New pattern.
86 New splitter for HI reg-reg bswap.
87
88 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
89
90 PR driver/68029
91 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
92 if it is the first parameter.
93
94 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
95
96 PR tree-optimization/68577
97 * tree-vect-stmts.c (simple_integer_narrowing): New function.
98 (vectorizable_call): Restrict internal function handling
99 to NONE and NARROW cases, using simple_integer_narrowing
100 to test for the latter. Add cost of narrowing operation
101 and insert it where necessary.
102
103 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
104
105 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
106 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
107 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
108
109 2015-12-01 Nathan Sidwell <nathan@acm.org>
110
111 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
112 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
113 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
114 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
115 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
116 (init_output_initializer): Call write_var_marker.
117 (nvptx_output_aligned_decl): New.
118 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
119
120 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
121
122 * c-common.c (parse_optimize_options): Do not silently ignore
123 -fstrict-aliasing changes.
124
125 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
126
127 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
128 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
129 stream TYPE_ALIAS_SET.
130 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
131 stream TYPE_ALIAS_SET.
132
133 2015-12-01 Nathan Sidwell <nathan@acm.org>
134
135 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
136 consider mode.
137
138 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
139
140 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
141 indirection for large and small code models.
142 (adjust_vperm): Likewise.
143
144 2015-12-01 Julian Brown <julian@codesourcery.com>
145 Cesar Philippidis <cesar@codesourcery.com>
146 James Norris <James_Norris@mentor.com>
147
148 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
149 support.
150 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
151 (is_gimple_omp_oacc): Add support for above.
152 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
153 (omp_notice_variable): Diagnose undefined implicit uses of
154 use_device variables in offloaded regions.
155 (gimplify_scan_omp_clauses): Add host_data, use_device
156 support. Diagnose undefined mapping of use_device variables in
157 OpenACC clauses.
158 (gimplify_omp_workshare): Add host_data support.
159 (gimplify_expr): Likewise.
160 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
161 * omp-low.c (lookup_decl_in_outer_ctx)
162 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
163 host_data regions.
164 (scan_sharing_clauses): Support use_device.
165 (check_omp_nesting_restrictions): Support host_data.
166 (expand_omp_target): Support host_data.
167 (lower_omp_target): Skip over outer host_data regions when looking
168 up decls. Support use_device.
169 (make_gimple_omp_edges): Support host_data.
170 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
171 clause.
172
173 2015-12-01 Marek Polacek <polacek@redhat.com>
174
175 PR middle-end/68582
176 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
177 for VAR_DECLs.
178
179 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
180
181 PR tree-optimization/68474
182 * tree-call-cdce.c (use_internal_fn): Protect call to
183 gen_shrink_wrap_conditions.
184
185 2015-12-01 Christian Bruel <christian.bruel@st.com>
186
187 PR target/68617
188 * config/arm/arm.opt (unaligned_access): Save.
189 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
190 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
191 (arm_option_override_internal): ... here.
192 * config/arm/arm.h (TARGET_32BIT_P): New macro.
193
194 2015-12-01 Richard Biener <rguenther@suse.de>
195
196 PR tree-optimization/68379
197 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
198 always base loads on the first used DR of a group.
199 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
200 Compute alignment of the first scalar element unconditionally.
201
202 2015-12-01 Richard Biener <rguenther@suse.de>
203
204 PR middle-end/68590
205 * genmatch.c (struct capture_info): Add match_use_count.
206 (capture_info::walk_match): Increment match_use_count.
207 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
208 replacements in a save_expr if they occur more often than
209 in the original expression.
210
211 2015-12-01 Richard Biener <rguenther@suse.de>
212
213 PR ipa/68470
214 * ipa-split.c (split_function): Handle main part not returning.
215
216 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
217
218 PR middle-end/68595
219 * tree-vect-stmts.c (vect_init_vector): Cast boolean
220 scalars to a proper value before building a vector.
221
222 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
223
224 * genattrtab.c (check_attr_test): Take an attr_desc instead of
225 an is_const flag. Put the file_location argument first.
226 Update recursive calls. Improve error messages.
227 (check_attr_value): Take a file location and use it instead
228 of attr->loc. Improve error messages. Update calls to
229 check_attr_test.
230 (check_defs): Update call to check_attr_value.
231 (make_canonical): Likewise.
232 (gen_attr): Likewise.
233 (main): Likewise.
234 (gen_insn_reserv): Update call to check_attr_test.
235
236 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
237
238 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
239
240 2015-12-01 Richard Biener <rguenther@suse.de>
241
242 PR middle-end/68590
243 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
244
245 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
246
247 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
248 odr_type_p): Move to ...
249 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
250 odr_type_p): here; miscro-optimize.
251
252 2015-12-01 Bin Cheng <bin.cheng@arm.com>
253
254 PR tree-optimization/68529
255 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
256 Compute no-overflow information for control iv.
257 (number_of_iterations_lt, number_of_iterations_le): Add new param.
258 (number_of_iterations_cond): Pass new argument to above functions.
259
260 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
261
262 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
263 inlining -fno-strict-aliasing into -fstrict-aliasing body.
264
265 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
266 Sebastian Pop <s.pop@samsung.com>
267
268 PR tree-optimization/68565
269 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
270 codegen_error. Fail when rhs of division operations is integer_zerop.
271 (ternary_op_to_tree): Early return on codegen_error.
272 (unary_op_to_tree): Same.
273 (nary_op_to_tree): Same.
274 (gcc_expression_from_isl_expr_op): Same.
275 (gcc_expression_from_isl_expression): Same.
276 (graphite_create_new_loop): On codegen_error continue generating
277 wrong code.
278 (graphite_create_new_loop_guard): Same.
279 (build_iv_mapping): Same.
280 (graphite_create_new_guard): Same.
281
282 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
283 Sebastian Pop <s.pop@samsung.com>
284
285 * graphite-isl-ast-to-gimple.c: Fix dump messages.
286 * graphite-scop-detection.c: Same.
287 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
288
289 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
290
291 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
292 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
293 (convert_local_omp_clauses): Likewise.
294
295 2015-11-30 Tom de Vries <tom@codesourcery.com>
296
297 PR tree-optimization/46032
298 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
299 factored out of ...
300 (find_func_aliases_for_call): ... here.
301 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
302 BUILT_IN_GOMP_PARALLEL.
303 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
304 function.
305
306 2015-11-30 Jakub Jelinek <jakub@redhat.com>
307
308 PR tree-optimization/68501
309 * target.def (builtin_reciprocal): Replace the 3 arguments with
310 a gcall * one, adjust description.
311 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
312 with a gcall * one.
313 * targhooks.c (default_builtin_reciprocal): Likewise.
314 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
315 targetm.builtin_reciprocal even on internal functions, adjust
316 the arguments and allow replacing an internal function with normal
317 built-in.
318 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
319 with a gcall * one. Handle internal fns too.
320 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
321 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
322 * doc/tm.texi (builtin_reciprocal): Document.
323
324 2015-11-30 Richard Biener <rguenther@suse.de>
325
326 PR tree-optimization/68592
327 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
328 on the pattern def sequence.
329
330 2015-11-30 Nathan Sidwell <nathan@acm.org>
331
332 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
333 (write_one_arg): Reorder parms, add 'sep' param.
334 (nvptx_write_function_decl): Rename to ...
335 (write_fn_proto): ... here. Do name replacement. Emit linaer
336 comment marker. Deal with both decls and defns. Simplify argument
337 formatting.
338 (write_function_decl_and_comment): Delete.
339 (write_func_decl_from_insn): Rename to ...
340 (write_fn_proto_from_insn): ... here. Don't do name replacement.
341 (nvptx_record_fndecl): Call write_fn_proto.
342 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
343 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
344 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
345
346 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
347
348 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
349 (define_insn "*k<logic><mode>"): Use new iterator.
350
351 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
352
353 PR target/28115
354 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
355 (sparc_adjust_cost): Add missing space.
356
357 2015-11-30 Richard Biener <rguenther@suse.de>
358
359 PR c/68162
360 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
361 of arrays.
362
363 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
364
365 * tree-if-conv.c (struct ifc_dr): Add new tree
366 base_predicate field.
367 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
368 base ref, DR pairs and store base_predicate for write type DRs.
369 (ifcvt_memrefs_wont_trap): Guard checks with
370 -ftree-loop-if-convert-stores flag.
371
372 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
373
374 * cgraph.c (cgraph_node::make_local): No name is unique during
375 incremental linking.
376 * cgraph.h (can_be_discarded_p): Update comment; also common and
377 WEAK in named sections can be discarded; when doing incremental
378 link do not rely on resolution being the final one.
379 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
380 When symbol can be discarded, do not rely on resolution info.
381 * symtab.c (symtab_node::nonzero_address): Take into account that
382 symbol can be discarded.
383 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
384 definition correctly.
385 (function_and_variable_visibility): Do not set unique_name when
386 incrementally linking.
387
388 2015-11-29 Nathan Sidwell <nathan@acm.org>
389
390 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
391 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
392 (ctrap<mode>): Use const0_operand.
393
394 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
395
396 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
397 dump
398
399 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
400
401 PR target/28115
402 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
403 recog_memoized test for insn and check recog_memoized for dep_insn.
404
405 2015-11-28 Nathan Sidwell <nathan@acm.org>
406
407 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
408 (FRAME_POINTER_CFA_OFFSET): Define.
409 (struct nvptx_args): Use 'tree' type.
410 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
411
412 2015-11-28 Tom de Vries <tom@codesourcery.com>
413
414 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
415
416 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
417
418 * doc/invoke.texi (Option Summary): Use negative form of
419 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
420 sort alphabetically and re-justify.
421
422 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
423
424 PR rtl-optimization/68536
425 * lra.c (lra_emit_add): Add code for null base.
426 * lra-constraints.c (curr_insn_transform): Skip operators for
427 subreg reloads.
428
429 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
430
431 Revert
432 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
433
434 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
435 multiple_sets.
436 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
437 are not modified by the final modified insns in the basic blocks.
438
439 2015-11-27 Nathan Sidwell <nathan@acm.org>
440
441 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
442 Don't declare.
443 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
444 (nvptx_maybe_convert_symbolic_operand): Simplify.
445 (nvptx_addr_space_from_address): Delete.
446 (nvptx_print_operand): Adjust 'A' case.
447
448 2015-11-27 Richard Biener <rguenther@suse.de>
449
450 PR tree-optimization/68559
451 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
452 peeling for gap checks ...
453 * tree-vect-stmts.c (vectorizable_load): ... here and relax
454 for SLP.
455 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
456 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
457
458 2015-11-27 Nathan Sidwell <nathan@acm.org>
459
460 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
461 declare.
462 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
463 (nvptx_record_fndecl): Don't return value, remove force
464 argument. Require fndecl.
465 (nvptx_record_libfunc): New.
466 (nvptx_record_needed_decl): Deteermine how to record decl here.
467 (nvptx_maybe_record_fnsym): New.
468 (nvptx_expand_call): Don't record libfuncs here,
469 (nvptx_maybe_convert_symbolic_operand): Use
470 nvptx_maye_record_fnsym.
471 (nvptx_assemble_integer): Reimplement with single switch.
472 (nvptx_output_call_insn): Register libfuncs here.
473 (nvptx_file_end): Adjust nvptx_record_fndecl call.
474 * config/nvptx/nvptx.md (expand_movdi): Don't call
475 nvptx_record_needed_decl.
476
477 2015-11-27 Richard Biener <rguenther@suse.de>
478
479 PR tree-optimization/68553
480 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
481 generation for 1:1 permutations.
482 (vect_transform_slp_perm_load): Detect 1:1 permutations.
483
484 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
485
486 * gimple.h (nonbarrier_call_p): Declare.
487 * gimple.c (nonbarrier_call_p): New function.
488 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
489 Also increment call phase for ASMs with vdef and potential barrier
490 calls.
491
492 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
493
494 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
495 multiple_sets.
496 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
497 are not modified by the final modified insns in the basic blocks.
498
499 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
500
501 PR rtl-optimization/68506
502 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
503 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
504 blocks.
505
506 2015-11-27 Martin Liska <mliska@suse.cz>
507
508 PR c++/68312
509 * vec.h (release_vec_vec): New function.
510
511 2015-11-27 Jakub Jelinek <jakub@redhat.com>
512
513 PR tree-optimization/68552
514 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
515 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
516 or whether v0 == v1.
517
518 2015-11-27 Martin Liska <mliska@suse.cz>
519
520 * tree-ssa-uninit.c: Fix whitespaces in the source file.
521 The change is just automatical.
522
523 2015-11-27 Martin Liska <mliska@suse.cz>
524
525 * tree-chkp.c (chkp_make_static_bounds): Release buffer
526 used for string.
527
528 2015-11-27 Martin Liska <mliska@suse.cz>
529
530 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
531 Do not release memory for comp_alias_ddrs.
532 * tree-vect-loop.c (destroy_loop_vec_info): Release
533 the memory for all loop_vec_info.
534
535 2015-11-27 Martin Liska <mliska@suse.cz>
536
537 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
538 of a local-scope vec.
539 (struct final_warning_record): Use auto_vec instead
540 of vec.
541
542 2015-11-27 Richard Biener <rguenther@suse.de>
543
544 PR tree-optimization/68553
545 * tree-vect-slp.c (vect_get_mask_element): Remove.
546 (vect_transform_slp_perm_load): Implement in a simpler way.
547
548 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
549
550 PR rtl-optimization/67753
551 PR rtl-optimization/64164
552 * function.c (assign_parm_setup_block): Right-shift
553 upward-padded big-endian args when bypassing the stack slot.
554
555 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
556
557 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
558 `-mcompact-branches='.
559 (MIPS Options): Likewise.
560
561 2015-11-26 Jakub Jelinek <jakub@redhat.com>
562
563 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
564
565 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
566
567 * doc/install.texi (Prerequisites): Increase ISL requirement to
568 0.14 or 0.15.
569
570 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
571
572 * config/aarch64/arm_neon.h
573 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
574 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
575 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
576 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
577 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
578 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
579 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
580 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
581 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
582 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
583 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
584 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
585
586 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
587
588 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
589 (vqrdmlahq_s16, vqrdmlahq_s32): New.
590 (vqrdmlsh_s16, vqrdmlsh_s32): New.
591 (vqrdmlshq_s16, vqrdmlshq_s32): New.
592
593 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
594
595 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
596 ARM_FEATURE_QRDMX.
597
598 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
599
600 PR debug/53927
601 * tree-nested.c (finalize_nesting_tree_1): Append a field to
602 hold the frame base address.
603 * dwarf2out.c (gen_subprogram_die): Generate for
604 DW_AT_static_link a location description that computes the value
605 of this field.
606
607 2015-11-26 Tom de Vries <tom@codesourcery.com>
608
609 revert:
610 2015-11-25 Tom de Vries <tom@codesourcery.com>
611
612 * cfgloop.c (find_single_latch): New function, factored out of ...
613 (flow_loops_find): ... here.
614 (verify_loop_structure): Improve verification of loop->latch.
615 * cfgloop.h (find_single_latch): Declare.
616 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
617
618 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
619
620 * config/aarch64/aarch64-simd-builtins.def:
621 Add missing changes from r230962.
622
623 2015-11-26 Nathan Sidwell <nathan@acm.org>
624
625 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
626 arg with name. Don't deal with split regs. Tweak formatting.
627 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
628 (nvptx_output_call_insn): Don't deal with split regs here.
629
630 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
631
632 * config/aarch64/aarch64-simd-builtins.def
633 (sqrdmlah, sqrdmlsh): New.
634 (sqrdmlah_lane, sqrdmlsh_lane): New.
635 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
636
637 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
638
639 * config/aarch64/aarch64-simd.md
640 (aarch64_sqmovun<mode>): Fix some white-space.
641 (aarch64_<sur>qmovun<mode>): Likewise.
642 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
643 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
644 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
645 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
646 (UNSPEC_SQRDMLSH): New.
647 (SQRDMLH_AS): New.
648 (rdma_as): New.
649
650 2015-11-26 Richard Biener <rguenther@suse.de>
651
652 PR tree-optimization/66721
653 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
654 iteration cost earlier. Re-do analysis without SLP when
655 vectorization using SLP fails and without has a chance to succeed.
656
657 2015-11-26 Richard Biener <rguenther@suse.de>
658
659 * genmatch.c (dt_simplify::gen_1): For generic wrap all
660 multi-result-use captures in a SAVE_EXPR.
661
662 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
663
664 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
665 (TARGET_SIMD_RDMA): New.
666
667 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668
669 * combine.c (subst): Do not return clobber of zero in widening mult
670 case. Just return x unchanged if it is a no-op substitution.
671
672 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
673
674 PR target/68416
675 * config/i386/i386.h (enum reg_class): Add
676 bounds registers to ALL_REGS.
677
678 2015-11-26 Jakub Jelinek <jakub@redhat.com>
679
680 PR tree-optimization/68128
681 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
682 * gimplify.c: Include gimple-walk.h.
683 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
684 (omp_notice_variable): Set flags to n->value if n already
685 exists in target region, but we need to jump to do_outer.
686 (omp_shared_to_firstprivate_optimizable_decl_p,
687 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
688 functions.
689 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
690 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
691 not modified in the body. Call omp_mark_stores for outer
692 contexts on OMP_CLAUSE_SHARED clauses if they could be written
693 in the body or on OMP_CLAUSE_LASTPRIVATE.
694 (gimplify_adjust_omp_clauses): Add body argument, call
695 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
696 Set OMP_CLAUSE_SHARED_READONLY
697 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
698 not modified in the body. Call omp_mark_stores for outer
699 contexts on OMP_CLAUSE_SHARED clauses if they could be written
700 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
701 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
702 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
703 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
704 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
705 * tree-nested.c (convert_nonlocal_omp_clauses,
706 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
707 non-local vars or local vars referenced from nested routines.
708 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
709 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
710 TREE_READONLY, don't call use_pointer_for_field with non-NULL
711 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
712
713 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
714
715 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
716 about signed left shift stronger and clarify the cases when they're
717 broken.
718
719 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
720 Bernd Schmidt <bschmidt@redhat.com>
721
722 PR rtl-optimization/67226
723 * calls.c (store_one_arg): Take into account
724 crtl->args.pretend_args_size when checking for overlap between
725 arg->value and argblock + arg->locate.offset during sibcall
726 optimization.
727
728 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
729
730 * config/aarch64/aarch64.md (cbranch<mode>4): Use
731 aarch64_fp_compare_operand.
732 (store_pairsf): Use aarch64_reg_or_fp_zero.
733 (store_pairdf): Likewise.
734 (cstore<mode>4): Use aarch64_fp_compare_operand.
735 (cmov<mode>6): Likewise.
736 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
737
738 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
739 Sebastian Pop <s.pop@samsung.com>
740
741 PR tree-optimization/68453
742 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
743 not redirect edges already pointing to their destination.
744 (translate_isl_ast_node_for): Split edges after loops to create
745 basic blocks for close phi nodes. Save merge points at the end of
746 a loop guard.
747 (translate_isl_ast_node_if): Save merge points at the end of the
748 if region.
749 (add_close_phis_to_outer_loops): New.
750 (add_close_phis_to_merge_points): New.
751 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
752 (copy_bb_and_scalar_dependences): Do not split basic blocks on
753 loop close phi locations.
754
755 2015-11-25 Jan Hubicka <jh@suse.cz>
756
757 * ipa-visibility.c (cgraph_externally_visible_p,
758 varpool_node::externally_visible_p): When doing incremental linking,
759 hidden symbols may be still used later.
760 (update_visibility_by_resolution_info): Do not drop weak during
761 incremental link.
762 (function_and_variable_visibility): Fix formating.
763 * flag-types.h (lto_linker_output): Declare.
764 * common.opt 9flag_incremental_link): New flag.
765
766 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
767
768 * config/rs6000/constraints.md (wb constraint): New constraint for
769 ISA 3.0 d-form scalar addressing.
770
771 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
772 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
773 Altivec registers. Add wb constraint for Altivec registers with
774 D-form addressing. If we have ISA 3.0 d-form support, undo
775 secondary reload support for using FPR registers if we want to do
776 D-form addressing.
777 (rs6000_debug_reg_global): Likewise.
778 (rs6000_setup_reg_addr_masks): Likewise.
779 (rs6000_init_hard_regno_mode_ok): Likewise.
780 (rs6000_secondary_reload): Likewise.
781 (rs6000_preferred_reload_class): Likewise.
782 (rs6000_secondary_reload_class): Likewise.
783
784 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
785 constraint.
786
787 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
788 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
789 (f32_lm2): Likewise.
790 (f32_li2): Likewise.
791 (f32_sr2): Likewise.
792 (f32_sm2): Likewise.
793 (f32_si2): Likewise.
794 (f64_p9): Likewise.
795 (extendsfdf2_fpr): Likewise.
796 (mov<mode>_hardfloat): Likewise.
797 (mov<mode>_hardfloat32): Likewise.
798 (mov<mode>_hardfloat64): Likewise.
799
800 * doc/md.texi (RS/6000 constraints): Document wb constraint.
801 Fixup we constraint documentation.
802
803 2015-11-25 Tom de Vries <tom@codesourcery.com>
804
805 * omp-low.c (pass_expand_omp_ssa::clone): New function.
806 * passes.def: Add pass_oacc_kernels pass group.
807 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
808
809 2015-11-25 Tom de Vries <tom@codesourcery.com>
810
811 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
812 Declare.
813 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
814 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
815 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
816 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
817
818 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
819
820 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
821 TV_IPA_LTO_OUTPUT): New.
822 * lto-compress.c: Include timevar.h
823 (lto_end_compression, lto_end_uncompression): Add timers.
824 * langhooks.c: Include timevar.h
825 (lhd_append_data): Add timer.
826
827 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
828
829 * varasm.c (default_elf_asm_output_limited_string,
830 default_elf_asm_output_ascii): Replace fprintf by putc.
831
832 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
833
834 PR rtl-optimization/67954
835 * lra-constraints.c (curr_insn_transform): Add check on scratch
836 pseudo when change class to NO_REGS. Add an assert.
837
838 2015-11-25 Nathan Sidwell <nathan@acm.org>
839
840 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
841 constraint is 'n'.
842 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
843 number.
844 (nvptx_write_function_decl): Number args from 0.
845 (nvptx_declare_function_name): Likewise.
846 (nvptx_function_incoming_arg): Likewise.
847 (nvptx_output_call_insn): Correct formatting.
848
849 2015-11-25 David Sherwood <david.sherwood@arm.com>
850
851 * optabs.def: Add new optabs fmax_optab/fmin_optab.
852 * internal-fn.def: Add new fmax/fmin internal functions.
853 * doc/md.texi: Add fmin and fmax patterns.
854
855 2015-11-25 Jason Merrill <jason@redhat.com>
856
857 PR c++/68385
858 * tree.c (integer_zerop, integer_onep, integer_each_onep)
859 (integer_all_onesp, integer_minus_onep, integer_pow2p)
860 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
861 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
862
863 2015-11-25 Richard Biener <rguenther@suse.de>
864
865 PR middle-end/68528
866 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
867 on stripped operands.
868
869 2015-11-25 Nathan Sidwell <nathan@acm.org>
870
871 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
872 (nvptx_declare_function_name): Move assignments next to register
873 declarations, and process params here.
874
875 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
876
877 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
878 both the symbol and the "dot" symbol for function descriptors. Fix
879 inversion for rename of symbols with dollar sign.
880
881 2015-11-25 Tom de Vries <tom@codesourcery.com>
882
883 * cfgloop.c (find_single_latch): New function, factored out of ...
884 (flow_loops_find): ... here.
885 (verify_loop_structure): Improve verification of loop->latch.
886 * cfgloop.h (find_single_latch): Declare.
887 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
888
889 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
890
891 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
892 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
893 (STARTFILE_SPEC): Use %(startfile_vtv).
894 (ENDFILE_SPEC): Use %(endfile_vtv).
895 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
896 ENDFILE_VTV_SPEC.
897
898 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
899
900 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
901
902 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
903 noce_can_store_speculate): Delete.
904 (noce_process_if_block): Don't try to handle single MEM stores.
905 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
906 * alias.c (memory_must_be_modified_in_insn_p): Delete.
907
908 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
909
910 PR rtl-optimization/68435
911 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
912 for conflicts between a, b and the set destinations.
913
914 2015-11-25 Richard Biener <rguenther@suse.de>
915
916 PR tree-optimization/68517
917 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
918 Properly handle zero-sized types.
919
920 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
921
922 * ipa-inline-analysis.c: Include gimplify.h
923 (set_cond_stmt_execution_predicate,
924 set_switch_stmt_execution_predicate): Be sure to not leak locations
925 to function body.
926
927 2015-11-25 Jakub Jelinek <jakub@redhat.com>
928
929 PR target/67089
930 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
931 match_uaddsub_overflow): New functions.
932 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
933
934 2015-11-25 Richard Biener <rguenther@suse.de>
935
936 PR tree-optimization/68492
937 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
938 op from scalars after operand swapping.
939
940 2015-11-25 Richard Biener <rguenther@suse.de>
941
942 PR tree-optimization/68502
943 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
944 check that the step is a multiple of the type size.
945
946 2015-11-24 Michael Collison <michael.collison@linaro.org>
947
948 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
949 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
950 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
951
952 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
953
954 * frame-header-opt.c (gate): Check for optimize > 0.
955 (has_inlined_assembly): New function.
956 (needs_frame_header_p): Remove is_leaf_function check,
957 add argument type check.
958 (callees_functions_use_frame_header): Add is_leaf_function
959 and has_inlined_assembly calls..
960 (set_callers_may_not_allocate_frame): New function.
961 (frame_header_opt): Add is_leaf_function call, add
962 set_callers_may_not_allocate_frame call.
963 * config/mips/mips.c (mips_compute_frame_info): Add check
964 to see if callee saved regs can be put in frame header.
965 (mips_expand_prologue): Add check to see if step1 is zero,
966 fix cfa restores when using frame header to store regs.
967 (mips_can_use_return_insn): Check to see if registers are
968 stored in frame header.
969 * config/mips/mips.h (machine_function): Add
970 callers_may_not_allocate_frame and
971 use_frame_header_for_callee_saved_regs fields.
972
973 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
974
975 PR rtl-optimization/68520
976 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
977 its bit was already set in BB_WITH.
978
979 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
980
981 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
982 double check that type is main variant.
983 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
984 variant.
985 (verify_type_variant): Verify that variants have no
986 TYPE_ALIAS_SET_KNOWN_P set
987 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
988 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
989 only for main variants; stream TYPE_ALIAS_SET as a bit.
990 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
991 accordingly.
992
993 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
994
995 * tree.c (make_vector_type): Properly compute canonical type of the
996 main variant.
997 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
998 a main variant.
999
1000 2015-11-24 Nathan Sidwell <nathan@acm.org>
1001
1002 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1003 VOIDmode, don't alter incoming mode.
1004 (nvptx_split_reg_p): Delete.
1005 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1006 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1007 maybe_split_mode calls.
1008 (nvptx_print_operand): Use maybe_split_mode.
1009
1010 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1011
1012 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1013 only for types where LTO sets them.
1014 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1015 (make_vector_type): Likewise.
1016 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1017 * tree.h (canonical_type_used_p): New inline.
1018 * alias.c (get_alias_set): Handle structural equality for all
1019 types that pass canonical_type_used_p.
1020 (record_component_aliases): Look through all types with
1021 record_component_aliases for possible pointers; sanity check that
1022 the alias sets match.
1023
1024 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1025
1026 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1027
1028 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1029
1030 * tree.c (free_node): New function.
1031 (type_hash_canon): Use it.
1032 * tree.h (free_node): Declare.
1033
1034 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1035 Michael Meissner <meissner@linux.vnet.ibm.com>
1036
1037 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1038 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1039 are used on SF values, and ISA 2.06 instructions on DF values.
1040 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1041 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1042 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1043 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1044 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1045 (fre<Fs>): Use <Fv2> instead of <Fv>.
1046 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1047 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1048 (xsrdpi<mode>): Add support for the lround function.
1049 (lround<mode>di2): Likewise.
1050 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1051 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1052 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1053 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1054
1055 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1056 Sebastian Pop <s.pop@samsung.com>
1057
1058 PR tree-optimization/67984
1059 * graphite-isl-ast-to-gimple.c (is_constant): New.
1060 (get_rename): Call is_constant.
1061 (get_new_name): Same.
1062
1063 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1064 Sebastian Pop <s.pop@samsung.com>
1065
1066 * graphite-dependences.c: Only include graphite.h.
1067 * graphite-isl-ast-to-gimple.c: Same.
1068 * graphite-optimize-isl.c: Same.
1069 * graphite-poly.c: Same.
1070 * graphite-scop-detection.c: Same.
1071 * graphite-sese-to-poly.c: Same.
1072 * graphite.c: Same.
1073 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1074 * graphite-poly.h: Same.
1075 * graphite-scop-detection.h: Same.
1076 * graphite.h: New.
1077
1078 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1079
1080 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1081 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1082 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1083 function already takes care of checking what it can emit.
1084
1085 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1086
1087 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1088 (-fPIC): Add AArch64.
1089
1090 2015-11-24 Tom de Vries <tom@codesourcery.com>
1091
1092 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1093 (pass_lim::execute): Allow to run outside pass_tree_loop.
1094
1095 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1096
1097 * config/aarch64/aarch64.md (add<mode>3):
1098 Block early expansion into 2 add instructions.
1099 (add<mode>3_pluslong): New pattern to combine complex
1100 immediates into 2 additions.
1101
1102 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1103
1104 PR target/66217
1105 PR target/67677
1106 PR target/68332
1107 * config/rs6000/predicates.md (and_operand): Check that the operand
1108 is a const_int before calling rs6000_is_valid_and_mask.
1109
1110 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1111
1112 * config/aarch64/aarch64.md (*condjump): Rename to...
1113 (condjump): ... This.
1114 (*compare_condjump<mode>): New define_insn_and_split.
1115 (*compare_cstore<mode>_insn): Likewise.
1116 (*cstore<mode>_insn): Rename to...
1117 (cstore<mode>_insn): ... This.
1118 * config/aarch64/iterators.md (CMP): Handle ne code.
1119 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1120
1121 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1122
1123 PR target/68497
1124 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1125 -fno-checking case.
1126
1127 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1128
1129 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1130 (val_ssa_equiv_hash_traits::remove): Likewise.
1131 (pass_uncprop::execute): Adjust.
1132
1133 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1134
1135 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1136 destructors on values that are being removed.
1137 * mem-stats.h (hash_map): Pass type of values to
1138 simple_hashmap_traits.
1139 * tree-sra.c (sra_deinitialize): Remove work around for hash
1140 maps not destructing values.
1141 * genmatch.c (sinfo_hashmap_traits): Adjust.
1142 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1143
1144 2015-11-24 Richard Biener <rguenther@suse.de>
1145 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1146
1147 PR middle-end/68375
1148 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1149 bogus assertion.
1150
1151 2015-11-24 Jakub Jelinek <jakub@redhat.com>
1152
1153 PR target/68483
1154 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1155 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1156 returns false.
1157 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1158 whenever first is nelt or above. Don't mask expected with
1159 2 * nelt - 1.
1160
1161 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1162
1163 PR c/68337
1164 * gimple-fold.c: Include ipa-chkp.h.
1165 (gimple_fold_builtin_memory_op): Don't fold call if we
1166 are going to instrument it and it may copy pointers.
1167
1168 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
1169 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1170
1171 PR rtl-optimization/68194
1172 PR rtl-optimization/68328
1173 PR rtl-optimization/68185
1174 * ree.c (combine_reaching_defs): Reject copy_needed case if
1175 copies_list is not empty.
1176
1177 2015-11-24 Richard Biener <rguenther@suse.de>
1178
1179 PR middle-end/68221
1180 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1181 use mem_ref_offset.
1182
1183 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1184
1185 PR rtl-optimization/68381
1186 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1187 is poisoned.
1188
1189 2015-11-23 Nick Clifton <nickc@redhat.com>
1190 Jeff Law <law@redhat.com>
1191
1192 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1193 the source/dest of the target extension require a different number of
1194 hard registers.
1195 (combine_set_extension): Remove #if 0 code.
1196
1197 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1198 Sebastian Pop <s.pop@samsung.com>
1199
1200 PR tree-optimization/68314
1201 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1202 * graphite-poly.c (new_scop): Remove original_schedule.
1203 (free_scop): Same.
1204 * graphite-poly.h (struct scop): Same.
1205 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1206 (build_pbb_scattering_polyhedrons): Add back.
1207 (build_scop_minimal_scattering): Remove.
1208 (build_scop_scattering): Add back.
1209 (build_scop_original_schedule): Remove.
1210 (build_poly_scop): Revert to only call build_scop_scattering.
1211
1212 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1213 Sebastian Pop <s.pop@samsung.com>
1214
1215 PR tree-optimization/68493
1216 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1217 missing early return when codegen_error is set.
1218
1219 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1220 Sebastian Pop <s.pop@samsung.com>
1221
1222 PR tree-optimization/68279
1223 * graphite-poly.c (new_scop): Remove poly_scop_p.
1224 * graphite-poly.h (struct scop): Same.
1225 (build_poly_scop): Declare.
1226 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1227 (cleanup_loop_iter_dom): New.
1228 (build_loop_iteration_domains): Early return when scev analysis fails.
1229 (create_pw_aff_from_tree): Same.
1230 (add_condition_to_pbb): Same.
1231 (add_conditions_to_domain): Same.
1232 (add_conditions_to_constraints): Same.
1233 (build_scop_iteration_domain): Same.
1234 (build_poly_scop): Same. Do not initialize poly_scop_p.
1235 * graphite-sese-to-poly.h: Remove.
1236 * graphite.c: Do not include graphite-sese-to-poly.h.
1237 (graphite_transform_loops): Stop before code generation when
1238 build_poly_scop fails.
1239 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1240 analysis.
1241
1242 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1243 Sebastian Pop <s.pop@samsung.com>
1244
1245 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1246 Remove call to update_ssa.
1247 * sese.c (sese_insert_phis_for_liveouts): Same.
1248
1249 2015-11-23 Marek Polacek <polacek@redhat.com>
1250
1251 PR tree-optimization/68455
1252 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1253 extract_range_from_multiplicative_op_1 on symbolic ranges.
1254
1255 2015-11-23 Richard Henderson <rth@redhat.com>
1256
1257 * optabs.def (uaddv4_optab, usubv4_optab): New.
1258 * internal-fn.c (expand_addsub_overflow): Use them.
1259 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1260
1261 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1262 to reversed operands.
1263 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1264 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1265 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1266 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1267 (*add<SWI>3_cconly_overflow_2): New.
1268 (*add<SWI>3_cc_overflow_2): New.
1269 (*addsi3_zext_cc_overflow_2): New.
1270
1271 2015-11-23 Richard Biener <rguenther@suse.de>
1272
1273 PR tree-optimization/68465
1274 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1275 Also record equalities from multiple predecessor blocks if
1276 only one non-backedge exists.
1277
1278 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1279
1280 PR target/68363
1281 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1282 that are not INSN_P.
1283
1284 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1285
1286 * config/aarch64/aarch64-builtins.c
1287 (aarch64_gimple_fold_builtin): Fold FMULX.
1288
1289 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1290
1291 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1292 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1293 after GCC header files and before graphite header files.
1294 * graphite-dependences.c: Same.
1295 * graphite-isl-ast-to-gimple.c: Same.
1296 * graphite-optimize-isl.c: Same.
1297 * graphite-poly.c: Same.
1298 * graphite-scop-detection.c: Same.
1299 * graphite-sese-to-poly.c: Same.
1300 * graphite.c: Same.
1301
1302 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1303 Jiong Wang <jiong.wang@arm.com>
1304
1305 PR tree-optimization/68317
1306 PR tree-optimization/68326
1307 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1308 final min and max are not infinity.
1309
1310 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1311 Richard Biener <rguenther@suse.de>
1312
1313 PR tree-optimization/68327
1314 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1315 compute vectype for non-relevant mask producers.
1316 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1317 relevance earlier.
1318
1319 2015-11-23 Tom de Vries <tom@codesourcery.com>
1320
1321 PR tree-optimization/68460
1322 * tree-parloops.c (gather_scalar_reductions): Also call
1323 free_stmt_vec_info_vec if simple_loop_info == NULL.
1324
1325 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1326
1327 * opts.c (finish_options): Allow -fsanitize-recover=address for
1328 userspace sanitization.
1329 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1330 * doc/invoke.texi (fsanitize-recover): Update documentation.
1331
1332 2015-11-23 Tom de Vries <tom@codesourcery.com>
1333
1334 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1335
1336 2015-11-23 Richard Biener <rguenther@suse.de>
1337
1338 PR tree-optimization/68445
1339 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1340 two different strides.
1341
1342 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1343
1344 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1345 * config/s390/s390.c (s390_check_symref_alignment): Use new
1346 symref flags, early abort on wrong alignment
1347 (s390_secondary_reload): Use new symref flags.
1348 (s390_encode_section_info): Likewise.
1349 * config/s390/predicates.md: Likewise.
1350
1351 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1352
1353 PR target/68390
1354 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1355 for indirect function call.
1356
1357 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1358
1359 * config/aarch64/aarch64-simd.md
1360 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1361 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1362 (*aarch64_mulx_elt_to_64v2df): Likewise.
1363 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1364 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1365 (vmulx_lane_f64): Likewise.
1366 (vmulxq_lane_f32): Refactored & moved.
1367 (vmulxq_lane_f64): Likewise.
1368 (vmulx_laneq_f32): New.
1369 (vmulx_laneq_f64): Likewise.
1370 (vmulxq_laneq_f32): Likewise.
1371 (vmulxq_laneq_f64): Likewise.
1372 (vmulxs_lane_f32): Likewise.
1373 (vmulxs_laneq_f32): Likewise.
1374 (vmulxd_lane_f64): Likewise.
1375 (vmulxd_laneq_f64): Likewise.
1376
1377 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1378
1379 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1380 In LTO we do not compute TYPE_CANONICAL of pointers.
1381 (gimple_canonical_types_compatible_p): Improve coments; sanity check
1382 that pointers do not have canonical type that would make us believe
1383 they are different.
1384 * alias.c (get_alias_set): Do structural type equality on pointers;
1385 enable pointer path for LTO; also glob pointer to vector with pointer
1386 to vector element; glob pointers and references for LTO; do more strict
1387 sanity checking about build_pointer_type returning the canonical type
1388 which is also the main variant.
1389 (record_component_aliases): When component type is pointer and we
1390 do LTO; record void_type_node alias set.
1391
1392 2015-11-21 Nathan Sidwell <nathan@acm.org>
1393
1394 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1395
1396 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1397 leading blank line.
1398 (write_func_decl_from_insn): Likewise.
1399 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1400 (nvptx_file_end): Likewise.
1401 (nvptx_function_end): Undent output.
1402 (nvptx_expand_call): Fix formatting.
1403 (nvptx_output_call_insn): Indent output.
1404 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1405 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1406
1407 2015-11-21 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR debug/66432
1410 * tree-inline.c (copy_debug_stmt): If
1411 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1412 in decl_debug_args, don't call remap_gimple_op_r on it.
1413
1414 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1415
1416 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1417 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1418 Check that all record types are complete.
1419 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1420 compare alias sets for types w/o alias sets.
1421
1422 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1423
1424 * config/sparc/sparc.md (umulxhi_vis): Move around.
1425 (*umulxhi_sp64): Likewise.
1426 (umulxhi_v8plus): Likewise.
1427 (xmulx_vis): Likewise.
1428 (*xmulx_sp64): Likewise.
1429 (xmulx_v8plus): Likewise.
1430 (xmulxhi_vis): Likewise.
1431 (*xmulxhi_sp64): Likewise.
1432 (xmulxhi_v8plus): Likewise.
1433
1434 2015-11-20 David Malcolm <dmalcolm@redhat.com>
1435
1436 PR 62314
1437 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1438 (class layout): Update comment
1439 (layout::print_any_fixits): New method.
1440 (layout::move_to_column): New method.
1441 (diagnostic_show_locus): Add call to layout.print_any_fixits.
1442
1443 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1444
1445 PR middle-end/68221
1446 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1447 has non-zero bias, subtract it in integer type instead of
1448 pointer plus of negated bias.
1449
1450 PR middle-end/68339
1451 * omp-low.c (expand_simd_clones): Call node->get_body () before
1452 allocating stuff in GC.
1453
1454 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
1455
1456 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1457
1458 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
1459
1460 * config/aarch64/aarch64.md (predicated): Copy attribute from
1461 "arm.md".
1462 * config/arm/arm.md (predicated): Added description.
1463
1464 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1465
1466 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1467 for unaligned_access.
1468 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1469 from matching condition.
1470 (unaligned_loadhis): Likewise.
1471 (unaligned_loadhiu): Likewise.
1472 (unaligned_storesi): Likewise.
1473 (unaligned_storehi): Likewise.
1474
1475 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1476
1477 PR target/68149
1478 * config/arm/arm.md (unaligned_loaddi): Delete.
1479 (unaligned_storedi): Likewise.
1480 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1481 unaligned DImode memory ops. Instead perform two back-to-back
1482 unaligned SImode ops.
1483
1484 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
1485 James Norris <jnorris@codesourcery.com>
1486
1487 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1488 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1489
1490 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1491
1492 PR tree-optimization/68413
1493 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1494 evolution base
1495 (vectorizable_reduction): Use cached base
1496
1497 2015-11-20 Tom de Vries <tom@codesourcery.com>
1498
1499 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1500 dump-file string.
1501 (try_create_reduction_list): Same. Fix typo in dump-file string.
1502
1503 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1504
1505 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1506 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1507 glitch in entries for cbranch4 and jump.
1508
1509 2015-11-20 Tom de Vries <tom@codesourcery.com>
1510
1511 PR tree-optimization/68373
1512 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1513 of ...
1514 (scev_const_prop): ... here.
1515 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1516 * tree-parloops.c (try_create_reduction_list): Call
1517 final_value_replacement_loop.
1518
1519 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1520
1521 PR tree-optimization/52272
1522 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1523 (struct iv_common_cand_hasher): New struct.
1524 (iv_common_cand_hasher::hash): New function.
1525 (iv_common_cand_hasher::equal): New function.
1526 (struct ivopts_data): New fields, iv_common_cand_tab and
1527 iv_common_cands.
1528 (tree_ssa_iv_optimize_init): Initialize above fields.
1529 (record_common_cand, common_cand_cmp): New functions.
1530 (add_iv_candidate_derived_from_uses): New function.
1531 (add_iv_candidate_for_use): Record iv_common_cands derived from
1532 iv use in hash table, instead of adding candidates directly.
1533 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1534 (record_important_candidates): Add important candidates to iv uses'
1535 related_cands. Always keep related_cands for future use.
1536 (try_add_cand_for): Use iv uses' related_cands.
1537 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1538 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1539
1540 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1541
1542 * config/s390/s390.md ("bswaphi2"): New pattern.
1543
1544 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1545
1546 * config/s390/s390.md (GPR1_REGNUM): New constant.
1547 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1548 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1549 ("trunc<BFP:mode><DFP_ALL:mode>2")
1550 ("trunc<DFP_ALL:mode><BFP:mode>2")
1551 ("*extend<BFP:mode><DFP_ALL:mode>2")
1552 ("*extend<DFP_ALL:mode><BFP:mode>2")
1553 ("extend<BFP:mode><DFP_ALL:mode>2")
1554 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1555
1556 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1557 Sebastian Pop <s.pop@samsung.com>
1558
1559 PR tree-optimization/68428
1560 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1561 over basic blocks outside the scop.
1562
1563 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1564 Sebastian Pop <s.pop@samsung.com>
1565
1566 PR tree-optimization/68341
1567 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1568 gcc_unreachable and safely fail codegen.
1569 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1570 block with loop phi nodes.
1571 (edge_for_new_close_phis): New.
1572 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1573
1574 2015-11-19 Nathan Sidwell <nathan@acm.org>
1575
1576 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1577 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1578 (nvptx_declare_objec_name): Likewise.
1579
1580 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1581
1582 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1583 (get_false_edge_from_guard_bb): Move...
1584 * sese.c (get_false_edge_from_guard_bb)
1585 (get_true_edge_from_guard_bb): ... here.
1586
1587 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1588
1589 Revert
1590 2015-11-18 Alan Modra <amodra@gmail.com>
1591
1592 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1593 type-limits warning.
1594
1595
1596 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1597
1598 * tree.h (desired_pro_or_demotion_p): New function.
1599 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1600
1601 2015-11-19 Michael Matz <matz@suse.de>
1602
1603 * fwprop.c (update_uses): Use flag_checking instead of
1604 gcc_checking_assert.
1605
1606 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1607
1608 * doc/gty.texi (Support for inheritance): Fix missing
1609 parentheses in example.
1610
1611 2015-11-19 Marek Polacek <polacek@redhat.com>
1612
1613 PR tree-optimization/68431
1614 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1615
1616 2015-11-19 Nathan Sidwell <nathan@acm.org>
1617
1618 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1619 atomic_exchange<mode>): Input values can be immediates.
1620
1621 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1622
1623 PR lto/61313
1624 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1625 by the user.
1626 * configure: Regenerate.
1627
1628 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1629
1630 PR target/68408
1631 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1632 (DTORS_SECTION_ASM_OP): Likewise.
1633
1634 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1635
1636 PR rtl-optimization/68376
1637 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1638 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1639
1640 2015-11-19 Richard Biener <rguenther@suse.de>
1641
1642 PR middle-end/68117
1643 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1644 redirect_edge_var_map_destroy.
1645
1646 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1647
1648 PR target/67770
1649 * config/i386/i386.md (simple_return): Disable if
1650 ix86_static_chain_on_stack is true.
1651
1652 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1653
1654 PR bootstrap/68393
1655 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1656 destinations.
1657
1658 2015-11-18 Jeff Law <law@redhat.com>
1659
1660 PR tree-optimization/68198
1661 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1662 between threading a multi-way branch and a thread path that contains
1663 a multi-way branch. Disallow the case where a path contains a
1664 multi-way branch and does not thread a multi-way branch.
1665 (thread_through_all_blocks): Update comment.
1666
1667 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1668
1669 PR c/65083
1670 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1671 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1672 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1673 functions before defining as macros.
1674
1675 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1676
1677 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1678 (nvptx_record_offload_symbol): Remove code compensating for lack
1679 of default dimension handling.
1680 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1681
1682 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1683
1684 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1685 type to bool for early exit.
1686 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1687 in case of error.
1688 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1689 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1690 predecessor dominates the other.
1691 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1692 element is not found it returns -1.
1693 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1694 out early when codegen fails.
1695 (graphite_regenerate_ast_isl): Remove codegen region when pending
1696 phis could not be generated.
1697
1698 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1699
1700 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1701 semicolon.
1702 (class translate_isl_ast_to_gimple): Indentation.
1703 (translate_pending_phi_nodes): Comment.
1704 (add_parameters_to_ivs_params): Moved from sese.c inside class
1705 translate_isl_ast_to_gimple.
1706 (get_max_schedule_dimensions): Same.
1707 (generate_isl_context): Same.
1708 (extend_schedule): Same.
1709 (generate_isl_schedule): Same.
1710 (set_options): Same.
1711 (scop_to_isl_ast): Same.
1712 (is_valid_rename): Same.
1713 (get_rename): Same.
1714 (get_rename_from_scev): Same.
1715 (get_def_bb_for_const): Same.
1716 (get_new_name): Same.
1717 (collect_all_ssa_names): Same.
1718 (copy_loop_phi_args): Same.
1719 (copy_loop_phi_nodes): Same.
1720 (copy_loop_close_phi_args): Same.
1721 (copy_loop_close_phi_nodes): Same.
1722 (copy_cond_phi_args): Same.
1723 (copy_cond_phi_nodes): Same.
1724 (graphite_copy_stmts_from_block): Same.
1725 (copy_bb_and_scalar_dependences): Same.
1726 (add_phi_arg_for_new_expr): Same.
1727 (rename_uses): Same.
1728 (set_rename): Same.
1729 (set_rename_for_each_def): Same.
1730 (gsi_insert_earliest): Same.
1731 (rename_all_uses): Same.
1732 (codegen_error_p): Same.
1733 (print_isl_ast_node): Same.
1734 (translate_isl_ast_for_loop): Call function codegen_error_p.
1735 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1736 (translate_isl_ast_node_user): Make nb_loops const and release
1737 iv_map before exit.
1738 (get_true_edge_from_guard_bb): Move all free-functions early.
1739 (get_false_edge_from_guard_bb): Same.
1740 (bb_contains_loop_close_phi_nodes): Same.
1741 (bb_contains_loop_phi_nodes): Same.
1742 (is_loop_closed_ssa_use): Same.
1743 (number_of_phi_nodes): Same.
1744 (phi_uses_name): Same.
1745 (later_of_the_two): Same.
1746 (substitute_ssa_name):
1747 (get_edges): Same.
1748 (get_loc): Same.
1749 (get_loop_init_value): Same.
1750 (find_init_value): Same.
1751 (find_init_value_close_phi): Same.
1752 (ast_build_before_for): Same.
1753 (graphite_regenerate_ast_isl): Formatting changes.
1754 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1755 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1756 (set_rename): Same.
1757 (gsi_insert_earliest): Same.
1758 (collect_all_ssa_names): Same.
1759 (rename_all_uses): Same.
1760 (rename_uses): Same.
1761 (get_def_bb_for_const): Same.
1762 (copy_loop_phi_nodes): Same.
1763 (copy_loop_close_phi_args): Same.
1764 (copy_loop_close_phi_nodes): Same.
1765 (copy_cond_phi_args): Same.
1766 (copy_cond_phi_nodes): Same.
1767 (set_rename_for_each_def): Same.
1768 (graphite_copy_stmts_from_block): Same.
1769 (copy_bb_and_scalar_dependences): Same.
1770 (if_region_set_false_region): Same.
1771 (scev_analyzable_p): Same.
1772 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1773
1774 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1775
1776 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1777 commit from r125920 for FreeBSD.
1778
1779 2015-11-18 Jason Merrill <jason@redhat.com>
1780
1781 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1782 to be vecs of vecs.
1783 (add_finalizer): Split out from ggc_internal_alloc.
1784 (ggc_handle_finalizers): Run finalizers for the current depth.
1785 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1786
1787 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1788
1789 PR target/68410
1790 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1791 from || expression.
1792
1793 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1794
1795 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1796 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1797 and atmega328pb.
1798 * doc/avr-mmcu.texi: Regenerate.
1799
1800 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1801
1802 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1803 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1804 (struct bb_sese): New struct.
1805 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1806 (BB_GET_SESE, BB_SET_SESE): Define.
1807 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1808 (nvptx_find_sese): New.
1809 (nvptx_neuter_pars): Find SESE regions when optimizing.
1810
1811 2015-11-18 Alan Modra <amodra@gmail.com>
1812
1813 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1814 type-limits warning.
1815
1816 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1817
1818 PR bootstrap/68406
1819 * hash-set.h (hash_set::traverse): Expand Key typedef.
1820
1821 2015-11-18 Martin Liska <mliska@suse.cz>
1822
1823 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1824 options struct.
1825
1826 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1827
1828 * config/nvptx/nvptx.c (global_lock_var): New.
1829 (nvptx_global_lock_addr): New.
1830 (nvptx_lockless_update): Recomment and adjust for clarity.
1831 (nvptx_lockfull_update): New.
1832 (nvptx_reduction_update): New.
1833 (nvptx_goacc_reduction_fini): Call it.
1834
1835 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1836
1837 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1838 fields.
1839 * regrename.c (create_new_chain): Clear entire struct after allocating.
1840
1841 * config/i386/i386.opt (mmitigate-rop): New option.
1842 * doc/invoke.texi (mmitigate-rop): Document.
1843 * config/i386/i386.c: Include "regrename.h".
1844 (ix86_rop_should_change_byte_p, reg_encoded_number,
1845 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1846 static functions.
1847 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1848 * config/i386/i386.md (attr "modrm_class"): New.
1849 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1850 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1851 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1852
1853 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1854
1855 PR target/68405
1856 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1857
1858 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR tree-optimization/68157
1861 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1862 pow_stmt or mul_stmt from stmt's uid.
1863 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1864
1865 2015-11-18 Martin Liska <mliska@suse.cz>
1866
1867 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1868
1869 2015-11-18 Martin Liska <mliska@suse.cz>
1870
1871 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1872 Fix GNU coding style.
1873 (find_def_preds): Use auto_vec.
1874 (destroy_predicate_vecs): Change signature of the function.
1875 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1876 new signature.
1877 (simplify_preds_4): Use destroy_predicate_vecs instread of
1878 just releasing preds vector.
1879 (normalize_preds): Likewise.
1880 (is_use_properly_guarded): Use new signature of
1881 destroy_predicate_vecs.
1882 (find_uninit_use): Likewise.
1883
1884 2015-11-18 Richard Biener <rguenther@suse.de>
1885
1886 PR tree-optimization/67790
1887 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1888 IL rewrite for MINUS_EXPR reductions, rename back to ...
1889 (vect_is_simple_reduction): ... this, removing the wrapper.
1890 (vect_force_simple_reduction): Adjust.
1891 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1892 reductions and make use if reduc_index in all places. For
1893 the final reduction of MINUS_EXPR use PLUS_EXPR.
1894
1895 2015-11-18 Alan Modra <amodra@gmail.com>
1896
1897 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1898 to ld.
1899 * configure: Regenerate.
1900
1901 2015-11-17 Tom de Vries <tom@codesourcery.com>
1902
1903 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1904
1905 2015-11-17 Tom de Vries <tom@codesourcery.com>
1906
1907 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1908 uses of ssa_name with constant.
1909
1910 2015-11-17 Tom de Vries <tom@codesourcery.com>
1911
1912 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1913 something changed.
1914
1915 2015-11-17 Tom de Vries <tom@codesourcery.com>
1916
1917 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1918 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1919 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1920
1921 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1922
1923 * regrename.c (regrename_find_superclass): New function, code moved
1924 from ...
1925 (rename_chains): ... here. Call it.
1926 * regrename.h (regrename_find_superclass): Declare.
1927
1928 * regrename.c (record_out_operands): Terminate earlyclobbered
1929 operands here.
1930
1931 PR target/66785
1932 * regrename.c (record_operand_use): Keep track of failed operands
1933 and stop appending if we see any.
1934 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1935 n_chains to short.
1936
1937 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1938
1939 PR 48568
1940 * doc/extend.texi (Common Function Attributes) [visibility]:
1941 Add cross-references to matching variable and type attributes.
1942 (Common Variable Attributes) [visibility]: Add missing entry.
1943
1944 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1945
1946 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1947 entries that map directly to optabs.
1948
1949 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1950
1951 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1952 entries that map directly to optabs.
1953
1954 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1957 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1958 * tree-vectorizer.h (vectorizable_function): Delete.
1959 * tree-vect-stmts.c: Include internal-fn.h.
1960 (vectorizable_internal_function): New function.
1961 (vectorizable_function): Inline into...
1962 (vectorizable_call): ...here. Explicitly reject calls that read
1963 from or write to memory. Try using an internal function before
1964 falling back on the old vectorizable_function behavior.
1965
1966 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1967
1968 * target.def (builtin_vectorized_function): Take a combined_fn (in
1969 the form of an unsigned int) rather than a function decl.
1970 (builtin_md_vectorized_function): New.
1971 * targhooks.h (default_builtin_vectorized_function): Replace the
1972 fndecl argument with an unsigned int.
1973 (default_builtin_md_vectorized_function): Declare.
1974 * targhooks.c (default_builtin_vectorized_function): Replace the
1975 fndecl argument with an unsigned int.
1976 (default_builtin_md_vectorized_function): New function.
1977 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1978 New hook.
1979 * doc/tm.texi: Regenerate.
1980 * tree-vect-stmts.c (vectorizable_function): Update call to
1981 builtin_vectorized_function, also passing internal functions.
1982 Call builtin_md_vectorized_function for target-specific builtins.
1983 * config/aarch64/aarch64-protos.h
1984 (aarch64_builtin_vectorized_function): Replace fndecl argument
1985 with an unsigned int.
1986 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1987 (aarch64_builtin_vectorized_function): Update after above changes.
1988 Use CASE_CFN_*.
1989 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1990 fndecl argument with an unsigned int.
1991 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1992 (arm_builtin_vectorized_function): Update after above changes.
1993 Use CASE_CFN_*.
1994 * config/i386/i386.c: Include case-cfn-macros.h
1995 (ix86_veclib_handler): Take a combined_fn rather than a
1996 built_in_function.
1997 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1998 mathfn_built_in rather than calling builtin_decl_implicit directly.
1999 (ix86_builtin_vectorized_function) Update after above changes.
2000 Use CASE_CFN_*.
2001 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2002 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2003 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2004 than calling builtin_decl_implicit directly.
2005 (rs6000_builtin_vectorized_function): Update after above changes.
2006 Use CASE_CFN_*. Move BUILT_IN_MD to...
2007 (rs6000_builtin_md_vectorized_function): ...this new function.
2008 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2009
2010 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2011
2012 * tree-vect-patterns.c: Include internal-fn.h.
2013 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2014
2015 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2016
2017 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2018 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2019
2020 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2021
2022 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2023 (expand_builtin_mathfn_2): Delete.
2024 (expand_builtin): Remove handling of functions with
2025 internal function equivalents.
2026 * internal-fn.def (SET_EDOM): New internal function.
2027 * internal-fn.h (set_edom_supported_p): Declare.
2028 * internal-fn.c (expand_SET_EDOM): New function.
2029 (set_edom_supported_p): Likewise.
2030 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2031 Rewrite comment at head of file.
2032 (is_call_dce_candidate): Rename to...
2033 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2034 or gimple_call_builtin_p here.
2035 (edom_only_function): New function.
2036 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2037 from...
2038 (shrink_wrap_one_built_in_call): ...here.
2039 (can_use_internal_fn, use_internal_fn): New functions.
2040 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2041 for calls that have an lhs.
2042 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2043 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2044 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2045 calls with an lhs.
2046 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2047 at -O and above.
2048
2049 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2050
2051 * builtins.h (called_as_built_in): Declare.
2052 * builtins.c (called_as_built_in): Make external.
2053 * internal-fn.h (expand_internal_call): Define a variant that
2054 specifies the internal function explicitly.
2055 * internal-fn.c (expand_load_lanes_optab_fn)
2056 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2057 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2058 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2059 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2060 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2061 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2062 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2063 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2064 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2065 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2066 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2067 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2068 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2069 argument.
2070 (internal_fn_expanders): Update prototype.
2071 (expand_internal_call): Define a variant that specifies the
2072 internal function explicitly. Use it to implement the previous
2073 interface.
2074 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2075 functions as calls to internal functions.
2076
2077 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2078
2079 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2080 (generated_files): Likewise.
2081 (s-cfn-operators, cfn-operators.pd): New rules.
2082 (s-match): Depend on cfn-operators.pd.
2083 * gencfn-macros.c: Expand comment to describe -o behavior.
2084 (print_define_operator_list): New function.
2085 (main): Accept -o. Call print_define_operator_list.
2086 * genmatch.c (main): Add the current directory to the include path.
2087 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2088 instead.
2089
2090 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * doc/match-and-simplify.texi: Document the "null" identifier.
2093 * genmatch.c (id_base::NULL_ID): New kind.
2094 (null_id): New variable.
2095 (get_operator): Add a parameter that says whether null identifiers
2096 are allowed.
2097 (contains_id): New function.
2098 (lower_for): Skip substitutions that would have a null_id in
2099 either the match or the result.
2100 (parser::parse_for): Allow the null identifier to be used.
2101 (parser::parse_operator_list): Likewise.
2102 (main): Initialize null_id.
2103
2104 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2105
2106 * match.pd: Use HYPOT and COS rather than hypot and cos.
2107 Use CASE_CFN_* macros. Guard log/exp folds with
2108 SCALAR_FLOAT_TYPE_P.
2109 * genmatch.c (internal_fn): New enum.
2110 (fn_id::fn): Change to an unsigned int.
2111 (fn_id::fn_id): Accept internal_fn too.
2112 (add_builtin): Rename to...
2113 (add_function): ...this and turn into a template.
2114 (get_operator): Only try one variation if the original name fails.
2115 Only add _EXPR if the original name was all lower case.
2116 Try converting internal and built-in function names to their
2117 CFN equivalents.
2118 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2119 (dt_simplify::gen_1): Likewise.
2120 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2121 and get_call_combined_fn for generic.
2122 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2123 (decision_tree::gen): Likewise.
2124 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2125 Use add_function rather than add_builtin. Register internal
2126 functions too.
2127 * generic-match-head.c: Include case-cfn-macros.h.
2128 * gimple-fold.c (replace_stmt_with_simplification): Use
2129 gimple_call_combined_fn to test whether we can keep an
2130 existing call.
2131 * gimple-match.h (code_helper): Replace built_in_function
2132 with combined_fn.
2133 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2134 and case-fn-macros.h.
2135 (gimple_resimplify1): Use fold_const_call.
2136 (gimple_resimplify2, gimple_resimplify3): Likewise.
2137 (build_call_internal, build_call): New functions.
2138 (maybe_push_res_to_seq): Use them.
2139 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2140 rather than a built-in function.
2141 * tree.h (build_call_expr_internal_loc): Declare.
2142 (maybe_build_call_expr_loc): Likewise.
2143 * tree.c (build_call_expr_internal_loc_array): New function.
2144 (maybe_build_call_expr_loc): Likewise.
2145
2146 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2147
2148 * builtins.h (mathfn_built_in): Add a variant that takes
2149 a combined_fn.
2150 * builtins.c: Include case-cfn-macros.h.
2151 (CASE_MATHFN): Use CASE_CFN_*.
2152 (CASE_MATHFN_REENT): Use CFN_ codes.
2153 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2154 argument with a combined_fn.
2155 (mathfn_built_in): Add a variant that takes a combined_fn.
2156 (expand_builtin_int_roundingfn_2): Update callers accordingly.
2157 (fold_builtin_sincos, fold_builtin_classify): Likewise.
2158
2159 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2160
2161 * tree-vect-patterns.c: Include case-cfn-macros.h.
2162 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2163
2164 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2165
2166 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2167 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2168 (pass_cse_sincos::execute): Likewise.
2169
2170 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2171
2172 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2173 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2174 (decrement_power, acceptable_pow_call): Likewise.
2175 (attempt_builtin_copysign): Likewise.
2176
2177 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2178
2179 * tree-vrp.c: Include case-cfn-macros.h.
2180 (extract_range_basic): Switch on combined_fn rather than handling
2181 built-in functions and internal functions separately.
2182
2183 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2184
2185 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2186 than a built_in_function.
2187 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2188 a function decl.
2189 (integer_valued_real_call_p): Likewise.
2190 * fold-const.c: Include case-cfn-macros.h
2191 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2192 (negate_expr_p): Update accordingly.
2193 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2194 a function decl.
2195 (integer_valued_real_call_p): Likewise.
2196 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2197 (integer_valued_real_p): Likewise.
2198 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2199 to tree_call_nonnegative_warnv_p.
2200 (gimple_call_integer_valued_real_p): Likewise
2201 integer_valued_real_call_p.
2202 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2203 (backprop::process_builtin_call_use): Extend to combined_fn.
2204 (strip_sign_op_1): Likewise.
2205 (backprop::process_use): Don't check for built-in calls here.
2206 (backprop::execute): Likewise.
2207 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2208
2209 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2210
2211 * fold-const-call.h (fold_const_call): Replace built_in_function
2212 arguments with combined_fn arguments.
2213 * fold-const-call.c: Include case-cfn-macros.h.
2214 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2215 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2216 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2217 built_in_function arguments with combined_fn arguments.
2218 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2219 (fold_builtin_3): Update calls to fold_const_call.
2220
2221 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2224 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2225 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2226 (build/gencfn-macros$(build_exeext): New rules.
2227 (genprogerr): Add cfn-macros.
2228 * hash-set.h (hash_set): Use the traits value_type as the key.
2229 * gencfn-macros.c: New file.
2230
2231 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2232
2233 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2234 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2235 * builtins.c (associated_internal_fn): Handle them.
2236
2237 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2238
2239 * builtins.h (associated_internal_fn): Declare.
2240 (replacement_internal_fn): Likewise.
2241 * builtins.c: Include internal-fn.h
2242 (associated_internal_fn, replacement_internal_fn): New functions.
2243 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2244 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2245 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2246 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2247 (LDEXP): New functions.
2248 * internal-fn.c: Include recog.h.
2249 (unary_direct, binary_direct): New macros.
2250 (expand_direct_optab_fn): New function.
2251 (expand_unary_optab_fn): New macro.
2252 (expand_binary_optab_fn): Likewise.
2253 (direct_unary_optab_supported_p): Likewise.
2254 (direct_binary_optab_supported_p): Likewise.
2255
2256 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2257
2258 * coretypes.h (tree_pair): New type.
2259 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2260 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2261 * internal-fn.h (direct_internal_fn_info): New structure.
2262 (direct_internal_fn_array): Declare.
2263 (direct_internal_fn_p, direct_internal_fn): New functions.
2264 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2265 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2266 (mask_store_direct, store_lanes_direct): New macros.
2267 (direct_internal_fn_array) New array.
2268 (get_multi_vector_move): Return the optab handler without asserting
2269 that it is available.
2270 (expand_LOAD_LANES): Rename to...
2271 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2272 (expand_STORE_LANES): Rename to...
2273 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2274 (expand_MASK_LOAD): Rename to...
2275 (expand_mask_load_optab_fn): ...this and add an optab argument.
2276 (expand_MASK_STORE): Rename to...
2277 (expand_mask_store_optab_fn): ...this and add an optab argument.
2278 (direct_internal_fn_types, direct_optab_supported_p)
2279 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2280 (direct_internal_fn_supported_p): New functions.
2281 (direct_mask_load_optab_supported_p): New macro.
2282 (direct_load_lanes_optab_supported_p): Likewise.
2283 (direct_mask_store_optab_supported_p): Likewise.
2284 (direct_store_lanes_optab_supported_p): Likewise.
2285
2286 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2287
2288 * tree-core.h (internal_fn): Move immediately after the definition
2289 of built_in_function.
2290 (combined_fn): New enum.
2291 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2292 (internal_fn_p, as_internal_fn): New functions.
2293 (get_call_combined_fn, combined_fn_name): Declare.
2294 * tree.c (get_call_combined_fn): New function.
2295 (combined_fn_name): Likewise.
2296 * gimple.h (gimple_call_combined_fn): Declare.
2297 * gimple.c (gimple_call_combined_fn): New function.
2298
2299 2015-11-17 Martin Sebor <msebor@redhat.com>
2300
2301 PR c++/68308
2302 * cp/init.c (build_new_1): Check for expression constness
2303 the right way.
2304
2305 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2306
2307 PR target/53587
2308 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2309 option list.
2310 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2311 discussion of the Microsoft structure layout details here from
2312 its former home in extend.texi.
2313 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2314 discussion with pointer to its new location. Add cross-reference
2315 to corresponding type attributes.
2316 (x86 Type Attributes): Add cross-references to command-line options
2317 and variable attributes.
2318
2319 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2320
2321 PR middle-end/68134
2322 * targhooks.c (default_get_mask_mode): Filter out
2323 scalar modes returned by mode_for_vector.
2324
2325 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2326
2327 PR target/68143
2328 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2329 offset from dstbase and use it appropriately in
2330 adjust_automodify_address.
2331 (arm_block_set_aligned_vect): Likewise.
2332
2333 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2334
2335 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2336 (MULTILIB_DIRNAMES): Adjust accordingly.
2337
2338 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2339
2340 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2341 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2342 * config/aarch64/aarch64-tune.md: Regenerate.
2343 * doc/invoke.texi (-mcpu): Add Cortex-A35
2344
2345 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2346
2347 PR target/68263
2348 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2349 to 32 for IAMCU.
2350 * config/i386/sse.md (*mov<mode>_internal): Always enable
2351 AVX and SSE unaligned moves for IAMCU.
2352
2353 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2354
2355 * tree-if-conv.c: Include varasm.h
2356 (ref_DR_map): Define.
2357 (baseref_DR_map): Like wise
2358 (struct ifc_dr): Add new tree predicate field.
2359 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2360 (memrefs_read_or_written_unconditionally): Remove.
2361 (write_memrefs_written_at_least_once): Remove.
2362 (ifcvt_memrefs_wont_trap): Use hash maps to query
2363 unconditional read/written information.
2364 (if_convertible_loop_p_1): Initialize hash maps and predicates
2365 before hashing data references and delete hashmaps at the end.
2366
2367 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2368
2369 PR 56036
2370 * doc/invoke.texi (Optimize Options): Move @end table to the right
2371 place.
2372
2373 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
2374
2375 PR 65129
2376 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2377 return value.
2378
2379 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2380
2381 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2382 128-bit types, just types that fit in a single vector.
2383 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2384
2385 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
2386
2387 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2388 in the user documentation.
2389 (define_peephole2, define_split): Similarly.
2390
2391 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2392
2393 * lto-streamer-out.c (write_global_references): Adjust integer type.
2394 (lto_output_decl_state_refs): Likewise.
2395
2396 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2397
2398 * config/arm/arm-cores.def (cortex-a35): New.
2399 * config/arm/arm.c (arm_cortex_a35_tune): New.
2400 * config/arm/arm-tables.opt: Regenerate.
2401 * config/arm/arm-tune.md: Regenerate.
2402 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2403 * config/arm/t-aprofile: Likewise.
2404 * doc/invoke.texi (-mcpu): Likewise.
2405
2406 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
2407
2408 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2409 and qdf24xx and xgene1 to match -march=armv8-a.
2410
2411 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2412
2413 PR rtl-optimization/68330
2414 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2415 of LSHIFTRT by a non-zero constant integer.
2416
2417 2015-11-16 Richard Biener <rguenther@suse.de>
2418
2419 PR tree-optimization/68306
2420 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2421 bogus copying from verify_data_ref_alignment and use continue
2422 instead of return.
2423
2424 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
2425 Kaz Kojima <kkojima@gcc.gnu.org>
2426
2427 PR target/68277
2428 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2429 operands[2].
2430 (*addsi3): Add another insn_and_split variant for reload.
2431
2432 2015-11-16 Richard Biener <rguenther@suse.de>
2433
2434 PR middle-end/68117
2435 * cfgexpand.c (pass_expand::execute): Destroy the edge
2436 redirection var map before setting RTL CFG hooks.
2437
2438 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
2439
2440 * config/i386/sse.md (reduc_splus_v8df): Rename to...
2441 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2442
2443 (reduc_splus_v4df): Rename to...
2444 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2445
2446 (reduc_splus_v2df): Rename to...
2447 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2448
2449 (reduc_splus_v16sf): Rename to...
2450 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2451
2452 (reduc_splus_v8sf): Rename to...
2453 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2454
2455 (reduc_splus_v4sf): Rename to...
2456 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2457
2458 (reduc_<code>_<mode>, all 3 variants): Rename each to...
2459 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2460
2461 (reduc_umin_v8hf): Rename to...
2462 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2463
2464 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2465
2466 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2467 without additional conditions.
2468 * doc/extend.texi (@item simd): New.
2469
2470 2015-11-16 Tom de Vries <tom@codesourcery.com>
2471
2472 * passes.c (first_pass_instance): Remove variable.
2473 (execute_todo): Remove setting of first_pass_instance.
2474 * tree-pass.h (first_pass_instance): Remove declaration.
2475
2476 2015-11-16 Tom de Vries <tom@codesourcery.com>
2477
2478 * passes.def: Add arg to pass_ccp pass instantiation.
2479 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
2480 instead of first_pass_instance.
2481 (do_ssa_ccp): Add and handle param nonzero_p.
2482 (pass_ccp::pass_ccp): Initialize nonzero_p.
2483 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
2484 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2485 (pass_ccp::nonzero_p): New private member.
2486
2487 2015-11-16 Tom de Vries <tom@codesourcery.com>
2488
2489 * passes.def: Add arg to pass_object_sizes pass instantiation.
2490 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2491 insert_min_max_p.
2492 (pass_object_sizes::set_pass_param): New member function. Set
2493 insert_min_max_p.
2494 (pass_object_sizes::insert_min_max_p): New private member.
2495 (pass_object_sizes::execute): Use insert_min_max_p instead of
2496 first_pass_instance.
2497
2498 2015-11-16 Tom de Vries <tom@codesourcery.com>
2499
2500 * passes.def: Add arg to pass_dominator pass instantiation.
2501 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2502 of comment.
2503 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2504 may_peel_loop_headers_p.
2505 (pass_dominator::set_pass_param): New member function. Set
2506 may_peel_loop_headers_p.
2507 (pass_dominator::may_peel_loop_headers_p): New private member.
2508 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2509 first_pass_instance.
2510
2511 2015-11-16 Tom de Vries <tom@codesourcery.com>
2512
2513 * passes.def: Add arg to pass_reassoc pass instantiation.
2514 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2515 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2516 of first_pass_instance.
2517 (execute_reassoc): Add and handle insert_powi_p parameter.
2518 (pass_reassoc::insert_powi_p): New private member.
2519 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2520 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2521 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2522
2523 2015-11-16 Tom de Vries <tom@codesourcery.com>
2524
2525 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2526 * gen-pass-instances.awk (handle_line): Same.
2527 * pass_manager.h (class pass_manager): Define and undefine
2528 NEXT_PASS_WITH_ARG.
2529 * passes.c (opt_pass::set_pass_param): New function.
2530 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2531 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2532 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2533 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2534 warn_array_bounds_p parameter.
2535 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2536 (pass_vrp::set_pass_param): New function.
2537 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2538 (pass_vrp::warn_array_bounds_p): New private member.
2539
2540 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2541
2542 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2543 (output_probe_stack_range): Rotate the loop and simplify.
2544
2545 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2546
2547 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2548 (output_probe_stack_range): Rotate the loop and simplify.
2549
2550 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2551
2552 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2553 an lea instruction when possible.
2554 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2555 (ix86_emit_probe_stack_range): Adjust.
2556 (output_probe_stack_range): Rotate the loop and simplify.
2557
2558 2015-11-16 Christian Bruel <christian.bruel@st.com>
2559
2560 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2561 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2562 with appropriate pragma GCC target.
2563
2564 2015-11-16 Christian Bruel <christian.bruel@st.com>
2565
2566 PR target/65837
2567 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2568 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2569
2570 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2571
2572 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2573 (cortexa57_tunings): Use it.
2574
2575 2015-11-16 Christian Bruel <christian.bruel@st.com>
2576
2577 PR target/65837
2578 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2579 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2580 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2581 undefine __ARM_FP.
2582 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2583 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2584 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2585 * doc/extend.texi (-mfpu=): Describe attribute.
2586
2587 2015-11-16 Christian Bruel <christian.bruel@st.com>
2588
2589 PR target/65837
2590 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2591 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2592 arm_init_neon_builtins.
2593 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2594 (arm_init_neon_builtins_internal)
2595 (arm_init_crypto_builtins_internal):
2596 Test and set neon_set_p, neon_crypto_set_p.
2597 (neon_set_p, neon_crypto_set_p): New static booleans.
2598
2599 2015-11-16 Christian Bruel <christian.bruel@st.com>
2600
2601 PR target/65837
2602 * config/arm/arm.c (arm_fpu_desc): Remove.
2603 (all_fpus): Make global.
2604 (arm_option_override): Use FPU TARGET accessors.
2605 (arm_declare_function_name): Likewise.
2606 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2607 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2608 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2609 (TARGET_NEON): Likewise.
2610 (all_fpus): Declare extern.
2611 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2612 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2613
2614 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2615
2616 PR middle-end/68366
2617 * sdbout.c: Include emit-rtl.h and function.h.
2618
2619 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2620
2621 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2622 Remove support for FreeBSD 5 and earlier.
2623
2624 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2625
2626 * configure: Regenerate.
2627 * configure.ac: Always define ENABLE_OFFLOADING.
2628 * cgraph.c (cgraph_node::create): Adjust.
2629 * gcc.c (process_command): Likewise.
2630 * omp-low.c (create_omp_child_function): Likewise.
2631 (expand_omp_target): Likewise.
2632 * varpool.c (varpool_node::get_create): Likewise.
2633
2634 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2635
2636 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2637 * df-scan.c (df_get_exit_block_use_set): Adjust.
2638 * except.c (expand_eh_return): Likewise.
2639
2640 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2641
2642 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2643 * defaults.h (TARGET_PECOFF): New default definition.
2644 * varasm.c (handle_vtv_comdat_section): Adjust.
2645
2646 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2647
2648 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2649 * doc/tm.texi: Regenerate.
2650 * doc/tm.texi.in: Adjust.
2651 * final.c (rest_of_clean_state): Remove check if
2652 SDB_DEBUGGING_INFO is defined.
2653 * function.c (number_blocks): Likewise.
2654 * output.h: Likewise.
2655 * sdbout.c: Likewise.
2656 * toplev.c (process_options): Likewise.
2657
2658 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2659
2660 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2661 (enum sdb_masks): Likewise.
2662 * sdbout.c (plain_type_1): Likewise.
2663 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2664
2665 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2666
2667 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2668 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2669 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2670 argument is 1, replace it with GOMP_ordered_* call instead of removing
2671 it.
2672
2673 2015-11-13 Rich Felker <dalias@libc.org>
2674
2675 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2676 address loading hack for FDPIC targets.
2677
2678 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2679 Jeff Law <law@redhat.com>
2680
2681 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2682 * common.opt (-fsplit-paths): New flag controlling path splitting.
2683 * doc/invoke.texi (fsplit-paths): Document.
2684 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2685 * passes.def: Add split_paths pass.
2686 * timevar.def (TV_SPLIT_PATHS): New timevar.
2687 * tracer.c: Include "tracer.h"
2688 (ignore_bb_p): No longer static.
2689 (transform_duplicate): New function, broken out of tail_duplicate.
2690 (tail_duplicate): Use transform_duplicate.
2691 * tracer.h (ignore_bb_p): Declare
2692 (transform_duplicate): Likewise.
2693 * tree-pass.h (make_pass_split_paths): Declare.
2694 * gimple-ssa-split-paths.c: New file.
2695
2696 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2697 Marek Polacek <polacek@redhat.com>
2698 Jason Merrill <jason@redhat.com>
2699
2700 * convert.c (maybe_fold_build1_loc): New.
2701 (maybe_fold_build2_loc): New.
2702 (convert_to_pointer_1): Split out from convert_to_pointer.
2703 (convert_to_pointer_nofold): New.
2704 (convert_to_real_1): Split out from convert_to_real.
2705 (convert_to_real_nofold): New.
2706 (convert_to_integer_1): Split out from convert_to_integer.
2707 (convert_to_integer_nofold): New.
2708 (convert_to_complex_1): Split out from convert_to_complex.
2709 (convert_to_complex_nofold): New.
2710 * convert.h: Declare new functions.
2711 * tree-complex.c (create_one_component_var): Break up line to
2712 avoid sequence point issues.
2713
2714 2015-11-13 Jason Merrill <jason@redhat.com>
2715
2716 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2717 VECTOR_CST.
2718
2719 * hash-map.h (hash_map::empty): New.
2720
2721 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2722
2723 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2724 (oacc_loop_fixed_partitions): Correct return type to bool.
2725 (oacc_loop_auto_partitions): New.
2726 (oacc_loop_partition): Take mask argument, call
2727 oacc_loop_auto_partitions.
2728 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2729
2730 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2731
2732 * config/rs6000/constraints.md (we constraint): New constraint for
2733 64-bit power9 vector support.
2734 (wL constraint): New constraint for the element in a vector that
2735 can be addressed by the MFVSRLD instruction.
2736
2737 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2738 declaration.
2739 (convert_int_to_float128): Likewise.
2740 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2741 hardware support for IEEE 128-bit floating point.
2742 (rs6000_expand_float128_convert): Likewise.
2743 (convert_float128_to_int): Likewise.
2744 (convert_int_to_float128): Likewise.
2745
2746 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2747 ISA 3.0 hardware IEEE 128-bit floating point.
2748 (UNSPEC_IEEE128_MOVE): Likewise.
2749 (UNSPEC_IEEE128_CONVERT): Likewise.
2750 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2751 (Ff): Add support for DImode.
2752 (Fv): Likewise.
2753 (any_fix code iterator): New and updated iterators for IEEE
2754 128-bit floating point hardware support.
2755 (any_float code iterator): Likewise.
2756 (s code attribute): Likewise.
2757 (su code attribute): Likewise.
2758 (az code attribute): Likewise.
2759 (uns code attribute): Likewise.
2760 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2761 floating point hardware support.
2762 (abs<mode>2, FLOAT128 iterator): Likewise.
2763 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2764 floating point hardware.
2765 (sub<mode>3, IEEE128 iterator): Likewise.
2766 (mul<mode>3, IEEE128 iterator): Likewise.
2767 (div<mode>3, IEEE128 iterator): Likewise.
2768 (copysign<mode>3, IEEE128 iterator): Likewise.
2769 (sqrt<mode>2, IEEE128 iterator): Likewise.
2770 (neg<mode>2, IEEE128 iterator): Likewise.
2771 (abs<mode>2, IEEE128 iterator): Likewise.
2772 (nabs<mode>2, IEEE128 iterator): Likewise.
2773 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2774 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2775 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2776 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2777 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2778 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2779 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2780 (fix_fixuns code attribute): Likewise.
2781 (float_floatuns code attribute): Likewise.
2782 (fix<uns>_<mode>si2_hw): Likewise.
2783 (fix<uns>_<mode>di2_hw): Likewise.
2784 (float<uns>_<mode>si2_hw): Likewise.
2785 (float<uns>_<mode>di2_hw): Likewise.
2786 (xscvqp<su>wz_<mode>): Likewise.
2787 (xscvqp<su>dz_<mode>): Likewise.
2788 (xscv<su>dqp_<mode): Likewise.
2789 (ieee128_mfvsrd): Likewise.
2790 (ieee128_mfvsrwz): Likewise.
2791 (ieee128_mtvsrw): Likewise.
2792 (ieee128_mtvsrd): Likewise.
2793 (trunc<mode>df2_odd): Likewise.
2794 (cmp<mode>_h): Likewise.
2795 (128-bit GPR splitters): Don't split a 128-bit move that is a
2796 direct move between GPR and vector registers using ISA 3.0 direct
2797 move instructions.
2798 (maddld4): Add support for the ISA 3.0 integer multiply-add
2799 instruction.
2800
2801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2802 debugging.
2803 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2804 constraint. Disable the VSX<->GPR direct move helpers if we have
2805 the MFVSRLD and MTVSRDD instructions.
2806 (rs6000_secondary_reload_simple_move): Add support for doing
2807 vector direct moves directly without additional scratch registers
2808 if we have ISA 3.0 instructions.
2809 (rs6000_secondary_reload_direct_move): Update comments.
2810 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2811 instructions.
2812
2813 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2814 direct move instructions.
2815 (vsx_movti_64bit): Likewise.
2816 (vsx_extract_<mode>): Likewise.
2817
2818 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2819 macros for ISA 3.0 direct move instructions.
2820 (TARGET_DIRECT_MOVE_128): Likewise.
2821 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2822 instruction.
2823
2824 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2825 constraints. Update wa documentation to say not to use %x<n> on
2826 instructions that only take Altivec registers.
2827
2828 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2829
2830 * Makefile.in (OBJS): Add gcc-rich-location.o.
2831 * diagnostic.c (diagnostic_append_note): Pass line_table to
2832 rich_location ctor.
2833 (emit_diagnostic): Likewise.
2834 (inform): Likewise.
2835 (inform_n): Likewise.
2836 (warning): Likewise.
2837 (warning_at): Likewise.
2838 (warning_n): Likewise.
2839 (pedwarn): Likewise.
2840 (permerror): Likewise.
2841 (error): Likewise.
2842 (error_n): Likewise.
2843 (error_at): Likewise.
2844 (sorry): Likewise.
2845 (fatal_error): Likewise.
2846 (internal_error): Likewise.
2847 (internal_error_no_backtrace): Likewise.
2848 (source_range::debug): Likewise.
2849 * gcc-rich-location.c: New file.
2850 * gcc-rich-location.h: New file.
2851 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2852 (warning_at): Likewise.
2853 * gimple.h (gimple_set_block): Use set_block function.
2854 * input.c (dump_line_table_statistics): Dump stats on how many
2855 ranges were optimized vs how many needed ad-hoc table.
2856 (write_digit_row): Add "map" param; use its range_bits
2857 to calculate the per-character offset.
2858 (dump_location_info): Print the range and column bits for each
2859 ordinary map. Use the range bits to calculate the per-character
2860 offset. Pass the map as a new param to the various calls to
2861 write_digit_row. Eliminate uses of
2862 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2863 * print-tree.c (print_node): Print any source range information.
2864 * rtl-error.c (diagnostic_for_asm): Likewise.
2865 * toplev.c (general_init): Initialize line_table's
2866 default_range_bits.
2867 * tree-cfg.c (move_block_to_fn): Likewise.
2868 (move_block_to_fn): Likewise.
2869 * tree-inline.c (copy_phis_for_bb): Likewise.
2870 * tree.c (tree_set_block): Likewise.
2871 (get_pure_location): New function.
2872 (set_source_range): New functions.
2873 (set_block): New function.
2874 (set_source_range): New functions.
2875 * tree.h (CAN_HAVE_RANGE_P): New.
2876 (EXPR_LOCATION_RANGE): New.
2877 (EXPR_HAS_RANGE): New.
2878 (get_expr_source_range): New inline function.
2879 (DECL_LOCATION_RANGE): New.
2880 (set_source_range): New decls.
2881 (get_decl_source_range): New inline function.
2882
2883 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2884
2885 PR tree-optimization/67682
2886 * tree-vect-slp.c (vect_split_slp_store_group): New.
2887 (vect_analyze_slp_instance): During basic block SLP, recurse on
2888 subgroups if vect_build_slp_tree fails after 1st vector.
2889
2890 2015-11-13 Christian Bruel <christian.bruel@st.com>
2891
2892 PR target/65837
2893 * config/arm/arm.c (arm_option_override): Move NEON check...
2894 (arm_option_check_internal): here
2895 (arm_file_start): Move .fpu print...
2896 (arm_declare_function_name): here
2897 (arm_option_print): Dump current fpu name.
2898 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2899
2900 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2901 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2902
2903 * combine.c (subst): Don't substitute or simplify when
2904 handling register-wise widening multiply.
2905 (force_to_mode): Likewise.
2906
2907 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2908
2909 PR tree-optimization/68264
2910 * tree-call-cdce.c (gen_one_condition): Update commentary.
2911 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2912 passed to gen_one_condition.
2913 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2914 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2915 using EDGE_FALSE_VALUE for edges to the call block and
2916 EDGE_TRUE_VALUE for the others.
2917
2918 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2919
2920 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2921 complex types.
2922
2923 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2924
2925 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2926
2927 2015-11-13 Tom de Vries <tom@codesourcery.com>
2928
2929 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2930 len_of_prefix.
2931
2932 2015-11-13 Tom de Vries <tom@codesourcery.com>
2933
2934 * gen-pass-instances.awk (handle_line): Add args_str variable.
2935
2936 2015-11-13 Martin Liska <mliska@suse.cz>
2937
2938 * graphite-poly.c (free_scop): Release scop->drs vector.
2939 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2940 Release dom vector.
2941 (try_generate_gimple_bb): Use vNULL as a default initialization
2942 for vectors.
2943
2944 2015-11-13 Martin Liska <mliska@suse.cz>
2945
2946 PR ipa/68311
2947 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2948 Replace array initialization (using a variable post-increment)
2949 that possible triggers multiple unsequenced modifications
2950 with a pair of pushes to a vector.
2951
2952 2015-11-13 Richard Biener <rguenther@suse.de>
2953
2954 PR tree-optimization/68306
2955 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2956 loop related checks ...
2957 (vect_verify_datarefs_alignment): ... here.
2958 (vect_slp_analyze_and_verify_node_alignment): Compute and
2959 verify alignment of the single DR that it matters.
2960 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2961 (vectorizable_load): Add a comment.
2962 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2963 for determining load cost.
2964
2965 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2966
2967 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2968 mix of boolean and integer vectors in a single statement.
2969 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2970 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2971 determine constant type.
2972 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2973 for loop invariants.
2974
2975 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2976
2977 PR tree-optimization/66558
2978 * tree-vect-loop.c (is_integer_induction):Add.
2979 (vectorizable_reduction): Add integer induction checks.
2980
2981 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2982
2983 Revert [ARM] Remove neon-testgen.ml and generated tests.
2984
2985 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2986
2987 [ARM] Remove neon-testgen.ml and generated tests.
2988
2989 * config/arm/neon-testgen.ml: Remove.
2990
2991 2015-11-13 Richard Biener <rguenther@suse.de>
2992
2993 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2994 Signal fatal failure if early checks fail.
2995 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2996 do not bother testing further vector sizes.
2997
2998 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2999
3000 * config/i386/predicates.md (misaligned_operand): Return true if
3001 operand is aligned to less than its natural alignmnet.
3002
3003 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3004
3005 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3006 (vec_cmpu@var{m}@var{n}): New item.
3007 (vcond@var{m}@var{n}): Specify comparison is signed.
3008 (vcondu@var{m}@var{n}): New item.
3009 (vcond_mask_@var{m}@var{n}): New item.
3010 (maskload@var{m}@var{n}): New item.
3011 (maskstore@var{m}@var{n}): New item.
3012
3013 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3014
3015 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3016 types of stored value and storage are compatible.
3017
3018 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3019
3020 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3021 (LINK_COMMAND_SPEC): Use post_link.
3022 (post_link_spec): New, initialize to POST_LINK_SPEC.
3023 (post_link): Initialize new static spec.
3024 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3025 * doc/tm.texi: Regenerated.
3026
3027 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3028
3029 PR driver/67613
3030 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3031 (OBJS): Add spellcheck-tree.o.
3032 * gcc.c: Include "spellcheck.h".
3033 (suggest_option): New function.
3034 (driver::handle_unrecognized_options): Call suggest_option to
3035 provide a hint about misspelled options.
3036 * spellcheck.c: Update file comment.
3037 (levenshtein_distance): Convert 4-param implementation from static
3038 to extern scope. Remove note about unit tests from leading
3039 comment for const char * implementation. Move tree
3040 implementation to...
3041 * spellcheck-tree.c: New file.
3042 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3043
3044 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3045
3046 * Makefile.in (OBJS): Add spellcheck.o.
3047 * spellcheck.c: New file.
3048 * spellcheck.h: New file.
3049
3050 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3051
3052 * config/ft32/ft32.md (*sne): New insn pattern.
3053
3054 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3055
3056 * cprop.c (is_too_expensive): Remove.
3057 (gcse.h): Include.
3058 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3059 is_too_expensive.
3060 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3061 * gcse.c (is_too_expensive): Rename to ...
3062 (gcse_or_cprop_is_too_expensive): ... this.
3063 Expand warning to add required size of max-gcse-memory.
3064 (one_pre_gcse_pass): Use it.
3065 (one_code_hoisting_pass): Use it.
3066 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3067
3068 2015-11-12 James Norris <jnorris@codesourcery.com>
3069 Joseph Myers <joseph@codesourcery.com>
3070
3071 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3072 GF_OMP_TARGET_KIND_OACC_DECLARE.
3073 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3074 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3075 * gimplify.c (oacc_declare_returns): New.
3076 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3077 (device_resident_p): New function.
3078 (oacc_default_clause): Handle device_resident clause.
3079 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3080 (gimplify_expr): Handle OACC_DECLARE.
3081 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3082 * omp-low.c (expand_omp_target): Handle
3083 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3084 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3085 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3086 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3087 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3088 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3089 GOMP_MAP_DEVICE_RESIDENT.
3090
3091 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3092
3093 [ARM] Remove neon-testgen.ml and generated tests.
3094
3095 * config/arm/neon-testgen.ml: Remove.
3096
3097 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3098
3099 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3100 * config/aarch64/aarch64-tune.md: Regenerated.
3101 * config/arm/arm-cores.def (qdf24xx): New.
3102 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3103 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3104 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3105 (ARM Options/-mtune): Likewise.
3106
3107 2015-11-12 Martin Liska <mliska@suse.cz>
3108
3109 * config/i386/i386.c (ix86_valid_target_attribute_p):
3110 Finalize options at the of the function.
3111 * gcc.c (driver_get_configure_time_options): Call newly
3112 introduced init_opts_obstack.
3113 * lto-wrapper.c (main): Likewise.
3114 * opts.c (init_opts_obstack): New function.
3115 (init_options_struct): Call newly introduced init_opts_obstack.
3116 * opts.h (init_options_struct): Declare.
3117
3118 2015-11-12 Martin Liska <mliska@suse.cz>
3119
3120 PR ipa/68035
3121 * ipa-icf.c (void sem_item::set_hash): New function.
3122 (sem_function::get_hash): Use renamed m_hash member variable.
3123 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3124 (sem_item::update_hash_by_local_refs): Likewise.
3125 (sem_variable::get_hash): Use renamed m_hash member variable.
3126 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3127 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3128 (sem_item_optimizer::build_graph): As the hash value of an item
3129 is lazy initialized, force the calculation.
3130 * ipa-icf.h (set_hash): Declare new function and rename hash member
3131 variable to m_hash.
3132
3133 2015-11-12 Richard Biener <rguenther@suse.de>
3134
3135 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3136 Rename to vect_slp_analyze_instance_dependence.
3137 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3138 Remove WAR special-case.
3139 (vect_slp_analyze_node_dependences): Instead add more specific
3140 code here, not relying on other instances being vectorized.
3141 (vect_slp_analyze_instance_dependence): Adjust accordingly.
3142 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3143 vertical space in dump files.
3144 (vect_print_slp_tree): Likewise.
3145 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3146 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3147 not vectorized stmts until after dependence analysis removed
3148 instances. Merge alignment and dependence checks.
3149 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3150 flag on all stmts.
3151
3152 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
3153
3154 * config/aarch64/aarch64-protos.h (tune_params): Add new members
3155 "max_case_values" and "cache_line_size".
3156 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3157 function.
3158 (aarch64_override_options_internal): Tune heuristics based on new
3159 members in "tune_params".
3160 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3161
3162 2015-11-12 Richard Biener <rguenther@suse.de>
3163
3164 PR tree-optimization/68306
3165 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3166 relevant and vectorizable checks here.
3167 (vect_verify_datarefs_alignment): Add relevant check here.
3168
3169 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3170
3171 * gimplify.c (oacc_default_clause): New.
3172 (omp_notice_variable): Call it.
3173
3174 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3175
3176 PR tree-optimization/68305
3177 * tree-vect-slp.c (vect_get_constant_vectors): Support
3178 COND_EXPR with SSA_NAME as a condition.
3179
3180 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 * config/visium/visium-protos.h (notice_update_cc): Delete.
3183 (print_operand): Likewise.
3184 (print_operand_address): Likewise.
3185
3186 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3187
3188 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3189 FUNCTION_VALUE_REGNO_P): Remove.
3190 * config/alpha/alpha-protos.h (function_value): Remove.
3191 * config/alpha/alpha.c (function_value): Rename to...
3192 (alpha_function_value_1): ... this. Make static.
3193 (alpha_function_value, alpha_libcall_value,
3194 alpha_function_value_regno_p): New functions.
3195 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3196 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3197
3198 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3199
3200 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3201 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3202 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3203 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3204
3205 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3206
3207 PR target/67265
3208 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3209 assertion on the CFA register.
3210
3211 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3212
3213 * expr.c (do_store_flag): Expand vector comparison as
3214 VEC_COND_EXPR if vector comparison is not supported by target.
3215
3216 2015-11-12 Renlin Li <renlin.li@arm.com>
3217
3218 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3219 assembly pattern consistent with constraint order.
3220
3221 2015-11-12 Tom de Vries <tom@codesourcery.com>
3222
3223 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3224
3225 2015-11-12 Tom de Vries <tom@codesourcery.com>
3226
3227 * gen-pass-instances.awk (handle_line): Simplify init of
3228 postfix_starts_at.
3229
3230 2015-11-12 Tom de Vries <tom@codesourcery.com>
3231
3232 * gen-pass-instances.awk (handle_line): Rename var where to
3233 call_starts_at.
3234
3235 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3236
3237 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3238 do not expand to rtl.
3239
3240 2015-11-12 Richard Biener <rguenther@suse.de>
3241
3242 PR tree-optimization/58497
3243 * tree-vect-generic.c: Include gimplify.h.
3244 (tree_vec_extract): Lookup constant/constructor DEFs.
3245 (do_cond): Unshare cond.
3246
3247 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3248
3249 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3250 combined insn if the alignment of vector mode memory operand
3251 is less than ssememalign.
3252
3253 2015-11-12 Tom de Vries <tom@codesourcery.com>
3254
3255 * gen-pass-instances.awk (handle_line): Print parentheses and
3256 pass_name explicitly.
3257
3258 2015-11-12 Tom de Vries <tom@codesourcery.com>
3259
3260 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3261 and postfix vars.
3262
3263 2015-11-12 Tom de Vries <tom@codesourcery.com>
3264
3265 * gen-pass-instances.awk (handle_line): Add comments.
3266
3267 2015-11-12 Tom de Vries <tom@codesourcery.com>
3268
3269 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3270 len_of_close.
3271
3272 2015-11-12 Tom de Vries <tom@codesourcery.com>
3273
3274 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3275
3276 2015-11-12 Tom de Vries <tom@codesourcery.com>
3277
3278 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3279
3280 2015-11-12 Tom de Vries <tom@codesourcery.com>
3281
3282 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3283
3284 2015-11-12 Tom de Vries <tom@codesourcery.com>
3285
3286 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3287
3288 2015-11-12 Tom de Vries <tom@codesourcery.com>
3289
3290 * gen-pass-instances.awk: Add emacs indent setting.
3291
3292 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3293
3294 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3295 to match.pd.
3296 Move Convert A/(B/C) to (A/B)*C to match.pd.
3297 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3298 Move Optimize (X & (-A)) / A where A is a power of 2, to
3299 X >> log2(A) to match.pd.
3300
3301 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3302 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3303 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3304 New simplifier.
3305 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3306
3307 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3308
3309 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3310 variable.
3311 (neon_vst2_lane<mode>): Likewise.
3312 (neon_vld3_lane<mode>): Likewise.
3313 (neon_vst3_lane<mode>): Likewise.
3314 (neon_vld4_lane<mode>): Likewise.
3315 (neon_vst4_lane<mode>): Likewise.
3316
3317 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3318 Sebastian Pop <s.pop@samsung.com>
3319
3320 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3321 New member codegen_error
3322 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3323 early return.
3324 (translate_isl_ast_node_user): Early return in case of error.
3325 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3326 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3327 (add_parameters_to_ivs_params): Remove macro.
3328 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3329 * graphite-poly.c (new_poly_dr): Remove macro.
3330 (print_pdr): Same.
3331 (new_gimple_poly_bb): Same.
3332 (free_gimple_poly_bb): Same.
3333 (print_scop_params): Same.
3334 * graphite-poly.h (struct poly_dr): Same.
3335 (struct poly_bb): Add new_bb.
3336 (gbb_from_bb): Remove dead code.
3337 (pbb_from_bb): Same.
3338 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3339 (parameter_index_in_region): Same.
3340 (find_scop_parameters): Same.
3341 (build_cross_bb_scalars_def): New.
3342 (build_cross_bb_scalars_use): New.
3343 (graphite_find_cross_bb_scalar_vars): New
3344 (try_generate_gimple_bb): Reads and Writes.
3345 (build_alias_set): Move.
3346 (gather_bbs::before_dom_children): Gather bbs visited.
3347 (build_scops): call build_alias_set.
3348 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3349 (remove_simple_copy_phi): Delete.
3350 (remove_invariant_phi): Delete.
3351 (simple_copy_phi_p): Delete.
3352 (reduction_phi_p): Delete.
3353 (isl_id_for_dr): Remove unused param.
3354 (parameter_index_in_region_1): Remove macro usage.
3355 (set_scop_parameter_dim): Same.
3356 (add_param_constraints): Same.
3357 (add_conditions_to_constraints): Same
3358 (build_scop_iteration_domain): Same.
3359 (pdr_add_alias_set): Comment.
3360 (add_scalar_version_numbers): New.
3361 (build_poly_dr): ISL id.
3362 (build_scop_drs): Move.
3363 (build_poly_sr_1): Same.
3364 (insert_stmts): Remove.
3365 (build_poly_sr): New.
3366 (new_pbb_from_pbb): Delete.
3367 (insert_out_of_ssa_copy_on_edge): Delete.
3368 (create_zero_dim_array): Delete.
3369 (scalar_close_phi_node_p): Delete.
3370 (propagate_expr_outside_region): Delete.
3371 (rewrite_close_phi_out_of_ssa): Delete.
3372 (rewrite_phi_out_of_ssa): Delete.
3373 (rewrite_degenerate_phi): Delete.
3374 (rewrite_reductions_out_of_ssa): Delete.
3375 (rewrite_cross_bb_scalar_dependence): Delete.
3376 (handle_scalar_deps_crossing_scop_limits):
3377 (rewrite_cross_bb_scalar_deps): Delete.
3378 (build_poly_scop): Remove calls to out-of-ssa functions.
3379 * graphite.c (graphite_transform_loops): Early return in case of
3380 codegen error.
3381 * sese.c (debug_rename_map_1): Delete.
3382 (debug_rename_map): Delete.
3383 (sese_record_loop): Remove macro.
3384 (build_sese_loop_nests): Same.
3385 (new_sese_info): Same.
3386 (free_sese_info): Same.
3387 (sese_insert_phis_for_liveouts):
3388 (is_loop_closed_ssa_use): New.
3389 (number_of_phi_nodes): New.
3390 (bb_contains_loop_close_phi_nodes): New.
3391 (bb_contains_loop_phi_nodes): New.
3392 (phi_uses_name): New.
3393 (is_valid_rename):
3394 (get_rename): Add old_bb and loop_phi for more precise matching of
3395 exprs.
3396 (set_rename): Pass region.
3397 (later_of_the_two): New.
3398 (gsi_insert_earliest): New.
3399 (collect_all_ssa_names): New.
3400 (substitute_ssa_name): New.
3401 (rename_all_uses): New.
3402 (get_rename_from_scev): New.
3403 (rename_uses): Pass old_bb for more precise matching of exprs.
3404 (get_def_bb_for_const): New.
3405 (get_new_name): New.
3406 (get_loc): New.
3407 (get_edges): New.
3408 (copy_loop_phi_args): New.
3409 (copy_loop_phi_nodes): New.
3410 (get_loop_init_value): New.
3411 (find_init_value): New.
3412 (find_init_value_close_phi): New.
3413 (copy_loop_close_phi_args): New.
3414 (copy_loop_close_phi_nodes): New.
3415 (add_phi_arg_for_new_expr): New.
3416 (copy_cond_phi_args): New.
3417 (copy_cond_phi_nodes): New.
3418 (copy_phi_nodes): New.
3419 (should_copy_to_new_region): New.
3420 (set_rename_for_each_def): New.
3421 (graphite_copy_stmts_from_block): Early return in case of error.
3422 (copy_bb_and_scalar_dependences): Same.
3423 * sese.h (vec_find): New.
3424 (SESE_PARAMS): Delete.
3425 (SESE_LOOPS): Delete.
3426 (SESE_LOOP_NEST): Delete.
3427 (sese_contains_loop): Remove macro usage.
3428 (sese_nb_params): Same.
3429 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3430
3431 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3432
3433 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3434 isl_union_map_add_map on every pbb->schedule.
3435
3436 2015-11-11 Tom de Vries <tom@codesourcery.com>
3437
3438 * tree-parloops.c (create_parallel_loop): Return void.
3439
3440 2015-11-11 Tom de Vries <tom@codesourcery.com>
3441
3442 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3443 block only when needed.
3444
3445 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
3446
3447 * config/alpha/alpha-protos.h (print_operand): Remove.
3448 (print_operand_address): Remove.
3449 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3450 (PRINT_OPERAND_ADDRESS): Remove.
3451 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3452 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3453 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3454 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3455 (print_operand_address): Rename to...
3456 (alpha_print_operand_address): ...this and make static.
3457 (print_operand): Rename to...
3458 (alpha_print_operand): ...this and make static.
3459 (alpha_print_operand_punct_valid_p): New static function.
3460
3461 2015-11-11 Richard Biener <rguenther@suse.de>
3462
3463 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3464 Declare.
3465 (vect_analyze_data_refs_alignment): Make loop vect specific.
3466 (vect_verify_datarefs_alignment): Likewise.
3467 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3468 Add missing continue.
3469 (vect_compute_data_ref_alignment): Export.
3470 (vect_compute_data_refs_alignment): Merge into...
3471 (vect_analyze_data_refs_alignment): ... this.
3472 (verify_data_ref_alignment): Split out from ...
3473 (vect_verify_datarefs_alignment): ... here.
3474 (vect_slp_analyze_and_verify_node_alignment): New function.
3475 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3476 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3477 misplaced checks on alignment.
3478 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
3479 alignment analysis after SLP discovery and do it per instance.
3480 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3481 bother to re-try using different vector sizes.
3482
3483 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
3484 Cesar Philippidis <cesar@codesourcery.com>
3485
3486 * gimplify.c (enum omp_region_type): Add ORT_ACC,
3487 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
3488 (gimple_add_tmp_var): Add ORT_ACC checks.
3489 (gimplify_var_or_parm_decl): Likewise.
3490 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3491 (omp_add_variable): Look in outer contexts for openacc and allow
3492 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3493 (omp_notice_variable, omp_is_private, omp_check_private): Add
3494 ORT_ACC checks.
3495 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3496 Permit private openacc reductions.
3497 (gimplify_oacc_cache): Specify ORT_ACC.
3498 (gimplify_omp_workshare): Adjust OpenACC region types.
3499 (gimplify_omp_target_update): Likewise.
3500 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3501 (lower-rec_input_clauses): Don't handle openacc firstprivate
3502 references here.
3503 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3504
3505 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3506
3507 PR target/67265
3508 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3509 frame pointer for stack checking if non-call exceptions aren't used.
3510 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3511
3512 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3513
3514 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3515 [LA]SHIFTRT.
3516
3517 2015-11-11 Martin Liska <mliska@suse.cz>
3518 Richard Biener <rguenther@suse.de>
3519
3520 PR rtl-optimization/68287
3521 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3522 number of elements.
3523
3524 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3525
3526 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3527 (mips_break_sequence): New function.
3528 (mips_reorg_process_insns): Use them. Use compact branches in selected
3529 situations.
3530
3531 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3532
3533 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3534
3535 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3536 Jim Wilson <wilson@gcc.gnu.org>
3537
3538 PR target/67305
3539 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3540 be true and eliminable registers mentioned.
3541
3542 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3543
3544 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3545 options.
3546 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3547 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3548 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3549 situation, and store instructions with large offsets.
3550 (arc_secondary_reload_conv): New function.
3551 (arc_init): Add ARCv2 options.
3552 (arc_conditional_register_usage): Select the proper register usage
3553 for ARCv2 processors.
3554 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3555 architecture.
3556 (arc_compute_function_type): Likewise.
3557 (arc_print_operand): Handle new ARCv2 punctuation characters.
3558 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3559 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3560 function.
3561 (arc_reorg, arc_hazard): Use it.
3562 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3563 (ASM_SPEC): Add ARCv2 options.
3564 (TARGET_NORM): ARC HS has norm instructions by default.
3565 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3566 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3567 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3568 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3569 Likewise.
3570 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3571 (TARGET_LP_WR_INTERLOCK): Likewise.
3572 * config/arc/arc.md
3573 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3574 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3575 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3576 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3577 Use it for ARCv2.
3578 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3579 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3580 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3581 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3582 (extzvsi): New pattern.
3583 * config/arc/arc.opt: New ARCv2 options.
3584 * config/arc/arcEM.md: New file.
3585 * config/arc/arcHS.md: Likewise.
3586 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3587 values.
3588 (Cm2): A signed 9-bit integer constant constraint.
3589 (C62): An unsigned 6-bit integer constant constraint.
3590 (C16): A signed 16-bit integer constant constraint.
3591 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3592 (short_const_int_operand): New predicate.
3593 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3594 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3595 -mcode-density and -mdiv-rem.
3596
3597 2015-11-11 Julia Koval <julia.koval@intel.com>
3598
3599 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3600
3601 2015-11-11 Julia Koval <julia.koval@intel.com>
3602
3603 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3604
3605 2015-11-11 Martin Liska <mliska@suse.cz>
3606
3607 * gimple-ssa-strength-reduction.c (create_phi_basis):
3608 Use auto_vec.
3609 * passes.c (release_dump_file_name): New function.
3610 (pass_init_dump_file): Used from this function.
3611 (pass_fini_dump_file): Likewise.
3612 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3613 * var-tracking.c (vt_initialize): Use pool_allocator.
3614
3615 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3616 Jiong Wang <jiong.wang@arm.com>
3617
3618 PR tree-optimization/68234
3619 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3620 node which estimiated to be VR_VARYING initially.
3621
3622 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3623
3624 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3625 registers when tying chains.
3626 (build_def_use): Move terminated_this_insn earlier in the function.
3627
3628 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3629
3630 * configure.ac: Use = with test and not ==.
3631 * configure: Regenerated.
3632
3633 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3634
3635 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3636 machine asserts. Update defines for 64 bit.
3637
3638 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3639
3640 PR target/63870
3641 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3642 lane number.
3643 (neon_vst1_lane<mode>): Likewise.
3644 (neon_vld2_lane<mode>): Likewise.
3645 (neon_vst2_lane<mode>): Likewise.
3646 (neon_vld3_lane<mode>): Likewise.
3647 (neon_vst3_lane<mode>): Likewise.
3648 (neon_vld4_lane<mode>): Likewise.
3649 (neon_vst4_lane<mode>): Likewise.
3650
3651 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3652
3653 PR target/63870
3654 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3655 qualifier_struct_load_store_lane_index.
3656 (arm_storestruct_lane_qualifiers) Likewise.
3657 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3658 big-endian.
3659 (neon_vst1_lane<mode>) Likewise.
3660 (neon_vld2_lane<mode>) Likewise.
3661 (neon_vst2_lane<mode>) Likewise.
3662 (neon_vld3_lane<mode>) Likewise.
3663 (neon_vst3_lane<mode>) Likewise.
3664 (neon_vld4_lane<mode>) Likewise.
3665 (neon_vst4_lane<mode>) Likewise.
3666
3667 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3668
3669 PR target/63870
3670 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3671 qualifier_struct_load_store_lane_index.
3672 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3673 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3674 argument qualifiers.
3675 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3676 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3677
3678 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3679
3680 * config/nvptx/nvptx.opt (moptimize): New flag.
3681 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3682 default.
3683 (nvptx_optimize_inner): New.
3684 (nvptx_process_pars): Call it when optimizing.
3685 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3686
3687 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3688
3689 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3690 Remove redundant code.
3691
3692 2015-11-10 Jeff Law <law@redhat.com>
3693
3694 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3695 call to output_address.
3696 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3697 Add unnamed machine_mode argument.
3698
3699 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3700
3701 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3702 default to 64-bit.
3703
3704 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3705
3706 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3707 size directives for -masm=intel.
3708 (*movabs<mode>_2): Ditto.
3709
3710 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3711
3712 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3713 tried to avoid (%rip) for call operands.
3714
3715 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3716
3717 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3718 argument. Do not use RIP relative addressing when no_rip is set.
3719 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3720 (ix86_print_operand_address): Ditto.
3721 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3722 absolute movabs operand 0. Add square braces for -masm=intel.
3723 (*movabs<mode>_2): Ditto for operand 1.
3724
3725 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3726
3727 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3728 combine_vcvtf2i pattern.
3729
3730 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3731
3732 * config/arm/arm.c (neon_valid_immediate): Remove integer
3733 CONST_DOUBLE handling. It should never occur.
3734
3735 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3736
3737 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3738 (ATOMIC_LDOP): Likewise.
3739 (atomic_ldop): Likewise.
3740 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3741 (ATOMIC_LDOP): Likewise.
3742 (atomic_ldop): Likewise.
3743
3744 2015-11-10 Martin Liska <mliska@suse.cz>
3745
3746 * alloc-pool.h (allocate_raw): New function.
3747 (operator new (size_t, object_allocator<T> &a)): Use the
3748 function instead of object_allocator::allocate).
3749
3750 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3751
3752 * config/i386/sse.md (HALFMASKMODE): New attribute.
3753 (DOUBLEMASKMODE): New attribute.
3754 (vec_pack_trunc_qi): New.
3755 (vec_pack_trunc_<mode>): New.
3756 (vec_unpacks_lo_hi): New.
3757 (vec_unpacks_lo_si): New.
3758 (vec_unpacks_lo_di): New.
3759 (vec_unpacks_hi_hi): New.
3760 (vec_unpacks_hi_<mode>): New.
3761
3762 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3763
3764 * optabs.c (expand_binop_directly): Allow scalar mode for
3765 vec_pack_trunc_optab.
3766 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3767 boolean vector producers from pattern sequence when computing VF.
3768 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3769 vect_recog_mask_conversion_pattern.
3770 (search_type_for_mask): Choose the smallest
3771 type if different size types are mixed.
3772 (build_mask_conversion): New.
3773 (vect_recog_mask_conversion_pattern): New.
3774 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3775 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3776 load with pattern.
3777 (vectorizable_conversion): Support boolean vectors.
3778 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3779 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3780
3781 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3782
3783 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3784 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3785 Cast mask to FP mode if required.
3786 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3787 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3788 (vcond_mask_<mode><sseintvecmodelower>): New.
3789 (vcond_mask_<mode><sseintvecmodelower>): New.
3790 (vcond_mask_v2div2di): New.
3791 (vcond_mask_<mode><sseintvecmodelower>): New.
3792 (vcond_mask_<mode><sseintvecmodelower>): New.
3793
3794 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3795
3796 * optabs-query.h (get_vcond_mask_icode): New.
3797 * optabs-tree.c (expand_vec_cond_expr_p): Use
3798 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3799 * optabs.c (expand_vec_cond_mask_expr): New.
3800 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3801 * optabs.def (vcond_mask_optab): New.
3802 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3803 generate redundant comparison for COND_EXPR.
3804 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3805 as a condition.
3806 (vectorizable_condition): Likewise.
3807 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3808 cond_exp with no embedded comparison.
3809 (vect_build_slp_tree_1): Likewise.
3810
3811 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3812
3813 * config/i386/sse.md (maskload<mode>): Rename to ...
3814 (maskload<mode><sseintvecmodelower>): ... this.
3815 (maskstore<mode>): Rename to ...
3816 (maskstore<mode><sseintvecmodelower>): ... this.
3817 (maskload<mode><avx512fmaskmodelower>): New.
3818 (maskstore<mode><avx512fmaskmodelower>): New.
3819
3820 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3821
3822 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3823 (expand_MASK_STORE): Adjust to maskstore optab changes.
3824 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3825 Adjust to maskload, maskstore optab changes.
3826 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3827 * optabs.def (maskload_optab): Transform into convert optab.
3828 (maskstore_optab): Likewise.
3829 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3830 can_vec_mask_load_store_p signature change.
3831 (predicate_mem_writes): Use boolean mask.
3832 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3833 can_vec_mask_load_store_p signature change. Allow invariant masks.
3834 (vectorizable_operation): Ignore type precision for boolean vectors.
3835
3836 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3837
3838 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3839 (const_vector_mask_from_tree): New.
3840 (const_vector_from_tree): Use const_vector_mask_from_tree
3841 for boolean vectors.
3842 * optabs-query.h (get_vec_cmp_icode): New.
3843 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3844 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3845 * optabs.c (vector_compare_rtx): Add OPNO arg.
3846 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3847 (expand_vec_cmp_expr): New.
3848 * optabs.def (vec_cmp_optab): New.
3849 (vec_cmpu_optab): New.
3850 * optabs.h (expand_vec_cmp_expr): New.
3851 * tree-vect-generic.c (expand_vector_comparison): Add vector
3852 comparison optabs check.
3853 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3854 operations for VF. Add mask type computation.
3855 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3856 (vectorizable_comparison): New.
3857 (vect_analyze_stmt): Add vectorizable_comparison.
3858 (vect_transform_stmt): Likewise.
3859 (vect_init_vector): Support boolean vector invariants.
3860 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3861 (vectorizable_condition): Directly provide vectype for invariants
3862 used in comparison.
3863 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3864 (enum vect_var_kind): Add vect_mask_var.
3865 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3866 (vectorizable_comparison): New.
3867 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3868 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3869 (vect_create_destination_var): Likewise.
3870 * tree-vect-patterns.c (check_bool_pattern): Check fails
3871 if we can vectorize comparison directly.
3872 (search_type_for_mask): New.
3873 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3874 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3875 comparison statements.
3876 (vect_get_constant_vectors): Support boolean vector constants.
3877 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3878 (ix86_expand_int_vec_cmp): New.
3879 (ix86_expand_fp_vec_cmp): New.
3880 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3881 op_true and op_false.
3882 (ix86_int_cmp_code_to_pcmp_immediate): New.
3883 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3884 (ix86_cmp_code_to_pcmp_immediate): New.
3885 (ix86_expand_mask_vec_cmp): New.
3886 (ix86_expand_fp_vec_cmp): New.
3887 (ix86_expand_int_sse_cmp): New.
3888 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3889 (ix86_expand_int_vec_cmp): New.
3890 (ix86_get_mask_mode): New.
3891 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3892 * config/i386/sse.md (avx512fmaskmodelower): New.
3893 (vec_cmp<mode><avx512fmaskmodelower>): New.
3894 (vec_cmp<mode><sseintvecmodelower>): New.
3895 (vec_cmpv2div2di): New.
3896 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3897 (vec_cmpu<mode><sseintvecmodelower>): New.
3898 (vec_cmpuv2div2di): New.
3899
3900 2015-11-10 Richard Biener <rguenther@suse.de>
3901
3902 PR tree-optimization/68240
3903 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3904 properly.
3905 (visit_phi): For PHIs with just a single executable edge
3906 take its value directly.
3907 (expressions_equal_p): Handle VN_TOP properly.
3908
3909 2015-11-10 Richard Biener <rguenther@suse.de>
3910
3911 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3912 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3913 conservatively.
3914
3915 2015-11-10 Richard Biener <rguenther@suse.de>
3916
3917 PR tree-optimization/56118
3918 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3919 cost favor vectorized version.
3920
3921 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3922
3923 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3924 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3925 (neg_not_op): New code attribute.
3926
3927 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3928
3929 * ifcvt.c (noce_try_inverse_constants): New function.
3930 (noce_process_if_block): Call it.
3931 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3932 * optabs.def (negcc_optab, notcc_optab): Declare.
3933 * optabs.c (emit_conditional_neg_or_complement): New function.
3934 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3935
3936 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3937
3938 PR rtl-optimization/68236
3939 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3940 if insn_queue doesn't exist.
3941 (haifa_sched_finish): Reset insn_queue to NULL.
3942
3943 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3944
3945 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3946 (build_def_use): Initialize terminated_this_insn.
3947 (find_best_rename_reg): Pick and check register from the tied chain.
3948 (regrename_do_replace): Mark head as renamed.
3949 (struct du_head *terminated_this_insn). New static variable.
3950 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3951 * regrename.h (struct du_head): Add tied_chain, renamed members.
3952
3953 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3954
3955 PR bootstrap/68256
3956 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3957 Return false.
3958
3959 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3960
3961 PR target/57845
3962 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3963 not promote the mode for aggregate types.
3964
3965 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3966
3967 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3968 * omp-low.c (build_oacc_routine_dims): New.
3969
3970 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3971
3972 * config/rs6000/constraints.md (wF constraint): New constraints
3973 for power9/toc fusion.
3974 (wG constraint): Likewise.
3975
3976 * config/rs6000/predicates.md (u6bit_cint_operand): New
3977 predicate, recognize 0..63.
3978 (upper16_cint_operand): New predicate for power9 and toc fusion.
3979 (fpr_reg_operand): Likewise.
3980 (toc_fusion_or_p9_reg_operand): Likewise.
3981 (toc_fusion_mem_raw): Likewise.
3982 (toc_fusion_mem_wrapped): Likewise.
3983 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3984 address range.
3985 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3986 instead.
3987 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3988 floating point loads, floating point stores, and gpr stores.
3989 (fusion_addis_mem_combo_store): Likewise.
3990 (fusion_offsettable_mem_operand): Likewise.
3991
3992 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3993 (emit_fusion_load_store): Likewise.
3994 (fusion_p9_p): Likewise.
3995 (expand_fusion_p9_load): Likewise.
3996 (expand_fusion_p9_store): Likewise.
3997 (emit_fusion_p9_load): Likewise.
3998 (emit_fusion_p9_store): Likewise.
3999 (fusion_wrap_memory_address): Likewise.
4000
4001 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4002 elements for power9 fusion.
4003 (rs6000_debug_print_mode): Rework debug information to print more
4004 information about fusion.
4005 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4006 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4007 offsettable memory address.
4008 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4009 (emit_fusion_gpr_load): Move most of the code from
4010 emit_fusion_gpr_load into emit_fusion-addis that handles both
4011 power8 and power9 fusion.
4012 (emit_fusion_addis): Likewise.
4013 (emit_fusion_load_store): Likewise.
4014 (fusion_wrap_memory_address): Add support for TOC fusion.
4015 (fusion_split_address): Likewise.
4016 (fusion_p9_p): Add support for power9 fusion.
4017 (expand_fusion_p9_load): Likewise.
4018 (expand_fusion_p9_store): Likewise.
4019 (emit_fusion_p9_load): Likewise.
4020 (emit_fusion_p9_store): Likewise.
4021
4022 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4023 new instructions in ISA 3.0.
4024 (TARGET_CTZ): Likewise.
4025 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4026 (TARGET_TOC_FUSION_FP): Likewise.
4027
4028 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4029 fusion unspecs.
4030 (UNSPEC_FUSION_ADDIS): Likewise.
4031 (QHSI mode iterator): New iterator for power9 fusion.
4032 (GPR_FUSION): Likewise.
4033 (FPR_FUSION): Likewise.
4034 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4035 (umod<mode>3): Likewise.
4036 (divmod peephole): Likewise.
4037 (udivmod peephole): Likewise.
4038 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4039 instructions.
4040 (ctz<mode>2_h): Likewise.
4041 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4042 (ashdi3_extswsli_dot): Likewise.
4043 (ashdi3_extswsli_dot2): Likewise.
4044 (power9 fusion splitter): New power9/toc fusion support.
4045 (toc_fusionload_<mode>): Likewise.
4046 (toc_fusionload_di): Likewise.
4047 (fusion_gpr_load_<mode>): Update predicate function.
4048 (power9 fusion peephole2s): New power9/toc fusion support.
4049 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4050 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4051 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4052 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4053 (fusion_p9_<mode>_constant): Likewise.
4054
4055 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4056
4057 * optabs.c (prepare_libcall_arg): New function.
4058 (expand_fixed_convert): Add call to prepare_libcall_arg.
4059
4060 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4061
4062 * sched-int.h (dump_rgn_dependencies_dot): Declare
4063 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4064 * print-rtl.h (print_insn): Add prototype
4065
4066 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4067 * common.opt (-fsched-verbose): Set default value to 1.
4068 * invoke.texi (-fsched-verbose): Update the option's description.
4069
4070 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4071
4072 * config/visium/visium.h (PRINT_OPERAND): Delete.
4073 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4074 (PRINT_OPERAND_ADDRESS): Likewise.
4075 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4076 to...
4077 (visium_print_operand_punct_valid_p): ...this. New function.
4078 (TARGET_PRINT_OPERAND): Define to...
4079 (print_operand): Rename to...
4080 (visium_print_operand): ...this.
4081 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4082 (visium_output_address): Rename to...
4083 (visium_print_operand_address): ...this.
4084 (print_operand_address): Delete.
4085
4086 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4087
4088 PR middle-end/68259
4089 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4090 Check that the type of the first operand is an aggregate type.
4091
4092 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4093
4094 * omp-low.c: Fix some OpenACC comment typos.
4095 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4096 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4097 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4098
4099 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4100
4101 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4102
4103 2015-11-09 Jeff Law <law@redhat.com>
4104
4105 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4106 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4107 Fix comment typo.
4108
4109 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4110 Peter Bergner <bergner@vnet.ibm.com>
4111
4112 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4113 ISA 3.0 (power9).
4114 (-mpower9-vector): Likewise.
4115 (-mpower9-dform): Likewise.
4116 (-mpower9-minmax): Likewise.
4117 (-mtoc-fusion): Likewise.
4118 (-mmodulo): Likewise.
4119 (-mfloat128-hardware): Likewise.
4120
4121 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4122 mask for ISA 3.0 (power9).
4123 (POWERPC_MASKS): Add new ISA 3.0 switches.
4124 (power9 cpu): Add power9 cpu.
4125
4126 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4127 (ASM_CPU_SPEC): Likewise.
4128 (EXTRA_SPECS): Likewise.
4129
4130 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4131 PROCESSOR_POWER9.
4132
4133 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4134 (rs6000_debug_reg_global): Add support for power9 fusion.
4135 (rs6000_setup_reg_addr_masks): Cache mode size.
4136 (rs6000_option_override_internal): Until real power9 tuning is
4137 added, use -mtune=power8 for -mcpu=power9.
4138 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4139 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4140 of Altivec registers.
4141 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4142 (rs6000_loop_align): Add support for power9 cpu.
4143 (rs6000_file_start): Likewise.
4144 (rs6000_adjust_cost): Likewise.
4145 (rs6000_issue_rate): Likewise.
4146 (insn_must_be_first_in_group): Likewise.
4147 (insn_must_be_last_in_group): Likewise.
4148 (force_new_group): Likewise.
4149 (rs6000_register_move_cost): Likewise.
4150 (rs6000_opt_masks): Likewise.
4151
4152 * config/rs6000/rs6000.md (cpu attribute): Add power9.
4153 * config/rs6000/rs6000-tables.opt: Regenerate.
4154
4155 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4156 _ARCH_PWR9 if power9 support is available.
4157
4158 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4159 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4160
4161 * configure.ac: Determine if the assembler supports the ISA 3.0
4162 instructions.
4163 * config.in (HAVE_AS_POWER9): Likewise.
4164 * configure: Regenerate.
4165
4166 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4167 switches.
4168
4169 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4170
4171 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4172 Remove integer CONST_DOUBLE handling. It should never occur.
4173
4174 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4175
4176 PR target/68129
4177 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4178 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4179 Delete VOIDmode case. Assert that mode is not VOIDmode.
4180 * config/aarch64/predicates.md (const0_operand): Remove const_double
4181 match.
4182
4183 2015-11-09 Martin Liska <mliska@suse.cz>
4184
4185 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4186 body_info release function.
4187 * ipa-prop.c (ipa_release_body_info): New function.
4188 (ipa_analyze_node): Call the function.
4189 (ipa_node_params::~ipa_node_params): Release known_csts.
4190 * ipa-prop.h (ipa_release_body_info): Declare.
4191
4192 2015-11-09 Martin Liska <mliska@suse.cz>
4193
4194 * gcc.c (record_temp_file): Release name string.
4195 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4196 * lra-lives.c (free_live_range_list): Utilize
4197 lra_live_range_pool for allocation and deallocation.
4198 (create_live_range): Likewise.
4199 (copy_live_range): Likewise.
4200 (lra_merge_live_ranges): Likewise.
4201 (remove_some_program_points_and_update_live_ranges): Likewise.
4202 (lra_create_live_ranges_1): Release point_freq_vec that can
4203 be not freed from previous iteration of the function.
4204 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4205 * tree-sra.c (sra_deinitialize): Release all vectors in
4206 base_access_vec.
4207 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4208 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4209 Release edge_info for a removed edge.
4210 (thread_through_all_blocks): Free region vector.
4211 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4212
4213 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4214
4215 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4216 * tree.c (wide_int_to_tree): Support negative values for boolean.
4217 (build_nonstandard_boolean_type): Use signed type for booleans.
4218
4219 2015-11-09 Richard Biener <rguenther@suse.de>
4220
4221 PR tree-optimization/68248
4222 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4223
4224 2015-11-09 Richard Biener <rguenther@suse.de>
4225
4226 PR tree-optimization/56118
4227 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4228 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4229 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4230 function.
4231 (vect_slp_analyze_data_ref_dependences): Instead of computing
4232 all dependences of the region DRs just analyze the code motions
4233 SLP vectorization will perform. Remove SLP instances that
4234 cannot have their store/load motions applied.
4235 (vect_analyze_data_refs): Allow DRs without a vectype
4236 in BB vectorization.
4237
4238 2015-11-09 Julian Brown <julian@codesourcery.com>
4239
4240 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4241 (output_address): Add MODE argument. Pass to print_operand_address
4242 hook.
4243 * targhooks.c (default_print_operand_address): Add MODE argument.
4244 * targhooks.h (default_print_operand_address): Update prototype.
4245 * output.h (output_address): Update prototype.
4246 * target.def (print_operand_address): Add MODE argument.
4247 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4248 output_address.
4249 (print_operand): Pass access mode to output_address.
4250 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4251 argument.
4252 (mcore_print_operand): Update calls to mcore_print_operand_address.
4253 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4254 output_address.
4255 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4256 output_address.
4257 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4258 global.
4259 (tilegx_print_operand): Don't set above global. Update calls to
4260 output_address.
4261 (tilegx_print_operand_address): Add MODE argument. Use instead of
4262 output_memory_reference_mode global.
4263 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4264 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4265 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4266 output_address.
4267 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4268 (cris_print_operand): Pass mode to output_address calls.
4269 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4270 * config/aarch64/aarch64.h (aarch64_print_operand)
4271 (aarch64_print_operand_address): Remove prototypes.
4272 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4273 global.
4274 (aarch64_print_operand): Make static. Update calls to output_address.
4275 (aarch64_print_operand_address): Add MODE argument. Use instead of
4276 aarch64_memory_reference_mode global.
4277 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4278 hooks.
4279 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4280 Delete macro definitions.
4281 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4282 * config/xtensa/xtensa.c (print_operand): Pass mode in
4283 output_address calls.
4284 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4285 argument.
4286 (h83000_print_operand): Update calls to h8300_print_operand_address
4287 and output_address.
4288 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4289 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4290 global.
4291 (tilepro_print_operand): Pass mode to output_address.
4292 (tilepro_print_operand_address): Add MODE argument. Use instead of
4293 output_memory_reference_mode.
4294 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4295 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4296 to output_address calls.
4297 (nvptx_print_operand_address): Add MODE argument.
4298 * config/alpha/alpha.c (print_operand): Pass mode argument in
4299 output_address calls.
4300 * config/m68k/m68k.c (print_operand): Pass mode argument in
4301 output_address call.
4302 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4303 (avr_print_operand): Update calls to avr_print_operand_address.
4304 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4305 argument. Update calls to output_address.
4306 (sparc_print_operand): Pass mode to output_address.
4307 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4308 argument.
4309 (iq2000_print_operand): Pass mode in output_address calls.
4310 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4311 MODE argument.
4312 (xstormy16_print_operand): Pass mode to
4313 xstormy16_print_operand_address calls.
4314 * config/mips/mips.c (mips_print_operand): Update calls to
4315 output_address.
4316 (mips_print_operand_address): Add MODE argument.
4317 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4318 to output_address.
4319 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4320 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4321 output_address.
4322 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4323 (rx_print_operand): Update calls to output_address,
4324 rx_print_operand_address.
4325 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4326 output_address.
4327 (nds32_print_operand_address): Add MODE argument.
4328 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4329 output_address calls.
4330 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4331 output_address call.
4332 (c6x_print_address_operand): Update calls to output_address.
4333 (c6x_print_operand_address): Pass mode to above.
4334 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4335 (v850_print_operand): Pass mode to v850_print_operand_address,
4336 output_address.
4337 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4338 (mmix_print_operand): Pass mode in output_address calls.
4339 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4340 (sh_print_operand): Pass mem mode to output_address,
4341 sh_print_operand_address.
4342 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4343 (cr16_print_operand): Pass mode to output_address,
4344 cr16_print_operand_address.
4345 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4346 output_address.
4347 * config/microblaze/microblaze.c (print_operand): Pass mode to
4348 output_address.
4349 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4350 output_address.
4351 (nios2_print_operand_address): Add MODE argument. Update call to
4352 nios2_print_operand_address.
4353 * config/s390/s390.c (print_operand): Pass mode to output_address.
4354 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4355 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4356 output_address.
4357 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4358 Use instead of output_memory_reference_mode.
4359 (output_memory_reference_mode): Delete global.
4360 (arm_print_operand): Pass mem mode to output_address.
4361 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4362 (m32r_print_operand): Pass mode to output_address.
4363 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4364 argument.
4365 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4366 * config/i386/i386.c (ix86_print_operand): Pass mode to
4367 output_address calls.
4368 (ix86_print_operand_address): Add MODE argument.
4369
4370 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4371
4372 PR middle-end/68251
4373 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4374 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4375 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4376 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4377
4378 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4379
4380 PR rtl-optimization/67749
4381 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4382 case before emitting the two blocks. Instead modify the register
4383 in the corresponding final insn of the basic block.
4384
4385 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4386
4387 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4388 assembler syntax.
4389 Support Solaris ld.
4390 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4391
4392 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4393 HAVE_INITFINI_ARRAY_SUPPORT.
4394 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4395
4396 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4397 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4398 Don't check HAVE_AS_SPARC_NOBITS.
4399 Heed SECTION_NOTYPE.
4400
4401 * configure: Regenerate.
4402 * config.in: Regenerate.
4403
4404 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4405
4406 PR middle-end/68253
4407 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4408
4409 2015-11-09 Richard Henderson <rth@redhat.com>
4410
4411 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4412 __SEG_GS, __SEG_TLS.
4413 (ix86_register_pragmas): Register address spaces __seg_fs,
4414 __seg_gs, __seg_tls.
4415 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4416 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4417 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4418 * config/i386/i386.c (ix86_decompose_address): Likewise.
4419 (ix86_legitimate_address_p): Likewise.
4420 (memory_address_length): Likewise. Check mem address space too.
4421 (ix86_print_operand): Use ix86_print_operand_address_as.
4422 (ix86_print_operand_address_as): Rename from
4423 ix86_print_operand_address, add new addr_space_t parameter.
4424 Validate that either the parameter or the ix86_address segment
4425 is default address space. Handle ADDR_SPACE_SEG_TLS.
4426 (ix86_print_operand_address): New.
4427 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4428 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4429 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4430 (ix86_addr_space_zero_address_valid): New.
4431 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4432 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4433 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4434 * config/i386/predicates.md (address_no_seg_operand): Likewise.
4435 (vsib_address_operand): Likewise.
4436 (address_mpx_no_base_operand): Likewise.
4437 (address_mpx_no_index_operand): Likewise.
4438 * doc/extend.texi (x86 Named Address Spaces): New section.
4439
4440 * config/i386/i386.c (ix86_check_no_addr_space): New.
4441 (decide_alg): Add have_as parameter.
4442 (alg_usable_p): Likewise; disable rep algorithms if set.
4443 (ix86_expand_set_or_movmem): Notice if either MEM has a
4444 non-default address space.
4445 (ix86_expand_strlen): Likewise.
4446 * config/i386/i386.md (strmov, strset): Likewise.
4447 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4448 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4449 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4450 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4451 *cmpstrnqi_1, *strlenqi_1): Likewise.
4452
4453 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4454 (*movabs<mode>_2): Likewise.
4455
4456 * dwarf2out.c (modified_type_die): Pass the address space number
4457 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4458 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4459 * targhooks.c (default_addr_space_debug): New.
4460 * targhooks.h (default_addr_space_debug): Declare.
4461 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4462 * doc/tm.texi: Rebuild.
4463
4464 * gimple.c (check_loadstore): Return false when 0 is a valid address.
4465 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4466 null when 0 is valid in the source address space.
4467 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4468 * targhooks.c (default_addr_space_zero_address_valid): New.
4469 * targhooks.h (default_addr_space_zero_address_valid): Declare.
4470 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4471 * doc/tm.texi: Rebuild.
4472
4473 * cselib.c (add_mem_for_addr): Compare address spaces when
4474 matching memories.
4475 (cselib_lookup_mem): Likewise.
4476 * fold-const.c (operand_equal_p): Check address spaces of
4477 pointer types before checking integer constants.
4478
4479 PR tree-opt/66768
4480 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4481 the correct type for the base.
4482
4483 2015-11-09 Jeff Law <law@redhat.com>
4484
4485 * tree-into-ssa.c (names_to_release): No longer static.
4486 * tree-into-ssa.h (names_to_release): Declare.
4487 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4488 (release_free_names_and_compact_live_names): New function extracted
4489 from pass_release_ssa_names::execute.
4490 (pass_release_ssa_names::execute): Use it.
4491
4492 2015-11-09 Alan Modra <amodra@gmail.com>
4493
4494 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4495 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4496 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4497 return value.
4498
4499 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4500
4501 PR rtl-optimization/68182
4502 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4503 branch with only one successor just like unconditional branches.
4504
4505 2015-11-08 Jeff Law <law@redhat.com>
4506
4507 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4508 non-FSM path has no edges marked with EDGE_DFS_BACK.
4509 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4510 (thread_single_edge, def_split_header_continue_p): Remove.
4511 (bb_ends_with_multiway_branch): Likewise.
4512 (thread_through_loop_header): Remove cases of threading from
4513 latch through the header. Simplify knowing we won't thread
4514 the latch.
4515 (thread_through_all_blocks): Simplify knowing that only the FSM
4516 threader needs to handle backedges.
4517
4518 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4519
4520 * doc/extend.texi (type attributes): Document scalar_storage_order.
4521 (Structure-Packing Pragmas): Rename into...
4522 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4523 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4524 (Warnings): Document -Wno-scalar-storage-order.
4525 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4526 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4527 extract_bit_field and store_bit_field.
4528 (initialize_argument_information): Adjust call to store_expr.
4529 (load_register_parameters): Adjust call to extract_bit_field.
4530 * expmed.c (check_reverse_storage_order_support): New function.
4531 (check_reverse_float_storage_order_support): Likewise.
4532 (flip_storage_order): Likewise.
4533 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4534 of the value if it is true. Pass REVERSE to recursive call after
4535 adjusting the target offset.
4536 Do not use extraction or movstrict instruction if REVERSE is true.
4537 Pass REVERSE to store_fixed_bit_field.
4538 (store_bit_field): Add REVERSE parameter and pass to it to above.
4539 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4540 store_split_bit_field and store_fixed_bit_field_1.
4541 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4542 order of the value if it is true and adjust the target offset.
4543 (store_split_bit_field): Add REVERSE parameter and pass it to
4544 store_fixed_bit_field. Adjust the target offset if it is true.
4545 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4546 of the value if it is true. Pass REVERSE to recursive call after
4547 adjusting the target offset.
4548 Do not use extraction or subreg instruction if REVERSE is true.
4549 Pass REVERSE to extract_fixed_bit_field.
4550 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4551 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4552 extract_split_bit_field and extract_fixed_bit_field_1.
4553 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4554 order of the value if it is true and adjust the target offset.
4555 (extract_split_bit_field): Add REVERSE parameter and pass it to
4556 extract_fixed_bit_field. Adjust the target offset if it is true.
4557 * expmed.h (flip_storage_order): Declare.
4558 (store_bit_field): Adjust prototype.
4559 (extract_bit_field): Likewise.
4560 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4561 (emit_group_store): Adjust call to store_bit_field.
4562 (copy_blkmode_from_reg): Likewise.
4563 (copy_blkmode_to_reg): Likewise.
4564 (write_complex_part): Likewise.
4565 (read_complex_part): Likewise.
4566 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4567 that it isn't true if the target is a register.
4568 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4569 and flip the storage order of the value.
4570 <BIT_IOR_EXPR>: Flip the storage order of the value.
4571 (get_bit_range): Adjust call to get_inner_reference.
4572 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4573 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4574 with reverse storage order.
4575 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4576 recursive calls and call to store_bit_field. Force the value into a
4577 register if it is true and then flip the storage order of the value.
4578 (store_expr): Add REVERSE parameter and pass it to above.
4579 (categorize_ctor_elements_1): Adjust call to
4580 initializer_constant_valid_p.
4581 (store_constructor_field): Add REVERSE parameter and pass it to
4582 recursive calls and call to store_field.
4583 (store_constructor): Add REVERSE parameter and pass it to calls to
4584 store_constructor_field and store_expr. Set it to true for an
4585 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4586 (store_field): Add REVERSE parameter and pass it to recursive calls
4587 and calls to store_expr and store_bit_field. Temporarily flip the
4588 storage order of the value with record type and integral mode and
4589 adjust the shift if it is true.
4590 (get_inner_reference): Add PREVERSEP parameter and set it to true
4591 upon encoutering a reference with reverse storage order.
4592 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4593 (expand_constructor): Adjust call to store_constructor.
4594 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4595 of the union type to store_expr in the MEM case and assert that it
4596 isn't set in the REG case. Adjust call to store_field.
4597 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4598 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4599 get_inner_reference and extract_bit_field. Temporarily flip the
4600 storage order of the value with record type and integral mode and
4601 adjust the shift if it is true. Flip the storage order of the value
4602 at the end if it is true.
4603 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4604 get_inner_reference. Do not fetch an inner reference if it is true.
4605 * expr.h (store_expr_with_bounds): Ajust prototype.
4606 (store_expr): Likewise.
4607 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4608 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4609 (optimize_bit_field_compare): Deal with reverse storage order.
4610 Adjust calls to get_inner_reference and make_bit_field_ref.
4611 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4612 get_inner_reference.
4613 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4614 to decode_field_reference and make_bit_field_ref.
4615 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4616 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4617 (fold_comparison): Adjust call to get_inner_reference.
4618 (split_address_to_core_and_offset): Adjust call to
4619 get_inner_reference.
4620 * gimple-expr.c (useless_type_conversion_p): Return false for array
4621 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4622 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4623 REF_REVERSE_STORAGE_ORDER flag.
4624 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4625 * output.h (assemble_real): Adjust prototype.
4626 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4627 * stor-layout.c (finish_record_layout): Propagate the
4628 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4629 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4630 (TYPE_SATURATING): Adjust.
4631 (REF_REVERSE_STORAGE_ORDER): Document.
4632 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4633 set it to true upon encoutering a reference with reverse storage order.
4634 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4635 * tree-inline.c (remap_gimple_op_r): Propagate the
4636 REF_REVERSE_STORAGE_ORDER flag.
4637 (copy_tree_body_r): Likewise.
4638 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4639 store_expr.
4640 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4641 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4642 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4643 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4644 REF_REVERSE_STORAGE_ORDER flag.
4645 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4646 (gimple_canonical_types_compatible_p): Likewise.
4647 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4648 (TYPE_SATURATING): Adjust.
4649 (REF_REVERSE_STORAGE_ORDER): New flag.
4650 (reverse_storage_order_for_component_p): New inline predicate.
4651 (storage_order_barrier_p): Likewise.
4652 (get_inner_reference): Adjust prototype.
4653 * varasm.c: Include expmed.h.
4654 (assemble_variable_contents): Adjust call to output_constant.
4655 (assemble_real): Add REVERSE parameter. Flip the storage
4656 order of the value if REVERSE is true.
4657 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4658 (assemble_constant_contents): Adjust call to output_constant.
4659 (output_constant_pool_2): Adjust call to assemble_real.
4660 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4661 TYPE_REVERSE_STORAGE_ORDER.
4662 (initializer_constant_valid_p): Add REVERSE parameter.
4663 (output_constant): Add REVERSE parameter.
4664 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4665 <REAL_TYPE>: Adjust call to assemble_real.
4666 <COMPLEX_TYPE>: Pass it to recursive calls.
4667 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4668 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4669 (struct oc_local_state): Add REVERSE field.
4670 (output_constructor_array_range): Adjust calls to output_constant.
4671 (output_constructor_regular_field): Likewise.
4672 (output_constructor_bitfield): Adjust call to output_constructor.
4673 Flip the storage order of the value if REVERSE is true.
4674 (output_constructor): Add REVERSE parameter. Set it to true for an
4675 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4676 output_constructor_bitfield.
4677 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4678 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4679 * builtins.c (get_object_alignment_2): Likewise.
4680 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4681 and get_ref_base_and_extent.
4682 * dbxout.c (dbxout_expand_expr): Likewise.
4683 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4684 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4685 (loc_list_from_tree): Likewise.
4686 (fortran_common): Likewise.
4687 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4688 get_ref_base_and_extent.
4689 (get_base_constructor): Likewise.
4690 (fold_const_aggregate_ref_1): Likewise.
4691 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4692 get_inner_reference.
4693 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4694 get_inner_reference and bail out on reverse storage order.
4695 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4696 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4697 build_ref_for_offset.
4698 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4699 get_ref_base_and_extent.
4700 (ipa_polymorphic_call_context): Likewise.
4701 (extr_type_from_vtbl_ptr_store): Likewise.
4702 (check_stmt_for_type_change): Likewise.
4703 (get_dynamic_type): Likewise.
4704 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4705 get_ref_base_and_extent.
4706 (compute_complex_assign_jump_func): Likewise.
4707 (get_ancestor_addr_info): Likewise.
4708 (compute_known_type_jump_func): Likewise.
4709 (determine_known_aggregate_parts): Likewise.
4710 (ipa_get_adjustment_candidate): Likewise.
4711 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4712 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4713 (build_ref_for_offset): Adjust prototype.
4714 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4715 get_inner_reference.
4716 * tree-affine.c (tree_to_aff_combination): Adjust call to
4717 get_inner_reference.
4718 (get_inner_reference_aff): Likewise.
4719 * tree-data-ref.c (split_constant_offset_1): Likewise.
4720 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4721 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4722 get_inner_reference.
4723 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4724 (dump_access): Print new fields.
4725 (create_access): Adjust call to get_ref_base_and_extent and set the
4726 REVERSE flag according to the result.
4727 (completely_scalarize_record): Set the REVERSE flag.
4728 (scalarize_elem): Add REVERSE parameter.
4729 (build_access_from_expr_1): Preserve storage order barriers.
4730 (build_accesses_from_assign): Likewise.
4731 (build_ref_for_offset): Add REVERSE parameter and set the
4732 REF_REVERSE_STORAGE_ORDER flag accordingly.
4733 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4734 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4735 (analyze_access_subtree): Likewise.
4736 (create_artificial_child_access): Set the REVERSE flag.
4737 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4738 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4739 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4740 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4741 get_ref_base_and_extent.
4742 (aliasing_component_refs_p): Likewise.
4743 (stmt_kills_ref_p_1): Likewise.
4744 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4745 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4746 Return true if reverse storage order.
4747 <BIT_FIELD_REF>: Likewise.
4748 <COMPONENT_REF>: Likewise.
4749 <ARRAY_REF>: Likewise.
4750 <ARRAY_RANGE_REF>: Likewise.
4751 (split_address_cost): Likewise. Bail out if reverse storage order.
4752 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4753 get_inner_reference. Bail out if reverse storage order.
4754 (bswap_replace): Adjust call to get_inner_reference.
4755 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4756 the REF_REVERSE_STORAGE_ORDER flag.
4757 <BIT_FIELD_REF>: Likewise.
4758 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4759 barriers.
4760 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4761 to the REF_REVERSE_STORAGE_ORDER flag.
4762 <BIT_FIELD_REF>: Likewise.
4763 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4764 (contains_storage_order_barrier_p): New predicate.
4765 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4766 Punt on storage order barriers if necessary.
4767 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4768 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4769 call to get_ref_base_and_extent.
4770 (do_structure_copy): Likewise.
4771 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4772 get_inner_reference.
4773 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4774 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4775 * ubsan.c (instrument_bool_enum_load): Likewise.
4776 (instrument_object_size): Likewise.
4777 * var-tracking.c (track_expr_p): Adjust call to
4778 get_ref_base_and_extent.
4779 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4780 get_inner_reference.
4781 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4782 store_bit_field.
4783 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4784 extract_bit_field.
4785 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4786
4787 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4788
4789 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4790
4791 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4792
4793 PR rtl-optimization/67864
4794 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4795 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4796 at -Os and up.
4797
4798 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4799
4800 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4801 internal functions.
4802
4803 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4804
4805 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4806 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4807
4808 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4809
4810 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4811 * internal-fn.c: Don't undef it here.
4812 * tree-core.h: Likewise.
4813
4814 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4815
4816 * builtins.c (fold_builtin_nan): Delete.
4817 (fold_builtin_memcmp): Remove case where both arguments are constant.
4818 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4819 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4820 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4821 * fold-const-call.c: Include fold-const.h.
4822 (host_size_t_cst_p): New function.
4823 (build_cmp_result, fold_const_builtin_nan): Likewise.
4824 (fold_const_call_1): New function, split out from...
4825 (fold_const_call): ...here (for all three interfaces). Handle
4826 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4827
4828 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4829
4830 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4831 (fold_builtin_1): Don't call them.
4832 * fold-const-call.c: Include tm.h.
4833 (fold_const_call_ss): New variant for integer-to-integer folds.
4834 (fold_const_call): Call it.
4835
4836 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4837
4838 * builtins.c (fold_builtin_classify): Move constant cases to...
4839 * fold-const-call.c (fold_const_call_ss): ...here.
4840
4841 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4842
4843 * builtins.h (c_getstr): Move to...
4844 * fold-const.h (c_getstr): ...here.
4845 * builtins.c (c_getstr): Move to...
4846 * fold-const.c (c_getstr): ...here.
4847
4848 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4849
4850 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4851 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4852
4853 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4854
4855 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4856 the dominance info; free it if we can't.
4857 (pass_call_cdce::execute): Don't free the dominance info here.
4858
4859 2015-11-06 Jeff Law <law@redhat.com>
4860
4861 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4862 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4863 If we thread to a backedge, then return false. Update recursive
4864 call to eliminate backedge_seen_p argument.
4865 (thread_through_normal_block): Remove backedge_seen_p argument.
4866 Remove backedge_seen_p argument from calls to
4867 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4868 If we thread to a backedge, then return 0.
4869 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4870 pass it to thread_through_normal_block or thread_through_empty_blocks.
4871 For joiner handling, if we see a backedge, do not try normal
4872 threading.
4873
4874 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4875
4876 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4877 * graphite-poly.c (new_scop): Initialize original_schedule.
4878 (free_scop): Free original_schedule.
4879 * graphite-poly.h (struct scop): Add field original_schedule.
4880 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4881 (build_poly_scop): Call build_scop_original_schedule.
4882
4883 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4884
4885 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4886 (build_pbb_minimal_scattering_polyhedrons): New.
4887 (build_scop_scattering): Remove.
4888 (build_scop_minimal_scattering): New.
4889 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4890 (build_poly_scop): Call build_scop_minimal_scattering.
4891
4892 2015-11-06 Jeff Law <law@redhat.com>
4893
4894 * cfg-flags.def (IGNORE): New edge flag.
4895 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4896 scheduled for removal with EDGE_IGNORE around call into
4897 jump threader. Do no thread across edges with EDGE_IGNORE,
4898 but do allow threading across those with EDGE_DFS_BACK.
4899
4900 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4901
4902 * doc/md.texi (multi-alternative constraints): Don't document
4903 alternatives inherently tied to reload for the user documentation.
4904
4905 2015-11-06 Michael Collison <michael.collison@linaro.org>
4906 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4907
4908 Revert:
4909 2015-08-01 Michael Collison <michael.collison@linaro.org
4910 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4911
4912 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4913 (*arm_umin_cmp): Likewise.
4914
4915 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4916
4917 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4918 * omp-low.c (check_omp_nesting_restrictions): Update for the
4919 various new OpenMP 4.5 nesting restrictions, clarified
4920 nesting glossary, closely nested region relationship clarified
4921 to mean explicit or implicit parallel regions (target/teams),
4922 use %</%> or %qs where appropriate.
4923
4924 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4925 Sebastian Pop <s.pop@samsung.com>
4926
4927 * graphite-scop-detection.c (loop_is_valid_scop): Call
4928 optimize_loop_nest_for_speed_p.
4929
4930 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4931 Sebastian Pop <s.pop@samsung.com>
4932
4933 * graphite-optimize-isl.c (optimize_isl): Call
4934 isl_options_set_schedule_maximize_band_depth.
4935
4936 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4937 Sebastian Pop <s.pop@samsung.com>
4938
4939 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4940 and exit edges should not be a part of irreducible loop.
4941 (scop_detection::can_represent_loop_1): Loops should not be
4942 irreducible.
4943 (scop_detection::harmful_stmt_in_region): All the basic block
4944 should belong to reducible loops.
4945
4946 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4947
4948 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4949 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4950 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4951 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4952 (aarch64_tbx4v8qi): Rename to...
4953 aarch64_tbx4<mode>): ... this.
4954 (aarch64_qtbl3<mode>): New pattern.
4955 (aarch64_qtbx3<mode>): New pattern.
4956 (aarch64_qtbl4<mode>): New pattern.
4957 (aarch64_qtbx4<mode>): New pattern.
4958 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4959 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4960 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4961 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4962 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4963 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4964 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4965 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4966 functions.
4967
4968 2015-11-06 Mike Stump <mikestump@comcast.net>
4969
4970 PR debug/66728
4971 * dwarf2out.c (get_full_len): Return a value based upon the actual
4972 precision needed for the value.
4973 (add_const_value_attribute): Use a maximal wide-int for
4974 CONST_WIDE_INTs, not VOIDmode.
4975 (output_die): Don't ever output NULL with printf.
4976
4977 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4978 BLKmode nor VOIDmode values.
4979
4980 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4981
4982 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4983 and "range2".
4984 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4985 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4986 (error_at_rich_loc): New declaration.
4987 (permerror_at_rich_loc): New declaration.
4988 (inform_at_rich_loc): New declaration.
4989 * diagnostic-show-locus.c (adjust_line): Delete.
4990 (struct point_state): New struct.
4991 (class colorizer): New class.
4992 (class layout_point): New class.
4993 (class layout_range): New class.
4994 (struct line_bounds): New.
4995 (class layout): New class.
4996 (colorizer::colorizer): New ctor.
4997 (colorizer::~colorizer): New dtor.
4998 (layout::layout): New ctor.
4999 (layout::print_source_line): New method.
5000 (layout::print_annotation_line): New method.
5001 (layout::get_state_at_point): New method.
5002 (layout::get_x_bound_for_row): New method.
5003 (diagnostic_show_locus): Reimplement in terms of class layout.
5004 (diagnostic_print_caret_line): Delete.
5005 * diagnostic.c (diagnostic_initialize): Replace
5006 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5007 (diagnostic_set_info_translated): Convert param from location_t
5008 to rich_location *. Eliminate calls to set_location on the
5009 message in favor of storing the rich_location ptr there.
5010 (diagnostic_set_info): Convert param from location_t to
5011 rich_location *.
5012 (diagnostic_build_prefix): Break out array into...
5013 (diagnostic_kind_color): New variable.
5014 (diagnostic_get_color_for_kind): New function.
5015 (diagnostic_report_diagnostic): Colorize the option_text
5016 using the color for the severity.
5017 (diagnostic_append_note): Update for change in signature of
5018 diagnostic_set_info.
5019 (diagnostic_append_note_at_rich_loc): New function.
5020 (emit_diagnostic): Update for change in signature of
5021 diagnostic_set_info.
5022 (inform): Likewise.
5023 (inform_at_rich_loc): New function.
5024 (inform_n): Update for change in signature of diagnostic_set_info.
5025 (warning): Likewise.
5026 (warning_at): Likewise.
5027 (warning_at_rich_loc): New function.
5028 (warning_n): Update for change in signature of diagnostic_set_info.
5029 (pedwarn): Likewise.
5030 (permerror): Likewise.
5031 (permerror_at_rich_loc): New function.
5032 (error): Update for change in signature of diagnostic_set_info.
5033 (error_n): Likewise.
5034 (error_at): Likewise.
5035 (error_at_rich_loc): New function.
5036 (sorry): Update for change in signature of diagnostic_set_info.
5037 (fatal_error): Likewise.
5038 (internal_error): Likewise.
5039 (internal_error_no_backtrace): Likewise.
5040 (source_range::debug): New function.
5041 * diagnostic.h (struct diagnostic_info): Eliminate field
5042 "override_column". Add field "richloc".
5043 (struct diagnostic_context): Add field "colorize_source_p".
5044 (diagnostic_override_column): Delete.
5045 (diagnostic_set_info): Convert param from location_t to
5046 rich_location *.
5047 (diagnostic_set_info_translated): Likewise.
5048 (diagnostic_append_note_at_rich_loc): New function.
5049 (diagnostic_num_locations): New function.
5050 (diagnostic_expand_location): Get the location from the
5051 rich_location.
5052 (diagnostic_print_caret_line): Delete.
5053 (diagnostic_get_color_for_kind): New declaration.
5054 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5055 (error_cb): Update for change in signature of "error" callback.
5056 (fatal_at): Likewise.
5057 (warning_at): Likewise.
5058 * input.c (linemap_client_expand_location_to_spelling_point): New.
5059 * pretty-print.c (text_info::set_range): New method.
5060 (text_info::get_location): New method.
5061 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5062 (struct text_info): Eliminate "locations" array in favor of
5063 "m_richloc", a rich_location *.
5064 (textinfo::set_location): Add a "caret_p" param, and reimplement
5065 in terms of a call to set_range.
5066 (textinfo::get_location): Eliminate inline implementation in favor of
5067 an out-of-line reimplementation.
5068 (textinfo::set_range): New method.
5069 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5070 of diagnostic_set_info.
5071 * tree-diagnostic.c (default_tree_printer): Update for new
5072 "caret_p" param for textinfo::set_location.
5073 * tree-pretty-print.c (percent_K_format): Likewise.
5074
5075 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5076
5077 Properly apply.
5078 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5079 * config/aarch64/aarch64.c
5080 (aarch64_can_use_per_function_literal_pools_p): New.
5081 (aarch64_use_blocks_for_constant_p): Adjust declaration
5082 and use aarch64_can_use_function_literal_pools_p.
5083 (aarch64_select_rtx_section): Update.
5084
5085 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5086
5087 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5088 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5089 (arm_output_multireg_pop): Likewise.
5090 (output_move_double): Likewise.
5091 (output_move_quad): Likewise.
5092 (output_return_instruction): Likewise.
5093 (arm_print_operand): Remove support for %( and %. print modifiers.
5094 (arm_output_shift): Make unified asm.
5095 (arm_declare_function_name): Likewise.
5096 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5097 (ASM_APP_OFF): Adjust.
5098 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5099 (ASM_OUTPUT_REG_POP): Likewise.
5100 * config/arm/arm.md: Adjust uses of %., %(, %)
5101 * config/arm/sync.md: Likewise.
5102 * config/arm/thumb2.md: Likewise.
5103 * config/arm/ldmstm.md: Regenerate.
5104 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5105 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5106
5107 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5108
5109 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5110
5111 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5112
5113 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5114 add OEP_MATCH_SIDE_EFFECTS.
5115 * fold-const.c (operand_equal_p): Update documentation; handle
5116 OEP_MATCH_SIDE_EFFECTS.
5117 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5118 OEP_MATCH_SIDE_EFFECTS.
5119
5120 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5121 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5122
5123 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5124 * config/aarch64/aarch64-protos.h: Declare.
5125 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5126 frsqrts.
5127 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5128 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5129 code when applicable.
5130 * config/aarch64/aarch64.md: Added enum entries.
5131 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5132
5133 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5134
5135 PR ipa/68057
5136 PR ipa/68220
5137 * ipa-polymorphic-call.c
5138 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5139 issue when offset is out of range.
5140 (contains_type_p): Fix out of range check, clear dynamic flag.
5141
5142 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
5143
5144 * config.gcc (e6500): Fix cpu_is_64bit typo.
5145
5146 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
5147
5148 * tree-sra.c (completely_scalarize): Properly handle negative array
5149 indices using offset_int.
5150
5151 2015-11-06 Richard Biener <rguenther@suse.de>
5152
5153 * alloc-pool.h (object_allocator::allocate): Default-initialize
5154 object.
5155
5156 2015-11-06 Richard Biener <rguenther@suse.de>
5157
5158 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5159 * lra.c (init_reg_info): Truncate copy_vec instead of
5160 re-allocating a new one and leaking the old.
5161 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5162 bb_infos vec.
5163 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5164 * postreload-gcse.c (free_mem): Free modify_mem_list and
5165 canon_modify_mem_list.
5166
5167 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
5168
5169 PR tree-optimization/68145
5170 * tree-vect-stmts.c (vectorizable_operation): Fix
5171 determination for booleans.
5172
5173 2015-11-06 Tom de Vries <tom@codesourcery.com>
5174
5175 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5176 cond_jump, instead of split after last nondebug insn before cond_jump.
5177 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5178 returning.
5179
5180 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5181
5182 PR target/68088
5183 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5184 subregs from accumulator and make sure it's a register.
5185
5186 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5187
5188 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5189 low part to scalar.
5190 (reduc_uplus_<mode>): Remove.
5191 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5192 loongson_extract_lo_<mode>.
5193 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5194 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5195 loongson_extract_lo_<mode>.
5196 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5197
5198 2015-11-06 Richard Biener <rguenther@suse.de>
5199
5200 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5201 members.
5202 (vect_stmt_in_region_p): Declare.
5203 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5204 (destroy_bb_vec_info): Likewise.
5205 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5206 (vect_get_and_check_slp_defs): Likewise.
5207 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5208 (vect_slp_bb): Likewise.
5209 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5210 in terms of vect_stmt_in_region_p.
5211 (vect_pattern_recog): Iterate over the BB region.
5212 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5213 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5214 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5215 * config/i386/i386.c: Include gimple-iterator.h.
5216 * config/aarch64/aarch64.c: Likewise.
5217
5218 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5219
5220 PR rtl-optimization/67753
5221 PR rtl-optimization/64164
5222 * function.c (assign_parm_setup_block): Avoid allocating a
5223 stack slot if we don't have an ABI-reserved one. Emit the
5224 copy to target_reg in the conversion seq if the copy from
5225 entry_parm is in it too. Don't use the conversion seq to copy
5226 a PARALLEL to a REG or a CONCAT.
5227
5228 2015-11-06 Richard Biener <rguenther@suse.de>
5229
5230 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5231 equal_keys.
5232
5233 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5234 Thomas Schwinge <thomas@codesourcery.com>
5235 James Norris <jnorris@codesourcery.com>
5236
5237
5238 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5239 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5240 (gimplify_adjust_omp_clauses): Likewise.
5241 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5242 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5243 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5244 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5245 (omp_clause_code_name): Likewise.
5246 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5247 * tree.h (OMP_TILE_LIST): New macro.
5248
5249 2015-11-05 Martin Sebor <msebor@redhat.com>
5250
5251 PR c++/67942
5252 * doc/invoke.texi (-Wplacement-new): Document new option.
5253
5254 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5255
5256 PR tree-optimization/65963
5257 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5258 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5259
5260 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5261
5262 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5263 (noce_convert_multiple_sets): Likewise.
5264 (noce_process_if_block): Call them.
5265
5266 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5267
5268 * gimple-fold.c: Include omp-low.h.
5269 (fold_internal_goacc_dim): New.
5270 (gimple_fold_call): Call it.
5271
5272 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5273 Ilya Verbin <ilya.verbin@intel.com>
5274
5275 * builtin-types.def
5276 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5277 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5278 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5279 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5280 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5281 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5282 (struct cgraph_simd_clone_arg): Adjust comment.
5283 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5284 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5285 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5286 to GOMP_target_data_ext.
5287 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5288 to GOMP_target_update_ext.
5289 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5290 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5291 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5292 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5293 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5294 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5295 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5296 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5297 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5298 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5299 * tree-core.h (enum omp_clause_schedule_kind): Add
5300 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5301 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5302 OMP_CLAUSE_SCHEDULE_LAST value.
5303 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5304 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5305 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5306 OMP_FOR_CHECK. Remove comment.
5307 * tree-pretty-print.c (dump_omp_clause): Handle
5308 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5309 Simplify. Print schedule clause modifiers.
5310 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5311 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5312 cases.
5313 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5314 (omp_default_clause): Tweak for
5315 private/firstprivate/is_device_ptr variables on target
5316 construct and use_device_ptr on target data.
5317 (omp_check_private): Likewise.
5318 (omp_notice_variable): For references check whether what it refers
5319 to has mappable type, rather than the reference itself.
5320 (omp_is_private): Diagnose linear iteration variables on non-simd
5321 constructs.
5322 (omp_no_lastprivate): Return true only for Fortran.
5323 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5324 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5325 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5326 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5327 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5328 lastprivate and linear when combined with distribute. Gimplify
5329 variable low-bound for array reduction. Look through
5330 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5331 reductions.
5332 (gimplify_adjust_omp_clauses_1): For implicit references to
5333 variables with reference type and when not ref to scalar or
5334 ref to pointer, map what they refer to using tofrom and
5335 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5336 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5337 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5338 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5339 Diagnose the same var on both firstprivate and lastprivate on
5340 distribute construct.
5341 (gimplify_omp_for): Fix up handling of predetermined
5342 lastprivate or linear iter vars when combined with distribute.
5343 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5344 functions.
5345 (gimplify_omp_workshare): Call optimize_target_teams.
5346 * omp-low.c (struct omp_region): Add sched_modifiers field.
5347 (struct omp_for_data): Likewise.
5348 (omp_any_child_fn_dumped): New variable.
5349 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5350 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5351 from sched_kind.
5352 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5353 bits of OMP_CLAUSE_SCHED_KIND.
5354 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5355 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5356 for array section reductions.
5357 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5358 for distribute parallel for, if there are lastprivate clauses on the
5359 for.
5360 (lower_rec_input_clauses): Handle non-zero low-bound on array
5361 section reductions.
5362 (lower_reduction_clauses): Likewise.
5363 (lower_send_clauses): Look through POINTER_PLUS_EXPR
5364 for array section reductions.
5365 (expand_parallel_call): Use nonmonotonic entrypoints for
5366 nonmonotonic: dynamic/guided.
5367 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5368 child_fn if current_function_decl has assembler name set, but child_fn
5369 does not. Dump the header and IL of the child function when not in SSA
5370 form.
5371 (expand_omp_target): Likewise. Pass num_teams and thread_limit
5372 arguments to BUILT_IN_GOMP_TARGET.
5373 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5374 Initialize the extra _looptemp_ clause to fd->loop.n2.
5375 (expand_omp_for): Use nonmonotonic entrypoints for
5376 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
5377 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
5378 again if we have dumped any child functions.
5379 (lower_omp_for_lastprivate): Determine the right count variable
5380 for distribute simd, or distribute parallel for{, simd}.
5381 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5382 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
5383 support.
5384 (simd_clone_clauses_extract): Handle variable step
5385 for references and arguments passed by reference.
5386 (simd_clone_mangle): Mangle ref/uval/val variable steps.
5387 (simd_clone_adjust_argument_types): Handle
5388 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5389 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5390 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5391 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5392 (simd_clone_linear_addend): New function.
5393 (simd_clone_adjust): Handle variable step like similarly
5394 to constant step, use simd_clone_linear_addend to determine
5395 the actual step at runtime.
5396
5397 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5398
5399 * target.def (goacc.dim_limit): New hook.
5400 * targhooks.h (default_goacc_dim_limit): Declare.
5401 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5402 * doc/tm.texi: Rebuilt.
5403 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5404 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5405 (default_goacc_dim_limit): New.
5406 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5407 (nvptx_goacc_dim_limit) New.
5408 (TARGET_GOACC_DIM_LIMIT): Override.
5409 * tree-vrp.c: Include omp-low.h, target.h.
5410 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5411 IFN_GOACC_DIM_POS.
5412
5413 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5414
5415 * tree-vect-generic.c (do_compare): Use -1 for true
5416 result instead of 1.
5417
5418 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5419
5420 * config/aarch64/aarch64.c
5421 (aarch64_can_use_per_function_literal_pools_p): New.
5422 (aarch64_use_blocks_for_constant_p): Adjust declaration
5423 and use aarch64_can_use_function_literal_pools_p.
5424 (aarch64_select_rtx_section): Update.
5425
5426 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5427
5428 * targhooks.c (default_get_mask_mode): Use BLKmode in
5429 case target doesn't support required vector mode.
5430 * stor-layout.c (layout_type); Check for BLKmode.
5431
5432 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5433 Sebastian Pop <s.pop@samsung.com>
5434
5435 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5436 Remove use of parameter_rename_map.
5437 (copy_def): Remove.
5438 (copy_internal_parameters): Remove.
5439 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5440 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5441 (free_sese_info): Do not free parameter_rename_map.
5442 (set_rename): Do not use parameter_rename_map.
5443 (rename_uses): Update call to set_rename.
5444 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5445 * sese.h (parameter_rename_map_t): Remove.
5446 (struct sese_info_t): Remove field parameter_rename_map.
5447
5448 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5449 Sebastian Pop <s.pop@samsung.com>
5450
5451 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5452 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5453 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5454 anonymous namespace.
5455 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5456 (isl_id_for_pbb): Use a buffer of size 10.
5457 (isl_id_for_ssa_name): Same.
5458 * sese.c (set_rename): Add more dumps.
5459
5460 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5461
5462 * omp-low.c (struct omp_context): Remove reduction_map field.
5463 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5464 (new_omp_context, delete_omp_context, scan_omp_target): Remove
5465 reduction_map handling.
5466 (lower_omp_target): Remove obsolete openacc reduction handling.
5467
5468 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5469
5470 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5471
5472 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5473 Cesar Philippidis <cesar@codesourcery.com>
5474
5475 * config/nvptx/nvptx.c: Include gimple headers.
5476 (worker_red_size, worker_red_align, worker_red_name,
5477 worker_red_sym): New.
5478 (nvptx_option_override): Initialize worker reduction buffer.
5479 (nvptx_file_end): Write out worker reduction buffer var.
5480 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5481 nvptx_expand_cmp_swap): New builtin expanders.
5482 (enum nvptx_builtins): New.
5483 (nvptx_builtin_decls): New.
5484 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5485 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5486 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5487 nvptx_lockless_update): New helpers.
5488 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5489 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5490 (nvptx_goacc_reduction): New.
5491 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5492 TARGET_BUILTIN_DECL): Override.
5493 (TARGET_GOACC_REDUCTION): Override.
5494
5495 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5496 Cesar Philippidis <cesar@codesourcery.com>
5497
5498 * internal-fn.def (GOACC_REDUCTION): New.
5499 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5500 * internal-fn.c (expand_GOACC_REDUCTION): New.
5501 * target.def (goacc.reduction): New OpenACC hook.
5502 * targhooks.h (default_goacc_reduction): Declare.
5503 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5504 * doc/tm.texi: Rebuilt.
5505 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5506 scan_sharing_clauses): Remove oacc reduction handling here.
5507 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5508 (oacc_lower_reduction_var_helper): Delete.
5509 (lower_oacc_reductions): New.
5510 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5511 (lower_oacc_head_tail): Call lower_oacc_reductions.
5512 (oacc_gimple_assign, oacc_init_reduction_array,
5513 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5514 oacc_process_reduction_data): Delete.
5515 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5516 dummy OpenACC gang reduction for reductions at outer level.
5517 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5518 (default_goacc_reduction): New.
5519 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5520
5521 2015-11-04 Martin Liska <mliska@suse.cz>
5522
5523 * cgraphunit.c (cgraph_node::expand_thunk): Call
5524 allocate_struct_function before init_function_start.
5525 (cgraph_node::expand): Use push_cfun and pop_cfun.
5526 * config/i386/i386.c (ix86_code_end): Call
5527 allocate_struct_function before init_function_start.
5528 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5529 * function.c (init_function_start): Move preamble to all
5530 callers.
5531 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5532 (execute_one_pass): Handle newly added TODO_discard_function.
5533 (execute_pass_list_1): Terminate if cfun equals to NULL.
5534 (execute_pass_list): Do not push and pop cfun, expect that
5535 cfun is set.
5536 * tree-pass.h (TODO_discard_function): Define.
5537
5538 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5539
5540 * cfganal.c (inverted_post_order_compute): Remove conditional
5541 compilation, use flag_checking.
5542 * config.in: Regenerate.
5543 * configure: Regenerate.
5544 * configure.ac: Remove ENABLE_CHECKING.
5545 * genconditions.c: Do not #undef ENABLE_CHECKING.
5546 * sese.h (bb_in_region): Comment out broken check.
5547 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5548 conditional compilation, use flag_checking.
5549
5550 2015-11-04 Tom de Vries <tom@codesourcery.com>
5551
5552 PR tree-optimization/67742
5553 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5554 field.
5555 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5556 (create_variable_info_for_1): Add and handle handle_param parameter.
5557 Add restrict handling.
5558 (create_variable_info_for): Call create_variable_info_for_1 with extra
5559 arg.
5560 (make_param_constraints): Drop restrict_name parameter. Ignore
5561 vi->only_restrict_pointers.
5562 (intra_create_variable_infos): Call create_variable_info_for_1 with
5563 extra arg. Remove restrict handling. Call make_param_constraints with
5564 one fewer arg.
5565
5566 2015-11-04 Tom de Vries <tom@codesourcery.com>
5567
5568 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5569 variable.
5570
5571 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5572
5573 * config/arm/coff.h: Remove.
5574
5575 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5576
5577 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5578 check for aggregate types and beef up comment for mode check.
5579
5580 2015-11-03 Richard Biener <rguenther@suse.de>
5581
5582 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5583 data references here.
5584 * tree-vect-loop.c: Include cgraph.h.
5585 (vect_analyze_loop_2): Collect data references here.
5586 * tree-vect-slp.c (find_bb_location): Inline ...
5587 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5588 Factor in vect_slp_transform_bb.
5589 (vect_slp_transform_bb): Removed.
5590 (vect_slp_analyze_bb_1): Collect data references here.
5591 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5592 vect_slp_bb.
5593 * tree-vectorizer.h (vect_slp_bb): Declare.
5594 (vect_slp_analyze_bb): Remove.
5595 (vect_slp_transform_bb): Remove.
5596 (find_bb_location): Remove.
5597 (vect_analyze_data_refs): Remove stmt count reference parameter.
5598
5599 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5600
5601 * multiple_target.c (create_dispatcher_calls): Add target check
5602 on ifunc.
5603 (create_target_clone): Change assembler name for versioned declarations.
5604
5605 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5606 Chung-Lin Tang <cltang@codesourcery.com>
5607
5608 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5609 * omp-low.c (check_omp_nesting_restrictions): Allow
5610 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5611 contexts.
5612
5613 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5614
5615 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5616 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5617 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5618 builtin.
5619 (vmulxq_f32): Likewise.
5620 (vmulx_f64): New.
5621 (vmulxq_f64): Rewrite to call fmulx builtin.
5622 (vmulxs_f32): Likewise.
5623 (vmulxd_f64): Likewise.
5624 (vmulx_lane_f32): Remove.
5625 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5626
5627 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5628
5629 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5630 aarch64_reg_or_fp_zero for second operand.
5631
5632 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5633
5634 * gimple-expr.c: Include hash-set.h and rtl.h.
5635 (mark_addressable_queue): New var.
5636 (mark_addressable): Factor actual marking into...
5637 (mark_addressable_1): ... this. Queue it up during expand.
5638 (mark_addressable_2): New.
5639 (flush_mark_addressable_queue): New.
5640 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5641 * cfgexpand.c: Include gimple-expr.h.
5642 (pass_expand::execute): Flush mark_addressable queue.
5643
5644 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5645
5646 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5647 bb_no_side_effects_p tests...
5648 (tree_ssa_ifcombine_bb): ... here.
5649
5650 PR tree-optimization/68083
5651 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5652 (bb_no_side_effects_p): Test for undefined uses too.
5653 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5654 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5655
5656 2015-11-02 Jeff Law <law@redhat.com>
5657
5658 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5659 cases where the loop latch edge is in the middle of an FSM path.
5660
5661 2015-11-03 Tom de Vries <tom@codesourcery.com>
5662
5663 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5664 (make_param_constraints): ... this. Add and handle restrict_name
5665 parameter. Handle is_full_var case.
5666 (intra_create_variable_infos): Use make_param_constraints.
5667
5668 2015-11-03 Tom de Vries <tom@codesourcery.com>
5669
5670 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5671 make_copy_constraint call with make_constraint_from call.
5672
5673 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5674
5675 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5676 PIE executables.
5677
5678 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5679
5680 * builtins.h (fold_fma): Move to fold-const-call.h.
5681 * builtins.c: Include fold-const-call.h.
5682 (mathfn_built_in_2): New function, split out from...
5683 (mathfn_built_in_1): ...here.
5684 (do_real_to_int_conversion, fold_const_builtin_pow)
5685 (fold_const_builtin_logb, fold_const_builtin_significand)
5686 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5687 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5688 (fold_builtin_sincos): Use fold_const_call to handle constants.
5689 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5690 checks for ERROR_MARK. Use fold_const_call to handle constant
5691 folds for math functions.
5692 (fold_fma): Move to fold-const-call.c.
5693 * fold-const.c: Include fold-const-call.h.
5694 * Makefile.in (OBJS): Add fold-const-call.o.
5695 (PLUGIN_HEADERS): Add fold-const-call.h.
5696 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5697 directly.
5698 * realmpfr.c (real_from_mpfr): Likewise.
5699 * fold-const-call.h, fold-const-call.c: New files.
5700
5701 2015-11-02 Julian Brown <julian@codesourcery.com>
5702
5703 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5704 brackets and semicolon.
5705
5706 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5707
5708 Revert:
5709 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5710
5711 PR tree-optimization/65963
5712 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5713 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5714
5715 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5716
5717 PR middle-end/68166
5718 * fold-const.c: Include "md5.h".
5719
5720 2015-11-01 Jeff Law <law@redhat.com>
5721
5722 * vmsdbgout.c: Revert unused header file reduction patch.
5723
5724 * config/mcore/mcore.c: Include regs.h.
5725
5726 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5727
5728 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5729
5730 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5731
5732 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5733 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5734 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5735
5736 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5737
5738 * ggc-common.c: Restore needed header for checking=release.
5739
5740 2015-10-31 Tom de Vries <tom@codesourcery.com>
5741
5742 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5743
5744 2015-10-31 Tom de Vries <tom@codesourcery.com>
5745
5746 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5747 existing varinfo for arguments.
5748
5749 2015-10-31 Tom de Vries <tom@codesourcery.com>
5750
5751 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5752 create_function_info_for. Dump constraints generated during
5753 create_function_info_for. Move intra_create_variable_infos call and
5754 function-return-values-escape bit to ...
5755 (create_function_info_for): ... here, and merge
5756 intra_create_variable_infos call with argument loop. Add and handle
5757 nonlocal_p parameter.
5758
5759 2015-10-31 Tom de Vries <tom@codesourcery.com>
5760
5761 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5762 updating is alap, and seperated from preceding code. Make sure
5763 insert_vi_for_tree is seperated from surrounding code.
5764
5765 2015-10-31 Tom de Vries <tom@codesourcery.com>
5766
5767 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5768
5769 2015-10-30 Jeff Law <law@redhat.com>
5770 Nathan Sidwell <nathan@acm.org>
5771
5772 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5773 args.
5774 (MOVE_MAX): Set to 8.
5775
5776 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5777
5778 * cgraph.c: Include context.h for offloading.
5779 * varpool.c: Include context.h and omp-low.h.
5780
5781 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5782
5783 * rtl.h (contains_symbol_ref_p): Declare.
5784 (SYMBOL_REF_P): Define.
5785 * rtlanal.c (contains_symbol_ref_p: New function.
5786 * lra-constraints.c (contains_symbol_ref_p): Remove.
5787 * var-tracking.c (contains_symbol_ref): Remove.
5788 (track_expr_p): Use contains_symbol_ref_p instead of
5789 contains_symbol_ref.
5790
5791 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5792
5793 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5794 * fold-const.c (get_array_ctor_element_at_index): New.
5795 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5796
5797 * fold-const.h (get_array_ctor_element_at_index): New.
5798
5799 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5800
5801 * Makefile.in (OBJS): Add multiple_target.o.
5802 * attrib.c (make_attribute): Moved from config/i386/i386.c
5803 * config/i386/i386.c (make_attribute): Deleted.
5804 * multiple_target.c (create_dispatcher_calls): New.
5805 (get_attr_len): Ditto.
5806 (get_attr_str): Ditto.
5807 (separate_attrs): Ditto.
5808 (is_valid_asm_symbol): Ditto.
5809 (create_new_asm_name): Ditto.
5810 (create_target_clone): Ditto.
5811 (expand_target_clones): Ditto.
5812 (ipa_target_clone): Ditto.
5813 (ipa_dispatcher_calls): Ditto.
5814 * passes.def (pass_target_clone): Two new ipa passes.
5815 * tree-pass.h (make_pass_target_clone): Ditto.
5816 * doc/extend.texi (target_clones): New attribute description.
5817
5818 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5819
5820 PR rtl-optimization/68106
5821 * lra-remat.c (input_regno_present_p): Process hard regs
5822 explicitly present in machine description insns.
5823 (call_used_input_regno_present_p): Ditto.
5824 (calculate_gen_cands): Ditto.
5825 (do_remat): Ditto.
5826
5827 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5828
5829 * config/arm/neon-testgen.ml: Fix comment typo.
5830
5831 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5832
5833 * rtlanal.c (reg_set_p): Expand function comment.
5834
5835 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5836
5837 * alias.c: Remove unused headers.
5838 * asan.c: Likewise.
5839 * attribs.c: Likewise.
5840 * auto-inc-dec.c: Likewise.
5841 * auto-profile.c: Likewise.
5842 * bb-reorder.c: Likewise.
5843 * bitmap.c: Likewise.
5844 * bt-load.c: Likewise.
5845 * builtins.c: Likewise.
5846 * caller-save.c: Likewise.
5847 * calls.c: Likewise.
5848 * ccmp.c: Likewise.
5849 * cfg.c: Likewise.
5850 * cfganal.c: Likewise.
5851 * cfgbuild.c: Likewise.
5852 * cfgcleanup.c: Likewise.
5853 * cfgexpand.c: Likewise.
5854 * cfghooks.c: Likewise.
5855 * cfgloop.c: Likewise.
5856 * cfgloopanal.c: Likewise.
5857 * cfgloopmanip.c: Likewise.
5858 * cfgrtl.c: Likewise.
5859 * cgraph.c: Likewise.
5860 * cgraphbuild.c: Likewise.
5861 * cgraphclones.c: Likewise.
5862 * cgraphunit.c: Likewise.
5863 * cilk-common.c: Likewise.
5864 * combine-stack-adj.c: Likewise.
5865 * combine.c: Likewise.
5866 * compare-elim.c: Likewise.
5867 * convert.c: Likewise.
5868 * coverage.c: Likewise.
5869 * cppbuiltin.c: Likewise.
5870 * cprop.c: Likewise.
5871 * cse.c: Likewise.
5872 * cselib.c: Likewise.
5873 * data-streamer-in.c: Likewise.
5874 * data-streamer-out.c: Likewise.
5875 * data-streamer.c: Likewise.
5876 * dbxout.c: Likewise.
5877 * dce.c: Likewise.
5878 * ddg.c: Likewise.
5879 * debug.c: Likewise.
5880 * df-core.c: Likewise.
5881 * df-problems.c: Likewise.
5882 * df-scan.c: Likewise.
5883 * dfp.c: Likewise.
5884 * dojump.c: Likewise.
5885 * dominance.c: Likewise.
5886 * domwalk.c: Likewise.
5887 * double-int.c: Likewise.
5888 * dse.c: Likewise.
5889 * dumpfile.c: Likewise.
5890 * dwarf2asm.c: Likewise.
5891 * dwarf2cfi.c: Likewise.
5892 * dwarf2out.c: Likewise.
5893 * emit-rtl.c: Likewise.
5894 * except.c: Likewise.
5895 * explow.c: Likewise.
5896 * expmed.c: Likewise.
5897 * expr.c: Likewise.
5898 * final.c: Likewise.
5899 * fixed-value.c: Likewise.
5900 * fold-const.c: Likewise.
5901 * function.c: Likewise.
5902 * fwprop.c: Likewise.
5903 * gcse.c: Likewise.
5904 * generic-match-head.c: Likewise.
5905 * ggc-common.c: Likewise.
5906 * gimple-builder.c: Likewise.
5907 * gimple-expr.c: Likewise.
5908 * gimple-fold.c: Likewise.
5909 * gimple-iterator.c: Likewise.
5910 * gimple-low.c: Likewise.
5911 * gimple-match-head.c: Likewise.
5912 * gimple-pretty-print.c: Likewise.
5913 * gimple-ssa-isolate-paths.c: Likewise.
5914 * gimple-ssa-strength-reduction.c: Likewise.
5915 * gimple-streamer-in.c: Likewise.
5916 * gimple-streamer-out.c: Likewise.
5917 * gimple-walk.c: Likewise.
5918 * gimple.c: Likewise.
5919 * gimplify-me.c: Likewise.
5920 * gimplify.c: Likewise.
5921 * godump.c: Likewise.
5922 * graph.c: Likewise.
5923 * graphds.c: Likewise.
5924 * haifa-sched.c: Likewise.
5925 * hw-doloop.c: Likewise.
5926 * ifcvt.c: Likewise.
5927 * init-regs.c: Likewise.
5928 * internal-fn.c: Likewise.
5929 * ipa-chkp.c: Likewise.
5930 * ipa-comdats.c: Likewise.
5931 * ipa-cp.c: Likewise.
5932 * ipa-devirt.c: Likewise.
5933 * ipa-icf-gimple.c: Likewise.
5934 * ipa-icf.c: Likewise.
5935 * ipa-inline-analysis.c: Likewise.
5936 * ipa-inline-transform.c: Likewise.
5937 * ipa-inline.c: Likewise.
5938 * ipa-polymorphic-call.c: Likewise.
5939 * ipa-profile.c: Likewise.
5940 * ipa-prop.c: Likewise.
5941 * ipa-pure-const.c: Likewise.
5942 * ipa-ref.c: Likewise.
5943 * ipa-reference.c: Likewise.
5944 * ipa-split.c: Likewise.
5945 * ipa-utils.c: Likewise.
5946 * ipa-visibility.c: Likewise.
5947 * ipa.c: Likewise.
5948 * ira-build.c: Likewise.
5949 * ira-color.c: Likewise.
5950 * ira-conflicts.c: Likewise.
5951 * ira-costs.c: Likewise.
5952 * ira-emit.c: Likewise.
5953 * ira-lives.c: Likewise.
5954 * ira.c: Likewise.
5955 * jump.c: Likewise.
5956 * langhooks.c: Likewise.
5957 * lcm.c: Likewise.
5958 * lists.c: Likewise.
5959 * loop-doloop.c: Likewise.
5960 * loop-init.c: Likewise.
5961 * loop-invariant.c: Likewise.
5962 * loop-iv.c: Likewise.
5963 * loop-unroll.c: Likewise.
5964 * lower-subreg.c: Likewise.
5965 * lra-assigns.c: Likewise.
5966 * lra-coalesce.c: Likewise.
5967 * lra-constraints.c: Likewise.
5968 * lra-eliminations.c: Likewise.
5969 * lra-lives.c: Likewise.
5970 * lra-remat.c: Likewise.
5971 * lra-spills.c: Likewise.
5972 * lra.c: Likewise.
5973 * lto-cgraph.c: Likewise.
5974 * lto-compress.c: Likewise.
5975 * lto-opts.c: Likewise.
5976 * lto-section-in.c: Likewise.
5977 * lto-section-out.c: Likewise.
5978 * lto-streamer-in.c: Likewise.
5979 * lto-streamer-out.c: Likewise.
5980 * lto-streamer.c: Likewise.
5981 * mcf.c: Likewise.
5982 * mode-switching.c: Likewise.
5983 * modulo-sched.c: Likewise.
5984 * optabs.c: Likewise.
5985 * opts-global.c: Likewise.
5986 * passes.c: Likewise.
5987 * plugin.c: Likewise.
5988 * postreload-gcse.c: Likewise.
5989 * postreload.c: Likewise.
5990 * predict.c: Likewise.
5991 * print-tree.c: Likewise.
5992 * profile.c: Likewise.
5993 * real.c: Likewise.
5994 * realmpfr.c: Likewise.
5995 * recog.c: Likewise.
5996 * ree.c: Likewise.
5997 * reg-stack.c: Likewise.
5998 * regcprop.c: Likewise.
5999 * reginfo.c: Likewise.
6000 * regrename.c: Likewise.
6001 * regstat.c: Likewise.
6002 * reload.c: Likewise.
6003 * reload1.c: Likewise.
6004 * reorg.c: Likewise.
6005 * resource.c: Likewise.
6006 * rtl-chkp.c: Likewise.
6007 * rtl-error.c: Likewise.
6008 * rtlanal.c: Likewise.
6009 * rtlhooks.c: Likewise.
6010 * sanopt.c: Likewise.
6011 * sched-deps.c: Likewise.
6012 * sched-ebb.c: Likewise.
6013 * sched-rgn.c: Likewise.
6014 * sdbout.c: Likewise.
6015 * sel-sched-dump.c: Likewise.
6016 * sel-sched-ir.c: Likewise.
6017 * sel-sched.c: Likewise.
6018 * sese.c: Likewise.
6019 * shrink-wrap.c: Likewise.
6020 * simplify-rtx.c: Likewise.
6021 * stack-ptr-mod.c: Likewise.
6022 * statistics.c: Likewise.
6023 * stmt.c: Likewise.
6024 * stor-layout.c: Likewise.
6025 * store-motion.c: Likewise.
6026 * stringpool.c: Likewise.
6027 * symtab.c: Likewise.
6028 * target-globals.c: Likewise.
6029 * targhooks.c: Likewise.
6030 * toplev.c: Likewise.
6031 * tracer.c: Likewise.
6032 * trans-mem.c: Likewise.
6033 * tree-affine.c: Likewise.
6034 * tree-call-cdce.c: Likewise.
6035 * tree-cfg.c: Likewise.
6036 * tree-cfgcleanup.c: Likewise.
6037 * tree-chkp-opt.c: Likewise.
6038 * tree-chkp.c: Likewise.
6039 * tree-chrec.c: Likewise.
6040 * tree-complex.c: Likewise.
6041 * tree-data-ref.c: Likewise.
6042 * tree-dfa.c: Likewise.
6043 * tree-diagnostic.c: Likewise.
6044 * tree-dump.c: Likewise.
6045 * tree-eh.c: Likewise.
6046 * tree-emutls.c: Likewise.
6047 * tree-if-conv.c: Likewise.
6048 * tree-inline.c: Likewise.
6049 * tree-into-ssa.c: Likewise.
6050 * tree-iterator.c: Likewise.
6051 * tree-loop-distribution.c: Likewise.
6052 * tree-nested.c: Likewise.
6053 * tree-nrv.c: Likewise.
6054 * tree-object-size.c: Likewise.
6055 * tree-outof-ssa.c: Likewise.
6056 * tree-parloops.c: Likewise.
6057 * tree-phinodes.c: Likewise.
6058 * tree-predcom.c: Likewise.
6059 * tree-pretty-print.c: Likewise.
6060 * tree-profile.c: Likewise.
6061 * tree-scalar-evolution.c: Likewise.
6062 * tree-sra.c: Likewise.
6063 * tree-ssa-address.c: Likewise.
6064 * tree-ssa-alias.c: Likewise.
6065 * tree-ssa-ccp.c: Likewise.
6066 * tree-ssa-coalesce.c: Likewise.
6067 * tree-ssa-copy.c: Likewise.
6068 * tree-ssa-dce.c: Likewise.
6069 * tree-ssa-dse.c: Likewise.
6070 * tree-ssa-forwprop.c: Likewise.
6071 * tree-ssa-ifcombine.c: Likewise.
6072 * tree-ssa-live.c: Likewise.
6073 * tree-ssa-loop-ch.c: Likewise.
6074 * tree-ssa-loop-im.c: Likewise.
6075 * tree-ssa-loop-ivcanon.c: Likewise.
6076 * tree-ssa-loop-ivopts.c: Likewise.
6077 * tree-ssa-loop-manip.c: Likewise.
6078 * tree-ssa-loop-niter.c: Likewise.
6079 * tree-ssa-loop-prefetch.c: Likewise.
6080 * tree-ssa-loop-unswitch.c: Likewise.
6081 * tree-ssa-loop.c: Likewise.
6082 * tree-ssa-math-opts.c: Likewise.
6083 * tree-ssa-operands.c: Likewise.
6084 * tree-ssa-phiopt.c: Likewise.
6085 * tree-ssa-phiprop.c: Likewise.
6086 * tree-ssa-pre.c: Likewise.
6087 * tree-ssa-propagate.c: Likewise.
6088 * tree-ssa-reassoc.c: Likewise.
6089 * tree-ssa-scopedtables.c: Likewise.
6090 * tree-ssa-sink.c: Likewise.
6091 * tree-ssa-strlen.c: Likewise.
6092 * tree-ssa-structalias.c: Likewise.
6093 * tree-ssa-tail-merge.c: Likewise.
6094 * tree-ssa-ter.c: Likewise.
6095 * tree-ssa-threadupdate.c: Likewise.
6096 * tree-ssa-uncprop.c: Likewise.
6097 * tree-ssa-uninit.c: Likewise.
6098 * tree-ssa.c: Likewise.
6099 * tree-ssanames.c: Likewise.
6100 * tree-stdarg.c: Likewise.
6101 * tree-streamer-in.c: Likewise.
6102 * tree-streamer-out.c: Likewise.
6103 * tree-streamer.c: Likewise.
6104 * tree-switch-conversion.c: Likewise.
6105 * tree-tailcall.c: Likewise.
6106 * tree-vect-data-refs.c: Likewise.
6107 * tree-vect-generic.c: Likewise.
6108 * tree-vect-loop-manip.c: Likewise.
6109 * tree-vect-loop.c: Likewise.
6110 * tree-vect-patterns.c: Likewise.
6111 * tree-vect-slp.c: Likewise.
6112 * tree-vect-stmts.c: Likewise.
6113 * tree-vectorizer.c: Likewise.
6114 * tree-vrp.c: Likewise.
6115 * tree.c: Likewise.
6116 * tsan.c: Likewise.
6117 * ubsan.c: Likewise.
6118 * value-prof.c: Likewise.
6119 * var-tracking.c: Likewise.
6120 * varasm.c: Likewise.
6121 * varpool.c: Likewise.
6122 * vmsdbgout.c: Likewise.
6123 * vtable-verify.c: Likewise.
6124 * web.c: Likewise.
6125 * wide-int-print.cc: Likewise.
6126 * wide-int.cc: Likewise.
6127 * xcoffout.c: Likewise.
6128
6129 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6130
6131 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6132 between pass numbering and execution order.
6133
6134 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6135
6136 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6137 check for dependencies.
6138
6139 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6140
6141 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6142 CDI_DOMINATORS.
6143
6144 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6145
6146 * real.h (format_helper): New.
6147 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6148 (real_from_target, real_nan, real_2expN, real_value_truncate)
6149 (significand_size, real_from_string2, exact_real_inverse)
6150 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6151 (real_round, real_isinteger, real_from_integer): Replace
6152 machine_mode arguments with format_helper arguments.
6153 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6154 (real_from_integer, real_nan, real_2expN, real_convert)
6155 (real_value_truncate, exact_real_truncate, real_to_target)
6156 (real_from_target, significand_size, real_powi, real_trunc)
6157 (real_floor, real_ceil, real_round, real_isinteger): Replace
6158 machine_mode arguments with format_helper arguments.
6159 (real_to_target_fmt, real_from_target_fmt): Delete.
6160 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6161 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6162 argument with real_format.
6163 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6164
6165 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6166
6167 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6168 (fixed_to_decimal, fixed_convert_from_real)
6169 (real_convert_from_fixed): Fix mode arguments to real_2expN.
6170
6171 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6172
6173 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6174 SCALAR_FLOAT_MODE_P.
6175
6176 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6177
6178 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6179 (completely_scalarize): Comment zero-length arrays.
6180 (get_access_replacement): Correct comment re. precondition.
6181
6182 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6183
6184 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6185 for PROCESSOR_ZNVER1.
6186 (enum processor_model): Add M_AMDFAM17H_znver1.
6187 (struct arch_names_table): Likewise.
6188 * doc/extend.texi: ADD znver1.
6189
6190 2015-10-30 Richard Biener <rguenther@suse.de>
6191
6192 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6193 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6194 zeros to be folded to VECTOR_CSTs.
6195 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6196 * fold-const.c (fold): Use build_vector_from_ctor.
6197
6198 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6199
6200 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6201 "mov %0.h[0], %1.h[0] to "neon_move".
6202 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6203 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6204 "mov_imm".
6205 (*cmovsi_insn_uxtw): Likewise.
6206
6207 2015-10-30 Tom de Vries <tom@codesourcery.com>
6208
6209 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6210 unsigned, and initialize, and use initial value instead of hardcoded
6211 constant. Add generic constraints dumping section. Don't dump global
6212 initializers constraints dumping section if empty. Don't update
6213 variable from if unused.
6214
6215 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6216
6217 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6218 flag_checking and/or CHECKING_P to eliminate conditional compilation
6219 on ENABLE_CHECKING.
6220 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6221 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6222 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6223 (output_387_binary_op): Likewise.
6224 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6225 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6226 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6227 Likewise.
6228 * config/rs6000/rs6000.h: Likewise.
6229 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6230
6231 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6232
6233 * config/sh/sh.opt (mfdpic): Add missing period.
6234
6235 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6236
6237 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6238 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6239 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6240 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6241 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6242 mcore_legitimate_address_p): New functions.
6243 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6244
6245 2015-10-29 Jeff Law <law@redhat.com>
6246
6247 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6248 method.
6249 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6250 * tree-ssa-threadedge.c
6251 (record_temporary_equivalences_from_stmts_at_dest): Remove
6252 backedge_seen argument and associated code which invalidated
6253 equivalences based on the value of that argument.
6254 (thread_through_normal_block): Corresponding changes.
6255
6256 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6257
6258 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6259 function earlier in the file.
6260 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6261 df_regs_ever_live_p.
6262
6263 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6264
6265 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6266 by ignoring it.
6267
6268 2015-10-29 Richard Henderson <rth@redhat.com>
6269
6270 PR target/68124
6271 PR rtl-opt/67609
6272 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6273 sse check to the exact conditions of PR 67609.
6274
6275 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6276
6277 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6278 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6279 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6280 of the traditional names that TFmode uses for handling IEEE
6281 extended double. If -mfloat128, add KFmode functions for all of
6282 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6283 make TFmode use the same emulation functions as KFmode.
6284 (init_float128_ibm): Likewise.
6285 (init_float128_ieee): Likewise.
6286 (rs6000_generate_compare): For IEEE 128-bit floating point
6287 comparisons, call the unordered comparison function instead of the
6288 ordered comparison function.
6289 (rs6000_expand_float128_convert): Deal with operands that are
6290 memory operands. Restructure the code to use a switch statement on
6291 the mode. Add support for TFmode defaulting to either IBM extended
6292 double or IEEE 128-bit floating point. If the underlying types are
6293 the same, use a move instead of a conversion function.
6294 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6295 use for IEEE 128-bit floating point constants with -mfloat128.
6296 (rs6000_c_mode_for_suffix): Likewise.
6297 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6298 128-bit floating point with IBM extended double floating point.
6299 (rs6000_invalid_binary_op): Likewise.
6300 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6301 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6302 types that can go in vector registers.
6303 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6304 point types that can go in vector registers on little endian
6305 PowerPC systems.
6306 (mark_swaps_for_removal): Likewise.
6307 (rs6000_analyze_swaps): Likewise.
6308 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6309
6310 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6311 rework IEEE 128-bit floating point insns to deal with TFmode being
6312 either IBM extended double or IEEE 128-bit floating point.
6313 (IFKF): Likewise.
6314 (IBM128): Update iterator to add condition that the mode is IBM
6315 extended double.
6316 (IEEE128): New iterator for IEEE 128-bit floating point.
6317 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6318 (FLOAT128): Likewise.
6319 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6320 iterator.
6321 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6322 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6323 instead of hard coding TFmode or KFmode.
6324 (negtf2_internal): Likewise.
6325 (neg<mode>2_internal): Likewise.
6326 (abs<mode>2): Likewise.
6327 (abstf2_internal): Likewise.
6328 (abs<mode>2_internal): Likewise.
6329 (ieee_128bit_neg<mode>2): Likewise.
6330 (ieee_128bit_neg<mode>2_internal): Likewise.
6331 (ieee_128bit_abs<mode>2): Likewise.
6332 (ieee_128bit_abs<mode>2_internal): Likewise.
6333 (ieee_128bit_nabs<mode>2): Likewise.
6334 (ieee_128bit_nabs<mode>2_internal): Likewise.
6335 (extendiftf2): Add explicit conversions between 128-bit floating
6336 point types. Drop the old conversions that had become unwieldy.
6337 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6338 (extendifkf2): Likewise.
6339 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6340 (extendtfkf2): Likewise.
6341 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6342 (trunciftf2): Likewise.
6343 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6344 (truncifkf2): Likewise.
6345 (float<SDI:mode><IFKF:mode>2): Likewise.
6346 (trunckftf2): Likewise.
6347 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6348 (trunctfif2): Likewise.
6349 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6350 (extenddftf2): Rework 128-bit floating point conversions to
6351 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6352 KFmode expanders into one function.
6353 (extenddf<mode>2): Likewise.
6354 (extenddftf2_fprs): Likewise.
6355 (extenddf<mode>2_fprs): Likewise.
6356 (extenddftf2_vsx): Likewise.
6357 (extenddf<mode>2_vsx): Likewise.
6358 (extendsftf2): Likewise.
6359 (extendsf<mode>2): Likewise.
6360 (trunctfdf2): Likewise.
6361 (trunc<mode>df2): Likewise.
6362 (trunctfdf2_internal1): Likewise.
6363 (trunc<mode>df2_internal1): Likewise.
6364 (trunctfdf2_internal2): Likewise.
6365 (trunc<mode>df2_internal2): Likewise.
6366 (trunctfsf2): Likewise.
6367 (trunc<mode>sf2): Likewise.
6368 (trunctfsf2_fprs): Likewise.
6369 (trunc<mode>sf2_fprs): Likewise.
6370 (floatsit2f): Likewise.
6371 (floatsi<mode>2): Likewise.
6372 (fix_trunc_helper): Likewise.
6373 (fix_trunc_helper<mode>): Likewise.
6374 (fix_trunctfsi2): Likewise.
6375 (fix_trunc<mode>si2): Likewise.
6376 (fix_trunctfsi2_fprs): Likewise.
6377 (fix_trunc<mode>si2_fprs): Likewise.
6378 (fix_trunctfsi2_internal): Likewise.
6379 (fix_trunc<mode>si2_internal): Likewise.
6380 (fix_trunctfdi2): Likewise.
6381 (fix_trunc<mode>di2): Likewise.
6382 (fixuns_trunctf<mode>2): Likewise.
6383 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6384 (floatditf2): Likewise.
6385 (floatdi<mode>2): Likewise.
6386 (floatuns<mode>tf2): Likewise.
6387 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6388 (cmptf_internal1): Use a mode iterator to add support for both
6389 types (IFmode, TFmode) that support IBM extended double.
6390 (cmp<mode>_internal1): Likewise.
6391 (cmptf_internal2): Likewise.
6392 (cmp<mode>_internal2): Likewise.
6393
6394 * doc/extend.texi (Floating Types): Document __ibm128 and
6395 __float128 on PowerPC.
6396
6397 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6398 -mfloat128 and -mno-float128.
6399
6400 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6401
6402 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6403 floating point modes that can go in vector registers.
6404 (MODES_TIEABLE_P): Move tests for vector modes before tests for
6405 scalar floating point, so that IEEE 128-bit floating point that
6406 can go in vector registers bind with vectors and not FP.
6407 (struct rs6000_args): Add libcall field.
6408
6409 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6410 and -mfloat128-software switches. Replace them with a binary
6411 -mfloat128 switch.
6412 (-mfloat128): Likewise.
6413
6414 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6415 128-bit floating point types in GPRs, even if the appropriate
6416 option enabling the type was not used.
6417 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6418 debugging.
6419 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6420 pre-decrement on IEEE 128-bit floating point values.
6421 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6422 is IEEE 128-bit floating point.
6423 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6424 128-bit floating point types that can go in vector registers.
6425 (rs6000_option_override_internal): Change -mfloat128-none and
6426 -mfloat128-software to -mfloat128, and move code to be near other
6427 VSX option handling.
6428 (rs6000_option_override_internal): Disable -mfloat128 if we don't
6429 have the Altivec ABI.
6430 (rs6000_init_builtins): Don't make TFmode use either IFmode or
6431 KFmode floating point nodes. Instead, have three separate nodes.
6432 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6433 eventually moving the long double default to IEEE 128-bit floating
6434 point.
6435 (rs6000_opt_masks): Add -mfloat128.
6436 (struct rs6000_opt_var): Fix typo in comment.
6437 (init_cumulative_args): Initialize libcall field in
6438 CUMULATIVE_ARGS.
6439 (rs6000_function_arg): Treat library functions as if they had
6440 prototypes to prevent IEEE 128-bit support functions from passing
6441 arguments in both GPRs and vector registers.
6442 (rs6000_arg_partial_bytes): Likewise.
6443
6444 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6445 an option that can be turned on via -mcpu=<xxx>.
6446
6447 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6448 longer used.
6449
6450 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6451 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6452 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6453 double is IBM extended double.
6454
6455 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6456 SUBREGs.
6457
6458 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6459
6460 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6461 * genconditions.c: Define CHECKING_P in the generated code.
6462 * genextract.c: Use flag_checking in insn_extract.
6463 * gengtype.c (main): Remove conditional compilation.
6464 * gengtype.h: Likewise.
6465
6466 2015-10-29 Jeff Law <law@redhat.com>
6467
6468 PR tree-optimization/67892
6469 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6470 in comment.
6471 (thread_through_normal_block): If we have seen a backedge, then
6472 do nothing. No longer call find_jump_threads_backwards here.
6473 (thread_across_edge): Use find_jump_threads_backwards to find
6474 jump threads if the old style threader was not successful.
6475 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6476 gsi_last_nondebug_bb. Return NULL if the block does not end
6477 with a control statement.
6478 (find_jump_threads_backwards): Setup code moved here from
6479 tree-ssa-threadedge.c::thread_through_normal_block. Accept
6480 single edge argument instead of name & block.
6481 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6482 prototype.
6483
6484 2015-10-29 Tom de Vries <tom@codesourcery.com>
6485
6486 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6487 types.
6488
6489 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6490
6491 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6492 ifs.
6493
6494 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6495
6496 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6497
6498 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6499
6500 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6501 guard_bb0 and use guard_bb throughout.
6502
6503 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6504
6505 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6506 unnecessary label.
6507
6508 2015-10-29 Richard Biener <rguenther@suse.de>
6509
6510 PR middle-end/68142
6511 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6512 overflow.
6513
6514 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6515
6516 * alias.c: Reorder #include statements and remove duplicates.
6517 * asan.c: Likewise.
6518 * attribs.c: Likewise.
6519 * auto-inc-dec.c: Likewise.
6520 * auto-profile.c: Likewise.
6521 * bb-reorder.c: Likewise.
6522 * bt-load.c: Likewise.
6523 * builtins.c: Likewise.
6524 * caller-save.c: Likewise.
6525 * calls.c: Likewise.
6526 * ccmp.c: Likewise.
6527 * cfg.c: Likewise.
6528 * cfganal.c: Likewise.
6529 * cfgbuild.c: Likewise.
6530 * cfgcleanup.c: Likewise.
6531 * cfgexpand.c: Likewise.
6532 * cfghooks.c: Likewise.
6533 * cfgloop.c: Likewise.
6534 * cfgloopanal.c: Likewise.
6535 * cfgloopmanip.c: Likewise.
6536 * cfgrtl.c: Likewise.
6537 * cgraph.c: Likewise.
6538 * cgraphbuild.c: Likewise.
6539 * cgraphclones.c: Likewise.
6540 * cgraphunit.c: Likewise.
6541 * cilk-common.c: Likewise.
6542 * combine-stack-adj.c: Likewise.
6543 * combine.c: Likewise.
6544 * compare-elim.c: Likewise.
6545 * convert.c: Likewise.
6546 * coverage.c: Likewise.
6547 * cppbuiltin.c: Likewise.
6548 * cprop.c: Likewise.
6549 * cse.c: Likewise.
6550 * cselib.c: Likewise.
6551 * data-streamer-in.c: Likewise.
6552 * data-streamer-out.c: Likewise.
6553 * data-streamer.c: Likewise.
6554 * dbxout.c: Likewise.
6555 * dce.c: Likewise.
6556 * ddg.c: Likewise.
6557 * debug.c: Likewise.
6558 * df-core.c: Likewise.
6559 * df-problems.c: Likewise.
6560 * df-scan.c: Likewise.
6561 * dfp.c: Likewise.
6562 * dojump.c: Likewise.
6563 * dominance.c: Likewise.
6564 * double-int.c: Likewise.
6565 * dse.c: Likewise.
6566 * dumpfile.c: Likewise.
6567 * dwarf2asm.c: Likewise.
6568 * dwarf2cfi.c: Likewise.
6569 * dwarf2out.c: Likewise.
6570 * emit-rtl.c: Likewise.
6571 * except.c: Likewise.
6572 * explow.c: Likewise.
6573 * expmed.c: Likewise.
6574 * expr.c: Likewise.
6575 * final.c: Likewise.
6576 * fixed-value.c: Likewise.
6577 * fold-const.c: Likewise.
6578 * function.c: Likewise.
6579 * fwprop.c: Likewise.
6580 * gcse.c: Likewise.
6581 * generic-match-head.c: Likewise.
6582 * ggc-common.c: Likewise.
6583 * gimple-builder.c: Likewise.
6584 * gimple-expr.c: Likewise.
6585 * gimple-fold.c: Likewise.
6586 * gimple-iterator.c: Likewise.
6587 * gimple-low.c: Likewise.
6588 * gimple-match-head.c: Likewise.
6589 * gimple-pretty-print.c: Likewise.
6590 * gimple-ssa-isolate-paths.c: Likewise.
6591 * gimple-ssa-strength-reduction.c: Likewise.
6592 * gimple-streamer-in.c: Likewise.
6593 * gimple-streamer-out.c: Likewise.
6594 * gimple-walk.c: Likewise.
6595 * gimple.c: Likewise.
6596 * gimplify-me.c: Likewise.
6597 * gimplify.c: Likewise.
6598 * godump.c: Likewise.
6599 * graph.c: Likewise.
6600 * graphite-poly.c: Likewise.
6601 * haifa-sched.c: Likewise.
6602 * hw-doloop.c: Likewise.
6603 * ifcvt.c: Likewise.
6604 * incpath.c: Likewise.
6605 * init-regs.c: Likewise.
6606 * internal-fn.c: Likewise.
6607 * ipa-chkp.c: Likewise.
6608 * ipa-comdats.c: Likewise.
6609 * ipa-cp.c: Likewise.
6610 * ipa-devirt.c: Likewise.
6611 * ipa-icf-gimple.c: Likewise.
6612 * ipa-icf.c: Likewise.
6613 * ipa-inline-analysis.c: Likewise.
6614 * ipa-inline-transform.c: Likewise.
6615 * ipa-inline.c: Likewise.
6616 * ipa-polymorphic-call.c: Likewise.
6617 * ipa-profile.c: Likewise.
6618 * ipa-prop.c: Likewise.
6619 * ipa-pure-const.c: Likewise.
6620 * ipa-ref.c: Likewise.
6621 * ipa-reference.c: Likewise.
6622 * ipa-split.c: Likewise.
6623 * ipa-utils.c: Likewise.
6624 * ipa-visibility.c: Likewise.
6625 * ipa.c: Likewise.
6626 * ira-build.c: Likewise.
6627 * ira-color.c: Likewise.
6628 * ira-conflicts.c: Likewise.
6629 * ira-costs.c: Likewise.
6630 * ira-emit.c: Likewise.
6631 * ira-lives.c: Likewise.
6632 * ira.c: Likewise.
6633 * jump.c: Likewise.
6634 * langhooks.c: Likewise.
6635 * lcm.c: Likewise.
6636 * lists.c: Likewise.
6637 * loop-doloop.c: Likewise.
6638 * loop-init.c: Likewise.
6639 * loop-invariant.c: Likewise.
6640 * loop-iv.c: Likewise.
6641 * loop-unroll.c: Likewise.
6642 * lower-subreg.c: Likewise.
6643 * lra-assigns.c: Likewise.
6644 * lra-coalesce.c: Likewise.
6645 * lra-constraints.c: Likewise.
6646 * lra-eliminations.c: Likewise.
6647 * lra-lives.c: Likewise.
6648 * lra-remat.c: Likewise.
6649 * lra-spills.c: Likewise.
6650 * lra.c: Likewise.
6651 * lto-cgraph.c: Likewise.
6652 * lto-compress.c: Likewise.
6653 * lto-opts.c: Likewise.
6654 * lto-section-in.c: Likewise.
6655 * lto-section-out.c: Likewise.
6656 * lto-streamer-in.c: Likewise.
6657 * lto-streamer-out.c: Likewise.
6658 * lto-streamer.c: Likewise.
6659 * mode-switching.c: Likewise.
6660 * modulo-sched.c: Likewise.
6661 * omp-low.c: Likewise.
6662 * optabs.c: Likewise.
6663 * opts-global.c: Likewise.
6664 * passes.c: Likewise.
6665 * plugin.c: Likewise.
6666 * postreload-gcse.c: Likewise.
6667 * postreload.c: Likewise.
6668 * predict.c: Likewise.
6669 * print-tree.c: Likewise.
6670 * profile.c: Likewise.
6671 * real.c: Likewise.
6672 * realmpfr.c: Likewise.
6673 * recog.c: Likewise.
6674 * ree.c: Likewise.
6675 * reg-stack.c: Likewise.
6676 * regcprop.c: Likewise.
6677 * reginfo.c: Likewise.
6678 * regrename.c: Likewise.
6679 * regstat.c: Likewise.
6680 * reload.c: Likewise.
6681 * reload1.c: Likewise.
6682 * reorg.c: Likewise.
6683 * resource.c: Likewise.
6684 * rtl-chkp.c: Likewise.
6685 * rtl-error.c: Likewise.
6686 * rtlanal.c: Likewise.
6687 * rtlhooks.c: Likewise.
6688 * sanopt.c: Likewise.
6689 * sched-deps.c: Likewise.
6690 * sched-ebb.c: Likewise.
6691 * sched-rgn.c: Likewise.
6692 * sese.c: Likewise.
6693 * shrink-wrap.c: Likewise.
6694 * simplify-rtx.c: Likewise.
6695 * stack-ptr-mod.c: Likewise.
6696 * statistics.c: Likewise.
6697 * stmt.c: Likewise.
6698 * stor-layout.c: Likewise.
6699 * store-motion.c: Likewise.
6700 * stringpool.c: Likewise.
6701 * symtab.c: Likewise.
6702 * target-globals.c: Likewise.
6703 * targhooks.c: Likewise.
6704 * toplev.c: Likewise.
6705 * tracer.c: Likewise.
6706 * trans-mem.c: Likewise.
6707 * tree-affine.c: Likewise.
6708 * tree-call-cdce.c: Likewise.
6709 * tree-cfg.c: Likewise.
6710 * tree-cfgcleanup.c: Likewise.
6711 * tree-chkp-opt.c: Likewise.
6712 * tree-chkp.c: Likewise.
6713 * tree-chrec.c: Likewise.
6714 * tree-complex.c: Likewise.
6715 * tree-data-ref.c: Likewise.
6716 * tree-dfa.c: Likewise.
6717 * tree-diagnostic.c: Likewise.
6718 * tree-dump.c: Likewise.
6719 * tree-eh.c: Likewise.
6720 * tree-emutls.c: Likewise.
6721 * tree-if-conv.c: Likewise.
6722 * tree-inline.c: Likewise.
6723 * tree-into-ssa.c: Likewise.
6724 * tree-iterator.c: Likewise.
6725 * tree-loop-distribution.c: Likewise.
6726 * tree-nested.c: Likewise.
6727 * tree-nrv.c: Likewise.
6728 * tree-object-size.c: Likewise.
6729 * tree-outof-ssa.c: Likewise.
6730 * tree-parloops.c: Likewise.
6731 * tree-phinodes.c: Likewise.
6732 * tree-predcom.c: Likewise.
6733 * tree-pretty-print.c: Likewise.
6734 * tree-profile.c: Likewise.
6735 * tree-scalar-evolution.c: Likewise.
6736 * tree-sra.c: Likewise.
6737 * tree-ssa-address.c: Likewise.
6738 * tree-ssa-alias.c: Likewise.
6739 * tree-ssa-ccp.c: Likewise.
6740 * tree-ssa-coalesce.c: Likewise.
6741 * tree-ssa-copy.c: Likewise.
6742 * tree-ssa-dce.c: Likewise.
6743 * tree-ssa-dom.c: Likewise.
6744 * tree-ssa-dse.c: Likewise.
6745 * tree-ssa-forwprop.c: Likewise.
6746 * tree-ssa-ifcombine.c: Likewise.
6747 * tree-ssa-live.c: Likewise.
6748 * tree-ssa-loop-ch.c: Likewise.
6749 * tree-ssa-loop-im.c: Likewise.
6750 * tree-ssa-loop-ivcanon.c: Likewise.
6751 * tree-ssa-loop-ivopts.c: Likewise.
6752 * tree-ssa-loop-manip.c: Likewise.
6753 * tree-ssa-loop-niter.c: Likewise.
6754 * tree-ssa-loop-prefetch.c: Likewise.
6755 * tree-ssa-loop-unswitch.c: Likewise.
6756 * tree-ssa-loop.c: Likewise.
6757 * tree-ssa-math-opts.c: Likewise.
6758 * tree-ssa-operands.c: Likewise.
6759 * tree-ssa-phiopt.c: Likewise.
6760 * tree-ssa-phiprop.c: Likewise.
6761 * tree-ssa-pre.c: Likewise.
6762 * tree-ssa-propagate.c: Likewise.
6763 * tree-ssa-reassoc.c: Likewise.
6764 * tree-ssa-sccvn.c: Likewise.
6765 * tree-ssa-scopedtables.c: Likewise.
6766 * tree-ssa-sink.c: Likewise.
6767 * tree-ssa-strlen.c: Likewise.
6768 * tree-ssa-structalias.c: Likewise.
6769 * tree-ssa-tail-merge.c: Likewise.
6770 * tree-ssa-ter.c: Likewise.
6771 * tree-ssa-threadedge.c: Likewise.
6772 * tree-ssa-threadupdate.c: Likewise.
6773 * tree-ssa-uncprop.c: Likewise.
6774 * tree-ssa-uninit.c: Likewise.
6775 * tree-ssa.c: Likewise.
6776 * tree-ssanames.c: Likewise.
6777 * tree-stdarg.c: Likewise.
6778 * tree-streamer-in.c: Likewise.
6779 * tree-streamer-out.c: Likewise.
6780 * tree-streamer.c: Likewise.
6781 * tree-switch-conversion.c: Likewise.
6782 * tree-tailcall.c: Likewise.
6783 * tree-vect-data-refs.c: Likewise.
6784 * tree-vect-generic.c: Likewise.
6785 * tree-vect-loop-manip.c: Likewise.
6786 * tree-vect-loop.c: Likewise.
6787 * tree-vect-patterns.c: Likewise.
6788 * tree-vect-slp.c: Likewise.
6789 * tree-vect-stmts.c: Likewise.
6790 * tree-vectorizer.c: Likewise.
6791 * tree-vrp.c: Likewise.
6792 * tree.c: Likewise.
6793 * tsan.c: Likewise.
6794 * ubsan.c: Likewise.
6795 * value-prof.c: Likewise.
6796 * var-tracking.c: Likewise.
6797 * varasm.c: Likewise.
6798 * varpool.c: Likewise.
6799 * vtable-verify.c: Likewise.
6800 * web.c: Likewise.
6801 * wide-int-print.cc: Likewise.
6802 * wide-int.cc: Likewise.
6803 * xcoffout.c: Likewise.
6804
6805 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6806
6807 * Makefile.in (NO_PIE_CFLAGS): New.
6808 (NO_PIE_FLAG): Likewise.
6809 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6810 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6811 (BUILD_NO_PIE_CFLAGS): Likewise.
6812 (BUILD_NO_PIE_FLAG): Likewise.
6813 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6814 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6815 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6816 $(BUILD_NO_PIE_CFLAGS).
6817 (BUILD_CXXFLAGS): Likewise.
6818 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6819 $(BUILD_NO_PIE_FLAG).
6820 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6821 (BUILD_NO_PIE_FLAG): Likewise.
6822 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6823 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6824 * configure: Regenerated.
6825
6826 2015-10-29 Richard Biener <rguenther@suse.de>
6827
6828 PR middle-end/56956
6829 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6830 unsigned conditonal negation to ABS_EXPR.
6831
6832 2015-10-29 Richard Biener <rguenther@suse.de>
6833
6834 * gimple-match-head.c (gimple_simplify): Remove premature checking
6835 of builtin_decl_implicit of function calls we simplify.
6836
6837 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6838
6839 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6840 (get_computation_cost_at): Ditto.
6841 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6842 and inv_expr_id.
6843
6844 2015-10-28 Tom de Vries <tom@codesourcery.com>
6845
6846 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6847 superfluous code.
6848
6849 2015-10-28 Jason Merrill <jason@redhat.com>
6850
6851 * Makefile.in (TAGS): Include libcpp and libiberty.
6852
6853 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6854
6855 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6856 (extract_omp_for_data): Remove OpenACC special handling of
6857 chunking.
6858
6859 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6860 (struct parallel): Update comment.
6861 (nvptx_reorg): Likewise.
6862 (nvptx_neuter): Cleanup whitespace.
6863
6864 2015-10-28 Richard Henderson <rth@redhat.com>
6865
6866 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6867
6868 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6869
6870 PR target/67839
6871 * config/avr/predicates.md (low_io_address_operand): Don't
6872 consider MODE when computing upper bound.
6873 (io_address_operand): Likewise.
6874
6875 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6876
6877 * fold-const.c (operand_equal_p): Do not verify that types are
6878 compatible for MEM_REFs.
6879
6880 2015-10-28 Richard Biener <rguenther@suse.de>
6881
6882 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6883 in simplifying VEC_COND_EXPR conditions.
6884
6885 2015-10-28 Tom de Vries <tom@codesourcery.com>
6886
6887 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6888 into vi_next of a full_var.
6889
6890 2015-10-28 Tom de Vries <tom@codesourcery.com>
6891
6892 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6893 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6894 (create_function_info_for, create_variable_info_for_1)
6895 (create_variable_info_for): Add and handle add_id parameter.
6896 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6897 (init_base_vars): Add extra argument to calls to new_var_info.
6898 (get_vi_for_tree): Add extra argument to call to
6899 create_variable_info_for.
6900 (process_constraint, do_deref, process_all_all_constraints): Add extra
6901 argument to calls to new_scalar_tmp_constraint_exp.
6902 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6903 argument to calls to make_heapvar.
6904 (make_restrict_var_constraints): Add extra argument to call to
6905 make_constraint_from_global_restrict.
6906 (intra_create_variable_infos): Add extra argument to call to
6907 create_variable_info_for_1.
6908 (ipa_pta_execute): Add extra argument to call to
6909 create_function_info_for.
6910
6911 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6912
6913 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6914 (sibcall_value): Likewise.
6915
6916 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6917
6918 * config/nvptx/nvptx.h (struct machine_function): Add
6919 axis_predicate.
6920 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6921 nvptx_expand_oacc_join): Declare.
6922 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6923 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6924 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6925 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6926 UNSPECV_JOINING, UNSPECV_JOIN): New.
6927 (BITS, BITD): New mode iterators.
6928 (br_true_uni, br_false_uni): New.
6929 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6930 (oacc_dim_size, oacc_dim_pos): New.
6931 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6932 (oacc_fork, oacc_join): New.
6933 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6934 (worker_load<mode>, worker_store<mode>): New.
6935 (nvptx_barsync): New.
6936 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6937 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6938 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6939 worker_bcast_sym): New.
6940 (nvptx_option_override): Initialize worker broadcast buffer.
6941 (nvptx_emit_forking, nvptx_emit_joining): New.
6942 (nvptx_init_axis_predicate): New.
6943 (nvptx_declare_function_name): Init axis predicates.
6944 (nvptx_expand_call): Add fork/join markers around routine call.
6945 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6946 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6947 (nvptx_gen_vcast): New.
6948 (struct wcast_data_t): New.
6949 (enum propagate_mask): New.
6950 (nvptx_gen_wcast): New.
6951 (nvptx_print_operand): Add 'S' case.
6952 (struct parallel): New.
6953 (parallel::parallel, parallel::~parallel): New.
6954 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6955 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6956 nvptx_find_par, nvptx_discover_pars): New.
6957 (nvptx_propagate): New.
6958 (vprop_gen, nvptx_vpropagate): New.
6959 (wprop_gen, nvptx_wpropagate): New.
6960 (nvptx_wsync): New.
6961 (nvptx_single, nvptx_skip_par): New.
6962 (nvptx_process_pars, nvptx_neuter_pars): New.
6963 (ntptx_reorg): Split blocks, generate parallel structure, apply
6964 neutering.
6965 (nvptx_cannot_copy_insn_p): New.
6966 (nvptx_file_end): Emit worker broadcast decl.
6967 (nvptx_goacc_fork_join): New.
6968 (TARGET_CANNOT_COPY_INSN_P): Override.
6969 (TARGET_GOACC_FORK_JOIN): Override.
6970
6971 2015-10-28 Richard Biener <rguenther@suse.de>
6972
6973 * fold-const.c (negate_expr_p): Adjust the division case to
6974 properly avoid introducing undefined overflow.
6975 (fold_negate_expr): Likewise.
6976
6977 2015-10-28 Richard Biener <rguenther@suse.de>
6978
6979 PR tree-optimization/65962
6980 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6981 Avoid creating loop carried dependences also for outer loops
6982 of the loop a use to replace is in.
6983
6984 2015-10-28 Richard Biener <rguenther@suse.de>
6985
6986 * common.opt (fchecking): New flag controlling flag_checking.
6987 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6988 * timevar.c (timer::print): Adjust output.
6989 * doc/invoke.texi (fchecking): Document.
6990
6991 2015-10-28 Richard Biener <rguenther@suse.de>
6992
6993 PR middle-end/68067
6994 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6995 if overflow is not wrapping. Likewise multiplication unless
6996 one operand is constant and not power of two.
6997 (fold_negate_expr): Adjust accordingly.
6998
6999 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7000
7001 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7002 fields.
7003 (is_oacc_parallel, is_oacc_kernels): New.
7004 (enclosing_target_ctx): May return NULL.
7005 (ctx_in_oacc_kernels_region): New.
7006 (check_oacc_kernel_gwv): New.
7007 (oacc_loop_or_target_p): Delete.
7008 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7009 operands. Strip reductions fro kernels.
7010 (scan_omp_target): Don't calculate gwv mask.
7011 (lower_oacc_head_mark, lower_oacc_loop_marker,
7012 lower_oacc_head_tail): New.
7013 (struct oacc_collapse): New.
7014 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7015 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7016 Remove OpenACC handling.
7017 (expand_oacc_for): New.
7018 (expand_omp_for): Call expand_oacc_for.
7019 (lower_omp_for): Call lower_oacc_head_tail.
7020
7021 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7022
7023 * attribs.c (check_attribute_tables): New function, broken out from...
7024 (init_attributes): Use it.
7025 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7026 gcc_checking_assert and checking_* functions to eliminate
7027 ENABLE_CHECKING conditionals.
7028 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7029 (pass_expand::execute): Likewise.
7030 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7031 * cgraphunit.c (mark_functions_to_output): Likewise.
7032 (cgraph_node::expand_thunk): Likewise.
7033 (symbol_table::compile): Likewise.
7034 * ddg.c (add_cross_iteration_register_deps): Likewise.
7035 (create_ddg_all_sccs): Likewise.
7036 * df-core.c (df_finish_pass, df_analyze): Likewise.
7037 * diagnostic-core.h: Likewise.
7038 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7039 * dominance.c (calculate_dominance_info): Likewise.
7040 * dwarf2out.c (add_AT_die_ref): Likewise.
7041 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7042 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7043 gen_type_die_with_usage, gen_type_die): Likewise.
7044 (dwarf2out_decl): Likewise.
7045 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7046 * except.c (duplicate_eh_regions): Likewise.
7047 * fwprop.c (register_active_defs, update_df_init): Likewise.
7048 (fwprop_init, fwprop_done): Likewise.
7049 (update_uses): Likewise.
7050 * ggc-page.c (ggc_grow): Likewise.
7051 * gimplify.c (gimplify_body): Likewise.
7052 (gimplify_hasher::equal): Likewise.
7053 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7054 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7055 Likewise.
7056 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7057 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7058 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7059 * ifcvt.c (if_convert): Likewise.
7060 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7061 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7062 (odr_type_p, odr_types_equivalent_p): Likewise.
7063 (add_type_duplicate, get_odr_type): Likewise.
7064 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7065 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7066 (sem_item_optimizer::verify_classes): Likewise.
7067 (sem_item_optimizer::traverse_congruence_split): Likewise.
7068 (sem_item_optimizer::checking_verify_classes): New.
7069 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7070 method.
7071 * cfgrtl.c (commit_edge_insertions): Likewise.
7072 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7073 (rtl_flow_call_edges_add): Likewise.
7074 * cgraph.c (symbol_table::create_edge): Likewise.
7075 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7076 * cgraph.h (symtab_node): Likewise.
7077 (symtab_node::checking_verify_symtab_nodes): Define.
7078 (cgraph_node::checking_verify_cgraph_nodes): Define.
7079 * cfghooks.h (checking_verify_flow_info): Define.
7080 * cfgloop.h (checking_verify_loop_structure): Define.
7081 * dominance.h (checking_verify_dominators): Define.
7082 * et-forest.c: Fix comment.
7083 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7084 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7085 ENABLE_CHECKING conditionals.
7086 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7087 * ipa-inline.c (inline_small_functions): Likewise.
7088 (early_inliner): Likewise.
7089 * ipa-inline.h (estimate_edge_growth): Likewise.
7090 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7091 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7092 (ipa_single_use): Likewise.
7093 * ira-int.h: Likewise.
7094 * ira.c (ira): Likewise.
7095 * loop-doloop.c (doloop_optimize_loops): Likewise.
7096 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7097 * loop-invariant.c (move_loop_invariants): Likewise.
7098 * lra-assigns.c (lra_assign): Likewise.
7099 * lra-constraints.c (lra_constraints): Likewise.
7100 * lra-eliminations.c (lra_eliminate): Likewise.
7101 * lra-int.h (struct lra_reg): Likewise.
7102 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7103 (lra_create_live_ranges_1): Likewise.
7104 * lra-remat.c (create_remat_bb_data): Likewise.
7105 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7106 (lra): Likewise.
7107 (check_rtl): Always define. Remove incorrect guard around
7108 extract_constrain_insn call.
7109 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7110 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7111 ENABLE_CHECKING conditionals.
7112 * lto-streamer-out.c (DFS::DFS): Likewise.
7113 (lto_output): Likewise.
7114 * lto-streamer.c (lto_streamer_init): Likewise.
7115 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7116 expand_omp_target, execute_expand_omp): Likewise.
7117 (lower_omp_target): Likewise.
7118 * passes.c (execute_function_todo): Likewise.
7119 (execute_todo, execute_one_pass): Likewise.
7120 (verify_curr_properties): Always define.
7121 * predict.c (tree_estimate_probability: Use flag_checking,
7122 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7123 ENABLE_CHECKING conditionals.
7124 (propagate_freq): Likewise.
7125 * pretty-print.c (pp_format): Likewise.
7126 * real.c (real_to_decimal_for_mode): Likewise.
7127 * recog.c (split_all_insns): Likewise.
7128 * regcprop.c (kill_value_one_regno): Likewise.
7129 (copy_value): Likewise.
7130 (validate_value_data): Define unconditionally.
7131 * reload.c: Fix comment.
7132 * timevar.c: Include options.h
7133 * tree-ssa.h (checking_verify_ssa): Define.
7134 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7135 * sched-deps.c (CHECK): Remove unused macro.
7136 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7137 gcc_checking_assert and checking_* functions to eliminate
7138 ENABLE_CHECKING conditionals.
7139 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7140 * sel-sched.c (struct moveop_static_params): Likewise.
7141 (find_best_reg_for_expr, move_cond_jump): Likewise.
7142 (move_op_orig_expr_not_found): Likewise.
7143 (code_motion_process_successors, move_op): Likewise.
7144 * ssa-iterators.h (first_readonly_imm_use): Likewise.
7145 (next_readonly_imm_use): Likewise.
7146 * store-motion.c (compute_store_table): Likewise.
7147 * symbol-summary.h (function_summary::function_summary): Likewise.
7148 * target.h (cumulative_args_t): Likewise.
7149 (get_cumulative_args, pack_cumulative_args): Likewise.
7150 * timevar.c: (timer::print): Likewise.
7151 * trans-mem.c (ipa_tm_execute): Likewise.
7152 * tree-cfg.c (move_stmt_op): Likewise.
7153 (move_sese_region_to_fn): Likewise.
7154 (gimple_flow_call_edges_add): Likewise.
7155 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7156 Likewise.
7157 * tree-eh.c (remove_unreachable_handlers): Likewise.
7158 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7159 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7160 * tree-into-ssa.c (update_ssa): Likewise.
7161 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7162 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7163 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7164 * tree-predcom.c (suitable_component_p): Likewise.
7165 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7166 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7167 * tree-ssa-live.c (verify_live_on_entry): Likewise.
7168 * tree-ssa-live.h (register_ssa_partition): Likewise.
7169 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7170 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7171 (tree_transform_and_unroll_loop): Likewise.
7172 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7173 * tree-ssa-operands.c (get_expr_operands): Likewise.
7174 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7175 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7176 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7177 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7178 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7179 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7180 * tree-vect-loop-manip.c
7181 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7182 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7183 (vect_do_peeling_for_loop_bound): Likewise.
7184 (vect_do_peeling_for_alignment): Likewise.
7185 * tree-vrp.c (supports_overflow_infinity): Likewise.
7186 (set_value_range): Likewise.
7187 * tree.c (free_lang_data_in_cgraph): Likewise.
7188 * value-prof.c (gimple_remove_histogram_value): Likewise.
7189 (free_hist): Likewise.
7190 * var-tracking.c (canonicalize_values_star): Likewise.
7191 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7192
7193 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7194
7195 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7196 IFN_GOACC_LOOP): New.
7197 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7198 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7199 IFN_UNIQUE_OACC_TAIL_MARK.
7200 (enum ifn_goacc_loop_kind): New.
7201 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7202 IFN_UNIQUE_OACC_JOIN cases.
7203 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7204 (expand_GOACC_LOOP): New.
7205 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7206 * omp-low.c: Include gimple-pretty-print.h.
7207 (struct oacc_loop): New.
7208 (enum oacc_loop_flags): New.
7209 (oacc_thread_numbers): New.
7210 (oacc_xform_loop): New.
7211 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7212 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7213 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7214 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7215 oacc_loop_discovery): New.
7216 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7217 oacc_loop_process): New.
7218 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7219 (execute_oacc_device_lower): Discover & process loops. Process
7220 internal fns.
7221 * target.def (goacc.fork_join): Change sense of hook, clarify
7222 documentation.
7223 * doc/tm.texi: Regenerated.
7224
7225 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7226
7227 * target-insns.def (oacc_fork, oacc_join): Define.
7228 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7229 (goacc.fork_join): New GOACC hook.
7230 * targhooks.h (default_goacc_fork_join): Declare.
7231 * omp-low.c (default_goacc_forkjoin): New.
7232 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7233 * doc/tm.texi: Regenerate.
7234
7235 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7236
7237 * omp-low.c (oacc_init_rediction_array): New.
7238 (oacc_initialize_reduction_data): Initialize array.
7239
7240 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7241
7242 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7243
7244 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7245
7246 * internal-fn.c (expand_UNIQUE): New.
7247 * internal-fn.h (enum ifn_unique_kind): New.
7248 * internal-fn.def (IFN_UNIQUE): New.
7249 * target-insns.def (unique): Define.
7250 * gimple.h (gimple_call_internal_unique_p): New.
7251 * gimple.c (gimple_call_same_target_p): Check internal fn
7252 uniqueness.
7253 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7254 * tree-ssa-threadedge.c
7255 (record_temporary_equivalences_from_stmts): Likewise.
7256 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7257
7258 2015-10-27 Richard Henderson <rth@redhat.com>
7259
7260 PR rtl-opt/67609
7261 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7262 narrowing subregs on SSE and MMX registers.
7263 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7264 appear to be sub-words of multi-register pseudos must be rejected.
7265 * doc/tm.texi: Regenerate.
7266
7267 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7268
7269 PR target/68102
7270 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7271 operands[0] is a reg before taking its REGNO in split condition.
7272 (*movdi_aarch64): Likewise.
7273
7274 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7275
7276 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7277 Handle floating point inner modes properly.
7278
7279 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7280
7281 * tree-vect-looop.c
7282 (vectorizable_live_operation): Change iterator.
7283
7284 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7285 Aditya Kumar <aditya.k7@samsung.com>
7286
7287 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7288 function to schedule based on isl_schedule_node.
7289 (get_schedule_map_st): New schedule optimizer based on
7290 isl_schedule_node.
7291 (scop_get_domains): New. Return the isl_union_set containing the
7292 domains of all the pbbs.
7293 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7294
7295 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7296
7297 PR target/67215
7298 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7299 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7300 via GOT for -fno-plt. Support indirect call via GOT for x32.
7301 * config/i386/predicates.md (sibcall_memory_operand): Allow
7302 GOT memory operand.
7303
7304 2015-10-27 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/68104
7307 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7308 strided access check ...
7309 (vect_compute_data_refs_alignment): ... here.
7310
7311 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7312 Joseph Myers <joseph@codesourcery.com>
7313 Mark Shinwell <shinwell@codesourcery.com>
7314 Andrew Stubbs <ams@codesourcery.com>
7315 Rich Felker <dalias@libc.org>
7316
7317 * config.gcc: Handle --enable-fdpic.
7318 * config/sh/constraints.md (Ccl): New constraint.
7319 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7320 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7321 __SH_FDPIC__.
7322 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7323 library functions.
7324 * config/sh/sh-protos.h (function_symbol_result): New struct.
7325 (function_symbol): Return function_symbol_result.
7326 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7327 declarations.
7328 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7329 target hook.
7330 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7331 (sh_option_override): Force -fPIC if FDPIC is in effect.
7332 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7333 UNSPEC_GOTOFFFUNCDESC cases.
7334 (prepare_move_operands): Use FDPIC initial GOT register for
7335 TLS-related GOT access; inhibit cross-section address offset constants
7336 for FDPIC.
7337 (sh_assemble_integer): New function.
7338 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7339 PC-relative call sites.
7340 (expand_ashiftrt): Adapt invocation of function_symbol.
7341 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7342 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7343 UNSPEC_GOTOFFFUNCDESC.
7344 (legitimize_pic_address): Resolve function symbols to function
7345 descriptors for FDPIC. Do not use GOT-relative addressing for local
7346 data that may be read-only on FDPIC.
7347 (sh_emit_storesi, sh_emit_storehi): New functions.
7348 (sh_trampoline_init): Generate FDPIC trampolines.
7349 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7350 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7351 (sh_output_mi_thunk): Generate FDPIC call.
7352 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7353 FDPIC, generate call site labels to use PC-relative addressing rather
7354 than GOT-relative addressing.
7355 (sh_conditional_register_usage): Make PIC register fixed and call used
7356 when FDPIC is in effect.
7357 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7358 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7359 sh_get_fdpic_reg_initial_val): New functions.
7360 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7361 Handle -mfdpic.
7362 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7363 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7364 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7365 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7366 FDPIC_SELF_SPECS.
7367 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7368 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7369 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7370 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7371 constants.
7372 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7373 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7374 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7375 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7376 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7377 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7378 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7379 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7380 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7381 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7382 block_move_real, block_lump_real, block_move_real_i4,
7383 block_lump_real_i4): Add support for FDPIC calls.
7384 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7385 call_value_pop): Adjust for new function_symbol signature.
7386 * config/sh/sh.opt (-mfdpic): New option.
7387 * doc/install.texi (Options specification): Document --enable-fdpic.
7388 * doc/invoke.texi (SH Options): Document -mfdpic.
7389
7390
7391 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7392
7393 PR tree-optimization/65963
7394 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7395 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7396
7397 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7398
7399 PR target/67929
7400 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7401 * config/arm/constraints.md (Dp): Update callsite.
7402 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7403
7404 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7405
7406 * builtins.c (fold_builtin_load_exponent): Rename to...
7407 (fold_const_builtin_load_exponent): ...this and only handle
7408 constant arguments.
7409 (fold_builtin_2): Update accordingly.
7410 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7411
7412 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7413
7414 * builtins.c (fold_builtin_logb): Rename to...
7415 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7416 (fold_builtin_significand): Rename to...
7417 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7418 (fold_builtin_1): Update accordingly.
7419
7420 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7421
7422 * builtins.c (fold_builtin_fmin_fmax): Delete.
7423 (fold_builtin_2): Handle constant fmin and fmax arguments here.
7424 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7425
7426 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
7427
7428 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7429 for register extension into sign and zero register extension.
7430 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7431 for sign and zero register extension.
7432 (cortexa57_addrcost_table): Likewise.
7433 (xgene1_addrcost_table): Likewise.
7434
7435 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7436
7437 * fold-const.c (fold_minmax): Delete.
7438 (fold_binary_loc): Don't call it.
7439 * match.pd: Add rules previously handled by fold_minmax.
7440
7441 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7442
7443 * builtins.c (fold_builtin_fma): Remove constant handling.
7444 (fold_builtin_3): Handle constant fma arguments here.
7445
7446 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7447
7448 * builtins.c (fold_builtin_fabs): Remove constant handling.
7449 (fold_builtin_abs): Likewise.
7450
7451 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7452
7453 * builtins.c (fold_builtin_copysign): Delete.
7454 (fold_builtin_2): Handle constant copysign arguments here.
7455 * match.pd: Add rules previously handled by fold_builtin_copysign.
7456
7457 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7458
7459 * builtins.c (fold_builtin_signbit): Delete.
7460 (fold_builtin_2): Handle constant signbit arguments here.
7461 * match.pd: Add rules previously handled by fold_builtin_signbit.
7462
7463 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7464
7465 * match.pd: Handle sqrt(x) cmp 0 specially.
7466
7467 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
7468
7469 * tree-vect-generic.c (expand_vector_operations_1): Check
7470 optab type before using it.
7471
7472 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7473
7474 * config/aarch64/aarch64-protos.h
7475 (struct tune_params): Add autoprefetcher_model field.
7476 * config/aarch64/aarch64.c: Include params.h
7477 (generic_tunings): Specify autoprefetcher_model value.
7478 (cortexa53_tunings): Likewise.
7479 (cortexa57_tunings): Likewise.
7480 (cortexa72_tunings): Likewise.
7481 (thunderx_tunings): Likewise.
7482 (xgene1_tunings): Likewise.
7483 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7484 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7485 (aarch64_override_options_internal): Set
7486 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7487
7488 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7489
7490 * builtins.c (fold_builtin_exponent): Delete.
7491 (fold_builtin_2): Handle constant expN arguments here.
7492 * match.pd: Fold expN(logN(x)) -> x.
7493
7494 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7495
7496 * builtins.c (fold_builtin_powi): Delete.
7497 (fold_builtin_2): Handle constant powi arguments here.
7498 * match.pd: Add rules previously handled by fold_builtin_powi.
7499
7500 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7501
7502 * builtins.c (fold_builtin_pow): Delete in favor of...
7503 (fold_const_builtin_pow): ...this new function. Only handle constant
7504 arguments.
7505 (fold_builtin_2): Update accordingly.
7506 * match.pd: Add rules previously handled by fold_builtin_pow.
7507
7508 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7509
7510 * builtins.c (fold_builtin_hypot): Delete.
7511 (fold_builtin_2): Handle constant hypot arguments here.
7512 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7513 hypot(x, x) to fabs(x)*sqrt(2).
7514
7515 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7516
7517 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7518 instead of make_ssa_name if not yet in SSA form.
7519
7520 2015-10-27 Richard Biener <rguenther@suse.de>
7521
7522 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7523 (clear_edges): Likewise.
7524 * cfg.h (clear_edges): Adjust prototype.
7525 * cfgexpand.c (pass_expand::execute): Adjust.
7526 * cfgloop.c (release_recorded_exits): Add function argument and use
7527 it instead of cfun.
7528 * cfgloop.h (release_recorded_exits): Adjust prototype.
7529 (loops_state_satisfies_p): Add overload with function argument.
7530 (loops_state_set): Likewise.
7531 (loops_state_clear): Likewise.
7532 (struct loop_iterator): Add function argument to constructor
7533 and iterator and use it instead of cfun.
7534 (FOR_EACH_LOOP_FN): New macro.
7535 (loop_optimizer_finalize): Add overload with function argument.
7536 * loop-init.c (loop_optimizer_init): Adjust.
7537 (fix_loop_structure): Likewise.
7538 (loop_optimizer_finaliz): Add function argument and use it
7539 instead of cfun.
7540 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7541 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7542 * cgraph.c (release_function_body): Do not push/pop cfun.
7543 * final.c (rest_of_clean_state): Adjust.
7544 * graphite.c (graphite_finalize): Likewise.
7545 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7546 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7547 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7548 (tree_unroll_loops_completely): Likewise.
7549 (pass_complete_unrolli::execute): Likewise.
7550 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7551 Add function argument and use it instead of cfun.
7552 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7553 Adjust prototype.
7554 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7555 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7556 instead of cfun.
7557 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7558 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7559 instead of cfun.
7560 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7561 * tree-vrp.c (execute_vrp): Adjust.
7562 * value-prof.c (free_histograms): Add function argument and use it
7563 instead of cfun.
7564 * value-prof.h (free_histograms): Adjust prototype.
7565
7566 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7567
7568 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7569 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7570 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7571
7572 2015-10-27 Tom de Vries <tom@codesourcery.com>
7573
7574 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7575 field_type.
7576
7577 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7578
7579 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7580 (inv_can_prop_to_addr_use): New function.
7581 (record_use): Call can_prop_to_addr_uses, set the new field.
7582 (get_inv_cost): Count cost if inv can't be propagated into its
7583 address uses.
7584
7585 2015-10-26 Doug Evans <dje@google.com>
7586
7587 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7588
7589 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7590
7591 * match.pd (fold_widened_comparison): Apply simplifications to all
7592 integral types.
7593
7594 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7595
7596 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7597 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7598 * doc/tm.texi: Regenerated.
7599 * reorg.c (dbr_schedule): Use new hook.
7600 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7601
7602 2015-10-26 Jeff Law <law@redhat.com>
7603
7604 PR tree-optimization/68013
7605 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7606 Make sure the first block in the path is in VISITED_BBs.
7607
7608 2015-10-26 Richard Biener <rguenther@suse.de>
7609 Dominik Vogt <vogt@linux.vnet.ibm.com>
7610
7611 PR middle-end/67443
7612 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7613 Properly prune ref->ref for accesses outside of ref.
7614
7615 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7616
7617 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7618 new statements to be inserted if inplace. Allow calls to have
7619 nonempty sequences.
7620
7621 2015-10-26 Richard Biener <rguenther@suse.de>
7622
7623 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7624 (do_valueize): New function.
7625 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7626 replace_uses_by.
7627 * tree-ssa-threadedge.c: Remove builtins.h include, include
7628 gimple-fold.h
7629 (fold_assignment_stmt): Remove.
7630 (threadedge_valueize): New function.
7631 (record_temporary_equivalences_from_stmts): Use
7632 gimple_fold_stmt_to_constant_1, note additional cleanup
7633 opportunities.
7634
7635 2015-10-26 Richard Biener <rguenther@suse.de>
7636
7637 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7638 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7639
7640 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7641
7642 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7643 VEC_COND_EXPR types.
7644
7645 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7646
7647 * auto-inc-dec.c (insert_move_insn_before): Delete.
7648 (attempt_change): Remember to cost the simple move in the
7649 FORM_PRE_ADD and FORM_POST_ADD cases.
7650
7651 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7652
7653 PR target/68091
7654 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7655 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7656
7657 2015-10-26 Tom de Vries <tom@codesourcery.com>
7658
7659 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7660 factored out of ...
7661 (intra_create_variable_infos): ... here.
7662
7663 2015-10-26 Tom de Vries <tom@codesourcery.com>
7664
7665 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7666 restrict_pointer_p and recursive_restrict_p variables.
7667
7668 2015-10-26 Tom de Vries <tom@codesourcery.com>
7669
7670 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7671 get_vi_for_tree call.
7672
7673 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7674
7675 PR middle-end/67989
7676 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7677 ptarget_oval or ptarget_bool are const0_rtx.
7678
7679 2015-10-26 Christian Bruel <christian.bruel@st.com>
7680
7681 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7682 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7683 * cp/method.c (implicitly_declare_fn): Likewise.
7684 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7685 * java/class.c (add_method_1): Likewise.
7686
7687 2015-10-26 Richard Biener <rguenther@suse.de>
7688
7689 * alloc-pool.h (base_pool_allocator): Use placement new.
7690 (base_pool_allocator::remove): Likewise. Compute size outside of
7691 flag_checking.
7692
7693 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7694
7695 * builtins.c (do_real_to_int_conversion): New function.
7696 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7697 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7698 arguments here.
7699 * match.pd: Add rules previously handled by fold_fixed_mathfn
7700 and fold_builtin_int_roundingfn.
7701
7702 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7703
7704 * match.pd: Use macros to define built-in operator lists.
7705
7706 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7707 Richard Biener <rguenther@suse.de>
7708
7709 * genmatch.c (dt_simplify::gen): Skip captures that are
7710 part of the result.
7711 (parser::parse_expr): Allow captures in results too.
7712 * builtins.c (fold_builtin_cexp): Delete.
7713 (fold_builtin_1): Handle constant cexp arguments here.
7714 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7715
7716 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7717
7718 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7719 conditional compilation.
7720 (base_pool_allocator::remove): Use flag_checking.
7721
7722 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7723
7724 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7725
7726 PR middle-end/68079
7727 * dojump.c (do_compare_and_jump): Canonicalize both function and
7728 method types.
7729
7730 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7731
7732 PR target/68084
7733 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7734 for =@ccae.
7735
7736 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7737
7738 PR ipa/pr67600
7739 * ipa-polymorphic-call.c
7740 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7741 instance offset with offset of outer type.
7742
7743 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7744
7745 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7746
7747 2015-10-23 Caroline Tice <cmtice@google.com>
7748
7749 (from Richard Biener
7750 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7751 call to iterative_hash_host_wide_int.
7752
7753 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7754
7755 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7756 Define as yes.
7757
7758 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7759
7760 * tree-vect-generic.c (expand_vector_operations_1): Check
7761 optab exists before use it.
7762
7763 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7764
7765 * tree-vect-generic.c (expand_vector_condition): Avoid
7766 uninitialized variable warning.
7767
7768 2015-10-23 Jeff Law <law@redhat.com>
7769
7770 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7771 here. Instead...
7772 (execute_todo): Call it here.
7773 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7774 statistics
7775 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7776
7777 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7778 Szabolcs Nagy <szabolcs.nagy@arm.com>
7779
7780 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7781
7782 2015-10-23 Jeff Law <law@redhat.com>
7783
7784 PR tree-optimization/67830
7785 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7786 Explicitly verify the mask has no bits outside the type of
7787 the innermost operands.
7788
7789 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7790 Szabolcs Nagy <szabolcs.nagy@arm.com>
7791
7792 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7793 (MUSL_DYNAMIC_LINKER64): Define.
7794 (GNU_USER_DYNAMIC_LINKER32): Update.
7795 (GNU_USER_DYNAMIC_LINKER64): Update.
7796 (CHOOSE_DYNAMIC_LINKER): Update.
7797
7798 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7799 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7800 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7801 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7802 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7803 (CHOOSE_DYNAMIC_LINKER): Update.
7804 (INCLUDE_DEFAULTS): Redefine.
7805
7806 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7807
7808 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7809
7810 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7811 comparing addresses.
7812
7813 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7814
7815 * fold-const.c (operand_equal_p): Handle matching of vector
7816 constructors.
7817
7818 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7819
7820 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7821
7822 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7823 Andrew Pinski <apinski@cavium.com>
7824
7825 PR rtl-optimization/67736
7826 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7827 of gen_lowpart.
7828
7829 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7830
7831 PR middle-end/68066
7832 * tree.c (build_truth_vector_type): Support BLK mode
7833 returned for boolean vector.
7834
7835 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7836
7837 PR tree-optimization/65947
7838 * tree-vect-loop.c
7839 (vect_is_simple_reduction_1): Find condition reductions.
7840 (vect_model_reduction_cost): Add condition reduction costs.
7841 (get_initial_def_for_reduction): Add condition reduction initial var.
7842 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7843 (vectorizable_reduction): Condition reduction support.
7844 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7845 * doc/sourcebuild.texi (Vector-specific attributes): Document
7846 vect_max_reduc
7847
7848 2015-10-23 Richard Biener <rguenther@suse.de>
7849
7850 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7851 and builtins.def.
7852
7853 2015-10-23 Richard Biener <rguenther@suse.de>
7854 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7855
7856 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7857 into (A ^ B) - B to match.pd
7858 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7859
7860 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7861 New simplifier.
7862 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7863 New simplifier.
7864 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7865 New simplifier.
7866 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7867 New simplifier.
7868 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7869 INTEGER_CST@1)): New simplifier.
7870
7871 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7872
7873 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7874 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7875 (fold_builtin_ceil, fold_builtin_round): Delete.
7876 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7877 arguments here.
7878 * convert.c (convert_to_real): Remove narrowing of rounding
7879 functions.
7880 * fold-const.h (integer_valued_real_unary_p)
7881 (integer_valued_real_binary_p, integer_valued_real_call_p)
7882 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7883 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7884 name_registered_for_update_p check to SSA_NAME case statement.
7885 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7886 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7887 (integer_valued_real_call_p, integer_valued_real_single_p)
7888 (integer_valued_real_invalid_p): New functions.
7889 (integer_valued_real_p): Move from fold-const.c and rework
7890 to call the functions above. Handle SSA names.
7891 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7892 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7893 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7894 (gimple_stmt_integer_valued_real_p): New functions.
7895 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7896 Fold f(x)->x for the same f if x is known to be integer-valued.
7897 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7898 the result. Canonicalize floor(x) as trunc(x) if x is
7899 nonnegative.
7900
7901 2015-10-23 Tom de Vries <tom@codesourcery.com>
7902
7903 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7904 make_constraint_from.
7905
7906 2015-10-23 Tom de Vries <tom@codesourcery.com>
7907
7908 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7909 setting of is_full_var in case of a single field.
7910
7911 2015-10-22 Martin Sebor <msebor@redhat.com>
7912
7913 PR driver/68043
7914 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7915 * config/msp430/msp430.opt: Same.
7916
7917 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7918
7919 * doc/extend.exp (Global Register Variables): Rewrite.
7920
7921 2015-10-22 Jeff Law <law@redhat.com>
7922
7923 * genattrtab.c (main): If we do not have any annul-true or annul-false
7924 slots, then write out a dummy eligible_for_annul_true or
7925 eligible_for_annul_false as needed.
7926
7927 2015-10-22 Nick Clifton <nickc@redhat.com>
7928
7929 * config/msp430/msp430.opt: Add -msilicon-errata and
7930 -msilicon-errata-warn.
7931 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7932 assembler.
7933 * doc/invoke.texi: Document new options.
7934
7935 2015-10-22 Richard Biener <rguenther@suse.de>
7936
7937 PR tree-optimization/58497
7938 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7939 (expand_vector_operations_1): Use it. Lower operations on
7940 all uniform vectors to scalar operations if the HW supports it.
7941
7942 2015-10-22 Richard Biener <rguenther@suse.de>
7943
7944 PR tree-optimization/19049
7945 PR tree-optimization/65962
7946 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7947 to strided accesses if single-element interleaving doesn't work.
7948
7949 2015-10-22 Richard Biener <rguenther@suse.de>
7950
7951 PR middle-end/68046
7952 PR middle-end/61893
7953 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7954 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7955 (expand_unop): Likewise.
7956
7957 2015-10-22 Richard Biener <rguenther@suse.de>
7958
7959 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7960 convert operands before folding a MINUS_EXPR.
7961 (fold_binary_loc): Move simplification of MINUS_EXPR on
7962 converted POINTER_PLUS_EXPRs ...
7963 * match.pd: ... here.
7964
7965 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7966
7967 * builtins.c (fold_builtin_tan): Delete.
7968 (fold_builtin_1): Handle constant tan arguments here.
7969 * match.pd: Simplify (tan (atan x)) to x.
7970
7971 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7972
7973 * builtins.c (fold_builtin_cproj): Delete.
7974 (fold_builtin_1): Handle constant arguments here.
7975 (build_complex_cproj): Move and rename to...
7976 * tree.c: (build_complex_inf): ...this.
7977 * tree.h (build_complex_inf): Declare.
7978 * match.pd: Fold cproj(x)->x if x has no infinity.
7979 Use build_complex_inf for existing cproj rules.
7980
7981 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7982
7983 PR target/68015
7984 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7985 already have a comparison result.
7986
7987 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7988
7989 PR target/63304
7990 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7991 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7992 (aarch64_classify_address): Likewise.
7993 (aarch64_secondary_reload): Likewise.
7994 (aarch64_override_options_after_change_1): Adjust.
7995 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7996 Use aarch64_nopcrelative_literal_loads.
7997 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7998 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7999 Declare.
8000
8001 2015-10-21 Martin Sebor <msebor@redhat.com>
8002
8003 PR driver/68043
8004 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8005 (print_filtered_help): Reference aliased option's name and encourage
8006 readers to use it in preference to the alias if the former is not
8007 documented. Mention when using an option is diagnosed.
8008 * gcc.c (display_help): End each sentence with a period.
8009
8010 * common.opt: End each sentence that describes an option with
8011 a period.
8012 * config/aarch64/aarch64.opt: Same.
8013 * config/alpha/alpha.opt: Same.
8014 * config/arc/arc.opt: Same.
8015 * config/arm/arm.opt: Same.
8016 * config/avr/avr.opt: Same.
8017 * config/bfin/bfin.opt: Same.
8018 * config/c6x/c6x.opt: Same.
8019 * config/cr16/cr16.opt: Same.
8020 * config/cris/cris.opt: Same.
8021 * config/cris/linux.opt: Same.
8022 * config/darwin.opt: Same.
8023 * config/epiphany/epiphany.opt: Same.
8024 * config/fr30/fr30.opt: Same.
8025 * config/frv/frv.opt: Same.
8026 * config/ft32/ft32.opt: Same.
8027 * config/g.opt: Same.
8028 * config/h8300/h8300.opt: Same.
8029 * config/i386/cygming.opt: Same.
8030 * config/i386/djgpp.opt: Same.
8031 * config/i386/i386.opt: Same.
8032 * config/i386/interix.opt: Same.
8033 * config/i386/mingw-w64.opt: Same.
8034 * config/i386/mingw.opt: Same.
8035 * config/ia64/ia64.opt: Same.
8036 * config/ia64/ilp32.opt: Same.
8037 * config/iq2000/iq2000.opt: Same.
8038 * config/linux.opt: Same.
8039 * config/lm32/lm32.opt: Same.
8040 * config/lynx.opt: Same.
8041 * config/m32c/m32c.opt: Same.
8042 * config/m32r/m32r.opt: Same.
8043 * config/m68k/ieee.opt: Same.
8044 * config/m68k/m68k.opt: Same.
8045 * config/mcore/mcore.opt: Same.
8046 * config/mep/mep.opt: Same.
8047 * config/microblaze/microblaze.opt: Same.
8048 * config/mips/mips.opt: Same.
8049 * config/mmix/mmix.opt: Same.
8050 * config/mn10300/mn10300.opt: Same.
8051 * config/moxie/moxie.opt: Same.
8052 * config/msp430/msp430.opt: Same.
8053 * config/nios2/elf.opt: Same.
8054 * config/nios2/nios2.opt: Same.
8055 * config/nvptx/nvptx.opt: Same.
8056 * config/pa/pa-hpux.opt: Same.
8057 * config/pa/pa-hpux1010.opt: Same.
8058 * config/pa/pa-hpux1111.opt: Same.
8059 * config/pa/pa-hpux1131.opt: Same.
8060 * config/pa/pa.opt: Same.
8061 * config/pa/pa64-hpux.opt: Same.
8062 * config/pdp11/pdp11.opt: Same.
8063 * config/rl78/rl78.opt: Same.
8064 * config/rs6000/476.opt: Same.
8065 * config/rs6000/aix64.opt: Same.
8066 * config/rs6000/darwin.opt: Same.
8067 * config/rs6000/linux64.opt: Same.
8068 * config/rs6000/rs6000.opt: Same.
8069 * config/rs6000/sysv4.opt: Same.
8070 * config/s390/s390.opt: Same.
8071 * config/s390/tpf.opt: Same.
8072 * config/sh/sh.opt: Same.
8073 * config/sol2.opt: Same.
8074 * config/sparc/long-double-switch.opt: Same.
8075 * config/sparc/sparc.opt: Same.
8076 * config/spu/spu.opt: Same.
8077 * config/stormy16/stormy16.opt: Same.
8078 * config/tilegx/tilegx.opt: Same.
8079 * config/tilepro/tilepro.opt: Same.
8080 * config/v850/v850.opt: Same.
8081 * config/vax/vax.opt: Same.
8082 * config/visium/visium.opt: Same.
8083 * config/vms/vms.opt: Same.
8084 * config/vxworks.opt: Same.
8085 * config/xtensa/xtensa.opt: Same.
8086
8087 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8088 Sebastian Pop <s.pop@samsung.com>
8089
8090 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8091 invariant_in_sese_p_rec.
8092 * graphite-sese-to-poly.c (extract_affine): Same.
8093 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8094 parameter has_vdefs.
8095 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8096 variable depends on virtual definitions in the current region.
8097 * sese.h (invariant_in_sese_p_rec): Update declaration.
8098
8099 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8100 Sebastian Pop <s.pop@samsung.com>
8101
8102 * graphite-scop-detection.c (build_scops): Do not handle scops
8103 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8104 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8105
8106 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8107
8108 * config.in: Regenerate.
8109 * configure: Regenerate.
8110 * configure.ac (CHECKING_P): Define.
8111 * system.h: Use CHECKING_P.
8112
8113 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8114
8115 PR ipa/67056
8116 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8117 is negative we don't know the type.
8118 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8119 types as those won't help devirutalization.
8120
8121 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8122
8123 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8124
8125 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8126
8127 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8128 comments.
8129 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8130 Add comments on sign of the result.
8131 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8132 Recurse on operand #1 instead of operand #0.
8133 <CEIL_MOD_EXPR>: Do not recurse.
8134 <ROUND_MOD_EXPR>: Likewise.
8135
8136 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8137
8138 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8139 * final.c (dbr_sequence_length): Always define.
8140 (shorten_branches): Adjust.
8141 * genattr-common.c (main): Always define DELAY_SLOTS.
8142 * genattr.c (main): Unconditionally declare functions and define
8143 macros related to delay slots.
8144 * genattrtab.c (write_eligible_delay): Adjust.
8145 (main): Always write out delay slot functions.
8146 * opts.c (default_options_table): Adjust.
8147 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8148 (redirect_with_delay_list_safe_p): Likewise.
8149 (fill_simple_delay_slots): Likewise.
8150 (fill_slots_from_thread): Likewise.
8151 (make_return_insns): Likewise.
8152 (dbr_schedule): Likewise.
8153 (rest_of_handle_delay_slots): Likewise.
8154 (pass_delay_slots::gate): Likewise.
8155 * toplev.c (process_options): Likewise.
8156
8157 2015-10-21 Richard Henderson <rth@redhat.com>
8158
8159 * targhooks.c (default_addr_space_pointer_mode): Remove check
8160 for generic address space.
8161 (default_addr_space_address_mode): Likewise.
8162 (default_addr_space_valid_pointer_mode): Likewise.
8163 (default_addr_space_legitimate_address_p): Likewise.
8164 (default_addr_space_legitimize_address): Likewise.
8165 * target.def (addr_space.pointer_mode): Update documentation
8166 of default behavior.
8167 (addr_space.address_mode): Likewise.
8168 * tm.texi: Update.
8169
8170 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8171 address spaces.
8172
8173 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8174
8175 * builtins.c (fold_builtin_cabs): Delete.
8176 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8177 * match.pd: Add rules previously handled by fold_builtin_cabs.
8178
8179 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8180
8181 * fold-const.h (fold_strip_sign_ops): Delete.
8182 * fold-const.c (fold_strip_sign_ops): Likewise.
8183 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8184 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8185 (fold_builtin_ccos): Delete.
8186 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8187 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8188 Remove fndecl argument.
8189 (fold_builtin_1): Update calls accordingly. Handle constant
8190 cos, cosh, ccos and ccosh here.
8191
8192 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8193
8194 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8195 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8196 * common.opt (fssa-backprop): New option.
8197 * fold-const.h (negate_mathfn_p): Declare.
8198 * fold-const.c (negate_mathfn_p): Make public.
8199 * timevar.def (TV_TREE_BACKPROP): New.
8200 * tree-pass.h (make_pass_backprop): Declare.
8201 * passes.def (pass_backprop): Add.
8202 * gimple-ssa-backprop.c: New file.
8203
8204 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8205 Sebastian Pop <s.pop@samsung.com>
8206
8207 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8208 Do not call create_empty_if_region_on_edge when cond_expr is true.
8209 (translate_isl_ast_node_for): Check whether a guard has been generated.
8210
8211 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8212
8213 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8214 (operator=): Removed.
8215 (dr_info): Make alias_set number the last argument with default
8216 value of invalid_alias_set.
8217 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8218 of dr_info.
8219 (rewrite_reductions_out_of_ssa): Iterate only through the
8220 basic blocks which are inside region.
8221 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8222 * sese.h (struct sese_l): Removed assignment operator.
8223 (split_region_for_bb): Removed dead code.
8224
8225 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8226
8227 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8228 (struct scop): Renamed scop::region to scop::scop_info
8229 (scop_set_region): Same.
8230 (SCOP_REGION): Removed
8231 (SCOP_CONTEXT): Removed.
8232 (POLY_SCOP_P): Removed.
8233 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8234 Rename scop->region to scop->scop_info.
8235 (add_parameters_to_ivs_params): Same.
8236 (graphite_regenerate_ast_isl): Same.
8237 * graphite-poly.c (new_scop): Same.
8238 (free_scop): Same.
8239 (print_scop_params): Same.
8240 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8241 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8242 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8243 (scop_detection::nb_pbbs_in_loops): Same.
8244 (find_scop_parameters): Same.
8245 (try_generate_gimple_bb): Same.
8246 (gather_bbs::before_dom_children): Same.
8247 (gather_bbs::after_dom_children): Same.
8248 (build_scops): Same.
8249 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8250 (extract_affine_chrec): Same.
8251 (extract_affine): Same.
8252 (set_scop_parameter_dim): Same.
8253 (build_loop_iteration_domains): Same.
8254 (create_pw_aff_from_tree): Same.
8255 (add_param_constraints): Same.
8256 (build_scop_iteration_domain): Same.
8257 (build_scop_drs): Same.
8258 (analyze_drs_in_stmts): Same.
8259 (insert_out_of_ssa_copy_on_edge): Same.
8260 (rewrite_close_phi_out_of_ssa):Same.
8261 (rewrite_reductions_out_of_ssa):Same.
8262 (handle_scalar_deps_crossing_scop_limits):Same.
8263 (rewrite_cross_bb_scalar_deps):Same.
8264 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8265 (build_poly_scop):Same.
8266 (build_alias_set): Use pointer to dr_info.
8267 * graphite.c (print_graphite_scop_statistics):
8268 (graphite_transform_loops):
8269 * sese.h (struct sese_l): Remove conversion constructor.
8270
8271 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8272
8273 PR middle-end/67966
8274 * tree.c (verify_type): Verify that TYPE_MODE match
8275 between TYPE_CANONICAL and type.
8276 * expr.c (store_expr_with_bounds): Revert my previous change.
8277 * expmed.c (store_bit_field_1): Revert prevoius change.
8278 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8279 to match for all types.
8280
8281 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8282
8283 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8284 nesting.
8285
8286 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8287
8288 * doc/tm.texi: Regenerated.
8289 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8290 * stor-layout.c (layout_type): Use mode to get vector mask size.
8291 * target.def (get_mask_mode): New.
8292 * targhooks.c (default_get_mask_mode): New.
8293 * targhooks.h (default_get_mask_mode): New.
8294 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8295 for boolean vector.
8296 * tree.c (MAX_BOOL_CACHED_PREC): New.
8297 (nonstandard_boolean_type_cache): New.
8298 (build_nonstandard_boolean_type): New.
8299 (make_vector_type): Vector mask has no canonical type.
8300 (build_truth_vector_type): New.
8301 (build_same_sized_truth_vector_type): New.
8302 (truth_type_for): Support vector masks.
8303 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8304 (build_truth_vector_type): New.
8305 (build_same_sized_truth_vector_type): New.
8306 (build_nonstandard_boolean_type): New.
8307 * tree-cfg.c (verify_gimple_comparison) Require boolean
8308 vector type for vector comparison.
8309 (verify_gimple_assign_ternary): Likewise.
8310 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8311 condition operand.
8312 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8313 vector type for vector comparison.
8314 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8315 vector type.
8316 (do_unop): Adjust to modified function type.
8317 (do_binop): Likewise.
8318 (do_plus_minus): Likewise.
8319 (do_negate); Likewise.
8320 (expand_vector_piecewise): Likewise.
8321 (do_cond): Likewise.
8322 (do_compare): Use comparison instead of condition.
8323 (expand_vector_divmod): Use boolean vector type for comparison.
8324 (expand_vector_operations_1): Skip scalar mask operations.
8325
8326 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8327
8328 * omp-low.c (simd_clone_create): Set in_other_partition
8329 for created clones.
8330
8331 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8332
8333 * doc/extend.exp (Local Register Variables): Rewrite.
8334
8335 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8336
8337 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8338 and x*x in cases where the operands are sign ops. Extend these
8339 rules to handle copysign as a sign op (including for cos, cosh
8340 and pow, which already treated negate and abs as sign ops).
8341
8342 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8343
8344 PR target/68018
8345 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8346 for 64-bit MS_ABI targets also when default incoming stack boundary
8347 is overriden.
8348
8349 2015-10-21 Richard Biener <rguenther@suse.de>
8350
8351 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8352 cond stmts, enhanced and split out from ...
8353 (vn_phi_eq): ... here.
8354
8355 2015-10-21 Richard Biener <rguenther@suse.de>
8356
8357 PR middle-end/68031
8358 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8359 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8360 (tree_single_nonnegative_warnv_p): ... here. For SSA names
8361 make sure they are not registered for update.
8362
8363 2015-10-21 Richard Biener <rguenther@suse.de>
8364
8365 PR tree-optimization/68026
8366 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8367 unsigned VARYING values.
8368
8369 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
8370
8371 * asan.c (asan_emit_stack_protection): Don't pass local stack to
8372 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8373 NULL and use local stack than.
8374 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8375 in addition to __asan_init.
8376 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8377 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8378 * asan.h (asan_intercepted_p): Handle new string builtins.
8379 * ubsan.c (ubsan_use_new_style_p): New function.
8380 (ubsan_instrument_float_cast): If location is unknown, assign
8381 input_location to loc. Propagate loc to ubsan_create_data if
8382 ubsan_use_new_style_p returned true.
8383
8384 2015-10-21 Jeff Law <law@redhat.com>
8385
8386 * Makefile.in (OBJS): Remove sched-vis.c
8387 * sched-vis.c: Removed. Code moved into...
8388 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
8389 * rtl.h: Remove prototypes for functions now living in print-rtl.c
8390 * print-rtl.h Add prototypes for new functions in print-rtl.c.
8391 * auto-inc-dec.c: Include print-rtl.h
8392 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8393 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8394
8395 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8396 ATTRIBUTE_UNUSED.
8397
8398 2015-10-21 Richard Biener <rguenther@suse.de>
8399 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8400
8401 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8402 to match.pd.
8403 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8404 about signed left shift stronger and clarify the cases when they're
8405 broken.
8406 Move (a * (1 << b)) is (a << b) to match.pd.
8407 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8408 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8409 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8410
8411 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8412 New simplifier.
8413 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8414 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8415 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8416 : New simplifier.
8417 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8418 New simplifier.
8419 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8420
8421 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
8422 Szabolcs Nagy <szabolcs.nagy@arm.com>
8423 Alan Modra <amodra@gmail.com>
8424
8425 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8426 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8427 (LINK_SPEC): Add %(link_secure_plt).
8428 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8429 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8430
8431 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
8432 Szabolcs Nagy <szabolcs.nagy@arm.com>
8433
8434 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8435 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8436
8437 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8438
8439 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8440 New function.
8441 (fusion_load_store): Use it.
8442 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8443 ldp and stp in VD modes.
8444 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8445 (store_pair<mode>, VD): Likewise.
8446
8447 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
8448
8449 PR rtl-optimization/67609
8450 * lra-splill.c (lra_final_code_change): Don't remove all
8451 sub-registers.
8452
8453 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8454
8455 * simplify-rtx.c (simplify_binary_operation): If either operand was
8456 a constant pool reference use them if all other simplifications failed.
8457
8458 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8459
8460 * config/aarch64/aarch64.md
8461 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8462 * config/aarch64/aarch64-simd.md
8463 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8464 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8465 (aarch64_fpconst_pow_of_2): New function.
8466 (aarch64_vec_fpconst_pow_of_2): Likewise.
8467 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8468 prototype.
8469 (aarch64_vec_fpconst_pow_of_2): Likewise.
8470 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8471 (aarch64_fp_vec_pow2): Likewise.
8472
8473 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
8474
8475 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8476 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
8477 * config/alpha/alpha.c (alpha_function_arg_advance): Update
8478 ALPHA_ARG_SIZE usage.
8479 (alpha_arg_partial_bytes): Ditto.
8480
8481 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8482
8483 PR target/66810
8484 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8485 error_mark_node decls.
8486
8487 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 PR target/67963
8490 PR target/67985
8491 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8492 OPT_miamcu handling.
8493 * config/i386/i386.c (PTA_NO_80387): New macro.
8494 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8495 (ix86_option_override_internal): Update MASK_80387 from
8496 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8497 SSE math only if 80387 is supported. Don't change
8498 MASK_FLOAT_RETURNS.
8499 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8500 80387 is supported.
8501 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8502 if TARGET_80387 is true and TARGET_IAMCU is false.
8503 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8504 is true and TARGET_IAMCU_P is false.
8505
8506 2015-10-20 Richard Biener <rguenther@suse.de>
8507
8508 PR tree-optimization/68017
8509 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8510
8511 2015-10-20 Martin Liska <mliska@suse.cz>
8512
8513 * cgraphclones.c (cgraph_node::create_virtual_clone):
8514 Verify cgraph_node.local.versionable instead of calling
8515 tree_versionable_function_p.
8516 * ipa-cp.c (determine_versionability): Save the information
8517 to ipa_node_params summary.
8518 (ipcp_versionable_function_p): Use it.
8519 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8520 (ipcp_generate_summary): Do not compute cgraph_node
8521 versionability.
8522 * ipa-inline-analysis.c (inline_generate_summary): Compute
8523 versionability for all cgraph nodes.
8524 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8525 ipa_node_params::versionability.
8526 * ipa-prop.h (struct ipa_node_params): Declare it.
8527
8528 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8529
8530 PR other/67868
8531 * varasm.c (assemble_variable): Move special vtv handling to..
8532 (handle_vtv_comdat_sections): .. here. New function.
8533 (output_object_block): Handle vtv sections.
8534
8535 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8536
8537 PR target/66912
8538 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8539
8540 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8541
8542 * doc/extend.texi: Update documentation WRT inline functions.
8543
8544 2015-10-20 Alan Modra <amodra@gmail.com>
8545
8546 PR go/66870
8547 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8548 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8549 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8550
8551 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8552
8553 PR rtl-optimization/66790
8554 * df.h (DF_MIR): New macro.
8555 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8556 (DF_MIR_INFO_BB): New macro.
8557 (DF_MIR_IN, DF_MIR_OUT): New macros.
8558 (struct df_mir_bb_info): New.
8559 (df_mir): New macro.
8560 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8561 declarations.
8562 (df_mir_get_bb_info): New.
8563 * df-problems.c (struct df_mir_problem_data): New.
8564 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8565 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8566 df_mir_confluence_0, df_mir_confluence_n,
8567 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8568 df_mir_bottom_dump, df_mir_verify_solution_start,
8569 df_mir_verify_solution_end): New.
8570 (problem_MIR): New.
8571 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8572 * timevar.def (TV_DF_MIR): New.
8573 * ree.c: Include bitmap.h
8574 (add_removable_extension): Add an INIT_REGS parameter. Use it
8575 to skip zero-extensions that may get an uninitialized register.
8576 (find_removable_extensions): Compute must-initialized registers
8577 using the MIR dataflow problem. Update the call to
8578 add_removable_extension.
8579 (find_and_remove_re): Call df_mir_add_problem.
8580
8581 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8582
8583 * common/config/mn10300/mn10300-common.c
8584 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8585 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8586
8587 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8588
8589 * doc/extend.texi (Explicit Register Variables): Simplify and
8590 avoid unnecessary and confusion abbreviations. Update cross
8591 references.
8592 doc/implement-c.tex: Update cross reference.
8593
8594 2015-10-19 Jeff Law <law@redhat.com>
8595
8596 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8597 that create irreducible loops unless the path elimiantes a multiway
8598 branch.
8599
8600 2015-10-19 Richard Biener <rguenther@suse.de>
8601
8602 PR tree-optimization/67975
8603 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8604 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8605 core worker from ...
8606 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8607 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8608 instead of block number for PHIs with two or one args.
8609 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8610 blocks.
8611
8612 2015-10-19 Richard Biener <rguenther@suse.de>
8613
8614 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8615 (gimple_stmt_nonnegative_warnv_p): Use it.
8616 * match.pd (CPROJ): New operator list.
8617 (cproj (complex ...)): Move simplifications from ...
8618 * builtins.c (fold_builtin_cproj): ... here.
8619
8620 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8621
8622 * config/i386/i386.c (ix86_expand_vector_move): Use
8623 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8624 alignment.
8625
8626 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 * doc/invoke.texi: Replace @optindex with @opindex.
8629
8630 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8631
8632 PR target/67995
8633 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8634 arch= is set, clear all bits in x_ix86_isa_flags, except for
8635 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8636
8637 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8638
8639 PR middle-end/68002
8640 * common.opt (fkeep-static-functions): New option.
8641 * doc/invoke.texi: Document it.
8642 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8643
8644 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8645
8646 * sched-int.h (struct autopref_multipass_data_): Remove offset
8647 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8648 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8649 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8650 (autopref_rank_data): New function.
8651 (autopref_rank_for_schedule): Use it.
8652 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8653
8654 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8655
8656 PR other/65800
8657 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8658
8659 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8660
8661 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8662 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8663 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8664 (STANDARD_STARTFILE_PREFIX_1): New.
8665 (STANDARD_STARTFILE_PREFIX_2): New.
8666
8667 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8668
8669 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8670 (darwin_driver_init): Note a version-min when provided on the c/l.
8671 * config/darwin.h (%darwin_minversion): Remove.
8672 * config/i386/darwin.h: Likewise.
8673 * config/rs6000/darwin.h: Likewise.
8674 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8675 rather than an arbitrary constant.
8676
8677 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8678
8679 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8680 PPC, detect conflicts between -arch and multilib settings. Detect
8681 and warn about conflicts between multiple -arch definitions.
8682
8683 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8684
8685 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8686
8687 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8688
8689 * lra-constraints.c (add_next_usage_insn): Change argument type
8690 from rtx to rtx_insn *.
8691
8692 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8695 for Lakemont.
8696
8697 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8698
8699 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8700 * config/tilegx/mul-tables.c: Regenerate.
8701 * config/tilepro/mul-tables.c: Regenerate.
8702
8703 * config/tilegx/tilegx-c.c: Adjust include files.
8704 * config/tilegx/tilegx.c: Likewise.
8705 * config/tilepro/tilepro-c.c: Likewise.
8706 * config/tilepro/tilepro.c: Likewise.
8707 * config/aarch64/aarch64-builtins.c: Likewise.
8708 * config/aarch64/aarch64.c: Likewise.
8709 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8710 * config/alpha/alpha.c: Likewise.
8711 * config/arc/arc.c: Likewise.
8712 * config/arm/aarch-common.c: Likewise.
8713 * config/arm/arm-builtins.c: Likewise.
8714 * config/arm/arm-c.c: Likewise.
8715 * config/arm/arm.c: Likewise.
8716 * config/avr/avr-c.c: Likewise.
8717 * config/avr/avr-devices.c: Likewise.
8718 * config/avr/avr-log.c: Likewise.
8719 * config/avr/avr.c: Likewise.
8720 * config/bfin/bfin.c: Likewise.
8721 * config/c6x/c6x.c: Likewise.
8722 * config/cr16/cr16.c: Likewise.
8723 * config/cris/cris.c: Likewise.
8724 * config/darwin-c.c: Likewise.
8725 * config/darwin-driver.c: Likewise.
8726 * config/darwin.c: Likewise.
8727 * config/default-c.c: Likewise.
8728 * config/epiphany/epiphany.c: Likewise.
8729 * config/epiphany/mode-switch-use.c: Likewise.
8730 * config/epiphany/resolve-sw-modes.c: Likewise.
8731 * config/fr30/fr30.c: Likewise.
8732 * config/frv/frv.c: Likewise.
8733 * config/ft32/ft32.c: Likewise.
8734 * config/glibc-c.c: Likewise.
8735 * config/h8300/h8300.c: Likewise.
8736 * config/i386/host-cygwin.c: Likewise.
8737 * config/i386/host-mingw32.c: Likewise.
8738 * config/i386/i386-c.c: Likewise.
8739 * config/i386/i386.c: Likewise.
8740 * config/i386/msformat-c.c: Likewise.
8741 * config/i386/winnt-cxx.c: Likewise.
8742 * config/i386/winnt-stubs.c: Likewise.
8743 * config/i386/winnt.c: Likewise.
8744 * config/ia64/ia64-c.c: Likewise.
8745 * config/ia64/ia64.c: Likewise.
8746 * config/iq2000/iq2000.c: Likewise.
8747 * config/lm32/lm32.c: Likewise.
8748 * config/m32c/m32c-pragma.c: Likewise.
8749 * config/m32c/m32c.c: Likewise.
8750 * config/m32r/m32r.c: Likewise.
8751 * config/mcore/mcore.c: Likewise.
8752 * config/mep/mep-pragma.c: Likewise.
8753 * config/mep/mep.c: Likewise.
8754 * config/microblaze/microblaze-c.c: Likewise.
8755 * config/microblaze/microblaze.c: Likewise.
8756 * config/mips/mips-tables.opt
8757 * config/mips/mips.c: Likewise.
8758 * config/mmix/mmix.c: Likewise.
8759 * config/mn10300/mn10300.c: Likewise.
8760 * config/moxie/moxie.c: Likewise.
8761 * config/msp430/msp430-c.c: Likewise.
8762 * config/msp430/msp430.c: Likewise.
8763 * config/nds32/nds32-cost.c: Likewise.
8764 * config/nds32/nds32-fp-as-gp.c: Likewise.
8765 * config/nds32/nds32-intrinsic.c: Likewise.
8766 * config/nds32/nds32-isr.c: Likewise.
8767 * config/nds32/nds32-md-auxiliary.c: Likewise.
8768 * config/nds32/nds32-memory-manipulation.c: Likewise.
8769 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8770 * config/nds32/nds32-predicates.c: Likewise.
8771 * config/nds32/nds32.c: Likewise.
8772 * config/nios2/nios2.c: Likewise.
8773 * config/nvptx/mkoffload.c: Likewise.
8774 * config/nvptx/nvptx.c: Likewise.
8775 * config/pa/pa.c: Likewise.
8776 * config/pdp11/pdp11.c: Likewise.
8777 * config/rl78/rl78-c.c: Likewise.
8778 * config/rl78/rl78.c: Likewise.
8779 * config/rs6000/host-darwin.c: Likewise.
8780 * config/rs6000/rs6000-c.c: Likewise.
8781 * config/rs6000/rs6000-linux.c: Likewise.
8782 * config/rs6000/rs6000.c: Likewise.
8783 * config/rx/rx.c: Likewise.
8784 * config/s390/s390-c.c: Likewise.
8785 * config/s390/s390.c: Likewise.
8786 * config/sh/sh-c.c: Likewise.
8787 * config/sh/sh-mem.cc: Likewise.
8788 * config/sh/sh.c: Likewise.
8789 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8790 * config/sh/sh_treg_combine.cc: Likewise.
8791 * config/sol2-c.c: Likewise.
8792 * config/sol2-cxx.c: Likewise.
8793 * config/sol2-stubs.c: Likewise.
8794 * config/sol2.c: Likewise.
8795 * config/sparc/sparc-c.c: Likewise.
8796 * config/sparc/sparc.c: Likewise.
8797 * config/spu/spu-c.c: Likewise.
8798 * config/spu/spu.c: Likewise.
8799 * config/stormy16/stormy16.c: Likewise.
8800 * config/v850/v850-c.c: Likewise.
8801 * config/v850/v850.c: Likewise.
8802 * config/vax/vax.c: Likewise.
8803 * config/visium/visium.c: Likewise.
8804 * config/vms/vms-c.c: Likewise.
8805 * config/vms/vms.c: Likewise.
8806 * config/vxworks.c: Likewise.
8807 * config/winnt-c.c: Likewise.
8808 * config/xtensa/xtensa.c: Likewise.
8809
8810 2015-10-16 Christian Bruel <christian.bruel@st.com>
8811
8812 PR target/67745
8813 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8814 (FUNCTION_BOUNDARY_P): New macro:
8815 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8816 New hook.
8817 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8818 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8819 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8820 * function.c (allocate_struct_function): Call
8821 relayout_function hook.
8822 * passes.c (rest_of_decl_compilation): Likewise.
8823
8824 2015-10-16 Christian Bruel <christian.bruel@st.com>
8825
8826 PR target/67745
8827 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8828 * config/arm/arm.c (arm_option_override_internal): Call
8829 arm_override_options_after_change_1.
8830 (arm_override_options_after_change): New function.
8831 (arm_override_options_after_change_1): Likewise.
8832 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8833
8834 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8835
8836 Revert:
8837 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8838 empty constructors.
8839
8840 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8841
8842 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8843 argument is an ADDR_EXPR.
8844
8845 2015-10-16 Richard Biener <rguenther@suse.de>
8846
8847 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8848 and get rid of force_gimple_operand_gsi.
8849 (gimple_fold_builtin_memory_chk): Likewise.
8850 (gimple_fold_builtin_stxcpy_chk): Likewise.
8851 (rewrite_to_defined_overflow): Likewise.
8852 (gimple_convert_to_ptrofftype): New function.
8853 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8854
8855 2015-10-16 Richard Biener <rguenther@suse.de>
8856
8857 * tree-nested.h (build_addr): Adjust prototype.
8858 * tree-nested.c (build_addr): Remove context argument and use
8859 mark_addressable.
8860 (get_static_chain): Adjust calls to build_addr.
8861 (convert_nl_goto_reference): Likewise.
8862 (convert_tramp_reference_op): Likewise.
8863 (finalize_nesting_tree_1): Likewise.
8864 * value-prof.c (gimple_ic): Likewise.
8865 * gimple-low.c (lower_builtin_setjmp): Likewise.
8866 * tree-parloops.c (take_address_of): Likewise.
8867 (create_call_for_reduction_1): Likewise.
8868 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8869 (gimple_gen_ic_func_profiler): Likewise.
8870
8871 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8872
8873 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8874 empty constructors.
8875
8876 2015-10-16 Michael Collison <michael.collison@linaro.org>
8877 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8878
8879 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8880 (x > y) and (x > z) -> x > max (y,z))
8881
8882 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8883 Szabolcs Nagy <szabolcs.nagy@arm.com>
8884
8885 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8886 (DYNAMIC_LINKER): Renamed to ...
8887 (GLIBC_DYNAMIC_LINKER): This.
8888 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8889
8890 2015-10-15 Marek Polacek <polacek@redhat.com>
8891
8892 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8893 gimple_call_builtin instead of is_gimple_call.
8894
8895 2015-10-15 Richard Biener <rguenther@suse.de>
8896
8897 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8898
8899 2015-10-15 Richard Biener <rguenther@suse.de>
8900
8901 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8902 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8903 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8904 use of force_gimple_operand in favor of gimple_build.
8905 Use vect_get_new_ssa_name.
8906 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8907 (vectorizable_mask_load_store): Likewise.
8908 (vectorizable_call): Likewise.
8909 (vectorizable_store): Likewise.
8910 (vectorizable_load): Likewise.
8911 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8912
8913 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8914
8915 PR tree-optimization/67945
8916 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8917 * generic-match-head.c (canonicalize_math_p): New function.
8918 * gimple-match-head.c: Include tree-pass.h.
8919 (canonicalize_math_p): New function.
8920 * match.pd: Group math built-in rules into simplifications
8921 and canonicalizations. Guard the latter with canonicalize_math_p.
8922 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8923 PROP_gimple_opt_math property.
8924
8925 2015-10-15 Marek Polacek <polacek@redhat.com>
8926
8927 PR tree-optimization/67953
8928 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8929
8930 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8931
8932 * config.gcc: Recognize "." in architecture base name for AArch64.
8933
8934 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8935
8936 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8937 ROUND_UP macro.
8938 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8939 ROUND_DOWN to calculate off.
8940 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8941 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8942 rounded_size.
8943
8944 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8945
8946 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8947
8948 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8949 Torvald Riegel <triegel@redhat.com>
8950
8951 PR target/67281
8952 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8953 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8954 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8955 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8956 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8957 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8958 trechkpt, treclaim, tsr, ttest): New define_expands.
8959 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8960 __TM_FENCE__ for htm.
8961 * doc/extend.texi: Update documentation for htm builtins.
8962
8963 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8964
8965 PR target/67967
8966 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8967 REG_CFA_EXPRESSION to aligned SSE stores.
8968
8969 2015-10-14 Jeff Law <law@redhat.com>
8970
8971 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8972 num_threaded_edges for successful FSM threads too.
8973
8974 2015-10-14 Richard Biener <rguenther@suse.de>
8975
8976 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8977 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8978 (vect_get_vec_def_for_operand): Remove unused parameter.
8979 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8980 (vect_create_epilog_for_reduction): Likewise.
8981 (vectorizable_reduction): Likewise.
8982 (vectorizable_live_operation): Likewise.
8983 * tree-vect-patterns.c (type_conversion_p): Likewise.
8984 (vect_recog_vector_vector_shift_pattern): Likewise.
8985 (check_bool_pattern): Likewise.
8986 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8987 (vect_analyze_slp_cost_1): Likewise.
8988 * tree-vect-stmts.c (process_use): Likewise.
8989 (vect_get_vec_def_for_operand): Do not handle reductions.
8990 (vect_get_vec_defs): Adjust.
8991 (vectorizable_mask_load_store): Likewise.
8992 (vectorizable_call): Likewise.
8993 (vectorizable_simd_clone_call): Likewise.
8994 (vect_get_loop_based_defs): Likewise.
8995 (vectorizable_conversion): Likewise.
8996 (vectorizable_assignment): Likewise.
8997 (vectorizable_shift): Likewise.
8998 (vectorizable_operation): Likewise.
8999 (vectorizable_store): Likewise.
9000 (vectorizable_load): Likewise.
9001 (vect_is_simple_cond): Likewise.
9002 (vectorizable_condition): Likewise.
9003 (vect_is_simple_use): Remove unused parameters.
9004 (vect_is_simple_use_1): Adjust and rename.
9005
9006 2015-10-14 Richard Biener <rguenther@suse.de>
9007
9008 PR tree-optimization/67915
9009 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9010 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9011 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9012 stmt folding in favor of GIMPLE one.
9013
9014 2015-10-14 Marek Polacek <polacek@redhat.com>
9015
9016 PR tree-optimization/67815
9017 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9018 (reassociate_bb): Call it.
9019
9020 2015-10-14 Richard Biener <rguenther@suse.de>
9021
9022 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9023 Reset info at start.
9024 (vect_analyze_group_access_1): Add debug print.
9025 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9026 (vect_compute_single_scalar_iteration_cost): ... to this.
9027 (vect_analyze_loop_2): Adjust.
9028 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9029 * tree-vectorizer.h: ... here.
9030 (add_stmt_info_to_vec): Remove.
9031 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9032
9033 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9034
9035 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9036 called on behalf of "#pragma GCC pop_options".
9037
9038 2015-10-14 Tom de Vries <tom@codesourcery.com>
9039
9040 * cfganal.c (verify_no_unreachable_blocks): New function.
9041 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9042 verify_no_unreachable_blocks.
9043 cfganal.h (verify_no_unreachable_blocks): Declare.
9044
9045 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9046
9047 * common.opt: Add flag_checking.
9048 * system.h (CHECKING_P): Define.
9049
9050 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9051 Aldy Hernandez <aldyh@redhat.com>
9052 Ilya Verbin <ilya.verbin@intel.com>
9053
9054 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9055 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9056 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9057 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9058 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9059 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9060 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9061 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9062 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9063 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9064 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9065 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9066 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9067 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9068 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9069 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9070 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9071 (struct cgraph_simd_clone_arg): Adjust comment.
9072 * coretypes.h (struct gomp_ordered): New forward decl.
9073 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9074 set critical clauses to it.
9075 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9076 gimple *. Add CLAUSES argument, set ordered clauses to it.
9077 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9078 GIMPLE_OMP_ORDERED.
9079 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9080 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9081 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9082 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9083 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9084 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9085 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9086 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9087 renumber
9088 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9089 (gomp_critical): Add clauses field.
9090 (gomp_ordered): New struct.
9091 (is_a_helper <gomp_ordered *>::test): New inline.
9092 (gimple_build_omp_critical): Add CLAUSES argument.
9093 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9094 instead of gimple *.
9095 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9096 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9097 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9098 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9099 inline functions.
9100 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9101 (dump_gimple_omp_target): Handle enter data and exit data.
9102 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9103 (dump_gimple_omp_critical): Print clauses.
9104 (dump_gimple_omp_ordered): New function.
9105 (dump_gimple_omp_task): Handle taskloop.
9106 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9107 GIMPLE_OMP_ORDERED.
9108 * gimple-walk.c (walk_gimple_op): Walk clauses on
9109 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9110 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9111 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9112 (struct gimplify_omp_ctx): Add loop_iter_var,
9113 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9114 and target_firstprivatize_array_bases fields.
9115 (delete_omp_context): Release loop_iter_var.
9116 (gimplify_bind_expr): Handle ORT_NONE.
9117 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9118 ORT_COMBINED_TARGET.
9119 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9120 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9121 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9122 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9123 ctx->target_map_scalars_firstprivate.
9124 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9125 data sharing clauses. For data sharing clause with VLA decl
9126 on omp target/target data don't add firstprivate for the pointer.
9127 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9128 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9129 the addition of ORT_COMBINED_TARGET.
9130 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9131 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9132 pointers as zero length array sections and
9133 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9134 data sharing.
9135 (omp_check_private): Handle omp_member_access_dummy_var vars.
9136 (find_decl_expr): New function.
9137 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9138 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9139 Handle OMP_CLAUSE_GANG separately. Handle
9140 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9141 clauses. Diagnose linear clause on combined
9142 distribute {, parallel for} simd construct, unless it is the loop
9143 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9144 Handle map clauses with COMPONENT_REF. Initialize
9145 ctx->target_map_scalars_firstprivate,
9146 ctx->target_firstprivatize_array_bases and
9147 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
9148 linear clause even to target region if combined. Remove
9149 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9150 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
9151 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9152 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
9153 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9154 For linear clause on worksharing loop combined with parallel add
9155 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
9156 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
9157 omp_member_access_dummy_var vars. Add lastprivate clause to outer
9158 taskloop if needed.
9159 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9160 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9161 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9162 GOMP_MAP_POINTER.
9163 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
9164 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9165 in target body. Handle removal of struct mapping if struct is not
9166 seen in target body. Remove GOMP_MAP_STRUCT map clause on
9167 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
9168 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
9169 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9170 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9171 clause appear together. Handle
9172 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9173 clause if it has map-type-modifier always. Handle
9174 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9175 clauses.
9176 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9177 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9178 callers.
9179 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9180 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9181 iterators in doacross loops.
9182 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9183 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9184 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9185 for the addition of ORT_COMBINED_TARGET.
9186 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9187 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9188 and OMP_TARGET_EXIT_DATA.
9189 (gimplify_omp_ordered): New function.
9190 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9191 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9192 Gimplify clauses on OMP_CRITICAL.
9193 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9194 expand_GOMP_SIMD_ORDERED_END): New functions.
9195 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9196 GOMP_SIMD_ORDERED_END): New internal functions.
9197 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9198 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9199 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9200 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9201 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9202 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9203 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9204 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9205 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9206 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9207 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9208 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9209 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9210 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9211 adjust type.
9212 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9213 GOMP_target_data_41, adjust type.
9214 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9215 GOMP_target_update_41, adjust type.
9216 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9217 field.
9218 (struct omp_for_data): Add ordered and simd_schedule fields.
9219 (omp_member_access_dummy_var, unshare_and_remap_1,
9220 unshare_and_remap, is_taskloop_ctx): New functions.
9221 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9222 (extract_omp_for_data): Handle taskloops and doacross loops
9223 and simd schedule modifier.
9224 (omp_adjust_chunk_size): New function.
9225 (get_ws_args_for): Use it.
9226 (lookup_sfield): Change first argument to splay_tree_key,
9227 add overload with first argument tree.
9228 (maybe_lookup_field): Likewise.
9229 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9230 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9231 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9232 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9233 taskloops and omp_member_access_dummy_var vars.
9234 (build_sender_ref): Change first argument to splay_tree_key,
9235 add overload with first argument tree.
9236 (install_var_field): For mask & 8 use &DECL_UID as key instead
9237 of the tree itself.
9238 (fixup_child_record_type): Const qualify *.omp_data_i.
9239 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9240 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9241 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9242 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9243 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9244 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9245 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9246 kinds.
9247 (add_taskreg_looptemp_clauses): New function.
9248 (scan_omp_parallel): Use it.
9249 (scan_omp_task): Likewise.
9250 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9251 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9252 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9253 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9254 sandwiched taskloop constructs. Type check
9255 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9256 region. Diagnose depend(source) or depend(sink:...) on
9257 target constructs or task/taskloop.
9258 (handle_simd_reference): Use get_name.
9259 (lower_rec_input_clauses): Likewise. Ignore all
9260 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9261 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9262 before passing it to omp_clause_{default,copy}_ctor. Handle
9263 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9264 lastprivate_firstprivate flag for linear that needs copyin and
9265 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9266 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9267 on taskloop lookup decl in outer context. Pass true to
9268 build_outer_var_ref lastprivate argument. Handle
9269 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9270 outside of outer taskloop for.
9271 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9272 OMP_CLAUSE_DECL.
9273 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9274 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9275 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9276 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9277 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9278 abstract origin. Handle omp_member_access_dummy_var vars.
9279 (expand_parallel_call): Use expand_omp_build_assign.
9280 (expand_task_call): Handle taskloop construct expansion. Add
9281 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9282 integers. Add priority argument to GOMP_task* calls. Or in
9283 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9284 GOMP_task call.
9285 (expand_omp_build_assign): Add prototype. Add AFTER
9286 argument, if true emit statements after *GSI_P and continue linking.
9287 (expand_omp_taskreg): Adjust expand_task_call caller.
9288 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9289 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9290 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9291 of counts even for ordered loops.
9292 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9293 (expand_omp_ordered_source, expand_omp_ordered_sink,
9294 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9295 functions.
9296 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9297 clauses on worksharing loop. Handle DOACROSS loop expansion.
9298 (expand_omp_for_static_nochunk): Handle linear clauses on
9299 worksharing loop. Adjust expand_omp_for_init_counts
9300 callers.
9301 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9302 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9303 expand_omp_for_init_counts callers.
9304 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9305 functions.
9306 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9307 Handle doacross loops.
9308 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9309 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9310 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9311 (expand_omp): Don't expand ordered depend constructs here, record
9312 ord_stmt instead for later expand_omp_for_generic.
9313 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9314 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9315 clause as stand-alone directive.
9316 (lower_omp_ordered_clauses): New function.
9317 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9318 don't lower anything.
9319 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9320 on taskloop for comparison.
9321 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9322 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9323 expansion for linear adjustments.
9324 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9325 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9326 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9327 to tree * pointing to the stmt's clauses.
9328 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9329 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9330 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9331 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9332 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9333 clauses. Always use short kind and 8-bit align shift.
9334 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9335 (struct lower_omp_regimplify_operands_data): New type.
9336 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9337 New functions.
9338 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9339 gimple_regimplify_operands.
9340 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9341 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9342 clause as stand-alone directive.
9343 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9344 (simd_clone_mangle): Mangle the various linear kinds
9345 per the new ABI.
9346 (simd_clone_adjust_argument_types): Handle
9347 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9348 (simd_clone_init_simd_arrays): Don't do anything for uval.
9349 (simd_clone_adjust): Handle
9350 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9351 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9352 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9353 * omp-low.h (omp_member_access_dummy_var): New prototype.
9354 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9355 pass after all optimizations.
9356 * tree.c (omp_clause_code_name): Add entries for
9357 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9358 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9359 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9360 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9361 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9362 OMP_CLAUSE_REDUCTION 5 arguments. Handle
9363 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9364 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9365 clauses.
9366 * tree-core.h (enum omp_clause_linear_kind): New.
9367 (struct tree_omp_clause): Change type of map_kind
9368 from unsigned char to unsigned int. Add subcode.if_modifier
9369 and subcode.linear_kind fields.
9370 (enum omp_clause_code): Add
9371 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9372 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9373 (OMP_CLAUSE_REDUCTION): Document
9374 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9375 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9376 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9377 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
9378 operand.
9379 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
9380 operand.
9381 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9382 codes.
9383 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9384 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9385 char.
9386 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9387 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9388 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9389 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9390 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9391 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9392 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9393 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9394 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9395 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9396 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9397 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9398 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9399 * tree-inline.c (remap_gimple_stmt): Handle clauses on
9400 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
9401 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9402 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9403 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9404 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9405 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9406 (convert_local_omp_clauses): Likewise.
9407 * tree-pretty-print.c (dump_omp_clause): Handle
9408 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9409 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9410 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9411 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9412 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
9413 GOMP_MAP_FORCE_DEALLOC. Handle
9414 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9415 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9416 and clauses on OMP_ORDERED and OMP_CRITICAL.
9417 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9418 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9419 (vectorize_loops): Adjust comments.
9420 (pass_simduid_cleanup::execute): Likewise.
9421 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9422 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9423 * wide-int.h (wi::gcd): New.
9424
9425 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9426
9427 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9428 (ix86_function_arg_advance): Ditto.
9429 (ix86_function_arg): Ditto.
9430 (ix86_gimplify_va_arg): Ditto.
9431 (ix86_class_max_nregs): Ditto.
9432 (inline_memory_move_cost): Ditto.
9433 (ix86_set_reg_reg_cost): Ditto.
9434 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9435
9436 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
9437
9438 PR middle-end/67912
9439 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9440
9441 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9442
9443 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9444 ROUND_UP macro and UNITS_PER_WORD * 2.
9445 * config/sparc/sparc.c (sparc_compute_frame_size):
9446 Use ROUND_UP and ROUND_DOWN macros where applicable.
9447 (function_arg_record_value, function_arg_record_value_1)
9448 (function_arg_record_value_1): Ditto.
9449 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9450 alignment to double-word.
9451 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9452 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9453 rounded_size.
9454
9455 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
9456
9457 * rtl.h (print_insn): Fix prototype.
9458
9459 2015-10-13 Tom de Vries <tom@codesourcery.com>
9460
9461 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9462 -1. Add assert that returned entry matches phi argument.
9463 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9464 free_stmt_vec_info_vec ...
9465 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
9466 with -1.
9467
9468 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
9469
9470 PR tree-optimization/67909, 67947
9471 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9472 really skip the inner loop.
9473
9474 2015-10-13 Jeff Law <law@redhat.com>
9475
9476 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9477 Allow single block jump threading paths.
9478
9479 2015-10-13 Tom de Vries <tom@codesourcery.com>
9480
9481 PR tree-optimization/67476
9482 * doc/invoke.texi (@item parloops-schedule): New item.
9483 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9484 * tree-parloops.c: Include params-enum.h.
9485 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9486
9487 2015-10-13 Tom de Vries <tom@codesourcery.com>
9488
9489 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9490 * params-enum.h: New file.
9491 * opts.c (handle_param): Handle case that param arg is a string.
9492 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9493 * params.c (find_param): New function, factored out of ...
9494 (set_param_value): ... here.
9495 (param_string_value_p): New function.
9496 * params.h (struct param_info): Add value_names field.
9497 (find_param, param_string_value_p): Declare.
9498
9499 2015-10-13 Tom de Vries <tom@codesourcery.com>
9500
9501 PR tree-optimization/67476
9502 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9503
9504 2015-10-13 Richard Biener <rguenther@suse.de>
9505
9506 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9507 the data dependence vector.
9508 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9509 (vect_peeling_hash_get_lowest_cost): Likewise.
9510 (vect_enhance_data_refs_alignment): Adjust.
9511 (struct _vect_peel_info, struct _vect_peel_extended_info,
9512 struct peel_info_hasher): Move from ...
9513 * tree-vectorizer.h: ... here.
9514 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9515 (LOOP_VINFO_PEELING_HTAB): Likewise.
9516 (struct _loop_vec_info): Remove min_profitable_iters and
9517 peeling_htab members.
9518 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9519 here.
9520 (destroy_loop_vec_info): Adjust.
9521 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9522 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9523 to estimate alias versioning cost.
9524 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9525
9526 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9527
9528 * real.h (real_isinteger): Declare.
9529 * real.c (real_isinteger): New function.
9530 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9531 if y is an even integer.
9532
9533 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9534
9535 revert:
9536 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9537 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9538 counts when these are more informative.
9539
9540 2015-10-12 Jeff Law <law@redhat.com>
9541
9542 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9543 (fsm_find_control_stmt_paths): Change name of first argument to
9544 more accurately relfect what it really is. Handle simplification
9545 of GIMPLE_COND after finding a thread path for NAME.
9546 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9547 nontrivial conditions to be handled by FSM threader.
9548 (thread_through_normal_block): Extract the name to looup via
9549 FSM threader from COND_EXPR.
9550
9551 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9552 restriction that traced SSA_NAME is a user variable.
9553
9554 2015-10-12 Tom de Vries <tom@codesourcery.com>
9555
9556 PR tree-optimization/67476
9557 * omp-low.c (expand_omp_for_generic): Add missing phis.
9558
9559 2015-10-12 Tom de Vries <tom@codesourcery.com>
9560
9561 PR tree-optimization/67476
9562 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9563
9564 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9565
9566 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9567 tables: add tbl3 and tbx4.
9568 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9569 (aarch64_tbx4v8qi): New.
9570 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9571 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9572 Rewrite using builtin functions.
9573 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9574
9575 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9576
9577 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9578 ROUND_UP macro.
9579 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9580 Use ROUND_UP and ROUND_DOWN macros where applicable.
9581 (rs6000_darwin64_record_arg_flush): Ditto.
9582 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9583 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9584 rounded_size.
9585
9586 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9587
9588 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9589 (AARCH64_ROUND_DOWN): Ditto.
9590 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9591
9592 2015-10-12 Richard Biener <rguenther@suse.de>
9593
9594 PR ipa/67783
9595 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9596 code that analyzes IVs on each stmt but in a cheaper way avoiding
9597 quadratic behavior.
9598
9599 2015-10-12 Nick Clifton <nickc@redhat.com>
9600
9601 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9602 msp430_mcu_data, add fields for ISA and hardware multiply
9603 support. Import latest data from the devices.csv file.
9604 (msp430_override_option): Use the data from the new array.
9605 (msp430_use_f5_series_hwmult): Likewise.
9606 (use_32bit_hwmult): Likewise.
9607 (msp430_no_hwmult): Likewise.
9608 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9609 MCU names.
9610 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9611 not recognised then no hardware multiply support is assumed and
9612 that only the MSP430 ISA is allowed.
9613
9614 2015-10-12 Richard Biener <rguenther@suse.de>
9615
9616 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9617 related code ...
9618 (vect_analyze_loop_2): ... here.
9619
9620 2015-10-11 Jason Merrill <jason@redhat.com>
9621
9622 PR c++/67557
9623 * expr.c (store_field): Call store_constructor directly when
9624 storing a CONSTRUCTOR into a target smaller than its type.
9625 Guard against unsafe bitwise copy.
9626
9627 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9628
9629 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9630 counts when these are more informative.
9631
9632 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9633
9634 * tree-profile.c (tree_profiling): Do not clear
9635 pure/const when not instrumenting.
9636 (pass tree_profile): Add dump of symtab.
9637
9638 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9639
9640 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9641 addresses.
9642 (fold_addr_of_array_ref_difference): Likewise.
9643
9644 2015-10-11 Jeff Law <law@redhat.com>
9645
9646 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9647 tree-ssa-threadbackward.c.
9648 (fsm_find_control_statement_thread_paths): Likewise.
9649 (thread_through_normal_block): Break out FSM bits and move them
9650 into a new function in tree-ssa-threadbackward.c. Call new function
9651 instead.
9652 Minimize header file usage.
9653 * tree-ssa-threadbackward.h: New file.
9654 * tree-ssa-threadbackward.c: Likewise.
9655 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9656
9657 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9658
9659 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9660
9661 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9662
9663 PR rtl-optimization/67864
9664 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9665 fallthrough edges for conditional jumps. Don't sort candidate
9666 edges if not optimizing for speed.
9667
9668 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9669
9670 * defaults.h (REVERSE_CONDITION): New default definition.
9671 * jump.c (reversed_comparison_code_parts): Adjust.
9672
9673 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9674
9675 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9676 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9677
9678 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9679
9680 * defaults.h (FRAME_ADDR_RTX): New default definition.
9681 * builtins.c (expand_builtin_return_addr): Adjust.
9682
9683 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9684
9685 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9686 * builtins.c (expand_builtin_return_addr): Adjust.
9687
9688 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9689
9690 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9691 * builtins.c (expand_builtin_return_addr): Adjust.
9692 * doc/tm.texi: Likewise.
9693 * doc/tm.texi.in: Likewise.
9694 * except.c (expand_builtin_unwind_init): Likewise.
9695
9696 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9697
9698 * builtins.c (expand_builtin_return_addr): Adjust.
9699 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9700
9701 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9702
9703 * tree.c (type_with_interoperable_signedness): New.
9704 (gimple_canonical_types_compatible_p): Use it.
9705 * tree.h (type_with_interoperable_signedness): Declare
9706
9707 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9708
9709 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9710 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9711 when OEP_ADDRESS_OF is se.
9712
9713 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9714 Sebastian Pop <s.pop@samsung.com>
9715
9716 * graphite-dependences.c (scop_get_dependences): Add dump of the
9717 data dependence graph.
9718 * graphite-poly.c (print_isl_union_map): New.
9719 (debug_isl_union_map): New.
9720 * graphite-poly.h (print_isl_union_map): Declare.
9721 (debug_isl_union_map): Declare.
9722
9723 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9724 Sebastian Pop <s.pop@samsung.com>
9725
9726 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9727 Remove OpenScop formatting.
9728 (print_iteration_domains): Same.
9729 (debug_iteration_domain): Same.
9730 (debug_iteration_domains): Same.
9731 (print_pdr): Same.
9732 (debug_pdr): Same.
9733 (dump_gbb_cases): Same.
9734 (dump_gbb_conditions): Same.
9735 (print_pdrs): Same.
9736 (debug_pdrs): Same.
9737 (print_pbb_body): Same.
9738 (print_pbb): Same.
9739 (print_scop_params): Same.
9740 (print_scop_context): Same.
9741 (print_scop): Same.
9742 (debug_pbb_domain): Same.
9743 (debug_pbb): Same.
9744 (debug_scop_context): Same.
9745 (debug_scop): Same.
9746 (debug_scop_params): Same.
9747 * graphite-poly.h: Same.
9748 * graphite.c (graphite_transform_loops): Same.
9749
9750 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9751
9752 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9753 call that isn't needed.
9754
9755 2015-10-09 Jeff Law <law@redhat.com>
9756
9757 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9758 rather than moving each name to the freelist individually.
9759
9760 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9761
9762 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9763 * frame-header-opt.c: New file.
9764 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9765 Add prototype.
9766 * config/mips/mips.c (mips_compute_frame_info): Check
9767 optimize_call_stack flag.
9768 (mips_option_override): Register new frame_header_opt pass.
9769 (mips_frame_info, mips_int_mask, mips_shadow_set,
9770 machine_function): Move these types to...
9771 * config/mips/mips.h: here.
9772 (machine_function): Add does_not_use_frame_header and
9773 optimize_call_stack fields.
9774 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9775 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9776 Document new flags.
9777 * config/mips/mips.opt (mframe-header-opt): Add new option.
9778
9779 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9780
9781 * config/i386/i386.c
9782 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9783 ROUND_DOWN where applicable.
9784
9785 2015-10-09 Jeff Law <law@redhat.com>
9786
9787 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9788 correct statement.
9789
9790 2015-10-09 Renlin Li <renlin.li@arm.com>
9791
9792 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9793 operands[0] and operands[2].
9794 (neon_vtrn<mode>_insn): Likewise.
9795 (neon_vzip<mode>_insn): Likewise.
9796
9797 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9798
9799 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9800 ((X & C2) << C1): Expand to...
9801 (X {&,^,|} C2 << C1): ...This.
9802 ((X & C2) >> C1): Expand to...
9803 (X {&,^,|} C2 >> C1): ...This.
9804
9805 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9806
9807 PR target/67895
9808 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9809 Adjust embedded rounding/SAE specifier position.
9810 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9811 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9812 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9813 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9814 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9815 Likewise.
9816 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9817
9818 2015-10-09 Martin Jambor <mjambor@suse.cz>
9819
9820 tree-optimization/67794
9821 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9822 between types of state,ents but accept original definitions as a
9823 parameter.
9824 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9825 iterate over definitions.
9826
9827 2015-10-09 James Norris <jnorris@codesourcery.com>
9828
9829 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9830 (TARGET_OFFLOAD_OPTIONS): New.
9831
9832 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9833
9834 PR middle-end/67891
9835 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9836
9837 PR middle-end/67766
9838 * function.c (expand_function_end): Move return value
9839 promotion past the handling of PARALLELs and CONCATs.
9840
9841 PR rtl-optimization/67828
9842 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9843 (tree_may_unswitch_on): Don't unswitch on expressions
9844 involving undefined values.
9845
9846 2015-10-09 Richard Biener <rguenther@suse.de>
9847
9848 * genmatch.c (print_operand): Fix formatting.
9849 (dt_node::append_simplify): Warn for multiple simplifiers
9850 that match the same pattern.
9851 * match.pd (log (exp @0)): Remove duplicates.
9852
9853 2015-10-09 Richard Biener <rguenth@suse.de>
9854
9855 PR target/67366
9856 * gimple-fold.c (optabs-query.h): Include
9857 (gimple_fold_builtin_memory_op): Allow unaligned stores
9858 when movmisalign_optabs are available.
9859
9860 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9861
9862 PR target/67366
9863 * config/arm/arm.md (movmisalign<mode>): New.
9864 * config/arm/iterators.md (HSI): New.
9865
9866 2015-10-09 Richard Biener <rguenther@suse.de>
9867
9868 PR tree-optimization/67891
9869 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9870 New helper.
9871 (gimple_resimplify1): Declare.
9872 (gimple_resimplify2): Likewise.
9873 (gimple_resimplify3): Likewise.
9874 * gimple-match-head.c (gimple_resimplify1): Export.
9875 (gimple_resimplify2): Likewise.
9876 (gimple_resimplify3): Likewise.
9877 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9878 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9879 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9880 to avoid creating stmts without VN info.
9881
9882 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9883
9884 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9885 of availability.
9886
9887 2015-10-08 Jeff Law <law@redhat.com>
9888
9889 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9890 and release_ssa_name in two places.
9891 (gimple_stringop_fixed_value): Similarly.
9892
9893 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9894 release_defs.
9895
9896 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9897 unlink_stmt_vdef and release_ssa_name_fn.
9898
9899 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9900 release_defs.
9901
9902 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9903
9904 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9905 SSE register save area to 16 bytes only if the incoming stack
9906 boundary is no less than 16 bytes.
9907
9908 2015-10-08 Jeff Law <law@redhat.com>
9909
9910 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9911 release_ssa_name. Fix typo in comment.
9912
9913 2015-10-08 Nathan Sidwell <nathan@acm.org>
9914
9915 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9916 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9917 may return pointer as well as in memory.
9918 (nvptx_output_return): Likewise.
9919
9920 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9921
9922 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9923 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9924 * match.pd: Add rules previously handled by fold_builtin_sqrt
9925 and fold_builtin_cbrt.
9926
9927 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9928
9929 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9930 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9931 * fold-const.h (tree_unary_nonnegative_warnv_p)
9932 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9933 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9934 * fold-const.c: Include gimple-fold.h and params.h.
9935 (tree_ssa_name_nonnegative_warnv_p): New function.
9936 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9937 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9938 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9939 Add a depth parameter and increment it for recursive calls to
9940 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9941 to handle SSA names.
9942 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9943 (gimple_stmt_nonnegative_warnv_p): Declare.
9944 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9945 cannot be proven false.
9946 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9947 (gimple_stmt_nonnegative_warnv_p): Move to...
9948 * gimple-fold.c: ...here. Add depth parameters and pass them
9949 down to the tree routines. Accept statements that aren't
9950 assignments or calls but just return false for them.
9951 (gimple_val_nonnegative_real_p): Delete.
9952 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9953 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9954 Check HONOR_NANs first.
9955
9956 2015-10-08 Martin Jambor <mjambor@suse.cz>
9957
9958 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9959 unnecessary MIN.
9960
9961 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9962
9963 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9964 in the tail of outer-loop.
9965
9966 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9967
9968 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9969 return UI_NONE.
9970
9971 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9972
9973 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9974 "cfghooks.h", add prototypes for introduced new functions.
9975 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9976 checks on ability of loop unswitching to tree_unswitch_single_loop;
9977 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9978 on innermost loop check.
9979 (tree_unswitch_single_loop): Add all required checks on ability of
9980 loop unswitching under zero recursive level guard.
9981 (tree_unswitch_outer_loop): New function.
9982 (find_loop_guard): Likewise.
9983 (empty_bb_without_guard_p): Likewise.
9984 (used_outside_loop_p): Likewise.
9985 (get_vop_from_header): Likewise.
9986 (hoist_guard): Likewise.
9987 (check_exit_phi): Likewise.
9988
9989 2015-10-08 Marek Polacek <polacek@redhat.com>
9990
9991 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9992 ops element.
9993
9994 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9995
9996 PR c/65345
9997 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9998 create_tmp_var_raw instead of create_tmp_var.
9999
10000 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10001
10002 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10003 BLKmode.
10004 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10005 to define gimple type system; compare aggregates only by size.
10006
10007 2015-10-07 Jeff Law <law@redhat.com>
10008
10009 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10010 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10011 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10012 unnecessarily.
10013
10014 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10015 Sebastian Pop <s.pop@samsung.com>
10016
10017 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10018 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10019 (generate_isl_schedule): Same.
10020 * graphite-optimize-isl.c (scop_get_domains): Same.
10021 (apply_schedule_map_to_scop): Same.
10022 * graphite-poly.c (print_iteration_domains): Same.
10023 (remove_gbbs_in_scop): Same.
10024 (new_scop): Same.
10025 (free_scop): Same.
10026 (print_scop): Same.
10027 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10028 (SCOP_BBS): Remove.
10029 * graphite-scop-detection.c (compare_bb_depths): Remove.
10030 (graphite_sort_dominated_info): Remove.
10031 (try_generate_gimple_bb): Move out of scop_detection.
10032 (all_non_dominated_preds_marked_p): Remove.
10033 (build_scop_bbs_1): Remove.
10034 (build_scop_bbs): Remove.
10035 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10036 (find_scop_parameters): Same.
10037 (sese_dom_walker): Rename gather_bbs.
10038 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10039 and pbb.
10040 (build_scops): Call gather_bbs.
10041 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10042 (add_conditions_to_constraints): Same.
10043 (build_scop_iteration_domain): Same.
10044 (build_scop_drs): Same.
10045 (new_pbb_from_pbb): Same.
10046 * sese.c (new_sese_info): Create bbs.
10047 * sese.h (struct sese_info_t): Add bbs.
10048
10049 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10050
10051 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10052 encoding in 64-bit mode.
10053
10054 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10055
10056 PR target/66697
10057 * config/i386/i386.c (ix86_option_override_internal): Always use
10058 8-byte minimum stack boundary in 64-bit mode.
10059 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10060 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10061 Add a REG_CFA_EXPRESSION note if needed.
10062 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10063 (ix86_handle_force_align_arg_pointer_attribute): New.
10064 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10065 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10066 with ix86_handle_force_align_arg_pointer_attribute.
10067 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10068
10069 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10070 Sebastian Pop <s.pop@samsung.com>
10071
10072 * graphite-scop-detection.c (parameter_index_in_region): Remove
10073 use of SESE_ADD_PARAMS.
10074 (find_scop_parameters): Same.
10075 * sese.c (new_sese_info): Same.
10076 * sese.h (struct sese_info_t): Remove add_params.
10077 (SESE_ADD_PARAMS): Remove.
10078
10079 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10080 Sebastian Pop <s.pop@samsung.com>
10081
10082 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10083 an sese_info_p.
10084 (copy_def): Same.
10085 (copy_internal_parameters): Same.
10086 (translate_isl_ast_to_gimple): Use an sese_l.
10087 (build_iv_mapping): Same.
10088 * graphite-poly.c (new_sese): Rename new_sese_info.
10089 (free_sese): Rename free_sese_info.
10090 * graphite-poly.h (struct scop): Use an sese_info_p.
10091 (scop_set_region): Same.
10092 * graphite-scop-detection.c (struct sese_l): Moved...
10093 (get_entry_bb): Moved...
10094 (get_exit_bb): Moved...
10095 (parameter_index_in_region_1): Use an sese_info_p.
10096 (parameter_index_in_region): Same.
10097 (scan_tree_for_params): Same.
10098 (find_params_in_bb): Same.
10099 (sese_dom_walker): Use an sese_l.
10100 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10101 (reduction_phi_p): Same.
10102 (parameter_index_in_region_1): Use an sese_info_p.
10103 (propagate_expr_outside_region): Use an sese_l.
10104 * graphite.c: Replace uses of SCOP_REGION.
10105 * sese.c (sese_record_loop): Use an sese_info_p.
10106 (build_sese_loop_nests): Same.
10107 (sese_build_liveouts_use): Same.
10108 (sese_build_liveouts_bb): Same.
10109 (sese_build_liveouts_bb): Same.
10110 (sese_bad_liveouts_use): Same.
10111 (sese_reset_debug_liveouts_bb): Same.
10112 (sese_build_liveouts): Same.
10113 (new_sese): Renamed new_sese_info.
10114 (free_sese): Renamed free_sese_info.
10115 (set_rename): Use an sese_info_p.
10116 (graphite_copy_stmts_from_block): Same.
10117 (copy_bb_and_scalar_dependences): Same.
10118 (outermost_loop_in_sese_1): Use an sese_l.
10119 (outermost_loop_in_sese): Same.
10120 (if_region_set_false_region): Use an sese_info_p.
10121 (move_sese_in_condition): Same.
10122 (scalar_evolution_in_region): Use an sese_l.
10123 * sese.h (struct sese_l): ... here.
10124 (SESE_ENTRY): Remove.
10125 (SESE_ENTRY_BB): Remove.
10126 (SESE_EXIT): Remove.
10127 (SESE_EXIT_BB): Remove.
10128 (sese_contains_loop): Use an sese_info_p.
10129 (sese_nb_params): Same.
10130 (bb_in_sese_p): Use an sese_l.
10131 (stmt_in_sese_p): Same.
10132 (defined_in_sese_p): Same.
10133 (loop_in_sese_p): Same.
10134 (sese_loop_depth): Same.
10135 (struct ifsese_s): Use an sese_info_p.
10136 (gbb_loop_at_index): Use an sese_l.
10137 (nb_common_loops): Same.
10138 (scev_analyzable_p): Same.
10139
10140 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10141
10142 * config/i386/i386.c (ix86_conditional_register_usage): Use
10143 CALL_USED_REGISTERS_MASK.
10144 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10145
10146 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10147
10148 PR bootstrap/67385
10149 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10150 * configure: Regenerated.
10151
10152 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10153
10154 PR target/67850
10155 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10156 (ix86_set_current_function): This.
10157 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10158
10159 2015-10-07 Richard Biener <rguenther@suse.de>
10160
10161 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10162 (vinfo_for_stmt): Adjust.
10163 (set_vinfo_for_stmt): Likewise.
10164 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10165 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10166 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10167 of inner loop.
10168 (vect_analyze_loop_1): Remove.
10169 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10170 inner loop when vectorizing an outer loop by splitting out from ...
10171 (vect_analyze_loop_form): ... here.
10172
10173 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10174
10175 PR c/65345
10176 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10177 Use create_tmp_var_raw instead of create_tmp_var.
10178
10179 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10180
10181 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10182 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10183 * real.c (CACHED_FRACTION): New helper macro.
10184 (dconst_third_ptr): Use it.
10185 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10186 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10187 dconst_sixth.
10188 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10189
10190 2015-10-06 Jeff Law <law@redhat.com>
10191
10192 PR tree-optimization/67816
10193 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10194 from remove_jump_threads_starting_at. Accept an edge rather than
10195 a basic block.
10196 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10197 (remove_jump_threads_including): Note edges that get removed from
10198 the CFG for later pruning of jump threading paths including them.
10199 (thread_through_all_blocks): Remove paths which include edges that
10200 have been removed.
10201 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10202 on each outgoing edges when optimizing away a control statement.
10203
10204 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10205
10206 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10207 in a vector instead of rtx_insn_list.
10208 (add_to_delay_list): Likewise.
10209 (delete_from_delay_slot): Likewise.
10210 (optimize_skip): Likewise.
10211 (redirect_with_delay_list_safe_p): Likewise.
10212 (check_annul_list_true_false): Likewise.
10213 (steal_delay_list_from_target): Likewise.
10214 (steal_delay_list_from_fallthrough): Likewise.
10215 (redundant_insn): Likewise.
10216 (fill_simple_delay_slots): Likewise.
10217 (fill_slots_from_thread): Likewise.
10218 (fill_eager_delay_slots): Likewise.
10219 (relax_delay_slots): Likewise.
10220
10221 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10222
10223 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10224 For -mgpopt=local, also exclude unintialized common symbols.
10225 * doc/invoke.texi (Nios II Options): Document the change.
10226
10227 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10228
10229 * config/aarch64/iterators.md (vwcore): Add missing cases for
10230 V4HF/V8HF modes.
10231
10232 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10233 Sebastian Pop <s.pop@samsung.com>
10234
10235 * graphite-poly.c (new_scop): Initialize drs.
10236 * graphite-poly.h (struct dr_info): New.
10237 (struct scop): Add drs.
10238 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10239 (pdr_add_memory_accesses): Same.
10240 (build_poly_dr): Same.
10241 (build_alias_set): Same.
10242 (build_scop_drs): Same.
10243 (build_pbb_drs): Remove.
10244 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10245 * tree-data-ref.h (data_reference): Remove alias_set.
10246
10247 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10248 Sebastian Pop <s.pop@samsung.com>
10249
10250 * graphite-poly.c (free_data_refs_aux): Remove.
10251 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10252 * graphite-poly.h (struct base_alias_pair): Remove.
10253 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10254 base_alias_pair and dr->aux.
10255 (build_alias_set): Same.
10256 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10257 * tree-data-ref.h (data_reference): Add alias_set.
10258
10259 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10260 Sebastian Pop <s.pop@samsung.com>
10261
10262 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10263 Do not set PDR_BASE_OBJECT_SET.
10264 * graphite-poly.h (poly_dr): Same.
10265 (PDR_BASE_OBJECT_SET): Remove.
10266 (new_poly_dr): Update decl.
10267 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10268 new_poly_dr.
10269 (write_alias_graph_to_ascii_dimacs): Remove.
10270 (write_alias_graph_to_ascii_dot): Remove.
10271 (write_alias_graph_to_ascii_ecc): Remove.
10272 (dr_same_base_object_p): Remove.
10273 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10274 code.
10275 (build_base_obj_set_for_drs): Remove.
10276 (dump_alias_graphs): Remove.
10277 (build_scop_drs): Remove dead code.
10278
10279 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10280 Peter Bergner <bergner@vnet.ibm.com>
10281
10282 PR target/67808
10283 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10284 allow registers, but provide insns for the combiner to create for
10285 loads from memory. Separate VSX code from non-VSX code. For
10286 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10287 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10288 so that registers come before memory operations. Drop support from
10289 converting DFmode to TFmode, if the DFmode value is in a GPR
10290 register.
10291 (extenddftf2_fprs): Likewise.
10292 (extenddftf2_internal): Likewise.
10293 (extenddftf2_vsx): Likewise.
10294 (extendsftf2): In the expander, only allow registers, but provide
10295 insns for the combiner to create for stores and loads.
10296
10297 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10298
10299 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10300 from the decl parameter.
10301
10302 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10303
10304 PR 67861
10305 * gimple-fold.c (gimple_fold_builtin): Add break after
10306 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10307
10308 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10309
10310 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10311 to scop->isl_context.
10312
10313 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10314
10315 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10316 (output_probe_stack_range): Rotate the loop and simplify.
10317 (thumb1_expand_prologue): Tweak sorry message.
10318 * config/arm/arm.md (probe_stack): Use bare string.
10319
10320 2015-10-06 Nick Clifton <nickc@redhat.com>
10321
10322 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10323
10324 2015-10-06 Nick Clifton <nickc@redhat.com>
10325
10326 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10327 (ATTR_PERSIST): New constant.
10328 (msp430_data_attr): New function - verifies an attribute that only
10329 applies to variables.
10330 (msp430_attributes): Add noinit and persistent attributes.
10331 (noinit_section): New variable.
10332 (presis_section): New variable.
10333 (TARGET_ASM_INIT_SECTIONS): Define.
10334 (msp430_init_sections): New function - initialises the noinit and
10335 persist section variables.
10336 (msp430_select_section): Add support for noinit and persist
10337 attributes.
10338 (msp430_section_type_flags): Likewise.
10339 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10340 and persistent attributes.
10341
10342 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10343 Sebastian Pop <s.pop@samsung.com>
10344
10345 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10346 (no_violations): Remove.
10347 (subtract_commutative_associative_deps): Remove.
10348 (compute_deps): Do not call subtract_commutative_associative_deps.
10349 (transform_is_safe): Remove.
10350 (graphite_legal_transform): Remove.
10351 * graphite-poly.h (graphite_legal_transform): Remove.
10352
10353 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10354
10355 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10356 which are in this region are passed so gcc_assert and remove redundant
10357 computation.
10358 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10359 in region.
10360 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10361 gcc_assert on that and remove unnecessary computation.
10362 (sese_build_liveouts_use): Same.
10363
10364 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10365
10366 * graphite-dependences.c (scop_get_reads): Renamed scop->context
10367 to scop->param_context.
10368 (scop_get_must_writes): Same.
10369 (scop_get_may_writes): Same.
10370 (scop_get_original_schedule): Same.
10371 (scop_get_transformed_schedule): Same.
10372 (subtract_commutative_associative_deps): Same.
10373 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10374 (generate_isl_context): Same.
10375 (generate_isl_schedule): Same.
10376 (scop_to_isl_ast): Same.
10377 (graphite_regenerate_ast_isl): Same.
10378 * graphite-optimize-isl.c (scop_get_domains): Same.
10379 (optimize_isl): Renamed scop->context to scop->param_context.
10380 * graphite-poly.c (new_poly_bb): Change the type of argument to
10381 gimple_poly_bb_p.
10382 (new_scop): Renamed scop->context to scop->param_context.
10383 (free_scop): Same.
10384 (print_scop_context): Same.
10385 * graphite-poly.h (new_poly_dr): Change the type of argument from
10386 void* to data_reference_p.
10387 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10388 (new_poly_bb): Change the type of argument from void* to
10389 gimple_poly_bb_p.
10390 (pbb_set_black_box): Same.
10391 (struct scop): Rename context to param_context, ctx to isl_context.
10392 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10393 Move declarations closer to assignment.
10394 (find_params_in_bb): Same.
10395 (find_scop_parameters): Same.
10396 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10397 Global to be used for statement IDs.
10398 (isl_id_for_pbb): Use ssa_name_version_typesize.
10399 (simple_copy_phi_p): Move declarations closer to assignment.
10400 (build_pbb_scattering_polyhedrons): Same.
10401 (build_scop_scattering): Same.
10402 (isl_id_for_ssa_name): Same.
10403 (extract_affine_name): Same.
10404 (extract_affine_int): Same.
10405 (extract_affine): Same.
10406 (set_scop_parameter_dim): Use renamed member.
10407 (build_loop_iteration_domains): Same.
10408 (add_param_constraints): Same.
10409 (build_scop_iteration_domain): Same.
10410 (pdr_add_data_dimensions): Same.
10411 (build_poly_dr): Same.
10412 (build_scop_drs): Move declarations closer to assignment.
10413 (analyze_drs_in_stmts): Same.
10414 (insert_out_of_ssa_copy): Same.
10415 (insert_out_of_ssa_copy_on_edge): Same.
10416 (propagate_expr_outside_region): Same.
10417 (rewrite_phi_out_of_ssa): Same.
10418 (rewrite_degenerate_phi): Same.
10419 (rewrite_reductions_out_of_ssa): Same.
10420 (rewrite_cross_bb_scalar_dependence): Same.
10421 (handle_scalar_deps_crossing_scop_limits): Same.
10422 (rewrite_cross_bb_scalar_deps): Same.
10423 * graphite.c (graphite_transform_loops): Use renamed member.
10424
10425 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
10426
10427 PR c/65345
10428 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10429 create_tmp_var_raw instead of create_tmp_var.
10430
10431 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10432
10433 PR c/65345
10434 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10435 Use create_tmp_var_raw instead of create_tmp_var.
10436
10437 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
10438
10439 PR target/67849
10440 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10441 split for upper-bank registers when target does not support
10442 AVX512VL.
10443 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10444 split when target does not support AVX512VL.
10445
10446 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
10447
10448 PR c/65345
10449 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10450 Adjust to use create_tmp_var_raw instead of create_tmp_var.
10451
10452 2015-10-06 Nick Clifton <nickc@redhat.com>
10453
10454 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10455 multiplication.
10456
10457 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10458
10459 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10460 (case ${target}): Add znver1.
10461 * config/i386/cpuid.h(bit_CLZERO): Define.
10462 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10463 -march=native recognize znver1 processors.
10464 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10465 znver1, clzero def_and_undef.
10466 * config/i386/i386.c (struct processor_costs znver1_cost): New.
10467 (m_znver1): New definition.
10468 (m_AMD_MULTIPLE): Includes m_znver1.
10469 (processor_target_table): Add znver1 entry.
10470 (ix86_target_string) : Add clzero entry.
10471 (static const char *const cpu_names): Add znver1 entry.
10472 (ix86_option_override_internal): Add znver1 instruction sets.
10473 (PTA_CLZERO) : New definition.
10474 (ix86_option_override_internal): Handle new clzerooption.
10475 (ix86_issue_rate): Add znver1.
10476 (ix86_adjust_cost): Add znver1.
10477 (ia32_multipass_dfa_lookahead): Add znver1.
10478 (has_dispatch): Add znver1.
10479 * config/i386/i386.h (TARGET_znver1): New definition.
10480 (TARGET_CLZERO): Define.
10481 (TARGET_CLZERO_P): Define.
10482 (struct ix86_size_cost): Add TARGET_ZNVER1.
10483 (enum processor_type): Add PROCESSOR_znver1.
10484 * config/i386/i386.md (define_attr "cpu"): Add znver1.
10485 (set_attr znver1_decode): New definitions for znver1.
10486 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10487 (mclzero): New.
10488 * config/i386/mmx.md (set_attr znver1_decode): New definitions
10489 for znver1.
10490 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10491 * config/i386/x86-tune.def: Add znver1 tunings.
10492 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10493 * doc/invoke.texi: Add details about znver1
10494
10495 2015-10-06 Richard Biener <rguenther@suse.de>
10496
10497 PR tree-optimization/67859
10498 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10499 discard not inserted stmts.
10500
10501 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10502
10503 * doc/extend.texi (Template Instantiation): Reorder options and
10504 de-emphasize -frepo.
10505 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10506 example instead of -frepo.
10507
10508 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10509
10510 PR c/65345
10511 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10512 use create_tmp_var_raw rather than create_tmp_var.
10513
10514 2015-10-06 Richard Biener <rguenther@suse.de>
10515
10516 * tree-vectorizer.h (vec_info): New base class for...
10517 (_loop_vec_info): ... this and ...
10518 (_bb_vec_info): ... this.
10519 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10520 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10521 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10522 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10523 vect_destroy_datarefs): Adjust interface to take a vec_info *
10524 rather than both a loop_vec_info and a bb_vec_info argument.
10525 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10526 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10527 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10528 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10529 accordingly.
10530 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10531 (destroy_loop_vec_info, vect_analyze_loop_2,
10532 vect_is_simple_reduction_1, get_initial_def_for_induction,
10533 vect_create_epilog_for_reduction, vectorizable_reduction,
10534 vectorizable_live_operation, vect_transform_loop): Adjust.
10535 * tree-vect-patterns.c (type_conversion_p,
10536 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10537 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10538 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10539 check_bool_pattern, vect_recog_bool_pattern,
10540 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10541 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10542 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10543 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10544 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10545 (new_bb_vec_info): Initialize base classs.
10546 * tree-vect-stmts.c (record_stmt_cost, process_use,
10547 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10548 vectorizable_mask_load_store, vectorizable_call,
10549 vectorizable_simd_clone_call, vectorizable_conversion,
10550 vectorizable_assignment, vectorizable_shift,
10551 vectorizable_operation, vectorizable_store,
10552 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10553 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10554 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10555
10556 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10557
10558 PR c/65345
10559 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10560 create_tmp_var_raw rather than create_tmp_var.
10561
10562 2015-10-05 Marek Polacek <polacek@redhat.com>
10563
10564 * tree-ssa-loop-im.c
10565 (move_computations_dom_walker::before_dom_children): Don't set
10566 SSA_NAME_ANTI_RANGE_P.
10567 * tree-ssa-phiopt.c (value_replacement): Likewise.
10568
10569 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10570 Sebastian Pop <s.pop@samsung.com>
10571
10572 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10573
10574 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10575 Sebastian Pop <s.pop@samsung.com>
10576
10577 * graphite-poly.c (new_gimple_poly_bb): ... here.
10578 (free_data_refs_aux): ... here.
10579 (free_gimple_poly_bb): ... here.
10580 (remove_gbbs_in_scop): ... here.
10581 (new_scop): Call new_sese.
10582 (free_scop): Call remove_gbbs_in_scop and free_sese.
10583 * graphite-poly.h (base_alias_pair): ... here.
10584 (new_gimple_poly_bb): Declare.
10585 (free_gimple_poly_bb): Declare.
10586 * graphite-scop-detection.c (parameter_index_in_region_1):
10587 (parameter_index_in_region): ... here.
10588 (scan_tree_for_params): ... here.
10589 (find_params_in_bb): ... here.
10590 (find_scop_parameters): ... here.
10591 (build_scops): Call find_scop_parameters.
10592 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10593 (free_scops): Move...
10594 (single_pred_cond_non_loop_exit): Move...
10595 (sese_dom_walker::before_dom_children): Move...
10596 (sese_dom_walker::after_dom_children): Move...
10597 (build_poly_scop): Move...
10598 * graphite-sese-to-poly.h (base_alias_pair): Move...
10599 * graphite.c (free_scops): ... here.
10600
10601 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10602 Sebastian Pop <s.pop@samsung.com>
10603
10604 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10605 (trivially_empty_bb_p): Move...
10606 (same_close_phi_node): Move...
10607 (new_gimple_poly_bb): Move...
10608 (compare_bb_depths): Move...
10609 (graphite_sort_dominated_info): Move...
10610 (remove_duplicate_close_phi): Move...
10611 (make_close_phi_nodes_unique): Move...
10612 (canonicalize_loop_closed_ssa): Move...
10613 (canonicalize_loop_closed_ssa_form): Move...
10614 (loop_ivs_can_be_represented): Move...
10615 (single_pred_cond_non_loop_exit): Move...
10616 (graphite_can_represent_init): Move...
10617 (graphite_can_represent_scev): Move...
10618 (stmt_has_simple_data_refs_p): Move...
10619 (stmt_has_side_effects): Move...
10620 (graphite_can_represent_stmt): Move...
10621 (scop_detection): ... here.
10622 (sese_dom_walker): ... and here.
10623 (build_scops): Call all moved functions.
10624 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10625 (all_non_dominated_preds_marked_p): Move...
10626 (build_scop_bbs_1): Move...
10627 (build_scop_bbs): Move...
10628 (set_scop_parameter_dim): Move...
10629 (nb_pbbs_in_loops): Move...
10630 (build_poly_scop): Do not call all the moved functions.
10631
10632 2015-10-05 Martin Jambor <mjambor@suse.cz>
10633 Jan Hubicka <hubicka@ucw.cz>
10634
10635 * ipa-cp.c (ipcp_alignment_lattice): New type.
10636 (ipcp_param_lattices): Use the above to represent alignment.
10637 (ipcp_alignment_lattice::print): New function.
10638 (print_all_lattices): Use it to print alignment information.
10639 (ipcp_alignment_lattice::top_p): New function.
10640 (ipcp_alignment_lattice::bottom_p): Likewise.
10641 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10642 (ipcp_alignment_lattice::meet_with_1): Likewise.
10643 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10644 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10645 (initialize_node_lattices): Likewise.
10646 (propagate_alignment_accross_jump_function): Work with the new class
10647 for alignment lattices.
10648 (propagate_constants_accross_call): Pass only the alignment lattice to
10649 propagate_alignment_accross_jump_function.
10650 (ipcp_store_alignment_results): Work with the new class for alignment
10651 lattices.
10652
10653 2015-10-05 Marek Polacek <polacek@redhat.com>
10654
10655 PR tree-optimization/67821
10656 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10657
10658 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10659
10660 PR other/65021
10661 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10662 function to...
10663 (mkoffload_cleanup): ... this. Adjust all users.
10664 (maybe_unlink): Look at save_temps and verbose flags instead of
10665 debug flag.
10666 (main): Parse "-save-temps" flag.
10667 (generate_target_descr_file, generate_target_offloadend_file)
10668 (generate_host_descr_file, prepare_target_image): Pass it on.
10669 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10670 (mkoffload_cleanup): New function.
10671 (maybe_unlink): Look at save_temps and verbose flags instead of
10672 debug flag.
10673 (main): Instead of calling utils_cleanup, register atexit handler
10674 for mkoffload_cleanup.
10675 (main): Parse "-save-temps" flag.
10676 (compile_native, main): Pass it on.
10677 * lto-wrapper.c (compile_offload_image): Likewise.
10678
10679 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10680
10681 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10682 (gimple_assign_lhs_ptr): Likewise.
10683 (gimple_assign_rhs1_ptr): Likewise.
10684 (gimple_assign_rhs2_ptr): Likewise.
10685 (gimple_assign_rhs3_ptr): Likewise.
10686 (gimple_call_lhs_ptr): Likewise.
10687 (gimple_call_fn_ptr): Likewise.
10688 (gimple_call_chain_ptr): Likewise.
10689 (gimple_call_arg_ptr): Likewise.
10690 (gimple_cond_lhs_ptr): Likewise.
10691 (gimple_cond_rhs_ptr): Likewise.
10692 (gimple_switch_index_ptr): Likewise.
10693 (gimple_return_retval_ptr): Likewise.
10694
10695 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10696
10697 * gimple.h (gimple_asm_input_op_ptr): Remove.
10698 (gimple_asm_output_op_ptr): Likewise.
10699
10700 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10701
10702 * gimple.h (gimple_location_ptr): Remove.
10703 * tree-vrp.c (check_all_array_refs): Adjust.
10704
10705 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10706
10707 * tree-ssa-operands.c (build_uses): store tree * instead of
10708 tree.
10709 (finalize_ssa_uses): Adjust.
10710 (append_use): Likewise.
10711 (verify_ssa_operands): Likewise.
10712
10713 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10714
10715 * real.h (build_real_truncate): Declare.
10716 * tree.c (build_real_truncate): New function.
10717 (strip_float_extensions): Use it.
10718 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10719 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10720 * match.pd: Likewise.
10721
10722 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10723 Jiong Wang <jiong.wang@arm.com>
10724
10725 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10726
10727 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10728
10729 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10730 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10731 (aarch64_print_operand, aarch64_float_const_representable_p)
10732 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10733 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10734 * config/arc/arc.c (arc_print_operand): Likewise.
10735 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10736 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10737 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10738 Likewise.
10739 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10740 (consttable_16): Likewise.
10741 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10742 * config/avr/avr.c (avr_print_operand): Likewise.
10743 * config/bfin/bfin.md: Likewise (in a define_split).
10744 * config/c6x/c6x.md: Likewise (in a define_split).
10745 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10746 (cr16_print_operand): Likewise.
10747 * config/cris/cris.c (cris_print_operand): Likewise.
10748 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10749 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10750 (fr30_const_double_is_zero): Likewise.
10751 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10752 * config/frv/frv.md: Likewise (in a define_split).
10753 * config/frv/predicates.md (int_2word_operand): Likewise.
10754 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10755 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10756 (ix86_print_operand, ix86_split_to_parts): Likewise.
10757 * config/i386/i386.md: Likewise (in a define_split).
10758 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10759 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10760 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10761 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10762 (print_operand): Likewise.
10763 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10764 * config/mep/mep.md: Likewise (in define_split).
10765 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10766 (print_operand): Likewise.
10767 * config/mips/mips.md (consttable_float): Likewise.
10768 * config/mmix/mmix.c (mmix_intval): Likewise.
10769 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10770 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10771 * config/pa/pa.c (pa_singlemove_string): Likewise.
10772 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10773 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10774 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10775 (output_toc): Likewise.
10776 * config/rs6000/rs6000.md: Likewise (in define_splits).
10777 * config/rx/rx.c (rx_print_operand): Likewise.
10778 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10779 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10780 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10781 (and also in define_splits).
10782 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10783 (fp_high_losum_p): Likewise.
10784 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10785 (*movsf_high): Likewise.
10786 * config/spu/spu.c (const_double_to_hwint): Likewise.
10787 * config/v850/v850.c (const_double_split): Likewise.
10788 * config/vax/vax.c (vax_float_literal): Likewise.
10789 * config/visium/visium.c (visium_expand_copysign): Likewise.
10790 * config/visium/visium.md: Likewise (in define_split).
10791 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10792 * config/xtensa/xtensa.c (print_operand): Likewise.
10793 (xtensa_output_literal): Likewise.
10794 * cprop.c (implicit_set_cond_p): Likewise.
10795 * dwarf2out.c (insert_float): Likewise.
10796 * expmed.c (expand_mult, make_tree): Likewise.
10797 * expr.c (compress_float_constant): Likewise.
10798 * rtlanal.c (split_double): Likewise.
10799 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10800 (simplify_const_unary_operation, simplify_binary_operation_1)
10801 (simplify_const_binary_operation): Likewise.
10802 (simplify_const_relational_operation): Likewise.
10803 * varasm.c (output_constant_pool_2): Likewise.
10804
10805 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10806
10807 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10808 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10809 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10810 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10811 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10812 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10813 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10814 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10815 (ix86_emit_swsqrtsf): Likewise.
10816 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10817 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10818 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10819 * config/pa/pa.c (pa_expand_builtin): Likewise.
10820 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10821 (rs6000_scale_v2df): Likewise.
10822 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10823 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10824 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10825 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10826 (vec_ctul): Likewise.
10827 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10828 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10829 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10830 * cse.c (fold_rtx): Likewise.
10831 * emit-rtl.c (immed_double_const): Likewise (in comments).
10832 (init_emit_once): Likewise.
10833 * expr.c (compress_float_constant, expand_expr_real_1)
10834 (const_vector_from_tree): Likewise.
10835 * optabs.c (expand_float, expand_fix): Likewise.
10836 * reg-stack.c (reg_to_stack): Likewise.
10837 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10838 (simplify_const_unary_operation, simplify_binary_operation_1)
10839 (simplify_const_binary_operation, simplify_relational_operation)
10840 (simplify_immed_subreg): Likewise.
10841
10842 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10843
10844 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10845 * doc/tm.texi: Regenerate.
10846 * real.h (REAL_ARITHMETIC): Delete.
10847 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10848 (ix86_expand_round_sse4): Use real_arithmetic instead of
10849 REAL_ARITHMETIC.
10850 * config/i386/sse.md (round<mode>2): Likewise.
10851 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10852 * explow.c (rtx_to_tree_code): Likewise (in comment).
10853 * match.pd: Likewise.
10854 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10855 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10856 (expand_pow_as_sqrts): Likewise.
10857 * tree-pretty-print.c (dump_generic_node): Remove code that
10858 was conditional on REAL_ARITHMETIC being undefined.
10859
10860 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10861
10862 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10863 * doc/tm.texi: Regenerate.
10864 * real.h (real_less): Declare.
10865 (REAL_VALUES_LESS): Delete.
10866 * real.c (real_less): New function.
10867 (real_compare): Use it.
10868 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10869 of REAL_VALUES_LESS.
10870 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10871 Likewise.
10872 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10873 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10874 (simplify_const_relational_operation): Likewise.
10875 * tree-call-cdce.c (check_pow): Likewise.
10876 (gen_conditions_for_pow_cst_base): Likewise.
10877
10878 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10879
10880 * real.h (REAL_VALUES_IDENTICAL): Delete.
10881 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10882 instead of REAL_VALUES_IDENTICAL.
10883 * fold-const.c (operand_equal_p): Likewise.
10884 * ipa-icf.c (sem_variable::equals): Likewise.
10885 * tree-complex.c (some_nonzerop): Likewise.
10886 (expand_complex_multiplication): Likewise.
10887 * tree.c (simple_cst_equal): Likewise.
10888 * varasm.c (compare_constant): Likewise.
10889
10890 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10891
10892 * real.h (real_equal): Declare.
10893 (REAL_VALUES_EQUAL): Delete.
10894 * real.c (real_equal): New function.
10895 (real_compare): Use it.
10896 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10897 * doc/tm.texi: Regenerate.
10898 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10899 real_equal instead of REAL_VALUES_EQUAL.
10900 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10901 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10902 (fp_const_from_val): Likewise.
10903 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10904 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10905 (floating_exact_log2): Likewise.
10906 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10907 * config/vax/vax.c (vax_float_literal): Likewise.
10908 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10909 * cprop.c (implicit_set_cond_p): Likewise.
10910 * expmed.c (expand_mult): Likewise.
10911 * fold-const.c (const_binop): Likewise.
10912 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10913 (simplify_const_binary_operation): Likewise.
10914 (simplify_const_relational_operation): Likewise.
10915 * tree-call-cdce.c (check_pow): Likewise.
10916 (gen_conditions_for_pow_cst_base): Likewise.
10917 * tree-inline.c (estimate_num_insns): Likewise.
10918 * tree-ssa-dom.c (record_equality): Likewise.
10919 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10920 (gimple_expand_builtin_pow): Likewise.
10921 (pass_optimize_widening_mul::execute): Likewise.
10922 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10923 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10924 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10925
10926 2015-10-05 Richard Biener <rguenther@suse.de>
10927
10928 PR ipa/67783
10929 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10930 consider loop header PHI defs as IVs.
10931
10932 2015-10-05 Richard Biener <rguenther@suse.de>
10933
10934 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10935 call handling ...
10936 (create_expression_by_pieces): ... here and build GIMPLE
10937 calls directly. Use gimple_build API and avoid force_gimple_operand.
10938 (insert_into_preds_of_block): Simplify.
10939 (do_regular_insertion): Add comment.
10940
10941 2015-10-04 Jason Merrill <jason@redhat.com>
10942
10943 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10944
10945 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10946
10947 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10948 check for general register.
10949 (ix86_emit_save_regs): Ditto.
10950 (ix86_emit_save_regs_using_mov): Ditto.
10951 (ix86_emit_restore_regs_using_pop): Ditto.
10952 (ix86_emit_restore_regs_using_mov): Ditto.
10953
10954 2015-10-03 Marek Polacek <polacek@redhat.com>
10955
10956 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10957 (insn-dfatab.o): Likewise.
10958
10959 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10960
10961 * config.gcc (xtensa*-*-uclinux*): New configuration.
10962 * config/xtensa/uclinux.h: New file.
10963 * config/xtensa/uclinux.opt: New file.
10964
10965 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10966
10967 * doc/cpp.texi (Standard Predefined Macros): Document value of
10968 __cplusplus for C++14.
10969
10970 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10971
10972 * gcc.c (process_command): Use spec_machine rather than
10973 spec_host_machine to build tooldir_prefix2.
10974
10975 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10976 Bernd Schmidt <bernds@codesourcery.com>
10977
10978 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10979 (Token, Stmt): Remove structs.
10980 (decls, vars, fns): Remove variables.
10981 (alloc_comment, append_stmt, is_keyword): Remove macros.
10982 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10983 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10984 (parse_init, parse_file): Remove functions.
10985 (read_file): Accept a pointer to a length and store into it.
10986 (process): Don't try to parse the input file, just write it out as
10987 a string, but looking for maps. Also write out the length.
10988 (main): Don't use "-S" to compile PTX code.
10989
10990 2015-10-02 Jeff Law <law@redhat.com>
10991
10992 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10993 fixups.
10994
10995 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10996
10997 PR target/67822
10998 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10999 -fopenmp, and skip generating an offloading image if specified.
11000
11001 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11002
11003 * system.h (ROUND_UP): New macro definition.
11004 (ROUND_DOWN): Ditto.
11005 * ggc-page.c (ROUND_UP): Remove local macro definition.
11006 (PAGE_ALIGN): Implement using ROUND_UP macro.
11007
11008 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11009 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11010 to align values.
11011 (ix86_compute_frame_layout): Ditto.
11012 (ix86_expand_prologue): Ditto.
11013 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11014 to round down values.
11015 (expand_set_or_movmem_via_rep): Ditto.
11016
11017 2015-10-02 Marek Polacek <polacek@redhat.com>
11018
11019 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11020
11021 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11022
11023 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11024 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11025 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11026 (free_gimple_bb): Renamed free_gimple_poly_bb.
11027 (try_generate_gimple_bb): Hoist loop invariant code.
11028 (analyze_drs_in_stmts): Same.
11029 (build_scop_drs): Call renamed functions.
11030 (new_pbb_from_pbb): Same.
11031 (scop_ivs_can_be_represented): Delete as functionality now moved to
11032 graphite-scop-detection.c
11033 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11034
11035 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11036
11037 * graphite-scop-detection.c (stmt_has_side_effects): New function
11038 outlined from stmt_simple_for_scop_p.
11039 (graphite_can_represent_stmt): Same.
11040 (stmt_simple_for_scop_p): Moved code out of this function for better
11041 readability.
11042
11043 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11044
11045 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11046 F_AVX512IFMA.
11047 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11048
11049 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11050
11051 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11052
11053 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11054
11055 PR rtl-optimization/67756
11056 * lra-constraints.c (match_reload): Add a new parameter. Use it
11057 for creating a pseudo with the same value.
11058 (curr_insn_transform): Pass a new argument to match_reload.
11059
11060 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11061
11062 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11063 (expand_vec_perm_even_odd_1): Handle V64QImode.
11064 (ix86_expand_vec_perm_const_1): Try expansion with
11065 expand_vec_perm_even_odd_trunc as well.
11066 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11067 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11068 to V54QI.
11069 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11070 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11071 to V32HI and V16SI.
11072 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11073 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11074 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11075 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11076 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11077 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11078
11079 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11080
11081 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11082 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11083
11084 2015-10-02 Jason Merrill <jason@redhat.com>
11085
11086 PR c/59218
11087 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11088 (diagnose_tm_1_op): Also diagnose volatile accesses in
11089 transaction_safe function.
11090
11091 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11092
11093 * system.h (malloc.h): Don't include obsolete header.
11094
11095 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11096
11097 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11098 (TLS_SECTION_ASM_FLAG): Delete.
11099
11100 2015-10-02 Marek Polacek <polacek@redhat.com>
11101
11102 PR c/64249
11103 * doc/invoke.texi: Document -Wduplicated-cond.
11104 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11105 (insn-dfatab.o): Likewise.
11106 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11107 warning.
11108
11109 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11110
11111 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11112 sequences.
11113
11114 2015-10-02 Renlin Li <renlin.li@arm.com>
11115
11116 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11117
11118 2015-10-02 Renlin Li <renlin.li@arm.com>
11119
11120 PR target/66776
11121 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11122
11123 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11124
11125 PR rtl-optimization/67786
11126 PR rtl-optimization/67787
11127 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11128 it modifies a reg used in the condition calculation.
11129
11130 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11131
11132 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11133 alternatives for reads from memory and moves from general-purpose
11134 registers.
11135 (*aarch64_combinez_be<mode>): Likewise.
11136
11137 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11138
11139 PR target/51726
11140 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11141 selectany within this function without need to keep attribute.
11142 (i386_pe_encode_section_info): Remove selectany-code.
11143
11144 2015-10-02 Richard Biener <rguenther@suse.de>
11145
11146 * tree-ssa-sccvn.c (has_VN_INFO): New function.
11147 (free_scc_vn): Use it.
11148 (visit_use): Remove dead code and refactor to use gassign
11149 and use less indentation.
11150
11151 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11152
11153 PR target/67788
11154 PR target/67789
11155 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11156 (rs6000_cannot_copy_insn_p): New function.
11157 * config/rs6000/rs6000.md (cannot_copy): New attribute.
11158 (load_toc_v4_PIC_1_normal): Set cannot_copy.
11159 (load_toc_v4_PIC_1_476): Ditto.
11160
11161 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11162
11163 * graphite-scop-detection.c (struct sese_l): New conversion constructor
11164 so that this type can be pushed into a vec.
11165 (class scop_builder): use sese_l to collect scops.
11166 (get_scops): New getter function.
11167 (remove_intersecting_scops): Use sese_l instead of scops_p.
11168 (intersects): Same.
11169 (add_scop): Same.
11170 (subsumes): Same.
11171 (remove_subscops): Same.
11172 (build_scops): Add scops to vec<scops_p> once all the scops have been
11173 detected.
11174
11175 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11176
11177 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11178 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11179 (translate_isl_ast_node_user): Same.
11180 * graphite-poly.c (new_poly_bb): Same.
11181 * graphite-poly.h (gbb_from_bb): Same.
11182 * sese.h: Same.
11183 * graphite-sese-to-poly.c (new_gimple_bb):
11184 gimple_bb_p -> gimple_poly_bb_p
11185 (build_scop_scattering): Same.
11186 (find_params_in_bb): Same.
11187 (add_conditions_to_domain): Same.
11188 (sese_dom_walker::before_dom_children): Same.
11189 (analyze_drs_in_stmts): Same.
11190 (new_pbb_from_pbb): Same.
11191 (free_data_refs_aux): New pointer to type base_alias_pair.
11192 * graphite-sese-to-poly.h: Same.
11193 * sese.c (if_region_set_false_region): Fixed Indentation.
11194 (move_sese_in_condition): Same.
11195
11196 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11197 Aditya Kumar <aditya.k7@samsung.com>
11198
11199 PR tree-optimization/66980
11200 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11201 when data reference analysis has failed.
11202
11203 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11204 Aditya Kumar <aditya.k7@samsung.com>
11205
11206 PR tree-optimization/67754
11207 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11208 scev analysis on the same loop nest as analyze_drs_in_stmts.
11209 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11210 renamed...
11211 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11212 (analyze_drs_in_stmts): Same.
11213 * sese.c (outermost_loop_in_sese): ...here.
11214
11215 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11216 Aditya Kumar <aditya.k7@samsung.com>
11217
11218 PR tree-optimization/67754
11219 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11220 recursion on the inner loops.
11221
11222 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11223
11224 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11225 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11226 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11227 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11228 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11229
11230 2015-10-01 Marek Polacek <polacek@redhat.com>
11231
11232 PR c/65345
11233 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11234 create_tmp_var_raw rather than create_tmp_var.
11235
11236 2015-10-01 Marek Polacek <polacek@redhat.com>
11237
11238 PR tree-optimization/67769
11239 * tree-ssa-phiopt.c (conditional_replacement): Call
11240 reset_flow_sensitive_info_in_bb.
11241 (minmax_replacement): Likewise.
11242 (abs_replacement): Likewise.
11243
11244 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11245
11246 * builtins.c: Don't include gomp-constants.h.
11247 (fold_builtin_1): Don't fold acc_on_device here.
11248 * gimple-fold.c: Include gomp-constants.h.
11249 (gimple_fold_builtin_acc_on_device): New.
11250 (gimple_fold_builtin): Call it.
11251
11252 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11253
11254 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11255 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11256
11257 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11258
11259 * config/arm/aarch-common-protos.h
11260 (aarch_accumulator_forwarding): New.
11261 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11262 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11263 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11264 * config/arm/cortex-a53.md: Rewrite.
11265
11266 2015-10-01 Richard Biener <rguenther@suse.de>
11267
11268 * gimple-match.h (mprts_hook): Declare.
11269 * gimple-match.head.c (mprts_hook): Define.
11270 (maybe_push_res_to_seq): Use new hook.
11271 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11272 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11273 (vn_ssa_aux::has_constants): Remove.
11274 * tree-ssa-sccvn.c: Include gimple-match.h.
11275 (VN_INFO_GET): Assert we don't re-use SSA names.
11276 (vn_get_expr_for): Remove.
11277 (expr_has_constants): Likewise.
11278 (stmt_has_constants): Likewise.
11279 (simplify_binary_expression): Likewise.
11280 (simplify_unary_expression): Likewise.
11281 (vn_lookup_simplify_result): New hook.
11282 (visit_copy): Adjust.
11283 (visit_reference_op_call): Likewise.
11284 (visit_phi): Likewise.
11285 (visit_use): Likewise.
11286 (process_scc): Likewise.
11287 (init_scc_vn): Likewise.
11288 (visit_reference_op_load): Likewise. Use match-and-simplify and
11289 a gimple seq for inserted expressions.
11290 (try_to_simplify): Remove GENERIC stmt combining code.
11291 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11292 * tree-ssa-pre.c (eliminate_insert): Adjust.
11293 (eliminate_dom_walker::before_dom_children): Likewise.
11294
11295 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11296
11297 * doc/invoke.texi (Optimization Options): Add
11298 -freorder-blocks-algorithm=.
11299 (Optimize Options) <-O>: Add -freorder-blocks.
11300 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11301 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11302 <-freorder-blocks>: Also enabled at levels -O and -Os.
11303 <-freorder-blocks-algorithm=>: Document new option.
11304
11305 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11306
11307 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11308 with flag_reorder_blocks_algorithm.
11309 * common.opt (freorder-blocks-algorithm=): New flag.
11310 (reorder_blocks_algorithm): New enum.
11311 * flag-types.h (reorder_blocks_algorithm): New enum.
11312 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11313 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11314
11315 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11316
11317 * bb-reorder.c: Add intro comment.
11318 (reorder_basic_blocks_software_trace_cache): Print a header to
11319 the dump file.
11320 (edge_order): New function.
11321 (reorder_basic_blocks_simple): New function.
11322 (reorder_basic_blocks): Choose between the STC and the simple
11323 algorithms (always choose the former).
11324
11325 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11326
11327 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11328 function, factored out from ...
11329 (reorder_basic_blocks): ... here.
11330
11331 2015-10-01 Tom de Vries <tom@codesourcery.com>
11332
11333 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11334 __attribute__(()) string. Move dumping of function attributes to before
11335 function name.
11336
11337 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11338
11339 PR target/66870
11340 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11341 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11342 based on gold linker version.
11343 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11344 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11345 * configure, config.in: Regenerate.
11346
11347 2015-10-01 Alan Modra <amodra@gmail.com>
11348
11349 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11350 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11351 (rs6000_output_mi_thunk): Likewise.
11352
11353 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11354
11355 * config/nvptx/mkoffload.c (process): Change offload data format.
11356
11357 2015-09-30 Jeff Law <law@redhat.com>
11358
11359 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11360 with constant conditions.
11361 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11362 (remove_ctrl_stmt_and_useless_edges): No longer static.
11363 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11364 (remove_ctrl_stmt_and_useless_edges): Likewise.
11365
11366 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11367 Cesar Philippidis <cesar@codesourcery.com>
11368
11369 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11370 (TARGET_GOACC_VALIDATE_DIMS): Override.
11371 * target.def (TARGET_GOACC): New target hook prefix.
11372 (validate_dims): New hook.
11373 * targhooks.h (default_goacc_validate_dims): New.
11374 * omp-low.c (oacc_validate_dims): New.
11375 (execute_oacc_device_lower): New.
11376 (default_goacc_validate_dims): New.
11377 (pass_data_oacc_device_lower): New.
11378 (pass_oacc_device_lower): New pass.
11379 (make_pass_oacc_device_lower): New.
11380 * tree-pass.h (make_pass_oacc_device_lower): Declare.
11381 * passes.def (pass_oacc_device_lower): Add it.
11382 * doc/tm.texi: Rebuilt.
11383 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11384 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11385
11386 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11387
11388 PR rtl-optimization/67037
11389 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11390
11391 2015-09-30 Bernd Schmidt <bernds@redhat.com>
11392
11393 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11394 * passes.c: Include tree-ssanames.h.
11395 (execute_function_todo): Flush the pending free SSA_NAMEs after
11396 eliminating unreachable basic blocks.
11397 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11398 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11399 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11400 (flush_ssanames_freelist): New function.
11401 (release_ssaname_fn): Put released names on the queue.
11402 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11403 * tree-ssanames.h (flush_ssanames_freelist): Declare.
11404
11405 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11406
11407 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11408 (generate_target_descr_file, generate_target_offloadend_file)
11409 (generate_host_descr_file, prepare_target_image): Pass it on.
11410 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11411 (compile_native, main): Pass it on.
11412 * lto-wrapper.c (compile_offload_image): Likewise.
11413
11414 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11415 Ilya Verbin <ilya.verbin@intel.com>
11416 Andrey Turetskiy <andrey.turetskiy@intel.com>
11417
11418 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11419 (prepare_target_image, main): Refactor argv building to use
11420 obstacks.
11421
11422 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11423
11424 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11425 * config/spu/spu.c (spu_expand_atomic_op): New function.
11426 * config/spu/spu.md (AINT): New mode iterator.
11427 (ATOMIC): New code iterator.
11428 (atomic_name, atomic_pred): New code predicates.
11429 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11430 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11431 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11432 "atomic_<atomic_name>_fetch<mode>"): Likewise.
11433
11434 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
11435
11436 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11437 debug insns.
11438 (scalar_chain::convert_reg): Likewise.
11439
11440 2015-09-30 Richard Biener <rguenther@suse.de>
11441
11442 * builtins.c: Add comment that no new simplifications should
11443 be added here.
11444
11445 2015-09-30 Marek Polacek <polacek@redhat.com>
11446
11447 PR tree-optimization/67690
11448 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11449 reset_flow_sensitive_info_in_bb.
11450 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11451 * tree-ssanames.c: Include "gimple-iterator.h".
11452 (reset_flow_sensitive_info_in_bb): New function.
11453 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11454
11455 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11456
11457 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11458 variable, replacing it with...
11459 (offload_abi): ... this new variable. Adjust all users.
11460 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11461
11462 2015-09-30 Matthias Klose <doko@ubuntu.com>
11463
11464 * configure.ac: Remove extraneous ;;.
11465 * configure: Regenerate.
11466
11467 2015-09-29 James Bowman <james.bowman@ftdichip.com>
11468
11469 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11470 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11471 predicate, disallow register for operand 2.
11472
11473 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
11474
11475 * graphite-dependences.c (scop_get_dependences): Moved in down
11476 in order to be visible to its caller.
11477 * graphite-poly.h: Removed compute_deps, and extend_schedule.
11478
11479 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11480 Aditya Kumar <aditya.k7@samsung.com>
11481
11482 PR tree-optimization/67754
11483 * graphite-optimize-isl.c (optimize_isl): Call
11484 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11485
11486 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11487
11488 * builtins.c (expand_builtin_acc_on_device): Delete.
11489 (expand_builtin): Don't call it.
11490 (fold_builtin_1): Fold acc_on_device.
11491
11492 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11493
11494 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11495 (ix86_nsaved_sseregs): Likewise.
11496
11497 2015-09-29 Jeff Law <law@redhat.com>
11498
11499 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11500 computation of unused value.
11501
11502 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11503 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11504 inline macro expansion.
11505
11506 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11507
11508 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11509 (gen_shl_sext): Likewise.
11510 * config/sh/sh.md (divsi3): Likewise.
11511 (imm->ext_dest_operand splitter): Likewise.
11512
11513 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11514 Aditya Kumar <aditya.k7@samsung.com>
11515
11516 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11517 (nb_data_writes_in_bb): Remove.
11518 (split_pbb): Remove.
11519 (split_reduction_stmt): Remove.
11520 (is_reduction_operation_p): Remove.
11521 (phi_contains_arg): Remove.
11522 (follow_ssa_with_commutative_ops): Remove.
11523 (detect_commutative_reduction_arg): Remove.
11524 (detect_commutative_reduction_assign): Remove.
11525 (follow_inital_value_to_phi): Remove.
11526 (edge_initial_value_for_loop_phi): Remove.
11527 (initial_value_for_loop_phi): Remove.
11528 (used_outside_reduction): Remove.
11529 (detect_commutative_reduction): Remove.
11530 (translate_scalar_reduction_to_array_for_stmt): Remove.
11531 (remove_phi): Remove.
11532 (dr_indices_valid_in_loop): Remove.
11533 (close_phi_written_to_memory): Remove.
11534 (translate_scalar_reduction_to_array): Remove.
11535 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11536 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11537 (rewrite_commutative_reductions_out_of_ssa): Remove.
11538 (build_poly_scop): Remove call to
11539 rewrite_commutative_reductions_out_of_ssa.
11540
11541 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11542
11543 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11544 Add new insn types for vector load and store pairs.
11545 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11546 types "neon_ldp{,_q}".
11547 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11548 "neon_ldp{,_q}".
11549 (neon_store_complex): Add insn types "neon_stp{,_q}".
11550 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11551 "neon_{ldp,stp}_q".
11552
11553 2015-09-29 Jeff Law <law@redhat.com>
11554
11555 * config/rx/constraints.md (Int08): Fix undefined left shift
11556 behaviour.
11557 (Sint08, Sint16, Sint24): Likewise.
11558 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11559
11560 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11561 behaviour.
11562
11563 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11564 left shift behaviour.
11565 * config/msp430/constraints.md ('L' constraint): Similarly.
11566 ('Ys' constraint): Similarly.
11567
11568 2015-09-29 Richard Biener <rguenther@suse.de>
11569
11570 PR tree-optimization/67170
11571 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11572 the translate function pointer parameter to get the
11573 bool whether to disambiguate only by reference.
11574 (walk_non_aliased_vuses): Likewise.
11575 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11576 (get_continuation_for_phi_1): Likewise.
11577 (get_continuation_for_phi): Likewise.
11578 (walk_non_aliased_vuses): Likewise.
11579 * tree-ssa-sccvn.c (const_parms): New bitmap.
11580 (vn_reference_lookup_3): Adjust for interface change.
11581 Disambiguate parameters pointing to readonly memory.
11582 (free_scc_vn): Free const_parms.
11583 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11584
11585 2015-09-29 Richard Biener <rguenther@suse.de>
11586
11587 PR tree-optimization/67741
11588 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11589 builtin calls with correct signature.
11590
11591 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11592
11593 PR target/65105
11594 * config/i386/i386.c: Include dbgcnt.h.
11595 (has_non_address_hard_reg): New.
11596 (convertible_comparison_p): New.
11597 (scalar_to_vector_candidate_p): New.
11598 (remove_non_convertible_regs): New.
11599 (scalar_chain): New.
11600 (scalar_chain::scalar_chain): New.
11601 (scalar_chain::~scalar_chain): New.
11602 (scalar_chain::add_to_queue): New.
11603 (scalar_chain::mark_dual_mode_def): New.
11604 (scalar_chain::analyze_register_chain): New.
11605 (scalar_chain::add_insn): New.
11606 (scalar_chain::build): New.
11607 (scalar_chain::compute_convert_gain): New.
11608 (scalar_chain::replace_with_subreg): New.
11609 (scalar_chain::replace_with_subreg_in_insn): New.
11610 (scalar_chain::emit_conversion_insns): New.
11611 (scalar_chain::make_vector_copies): New.
11612 (scalar_chain::convert_reg): New.
11613 (scalar_chain::convert_op): New.
11614 (scalar_chain::convert_insn): New.
11615 (scalar_chain::convert): New.
11616 (convert_scalars_to_vector): New.
11617 (pass_data_stv): New.
11618 (pass_stv): New.
11619 (make_pass_stv): New.
11620 (ix86_option_override): Created and register stv pass.
11621 (flag_opts): Add -mstv.
11622 (ix86_option_override_internal): Likewise.
11623 * config/i386/i386.md (SWIM1248x): New.
11624 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11625 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11626 (*anddi3_doubleword): New.
11627 (*zext<mode>_doubleword): New.
11628 (*zextsi_doubleword): New.
11629 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11630 (*<code>di3_doubleword): New.
11631 * config/i386/i386.opt (mstv): New.
11632 * dbgcnt.def (stv_conversion): New.
11633
11634 2015-09-29 Tom de Vries <tom@codesourcery.com>
11635
11636 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11637
11638 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11639
11640 PR target/67716
11641 * config/sh/sh.c (sh_override_options_after_change): New.
11642 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11643 (sh_option_override): Move align_loops, align_jumps and
11644 align_functions handling into sh_override_options_after_change.
11645
11646 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11647
11648 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11649 (nvptx_record_offload_symbol): Record function execution geometry.
11650 * config/nvptx/mkoffload.c (process): Include launch geometry in
11651 function data.
11652 * omp-low.c (oacc_launch_pack): New.
11653 (replace_oacc_fn_attrib): New.
11654 (set_oacc_fn_attrib): New.
11655 (get_oacc_fn_attrib): New.
11656 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11657 generation.
11658 * omp-low.h (get_oacc_fn_attrib): Declare.
11659 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11660 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11661 * tree.h (OMP_CLAUSE_EXPR): New.
11662 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11663
11664 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11665 Sebastian Pop <s.pop@samsung.com>
11666
11667 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11668
11669 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11670 Sebastian Pop <s.pop@samsung.com>
11671
11672 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11673 * graphite-scop-detection.c (struct sese_l): New type.
11674 (get_entry_bb): API for getting entry bb of SESE.
11675 (get_exit_bb): API for getting exit bb of SESE.
11676 (class debug_printer): New type. Simple printer in debug mode.
11677 (trivially_empty_bb_p): New. Return true when BB is empty or
11678 contains only debug instructions.
11679 (graphite_can_represent_expr): Call scalar_evoution_in_region
11680 instead of analyze_scalar_evolution. Pass in scop instead of only
11681 the scop entry.
11682 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11683 scop entry.
11684 (stmt_simple_for_scop_p): Same.
11685 (harmful_stmt_in_bb): Same.
11686 (graphite_can_represent_loop): Deleted.
11687 (struct scopdet_info): Deleted.
11688 (scopdet_basic_block_info): Deleted.
11689 (build_scops_1): Deleted.
11690 (bb_in_sd_region): Deleted.
11691 (find_single_entry_edge): Deleted.
11692 (find_single_exit_edge): Deleted.
11693 (create_single_entry_edge): Deleted.
11694 (sd_region_without_exit): Deleted.
11695 (create_single_exit_edge): Deleted.
11696 (unmark_exit_edges): Deleted.
11697 (mark_exit_edges): Deleted.
11698 (create_sese_edges): Deleted.
11699 (build_graphite_scops): Deleted.
11700 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11701 (build_scops): Use the new scop_builder to build scops.
11702 (dot_all_scops_1): Use the new pretty printer. Print loop father
11703 as well.
11704 (loop_body_is_valid_scop): New. Return true if loop body is a
11705 valid scop.
11706 (class scop_builder): New. Builds SCoPs for polyhedral
11707 optimizations.
11708 (scop_builder): New constructor.
11709 (static sese_l invalid_sese): sese_l with invalid edges.
11710 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11711 otherwise.
11712 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11713 basic_block with single entry. Return NULL if we get to the
11714 beginning of a function.
11715 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11716 a basic_block with single exit. Return NULL if we get to the
11717 beginning of a function.
11718 (print_sese): Pretty-print SESE.
11719 (merge_sese): Merge two SESEs if possible and return the new SESE.
11720 (build_scop_depth): Start building the SCoP within a loop nest.
11721 (build_scop_breadth): Start building the SCoP at a single loop
11722 depth. Merge adjacent SESEs if valid.
11723 (can_represent_loop_1): Returns true if Graphite can represent
11724 loop inside SCoP. Helper for can_represent_loop.
11725 (can_represent_loop): Returns true if Graphite can represent LOOP
11726 and all its nested loops in SCoP.
11727 (loop_is_valid_scop): Returns true if LOOP and all its nests
11728 constitute a valid SCoP.
11729 (region_has_one_loop): Returns true of a region has only one loop.
11730 (add_scop): Add SCoP to the list of valid scops. Removes an
11731 already existing scop if it intersects with or subsumed by this one.
11732 (harmful_stmt_in_region): Returns true if SCoP has any statment
11733 which cannot be represented by Graphite.
11734 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11735 (remove_subscops): Remove any SCoP from the list of already found
11736 SCoPs, if subsumed by S1.
11737 (intersects): Return true if region bounded by SCoPs S1 and S2
11738 intersect.
11739 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11740 * graphite.c (print_graphite_scop_statistics):
11741 (print_graphite_statistics): Print SCoP info while debugging.
11742 (graphite_initialize): Early exit in case number of loops in a
11743 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11744 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11745 (graphite_finalize):
11746 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11747 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11748 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11749 * tree-cfg.c (print_loops): Print the function name while printing
11750 loops.
11751
11752 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11753 Sebastian Pop <s.pop@samsung.com>
11754
11755 PR tree-optimization/67700
11756 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11757 invariant_in_sese_p_rec.
11758 (extract_affine): Same.
11759 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11760 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11761 * sese.h (invariant_in_sese_p_rec): Declare.
11762
11763 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11764
11765 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11766
11767 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11768
11769 Revert:
11770 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11771 Jiong Wang <jiong.wang@arm.com>
11772
11773 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11774 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11775 (REG_CLASS_NAMES): Likewise.
11776 (REG_CLASS_CONTENTS): Likewise.
11777 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11778 (aarch64_register_move_cost): Likewise.
11779 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11780 possible.
11781 * config/aarch64/constraints.md (Uc0): New constraint.
11782
11783 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11784
11785 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11786
11787 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11788
11789 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11790 SECTION_EXCLUDE in XO mapping class.
11791
11792 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11793
11794 PR target/54236
11795 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11796 and handle ne and eq codes.
11797 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11798 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11799 CONST_INT_P. Use reverse_condition.
11800 (sh_split_treg_set_expr): Likewise.
11801
11802 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11803
11804 * config/arm/types.md (type): Add rotate_imm.
11805 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11806 ROR immediate case.
11807 (*rorsi3_insn_uxtw): Likewise.
11808 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11809 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11810 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11811
11812 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11813
11814 PR rtl-optimization/67481
11815 * ifcvt.c (contains_ccmode_rtx_p): New function.
11816 (insn_valid_noce_process_p): Use it.
11817
11818 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11819
11820 PR rtl-optimization/67456
11821 PR rtl-optimization/67464
11822 PR rtl-optimization/67465
11823 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11824 move in the mode of x. Handle combination of complex and simple
11825 block pairs as well as the case when one is empty.
11826
11827 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11828
11829 * doc/gimple.texi: Update references to gimple_statement_base.
11830 * gdbhooks.py: Likewise.
11831 * gimple.h: Likewise.
11832
11833 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11834
11835 * config/sparc/driver-sparc.c: map LEON to leon3
11836
11837 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11838
11839 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11840 and make it inverse to change default
11841 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11842 supervisor mode
11843 * doc/invoke.texi: Document change of default
11844
11845 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11846
11847 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11848 true on %f0 for a target without FPU.
11849 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11850 without FPU.
11851 (untyped_return): Do not load %f0 for a target without FPU.
11852
11853 2015-09-28 Andrew Pinski <apinski@cavium.com>
11854
11855 * config/aarch64/aarch64.md (prefetch):
11856 Change the predicate of operand 0 to register_operand.
11857
11858 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11859
11860 * config/i386/predicates.md (register_sse4nonimm_operand): New
11861 predicate.
11862 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11863 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11864 Use register_sse4nonimm_operand as operand 0 predicate.
11865 (*vec_extractv8hi_sse2): Remove insn pattern.
11866 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11867 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11868
11869 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11870 Kaz Kojima <kkojima@gcc.gnu.org>
11871
11872 PR target/67391
11873 * config/sh/sh-protos.h (sh_lra_p): Declare.
11874 * config/sh/sh.c (sh_lra_p): Make non-static.
11875 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11876 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11877 Expand into addsi3_scr if operands[2] if needed.
11878 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11879 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11880 (addsi3_scr, *addsi3): New insn_and_split patterns.
11881
11882 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11883
11884 PR rtl-optimization/64164
11885 PR tree-optimization/67312
11886 PR middle-end/67340
11887 PR middle-end/67490
11888 PR bootstrap/67597
11889 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11890 (ssa_default_def_partition): Remove.
11891 (get_rtl_for_parm_ssa_default_def): Remove.
11892 (set_rtl): Check that RTL assignments match expectations.
11893 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11894 default def location for params and results. Record SSA names
11895 or types in REG and MEM attrs, respectively.
11896 (set_parm_rtl): New.
11897 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11898 unassigned addresses.
11899 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11900 deferred stack alloc vars.
11901 (expand_used_vars): Skip partitions holding parm default defs.
11902 Move adjust_one_expanded_partition_var loop...
11903 (pass_expand::execute): ... here. Drop redundant assert.
11904 Adjust comments before the final loop over all ssa names.
11905 Require assigned rtl of parms and results to match exactly.
11906 Reset its attributes to match them, not any other variables in
11907 the same partition.
11908 (expand_debug_expr): Use entry value for PARM's default defs
11909 only iff they have zero nondebug uses.
11910 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11911 (get_rtl_for_parm_ssa_default_def): Remove.
11912 (set_parm_rtl): Declare.
11913 * doc/invoke.texi: Improve wording.
11914 * explow.c (promote_decl_mode): Fix promote_function_mode for
11915 result decls not by reference.
11916 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11917 bypass TYPE_MODE to get the actual vector mode.
11918 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11919 2015-08-19's changes as follows. Drop include of
11920 basic-block.h and df.h.
11921 (rtl_for_parm): Remove.
11922 (maybe_reset_rtl_for_parm): Remove.
11923 (parm_in_unassigned_mem_p): Remove.
11924 (use_register_for_decl): Add logic for RESULT_DECLs matching
11925 assign_parms' behavior.
11926 (split_complex_args): Revert.
11927 (assign_parms_augmented_arg_list): Revert. Add comment
11928 referencing the logic above.
11929 (assign_parm_adjust_stack_rtl): Revert.
11930 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11931 of SET_DECL_RTL. Set up a REG if the parm demands so.
11932 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11933 calls into a single set_parm_rtl. Set up a temporary RTL
11934 temporarily for expand_assignment.
11935 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11936 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11937 (assign_bounds): Revert.
11938 (assign_parms): Revert. Use set_parm_rtl.
11939 (allocate_struct_function): Relayout result and parms of
11940 non-abstruct functions.
11941 (expand_function_start): Revert. Use set_parm_rtl. If the
11942 result is not a hard reg, create a pseudo from the promoted
11943 mode of the default def. Promote static chain mode.
11944 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11945 partition_has_default_def. Set up
11946 partitions_for_parm_default_defs.
11947 (finish_out_of_ssa): Remove partition_has_default_def.
11948 Release partitions_for_parm_default_defs.
11949 * tree-outof-ssa.h (struct ssaexpand): Remove
11950 partition_has_default_def. Add
11951 partitions_for_parm_default_defs.
11952 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11953 stor-layout.h.
11954 (build_ssa_conflict_graph): Fix conflict-detection of default
11955 defs of even unused default defs of params and results.
11956 (for_all_parms): New.
11957 (create_default_def): New.
11958 (register_default_def): New.
11959 (coalesce_with_default): New.
11960 (create_outofssa_var_map): Create default defs for all parms
11961 and results, and register their partitions. Add GIMPLE_RETURN
11962 operands as coalesce candidates with results. Add default
11963 defs of each parm or result as coalesce candidates with its
11964 other defs. Mark each result def, and each default def of
11965 parms, as used_in_copy.
11966 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11967 with the ssa names, even anonymous ones. Drop
11968 parm_in_stack_slot_p calls. Require same signedness and
11969 alignment.
11970 (coalesce_ssa_name): Add coalesce candidates for all defs of
11971 each parm and result, even unused ones.
11972 (parm_default_def_partition_arg): New type.
11973 (set_parm_default_def_partition): New.
11974 (get_parm_default_def_partitions): New.
11975 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11976 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11977 parms and results as used.
11978 (verify_live_on_entry): Don't error out just because they're
11979 not live.
11980
11981 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11982
11983 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11984 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11985 (output_fde): Don't output length for debug_frame on AIX.
11986 (output_call_frame_info): Don't output length for debug_frame on AIX.
11987 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11988 HAVE_XCOFF_DWARF_EXTRAS.
11989 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11990 HAVE_XCOFF_DWARF_EXTRAS.
11991 (output_compilation_unit_header): Don't output length on AIX.
11992 (output_pubnames): Don't output length on AIX.
11993 (output_aranges): Delete argument. Compute length locally. Don't
11994 output length on AIX.
11995 (output_line_info): Don't output length on AIX.
11996 (dwarf2out_finish): Don't compute aranges_length.
11997 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11998 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11999 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12000 symbol decoration for AIX.
12001 (rs6000_xcoff_debug_unwind_info): New.
12002 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12003 for SECTION_DEBUG.
12004 (rs6000_xcoff_declare_function_name): Emit different
12005 .function pseudo-op when DWARF2_DEBUG. Don't call
12006 xcoffout_declare_function for DWARF2_DEBUG.
12007 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12008 Redefine.
12009 * config/rs6000/aix71.h: New.
12010 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12011 locations support.
12012 * configure: Regenerate.
12013 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12014 DWARF support.
12015
12016 2015-09-26 Jeff Law <law@redhat.com>
12017
12018 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12019 behaviour.
12020 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12021 behaviour.
12022
12023 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12024 behaviour
12025
12026 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12027 undefined behaviour.
12028
12029 * config/cris/cris.md (asrandb): Fix left shift undefined
12030 behaviour.
12031 (asrandw): Likewise.
12032
12033 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12034
12035 PR target/61578
12036 * lra-constarints.c (match_reload): Check presence of the input pseudo
12037 in the output operand.
12038
12039 2015-09-25 Tobias Burnus <burnus@net-b.de>
12040
12041 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12042
12043 2015-09-25 Tobias Burnus <burnus@net-b.de>
12044
12045 * doc/invoke.texi (-fsanitize): Update URLs.
12046
12047 2015-09-25 Teresa Johnson <tejohnson@google.com>
12048
12049 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12050 if not using profile.
12051
12052 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12053
12054 PR pretty-print/67567
12055 * pretty-print.c (pp_string): Add gcc_checking_assert.
12056 * pretty-print.h (output_buffer_append_r): Likewise.
12057
12058 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12059
12060 PR target/67675
12061 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12062 addr2 individually. Don't emit logical or insn if one is known to
12063 be aligned approriately.
12064 (sh_expand_cmpnstr): Likewise.
12065
12066 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12067
12068 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12069 __builtin_aarch64_fp[sc]r arguments into a register.
12070
12071 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12072
12073 * config.gcc (x86_archs): Replace lakemount with lakemont.
12074 (with_cpu): Likewise.
12075 (with_arch): Likewise.
12076 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12077 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12078 __tune_lakemount__ with __tune_lakemont__.
12079 * config/i386/i386.c (lakemount_cost): Renamed to ...
12080 (lakemont_cost): This.
12081 (m_LAKEMOUNT): Renamed to ...
12082 (m_LAKEMONT): This.
12083 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12084 (processor_target_table): Replace "lakemount" with "lakemont".
12085 (processor_alias_table): Likewise.
12086 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12087 PROCESSOR_LAKEMONT.
12088 (ix86_adjust_cost): Likewise.
12089 (ia32_multipass_dfa_lookahead): Likewise.
12090 * config/i386/i386.h (processor_type): Likewise.
12091 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12092 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12093 Lakemount with Lakemont.
12094
12095 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12096
12097 * config.gcc (x86_archs): Replace iamcu with lakemount.
12098 (with_cpu): Likewise.
12099 (with_arch): Likewise.
12100 * doc/invoke.texi: Likewise.
12101 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12102 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12103 __tune_iamcu__ with __tune_lakemount__.
12104 * config/i386/i386.c (iamcu_cost): Renamed to ...
12105 (lakemount_cost): This.
12106 (m_IAMCU): Renamed to ...
12107 (m_LAKEMOUNT): This.
12108 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12109 (processor_target_table): Replace "iamcu" with "lakemount".
12110 (processor_alias_table): Likewise.
12111 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12112 PROCESSOR_LAKEMOUNT.
12113 (ix86_adjust_cost): Likewise.
12114 (ia32_multipass_dfa_lookahead): Likewise.
12115 * config/i386/i386.h (processor_type): Likewise.
12116 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12117
12118 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12119
12120 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12121 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12122 Declare.
12123 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12124 (pa_expand_compare_and_swap_loop): New.
12125 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12126 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12127 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12128 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12129 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12130 Revise.
12131
12132 2015-09-24 Michael Collison <michael.collison@linaro.org>
12133
12134 PR other/57195
12135 * read-md.c (read_name): Allow mode iterators inside angle
12136 brackets in rtl expressions.
12137
12138 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
12139
12140 PR target/61578
12141 * ira-color.c (update_allocno_cost): Add parameter.
12142 (update_costs_from_allocno): Decrease conflict cost. Pass the new
12143 parameter.
12144
12145 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12146
12147 PR driver/67640
12148 * opts-common.c (prune_options): Discard all -fdiagnostics-color
12149 but the last one, which is moved to the front to be processed
12150 first.
12151 * opts.c (enable_warning_as_error): Reject options that do not
12152 control warnings.
12153
12154 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12155
12156 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12157
12158 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12159
12160 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12161 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12162 (aarch64_cannot_force_const_mem): Likewise.
12163 (aarch64_classify_address): Likewise.
12164 (aarch64_classify_symbolic_expression): Likewise.
12165 (aarch64_print_operand): Likewise.
12166 (aarch64_classify_symbol): Likewise.
12167 (aarch64_mov_operand_p): Likewise.
12168 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12169 (aarch64_mov_operand): Likewise.
12170
12171 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12172
12173 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12174 for info->spe_gp_size.
12175
12176 2015-09-24 Richard Biener <rguenther@suse.de>
12177
12178 PR lto/67699
12179 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12180 abstract origins.
12181
12182 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12183
12184 * tree-object-size.c (plus_stmt_object_size)
12185 (cond_expr_object_size): Change the formal parameters from gimple
12186 to gimple *.
12187 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12188 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12189 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12190
12191 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12192
12193 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12194 Check for ld -type pie on Solaris 11.x and 12.
12195 * configure: Regenerate.
12196 * config.in: Regenerate.
12197
12198 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12199
12200 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12201 (STARTFILE_SPEC): Use it.
12202 (ENDFILE_CRTEND_SPEC): Define.
12203 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12204 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12205 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12206 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12207 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12208 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12209 (ENDFILE_ARCH_SPEC): Define.
12210 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12211
12212 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12213
12214 * configure.ac (gcc_cv_solaris_crts): New test.
12215 * configure. Regenerate.
12216 * config.in: Regenerate.
12217 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12218 HAVE_SOLARIS_CRTS variant.
12219
12220 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12221
12222 * tree-inline.h (count_insns_seq): Delete prototype.
12223 (estimate_num_insns_seq): Define prototype.
12224 * tree-inline.c (count_insns_seq): Delete.
12225 (estimate_num_insns_seq): Remove static qualifier.
12226 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12227 with estimate_num_insns_seq.
12228
12229 2015-09-24 Richard Biener <rguenther@suse.de>
12230
12231 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12232 members.
12233 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12234 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12235 offset.
12236 (ao_ref_init_from_vn_reference): Record clique and base in the
12237 built base.
12238 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12239
12240 2015-09-24 Richard Biener <rguenther@suse.de>
12241
12242 PR tree-optimization/48885
12243 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12244 as not including any restrict tags from other pointers.
12245
12246 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12247
12248 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12249 character when appending to offload_targets.
12250
12251 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12252 offload targets by commas, not colons.
12253 * config.in: Regenerate.
12254 * configure: Likewise.
12255 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12256 instead of setting up the default offload targets here...
12257 (process_command): ..., do it here.
12258 libgomp/
12259 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12260 targets are separated by commas.
12261 * config.h.in: Regenerate.
12262
12263 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12264 Nathan Sidwell <nathan@codesourcery.com>
12265
12266 * omp-low.h (omp_reduction_init_op): Declare.
12267 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12268 (omp_reduction_init): ... here. Call it.
12269 * tree-parloops.c (initialize_reductions): Use
12270 omp_reduction_init_op.
12271
12272 2015-09-23 Richard Biener <rguenther@suse.de>
12273
12274 PR middle-end/67662
12275 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12276 undefined overflow unless they will cancel out.
12277
12278 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12279
12280 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12281 insn emit.
12282
12283 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12284
12285 PR c/49655
12286 * opts.h (write_langs): Declare.
12287 * opts-global.c (write_langs): Make it extern.
12288
12289 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12290
12291 PR target/67391
12292 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12293 overlapping regs when matching the pattern.
12294
12295 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12296
12297 * config/aarch64/aarch64-simd.md
12298 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12299 (aarch64_float_truncate_hi_v4sf_le): New.
12300 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12301
12302 2015-09-23 Richard Biener <rguenther@suse.de>
12303
12304 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12305 representatives for all restrict qualified pointer destinations.
12306
12307 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12308
12309 * config/i386/i386.md (define_code_attr mshift): New.
12310 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12311 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12312 only.
12313 (define_insn "*k<logic><mode>"): Use new iterator name.
12314 (define_insn "*<mshift><mode>3"): New.
12315
12316 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12317
12318 PR middle-end/67649
12319 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12320 mark the block as accessible.
12321
12322 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12323
12324 * function.c (thread_prologue_and_epilogue_insns): Delete
12325 orig_entry_edge argument to try_shrink_wrapping.
12326 * shrink-wrap.c (can_get_prologue): New function.
12327 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12328 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12329 can_get_prologue where needed. Remove code that finds a single
12330 edge for the prologue. Remove code that tests if any reg clobbered
12331 by the prologue is live on the prologue edge. Remove code that finds
12332 the new prologue edge after duplicating blocks. Make a new prologue
12333 block and edge.
12334 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12335
12336 2015-09-22 Jeff Law <law@redhat.com>
12337
12338 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12339 behavior.
12340
12341 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12342
12343 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12344 -Wtemplates, -Wnamespaces): Document.
12345
12346 2015-09-22 Tom de Vries <tom@codesourcery.com>
12347
12348 PR tree-optimization/67671
12349 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12350 pointer references as restrict.
12351
12352 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12353
12354 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12355 'reg + reloc' cases, allow first operand to be non-REG, and use
12356 force_reg() to enforce address pattern.
12357
12358 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12359
12360 PR target/67480
12361 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12362 (define_mode_iterator VI12_AVX_AVX512F): New.
12363 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12364 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12365 (define_insn "*<code><mode>3"): ... Into new pattern using
12366 VI12_AVX_AVX512F iterators without masking.
12367
12368 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12369
12370 * config.gcc: Support "skylake-avx512".
12371 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12372 PROCESSOR_SKYLAKE_AVX512.
12373 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12374 (processor_target_table): Add "skylake-avx512".
12375 (PTA_SKYLAKE_AVX512): Define.
12376 (ix86_option_override_internal): Add "skylake_avx512".
12377 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12378 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12379 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12380 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12381 * doc/invoke.texi (skylake-avx512): New.
12382
12383 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12384
12385 * config/i386/i386.md (define_insn "kunpckhi"): Fix
12386 operand in pattern.
12387 (define_insn "kunpcksi"): Ditto.
12388 (define_insn "kunpckdi"): Ditto.
12389
12390 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12391
12392 * config/i386/i386.md (define_split not/xor SWI1248x): Use
12393 iterator instead of fixed modes.
12394
12395 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12396
12397 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12398 Adjust declaration.
12399 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12400 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
12401 out_result. Update to support update-fetch operations.
12402 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12403 Adjust for change to aarch64_gen_atomic_ldop.
12404 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12405 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12406 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12407 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12408 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12409
12410 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12411
12412 * config/aarch64/aarch64-protos.h
12413 (aarch64_atomic_ldop_supported_p): Declare.
12414 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12415 (enum aarch64_atomic_load_op_code): New.
12416 (aarch64_emit_atomic_load_op): New.
12417 (aarch64_gen_atomic_ldop): Update to support load-operate
12418 patterns.
12419 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12420 to an expander.
12421 (aarch64_atomic_<atomic_optab><mode>): New.
12422 (aarch64_atomic_<atomic_optab><mode>_lse): New.
12423 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12424 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12425 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12426
12427 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12428
12429 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12430 (UNSPECV_ATOMIC_LDOP_OR): New.
12431 (UNSPECV_ATOMIC_LDOP_BIC): New.
12432 (UNSPECV_ATOMIC_LDOP_XOR): New.
12433 (UNSPECV_ATOMIC_LDOP_PLUS): New.
12434 (ATOMIC_LDOP): New.
12435 (atomic_ldop): New.
12436 (aarch64_atomic_load<atomic_ldop><mode>): New.
12437
12438 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12439
12440 * config/aarch64/aarch64.md
12441 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12442 pattern.
12443
12444 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12445
12446 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12447 Declare.
12448 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12449 (aarch64_gen_atomic_ldop): New.
12450 (aarch64_split_atomic_op): Fix whitespace and add a comment.
12451 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12452 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12453 (atomic_exchange<mode>): Replace with an expander.
12454 (aarch64_atomic_exchange<mode>): New.
12455 (aarch64_atomic_exchange<mode>_lse): New.
12456 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12457 (aarch64_atomic_swp<mode>): New.
12458
12459 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12460
12461 * tree-inline.c (expand_call_inline): Use inform for extra note.
12462 Do not give a note with UNKNOWN_LOCATION.
12463 Replace input_location with gimple_location (stmt).
12464 Use true/false instead of TRUE/FALSE.
12465
12466 2015-09-22 Tom de Vries <tom@codesourcery.com>
12467
12468 PR tree-optimization/67666
12469 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12470 with single field non-conservative.
12471
12472 2015-09-21 David S. Miller <davem@davemloft.net>
12473
12474 PR/67622
12475 Revert:
12476 2015-09-11 David S. Miller <davem@davemloft.net>
12477
12478 * config/sparc/constraints.md: Make "U" constraint a real register
12479 constraint.
12480 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12481 (D_MODES, DF_MODES): Add missing cast.
12482 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12483 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12484 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12485 cost to 8.
12486 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12487 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12488 provide these insn when flag_pic.
12489
12490 2015-09-17 David S. Miller <davem@davemloft.net>
12491
12492 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12493 Declare.
12494 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12495 function.
12496 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12497 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12498 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12499 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12500 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12501 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12502 provide when flag_pic.
12503
12504 2015-09-21 Jeff Law <law@redhat.com>
12505
12506 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12507 behavior.
12508
12509 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12510
12511 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12512
12513 2015-09-21 Richard Biener <rguenther@suse.de>
12514
12515 * passes.c (rest_of_decl_compilation): Do not call
12516 dwarf2out_early_global_decl for aliases.
12517
12518 2015-09-21 Richard Biener <rguenther@suse.de>
12519
12520 PR debug/67664
12521 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12522 attribute parameter. Early exit if either DW_AT_const_value
12523 or DW_AT_location are present already.
12524 (gen_variable_die): Adjust caller.
12525 (dwarf2out_late_global_decl): Likewise.
12526
12527 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12528
12529 PR target/67657
12530 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12531 sh_peephole_emit_move_insn): Add new functions.
12532 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12533 sh_peephole_emit_move_insn): Declere them.
12534 * config/sh/sh.md: Use them in various peephole2 patterns.
12535
12536 2015-09-21 Richard Biener <rguenther@suse.de>
12537
12538 PR middle-end/67651
12539 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12540 address with -fno-delete-null-pointer-checks.
12541
12542 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12543
12544 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12545 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12546 (reduc_uplus_v16qi): Remove.
12547
12548 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12549 (reduc_<VEC_reduc_name>_v2df): Remove.
12550 (reduc_<VEC_reduc_name>_v4sf): Remove.
12551 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12552
12553 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12554 gen_ function by removing * prefix.
12555 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12556
12557 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12558
12559 PR middle-end/60832
12560 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12561 Print i_bound without converting it to a tree.
12562
12563 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12564
12565 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12566 operands[4] operands[5] swap with std::swap, removed tmp variable.
12567 (arm_evpc_neon_vzip): Replaced in0/in1 and
12568 out0/out1 swaps with std::swap, removed x variable.
12569 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12570 out0/out1 swaos with std::swap, removed x variable.
12571 (arm_expand_vec_perm_const_1): Replaced
12572 d->op0/d->op1 swap with std::swap, removed x variable.
12573 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12574 out0/out1 swaps with std::swap, removed x variable.
12575
12576 2015-09-21 Jonathan Yong <10walls@gmail.com>
12577
12578 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12579 sysroot/usr/lib/32api for additional win32 libraries,
12580 fixes failing Cygwin bootstrapping.
12581
12582 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12583
12584 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12585
12586 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12587
12588 PR target/67126
12589 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12590 (*mov_t_msb_neg): Rewrite negc pattern.
12591
12592 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12593
12594 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12595 immediate generation code.
12596
12597 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12598
12599 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12600 redundant immediate generation code.
12601
12602 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12603
12604 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12605 (AARCH64_NUM_BITMASKS): Remove.
12606 (aarch64_bitmasks_cmp): Remove.
12607 (aarch64_build_bitmask_table): Remove.
12608
12609 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12610
12611 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12612 slow immediate matching loops with a faster algorithm.
12613
12614 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12615
12616 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12617 faster algorithm.
12618
12619 2015-09-20 Jeff Law <law@redhat.com>
12620
12621 PR tree-optimization/47679
12622 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12623 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12624 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12625 (thread_through_normal_block): Use record_temporary_equivalences.
12626
12627 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12628
12629 * coretypes.h (gimple): Change typedef to be a forward declaration.
12630 * gimple.h (gimple_statement_base): rename to gimple.
12631 * (all functions and types using gimple): Adjust.
12632 * *.[ch]: Likewise.
12633
12634 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12635 David Edelsohn <dje.gcc@gmail.com>
12636
12637 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12638 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12639 (EH_FRAME_THROUGH_COLLECT2): Define.
12640 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12641 (ASM_OUTPUT_DWARF_PCREL): Define.
12642 (ASM_OUTPUT_DWARF_DATAREL): Define.
12643
12644 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12645
12646 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12647 of TARGET_ELF32.
12648
12649 2015-09-18 Jeff Law <law@redhat.com>
12650
12651 PR tree-optimization/47679
12652 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12653 it here ...
12654 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12655 object. Update constructor.
12656 (pass_dominator::execute): Corresponding chagnes to declaration
12657 and initialization of avail_exprs_stack. Update constructor call
12658 for dom_opt_dom_walker object.
12659 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12660 it down to children as needed.
12661 (record_equivalences_from_incoming_edge): Likewise.
12662 (eliminate_redundant_computations): Likewise.
12663 (record_equivalences_from_stmt): Likewise.
12664 (simplify_stmt_for_jump_threading): Likewise.
12665 (record_temporary_equivalences): Likewise.
12666 (optimize_stmt): Likewise.
12667 (dom_opt_dom_walker::thread_across_edge): Update access to
12668 avail_exprs_stack object and pass it to children as needed.
12669 (dom_opt_dom_walker::before_dom_children): Similarly.
12670 (dom_opt_dom_walker::after_dom_children): Similarly.
12671 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12672 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12673 Add avail_expr_stack argument. Pass it to children as needed.
12674 (dummy_simplify): Likewise.
12675 (simplify_control_stmt_condition): Likewise.
12676 (thread_around_empty_blocks): Likewise.
12677 (thread_through_normal_block): Likewise.
12678 (thread_across_edge): Likewise.
12679 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12680 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12681
12682 PR tree-optimization/47679
12683 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12684 it here ...
12685 (dom_opt_dom_walker): New private member holding the const_and_copies
12686 object. Update constructor.
12687 (pass_dominator::execute): Corresponding changes to declaration
12688 and initialization of const_and_copies. Update constructor call
12689 for the dom_opt_dom_walker object.
12690 (record_temporary_equivalences): Accept const_and_copies argument
12691 pass it down to children as needed.
12692 (record_equality): Likewise.
12693 (record_equivalences_from_incoming_edge): Likewise.
12694 (cprop_into_successor_phis, optimize_stmt): Likewise.
12695 (eliminate_redundant_computations): Likewise.
12696 (dom_opt_dom_walker::thread_across_edge): Update access to
12697 const_and_copies object and pass it to children as needed.
12698 (dom_opt_dom_walker::before_dom_children): Similarly.
12699 (dom_opt_dom_walker::after_dom_children): Similarly.
12700
12701 PR tree-optimization/47679
12702 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12703 it into the avail_exprs_stack class.
12704 (pass_dominator::execute): Corresponding changes to declaration
12705 and initialization of avail_exprs. Pass avail_exprs to
12706 dump_dominator_optimization_stats.
12707 (record_cond): Extract avail_exprs from avail_exprs_stack.
12708 (lookup_avail_expr): Similarly.
12709 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12710 position in file.
12711 (dump_dominator_optimization_stats): Make static and prototype.
12712 Add argument for the hash table to dump.
12713 (debug_dominator_optimization_stats): Remove.
12714 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12715 prototype.
12716 (debug_dominator_optimization_stats): Similarly.
12717 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12718 "void" in prototype for pop_to_marker method. Add accessor method
12719 for the underlying avail_exprs table.
12720
12721 * tree-ssa-threadedge.c: Remove trailing whitespace.
12722
12723 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12724
12725 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12726 unsigned.
12727 (pa_ldil_cint_p): Likewise.
12728 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12729 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12730 Update callers.
12731 * config/pa/pa.md: Likewise.
12732
12733 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12734
12735 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12736 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12737 (diagnostic_show_locus): Likewise.
12738 (diagnostic_print_caret_line): Likewise.
12739 * diagnostic-show-locus.c: New file.
12740
12741 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12742
12743 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12744 "back" parameter. Declare label in #if block.
12745
12746 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12747
12748 PR middle-end/67619
12749 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12750 the address to a register.
12751
12752 2015-09-18 Jeff Law <law@redhat.com>
12753
12754 PR tree-optimization/47679
12755 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12756 * tree-ssa-dom.c: Remove unnecessary header includes.
12757 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12758 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12759 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12760 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12761 (pass_phi_only_cprop::execute): Likewise.
12762 (make_pass_phi_only_cprop): Likewise.
12763 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12764 uses of file scoped statics by passing the required objects
12765 as parameters wherever needed.
12766
12767 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12768 David Edelsohn <dje.gcc@gmail.com>
12769
12770 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12771 EH_FRAME_THROUGH_COLLECT2.
12772 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12773 DW_EH_PE_datarel.
12774 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12775 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12776 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12777 * except.c (switch_to_exception_section): Use a read-only section
12778 even if EH_FRAME_SECTION_NAME is undefined.
12779 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12780 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12781 (scan_prog_file): Don't export __dso_handle nor
12782 __gcc_unwind_dbase.
12783 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12784 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12785 (ASM_OUTPUT_DWARF_PCREL): Define.
12786 (ASM_OUTPUT_DWARF_DATAREL): Define.
12787 (EH_FRAME_THROUGH_COLLECT2): Define.
12788 (EH_FRAME_IN_DATA_SECTION): Delete.
12789 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12790 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12791 Declare.
12792 (rs6000_asm_output_dwarf_datarel): Declare.
12793 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12794 (rs6000_aix_asm_output_dwarf_datarel): New.
12795 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12796 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12797 (EH_FRAME_THROUGH_COLLECT2): Define.
12798 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12799 (EH_FRAME_THROUGH_COLLECT2): Define.
12800 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12801 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12802 (EH_FRAME_THROUGH_COLLECT2): New.
12803 (ASM_OUTPUT_DWARF_DATAREL): New.
12804 * doc/tm.texi: Regenerate.
12805
12806 2015-09-18 Richard Biener <rguenther@suse.de>
12807
12808 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12809 we're in early phase.
12810 (schedule_generic_params_dies_gen): Likewise.
12811 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12812 work as possible, retaining unhandled cases.
12813 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12814 clear out generic_type_instances at the end.
12815 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12816 (dwarf2out_early_finish): ... here. Do most of
12817 gen_remaining_tmpl_value_param_die_attribute here.
12818
12819 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12820
12821 PR tree-optimization/67283
12822 * tree-sra.c (type_consists_of_records_p): Rename to...
12823 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12824 (completely_scalarize_record): Rename to...
12825 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12826 (scalarize_elem): New.
12827 (analyze_all_variable_accesses): Follow renamings.
12828
12829 2015-09-18 Richard Biener <rguenther@suse.de>
12830
12831 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12832 in early-dwarf.
12833
12834 2015-09-18 Richard Biener <rguenther@suse.de>
12835
12836 PR tree-optimization/66142
12837 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12838 treat MEM[&x] and x the same.
12839 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12840 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12841 when we simplified sth.
12842 (vn_reference_maybe_forwprop_address): Likewise.
12843 (valueize_refs_1): When we simplified through
12844 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12845 set valueized_anything to true.
12846 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12847 one ref kills the other instead of just a offset-based test.
12848 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12849 for the operand_equal_p test to compare bases and also compare
12850 sizes.
12851
12852 2015-09-17 Christian Bruel <christian.bruel@st.com>
12853
12854 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12855
12856 2015-09-17 Richard Henderson <rth@redhat.com>
12857
12858 PR libstdc++/65913
12859 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12860 pointers that encode the alignment of the object.
12861
12862 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12863
12864 PR rtl-optimization/66790
12865 * df-problems.c (LIVE): Amend documentation.
12866
12867 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12868
12869 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12870 and optabs-tree.o.
12871 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12872 * genopinit.c (main): Add an include guard to insn-opinit.h.
12873 Protect the rtx_code parts with NUM_RTX_CODE.
12874 * optabs.h: Split parts out to...
12875 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12876 * optabs.c: Split parts out to...
12877 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12878 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12879 * fold-const.c: Likewise.
12880 * target-globals.c: Likewise.
12881 * tree-if-conv.c: Likewise.
12882 * tree-ssa-forwprop.c: Likewise.
12883 * tree-ssa-loop-prefetch.c: Likewise.
12884 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12885 Remove unncessary include files.
12886 * tree-ssa-phiopt.c: Likewise.
12887 * tree-ssa-reassoc.c: Likewise.
12888 * tree-switch-conversion.c: Likewise.
12889 * tree-vect-data-refs.c: Likewise.
12890 * tree-vect-generic.c: Likewise.
12891 * tree-vect-loop.c: Likewise.
12892 * tree-vect-patterns.c: Likewise.
12893 * tree-vect-slp.c: Likewise.
12894 * tree-vect-stmts.c: Likewise.
12895 * tree-vrp.c: Likewise.
12896 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12897 rather than optabs.h.
12898 * expr.c: Include optabs-tree.h.
12899 * function.c: Likewise.
12900
12901 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12902
12903 PR middle-end/65958
12904 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12905 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12906 * config/arm/arm.c: Include common/common-target.h.
12907 (use_return_insn): Return 0 if the static chain register was saved
12908 above a non-APCS frame.
12909 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12910 (struct scratch_reg): New.
12911 (get_scratch_register_on_entry): New function.
12912 (release_scratch_register_on_entry): Likewise.
12913 (arm_emit_probe_stack_range): Likewise.
12914 (output_probe_stack_range): Likewise.
12915 (arm_expand_prologue): Factor out code dealing with the IP register
12916 for nested function and adjust it for stack checking.
12917 Invoke arm_emit_probe_stack_range if static builtin stack checking
12918 is enabled.
12919 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12920 is enabled.
12921 (arm_expand_epilogue): Add the saved static chain register, if any, to
12922 the amount of pre-pushed registers to pop.
12923 (arm_frame_pointer_required): Return true if static stack checking is
12924 enabled and we want to catch the exception with the EABI unwinder.
12925 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12926 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12927 * config/arm/arm.md (probe_stack): New insn.
12928 (probe_stack_range): Likewise.
12929
12930 2015-09-17 Richard Biener <rguenther@suse.de>
12931
12932 * genmatch.c (parser::parse_expr): Improve error message
12933 for mis-placed flags.
12934
12935 2015-09-17 Richard Biener <rguenther@suse.de>
12936
12937 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12938 debug hook when we created a varpool node.
12939 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12940 dwarf2out_early_global_decl, when not just add location or
12941 value attributes to existing DIEs.
12942
12943 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12944
12945 * config/aarch64/aarch64.md (copysigndf3): New.
12946 (copysignsf3): Likewise.
12947
12948 2015-09-17 David S. Miller <davem@davemloft.net>
12949
12950 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12951 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12952 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12953 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12954 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12955 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12956 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12957 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12958 provide when flag_pic.
12959
12960 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12961
12962 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12963 object_allocator change.
12964
12965 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12966
12967 PR tree-optimization/66388
12968 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12969 (dump_iv): Dump no_overflow information.
12970 (alloc_iv): Initialize new field for struct iv.
12971 (mark_bivs): Count number of no_overflow bivs.
12972 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12973 functions.
12974 (idx_find_step): Call new functions above.
12975 (add_candidate_1, add_candidate): New paramter.
12976 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12977 (get_computation_aff): Simplify convertion of cand for BIV.
12978 (get_computation_cost_at): Step cand's base if necessary.
12979
12980 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12981
12982 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12983 parameter.
12984 (tree_simplify_using_condition): Ditto.
12985 (simplify_using_initial_conditions): Ditto.
12986 (loop_exits_before_overflow): Pass new argument to function
12987 simplify_using_initial_conditions. Remove case for type conversions
12988 simplification.
12989 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12990 parameter.
12991 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12992 in iv base using loop initial conditions.
12993
12994 2015-09-16 Jeff Law <law@redhat.com>
12995
12996 PR tree-optimization/47679
12997 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12998 (free_all_edge_infos): Use it.
12999 (allocate_edge_info): Free preexisting edge info data.
13000 (pass_dominator::execute): Set up initial edge info structures.
13001 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13002 thread_across_edge.
13003 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13004 If non-null, then push/pop markers appropriately.
13005 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13006 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13007 thread-across_edge.
13008
13009 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13010
13011 * config/ft32/ft32.c: Fix the memory address space predicate.
13012
13013 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13014
13015 PR target/67573
13016 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13017 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13018
13019 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13020
13021 * toplev.h (check_global_declaration): Remove declaration.
13022 * toplev.c (check_global_declaration): Move to ...
13023 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13024 (analyze_functions): Update call.
13025
13026 2015-09-16 David S. Miller <davem@davemloft.net>
13027
13028 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13029 lowpart of a SUBREG has offset zero.
13030
13031 2015-09-16 Jeff Law <law@redhat.com>
13032
13033 PR tree-optimization/47679
13034 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13035 tree-ssa-scopedtables.h.
13036 (struct hashable_expr, class expr_hash_elt): Likewise.
13037 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13038 Move associated methods into tree-ssa-scopedtables.c.
13039 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13040 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13041 (add_hashable_expr): Likewise.
13042 (record_cond): Delete element directly.
13043 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13044 private copy ctor and assignment operator methods.
13045 (expr_elt_hasher): Inline trivial methods.
13046 (initialize_expr_from_cond): Prototype.
13047 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13048 methods that were previously in tree-ssa-dom.c. Improve various
13049 comments.
13050
13051 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13052
13053 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13054
13055 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13056
13057 PR bootstrap/67587
13058 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13059 fixup_partitions.
13060
13061 2015-09-16 Richard Biener <rguenther@suse.de>
13062
13063 PR middle-end/67253
13064 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13065 location of possibly shared trees.
13066
13067 2015-09-16 Richard Biener <rguenther@suse.de>
13068
13069 PR middle-end/67271
13070 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13071
13072 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13073
13074 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13075 offset and size computations instead of HOST_WIDE_INT.
13076
13077 2015-09-16 Richard Biener <rguenther@suse.de>
13078
13079 PR middle-end/67442
13080 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13081 result before builting a tree via wide_int_to_tree.
13082
13083 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13084
13085 * Makefile.in: Add memory-block.cc
13086 (pool_allocator::initialize): Use fixed block size.
13087 (pool_allocator::release): Use memory_block_pool.
13088 (pool_allocator::allocate): Likewise.
13089 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13090 object pools.
13091 * cfg.c (initialize_original_copy_tables): Likewise.
13092 * cselib.c (elt_list_pool, elt_loc_list_pool,
13093 cselib_val_pool): Likewise.
13094 * df-problems.c (df_chain_alloc): Likewise.
13095 * df-scan.c (df_scan_alloc): Likewise.
13096 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13097 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13098 group_info_pool, deferred_change_pool): Likewise.
13099 * et-forest.c (et_nodes, et_occurrences): Likewise.
13100 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13101 ipcp_agg_lattice_pool): Likewise.
13102 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13103 * ipa-profile.c (histogram_pool): Likewise.
13104 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13105 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13106 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13107 * ira-color.c (update_cost_record_pool): Likewise.
13108 * lra-lives.c (lra_live_range_pool): Likewise.
13109 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13110 * memory-block.cc: New file.
13111 * memory-block.h: New file.
13112 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13113 * sched-deps.c (sched_deps_init): Likewise.
13114 * sel-sched-ir.c (sched_lists_pool): Likewise.
13115 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13116 * tree-sra.c (access_pool): Likewise.
13117 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13118 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13119 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13120 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13121 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13122 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13123 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13124 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13125
13126 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13127
13128 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13129 definition.
13130 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13131 call0 ABI.
13132
13133 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13134
13135 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13136 to pass TLS call argument, according to current ABI.
13137 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13138 callx0 for TLS call, according to current ABI.
13139
13140 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13141
13142 * tree-eh.c (lower_try_finally_dup_block): Clear location information
13143 on stack restore statements.
13144 (decide_copy_try_finally): Do not consider a stack restore statement as
13145 coming from sources.
13146
13147 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
13148
13149 * config/alpha/alpha.c (alpha_expand_block_clear): Use
13150 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13151
13152 2015-09-15 Jeff Law <law@redhat.com>
13153
13154 PR tree-optimization/47679
13155 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13156 methods and private members.
13157 (avail_exprs_stack): Similarly. Change type of global
13158 from a pair of expr_hash_elt_t to the new class.
13159 (expr_elt_hasher::hash): Corresponding changes.
13160 (expr_elt_hasher::equal): Similarly.
13161 (avail_expr_hash): Similarly.
13162 (pass_dominator::execute): Similarly.
13163 (dom_opt_dom_walker::thread_across_edge): Similarly.
13164 (record_cond): Similarly.
13165 (dom_opt_dom_walker::before_dom_children): Similarly.
13166 (dom_opt_dom_walker::after_dom_children): Similarly.
13167 (lookup_avail_expr): Likewise.
13168 (initialize_hash_element): Now a expr_hash_elt constructor.
13169 (initialize_hash_element_from_expr): Similarly.
13170 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13171 (free_expr_hash_elt): Call dtor for the element.
13172 (remove_local_expressions_from_table): Now the "pop_to_marker"
13173 method in the available_exprs_stack class.
13174 (avail_expr_stack::record_expr): Method factored out.
13175 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13176 Fix formatting.
13177 (hashable_expr_equal_p): Fix formatting.
13178
13179 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13180
13181 * input.h (location_get_source_line): Drop "expanded_location"
13182 param in favor of a file and line number.
13183 * input.c (location_get_source_line): Likewise.
13184 (dump_location_info): Update for change in signature of
13185 location_get_source_line.
13186 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13187
13188 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13189
13190 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13191 Bump to 4KB for SJLJ exceptions.
13192 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13193 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13194 * doc/tm.texi: Regenerate.
13195
13196 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13197
13198 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13199 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13200 Update prototype.
13201
13202 2015-09-15 Richard Biener <rguenther@suse.de>
13203
13204 PR tree-optimization/67470
13205 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13206 structure for PHI hoisting by inserting a forwarder block
13207 if appropriate.
13208
13209 2015-09-15 Christian Bruel <christian.bruel@st.com>
13210
13211 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13212 (arm_option_print): New function.
13213
13214 2015-09-15 Christian Bruel <christian.bruel@st.com>
13215
13216 PR target/52144
13217 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13218 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13219 Remove flags parameter.
13220 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13221 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13222 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13223 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13224 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13225 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13226 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13227 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13228
13229 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13230
13231 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13232
13233 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13234 AARCH64_VALID_SIMD_DREG_MODE.
13235
13236 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13237
13238 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13239 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13240 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13241 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13242 aarch64_ld4_lane<mode>): Combine together, making...
13243 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13244 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13245 aarch64_st4_lane<mode>): Combine together, making...
13246 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13247 * config/aarch64/iterators.md (nregs): Add comment.
13248
13249 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13250
13251 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13252 Change operand mode from <V_TWO_ELEM> to BLK.
13253 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13254 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13255 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13256 (aarch64_ld2_lane<mode>): Likewise.
13257 (aarch64_st2_lane<VQ:mode>): Likewise.
13258 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13259
13260 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13261
13262 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13263 Change operand mode from <V_FOUR_ELEM> to BLK.
13264 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13265 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13266 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13267 (aarch64_ld4_lane<mode>): Likewise.
13268 (aarch64_st4_lane<mode>): Likewise.
13269 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13270
13271 2015-09-15 Richard Biener <rguenther@suse.de>
13272
13273 PR middle-end/67563
13274 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13275 transfer EH info from old to new stmt.
13276 (replace_call_with_value): Likewise.
13277 (replace_call_with_call_and_fold): Likewise.
13278 (gimple_fold_builtin_memory_op): Likewise.
13279 (gimple_fold_builtin_memset): Likewise.
13280 (gimple_fold_builtin_stpcpy): Likewise.
13281 (gimple_fold_call): Likewise.
13282
13283 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13284
13285 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13286 comment.
13287 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13288 (aarch64_simd_intEI_type_node): Likewise.
13289 (aarch64_simd_builtin_std_type): Remove EImode case.
13290 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13291 * config/aarch64/aarch64-modes.def: Remove EImode.
13292
13293 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13294
13295 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13296 Change operand mode from <V_THREE_ELEM> to BLK.
13297 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13298 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13299 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13300 (aarch64_ld3_lane<mode>): Likewise.
13301 (aarch64_st3_lane<mode>): Likewise.
13302 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13303
13304 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13305
13306 * config/aarch64/aarch64-simd.md
13307 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13308 Change all TImode operands to BLKmode.
13309 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13310 Change all EImode operands to BLKmode.
13311 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13312 Change all OImode operands to BLKmode.
13313
13314 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13315 and call set_mem_size.
13316 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13317
13318 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13319
13320 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13321
13322 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13323 to...
13324 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13325
13326 (vec_store_lanesci_lane<mode>): Rename to...
13327 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13328
13329 (vec_store_lanesxi_lane<mode>): Rename to...
13330 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13331
13332 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13333 aarch64_st4_lane<mode>): Follow renaming.
13334
13335 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13336
13337 * config/s390/s390.c (s390_const_operand_ok): Add missing
13338 brackets.
13339
13340 2015-09-15 Richard Biener <rguenther@suse.de>
13341
13342 PR lto/67568
13343 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13344 initialize.
13345 * lto-streamer-out.c (clear_line_info): Likewise.
13346
13347 2015-09-15 Richard Biener <rguenther@suse.de>
13348
13349 * doc/match-and-simplify.texi: Fix wording.
13350
13351 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13352
13353 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13354 unnecessary type conversion in op1.
13355
13356 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13357
13358 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13359 (dup_block_and_redirect): Delete function.
13360 (can_dup_for_shrink_wrapping): New function.
13361 (fix_fake_fallthrough_edge): New function.
13362 (try_shrink_wrapping): Rewrite function.
13363 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13364
13365 2015-09-14 Rich Felker <dalias@libc.org>
13366
13367 * configure.ac: Change target pattern for sh TLS support
13368 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13369 * configure: Regenerate.
13370
13371 2015-09-14 Jeff Law <law@redhat.com>
13372
13373 PR tree-optimization/47679
13374 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13375 type rather than void *.
13376
13377 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13378
13379 PR fortran/67460
13380 * diagnostic.c (diagnostic_initialize): Do not set
13381 some_warnings_are_errors.
13382 (diagnostic_finish): Use DK_WERROR count instead.
13383 (diagnostic_report_diagnostic): Do not set
13384 some_warnings_are_errors.
13385 * diagnostic.h (struct diagnostic_context): Remove
13386 some_warnings_are_errors.
13387
13388 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
13389
13390 * config/sparc/predicates.md (const_all_ones_operand): Use
13391 CONSTM1_RTX to simplify definition.
13392
13393 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
13394
13395 PR target/67061
13396 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13397 Handle call insns.
13398
13399 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
13400
13401 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13402 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13403 OPT_fshow_column to handled saved option cases.
13404 (append_compiler_options): Do not skip the above added options.
13405
13406 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13407
13408 PR target/63304
13409 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13410 nopcrelative_literal_loads.
13411 (aarch64_classify_address): Likewise.
13412 (aarch64_constant_pool_reload_icode): Define.
13413 (aarch64_secondary_reload): Handle secondary reloads for
13414 literal pools.
13415 (aarch64_override_options): Handle nopcrelative_literal_loads.
13416 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13417 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13418 Define.
13419 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13420 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13421 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13422 predicate.
13423 * doc/invoke.texi (mpc-relative-literal-loads): Document.
13424
13425 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
13426
13427 PR middle-end/67401
13428 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13429 sync_compare_and_swap_optab libcall to target_oval.
13430
13431 2015-09-14 Marek Polacek <polacek@redhat.com>
13432
13433 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13434 value.
13435 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13436
13437 2015-09-11 Mark Wielaard <mjw@redhat.com>
13438
13439 PR c/28901
13440 * toplev.c (check_global_declaration): Check and use
13441 warn_unused_const_variable.
13442 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13443 (-Wunused-variable): Remove non-constant. For C implies
13444 -Wunused-const-variable.
13445 (-Wunused-const-variable): New.
13446
13447 2015-09-14 Richard Biener <rguenther@suse.de>
13448
13449 * doc/match-and-simplify.texi: Update for changed syntax
13450 of inner ifs and the new switch expression.
13451
13452 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13453
13454 * config/i386/haswell.md: New file describing Haswell pipeline.
13455 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13456 haswell-like processors.
13457 (ix86_reassociation_width): Increase reassociation width for 64-bit
13458 Haswell processor family.
13459 * config/i386/i386.md: Introduce haswell cpu and include new md file.
13460
13461 2015-09-14 Richard Biener <rguenther@suse.de>
13462
13463 * doc/match-and-simplify.texi: Fixup some formatting issues
13464 and document the 's' flag.
13465
13466 2015-09-13 Olivier Hainque <hainque@adacore.com>
13467 Eric Botcazou <ebotcazou@adacore.com>
13468
13469 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13470 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
13471 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13472 (TARGET_CPU_gr5): Likewise.
13473 (TARGET_CPU_gr6): Likewise.
13474 (MULTILIB_DEFAULTS): Likewise.
13475 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13476 for mcpu=gr5 and mcpu=gr6.
13477 (MULTILIB_DIRNAMES): Adjust accordingly.
13478
13479 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13480
13481 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13482 (mem_ref_p): Likewise.
13483 (outermost_indep_loop): Adjust.
13484 (mem_ref_in_stmt): Likewise.
13485 (determine_max_movement): Likewise.
13486 (mem_ref_alloc): Likewise.
13487 (record_mem_ref_loc): Likewise.
13488 (set_ref_stored_in_loop): Likewise.
13489 (mark_ref_stored): Likewise.
13490 (gather_mem_refs_stmt): Likewise.
13491 (mem_refs_may_alias_p): Likewise.
13492 (for_all_locs_in_loop): Likewise.
13493 (struct rewrite_mem_ref_loc): Likewise.
13494 (rewrite_mem_refs): Likewise.
13495 (struct first_mem_ref_loc_1): Likewise.
13496 (first_mem_ref_loc): Likewise.
13497 (struct sm_set_flag_if_changed): Likewise.
13498 (execute_sm_if_changed_flag_set): Likewise.
13499 (execute_sm): Likewise.
13500 (hoist_memory_references):
13501 (struct ref_always_accessed): Likewise.
13502 (ref_always_accessed_p): Likewise.
13503 (refs_independent_p): Likewise.
13504 (record_dep_loop): Likewise.
13505 (ref_indep_loop_p_1): Likewise.
13506 (ref_indep_loop_p_2): Likewise.
13507 (ref_indep_loop_p): Likewise.
13508 (can_sm_ref_p): Likewise.
13509 (find_refs_for_sm): Likewise.
13510 (tree_ssa_lim_finalize): Likewise.
13511
13512 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13513
13514 * dwarf2out.c (dw_attr_ref): Remove typedef.
13515 (dw_line_info_ref): Likewise.
13516 (pubname_ref): Likewise.
13517 (dw_ranges_ref): Likewise.
13518 (dw_ranges_by_label_ref): Likewise.
13519 (comdat_type_node_ref): Likewise.
13520 (get_AT): Adjust.
13521 (get_AT_low_pc): Likewise.
13522 (get_AT_hi_pc): Likewise.
13523 (get_AT_string): Likewise.
13524 (get_AT_flag): Likewise.
13525 (get_AT_unsigned): Likewise.
13526 (get_AT_ref): Likewise.
13527 (get_AT_file): Likewise.
13528 (remove_AT): Likewise.
13529 (print_die): Likewise.
13530 (check_die): Likewise.
13531 (die_checksum): Likewise.
13532 (attr_checksum_ordered): Likewise.
13533 (struct checksum_attributes): Likewise.
13534 (collect_checksum_attributes): Likewise.
13535 (die_checksum_ordered): Likewise.
13536 (same_die_p): Likewise.
13537 (is_declaration_die): Likewise.
13538 (clone_die): Likewise.
13539 (clone_as_declaration): Likewise.
13540 (copy_declaration_context): Likewise.
13541 (break_out_comdat_types): Likewise.
13542 (copy_decls_walk): Likewise.
13543 (output_location_lists): Likewise.
13544 (external_ref_hasher::hash): Likewise.
13545 (optimize_external_refs_1): Likewise.
13546 (build_abbrev_table): Likewise.
13547 (size_of_die): Likewise.
13548 (unmark_all_dies): Likewise.
13549 (size_of_pubnames): Likewise.
13550 (output_die_abbrevs): Likewise.
13551 (output_die): Likewise.
13552 (output_pubnames): Likewise.
13553 (add_ranges_num): Likewise.
13554 (add_ranges_by_labels): Likewise.
13555 (add_high_low_attributes): Likewise.
13556 (gen_producer_string): Likewise.
13557 (dwarf2out_set_name): Likewise.
13558 (new_line_info_table): Likewise.
13559 (prune_unused_types_walk_attribs): Likewise.
13560 (prune_unused_types_update_strings): Likewise.
13561 (prune_unused_types): Likewise.
13562 (resolve_addr): Likewise.
13563 (optimize_location_lists_1): Likewise.
13564 (index_location_lists): Likewise.
13565 (dwarf2out_finish): Likewise.
13566
13567 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13568
13569 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13570
13571 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13572
13573 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13574 (dump_asserts_for): Adjust.
13575 (register_new_assert_for): Likewise.
13576 (process_assert_insertions): Likewise.
13577 (insert_range_assertions): Likewise.
13578
13579 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13580
13581 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13582 and remove typedef.
13583 (new_temp_expr_table): Adjust.
13584 (free_temp_expr_table): Likewise.
13585 (version_to_be_replaced_p): Likewise.
13586 (make_dependent_on_partition): Likewise.
13587 (add_to_partition_kill_list): Likewise.
13588 (remove_from_partition_kill_list): Likewise.
13589 (add_dependence): Likewise.
13590 (finished_with_expr): Likewise.
13591 (process_replaceable): Likewise.
13592 (kill_expr): Likewise.
13593 (kill_virtual_exprs): Likewise.
13594 (mark_replaceable): Likewise.
13595 (find_replaceable_in_bb): Likewise.
13596 (find_replaceable_exprs): Likewise.
13597 (debug_ter): Likewise.
13598
13599 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13600
13601 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13602 (struct btr_user): Rename from btr_user_s.
13603 (struct btr_def): Rename from btr_def_s.
13604 (find_btr_def_group): Adjust.
13605 (add_btr_def): Likewise.
13606 (new_btr_user): Likewise.
13607 (note_other_use_this_block): Likewise.
13608 (compute_defs_uses_and_gen): Likewise.
13609 (link_btr_uses): Likewise.
13610 (build_btr_def_use_webs): Likewise.
13611 (block_at_edge_of_live_range_p): Likewise.
13612 (btr_def_live_range): Likewise.
13613 (combine_btr_defs): Likewise.
13614 (move_btr_def): Likewise.
13615 (migrate_btr_def): Likewise.
13616 (migrate_btr_defs): Likewise.
13617
13618 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13619
13620 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13621 (shared_hash): Remove typedef.
13622 (struct dataflow_set): Adjust.
13623 (shared_hash_unshare): Likewise.
13624 (dataflow_set_merge): Likewise.
13625 (vt_initialize): Likewise.
13626 (vt_finalize): Likewise.
13627
13628 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13629
13630 * var-tracking.c (struct location_chain): Rename from
13631 location_chain_def.
13632 (struct variable_part): Adjust.
13633 (variable_htab_free): Likewise.
13634 (unshare_variable): Likewise.
13635 (get_init_value): Likewise.
13636 (get_addr_from_local_cache): Likewise.
13637 (drop_overlapping_mem_locs): Likewise.
13638 (val_reset): Likewise.
13639 (struct variable_union_info): Likewise.
13640 (variable_union): Likewise.
13641 (find_loc_in_1pdv): Likewise.
13642 (insert_into_intersection): Likewise.
13643 (intersect_loc_chains): Likewise.
13644 (canonicalize_loc_order_check): Likewise.
13645 (canonicalize_values_mark): Likewise.
13646 (canonicalize_values_star): Likewise.
13647 (canonicalize_vars_star): Likewise.
13648 (variable_merge_over_cur): Likewise.
13649 (remove_duplicate_values): Likewise.
13650 (variable_post_merge_new_vals): Likewise.
13651 (variable_post_merge_perm_vals): Likewise.
13652 (find_mem_expr_in_1pdv): Likewise.
13653 (dataflow_set_preserve_mem_locs): Likewise.
13654 (dataflow_set_remove_mem_locs): Likewise.
13655 (variable_part_different_p): Likewise.
13656 (onepart_variable_different_p): Likewise.
13657 (find_src_set_src): Likewise.
13658 (dump_var): Likewise.
13659 (set_slot_part): Likewise.
13660 (clobber_slot_part): Likewise.
13661 (delete_slot_part): Likewise.
13662 (vt_expand_var_loc_chain): Likewise.
13663 (emit_note_insn_var_location): Likewise.
13664 (vt_finalize): Likewise.
13665
13666 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13667
13668 * dse.c (store_info_t): Remove typedef.
13669 (group_info_t): Likewise.
13670 (const_group_info_t): Likewise.
13671 (deferred_change_t): Likewise.
13672 (get_group_info): Adjust.
13673 (free_store_info): Likewise.
13674 (canon_address): Likewise.
13675 (clear_rhs_from_active_local_stores): Likewise.
13676 (record_store): Likewise.
13677 (replace_read): Likewise.
13678 (check_mem_read_rtx): Likewise.
13679 (scan_insn): Likewise.
13680 (remove_useless_values): Likewise.
13681 (dse_step1): Likewise.
13682 (dse_step2_init): Likewise.
13683 (dse_step2_nospill): Likewise.
13684 (scan_stores_nospill): Likewise.
13685 (scan_reads_nospill): Likewise.
13686 (dse_step3_exit_block_scan): Likewise.
13687 (dse_step3): Likewise.
13688 (dse_step5_nospill): Likewise.
13689 (dse_step6): Likewise.
13690
13691 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13692
13693 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13694 (alias_set_entry): Remove typedef.
13695 (alias_set_subset_of): Adjust.
13696 (alias_sets_conflict_p): Likewise.
13697 (init_alias_set_entry): Likewise.
13698 (get_alias_set): Likewise.
13699 (new_alias_set): Likewise.
13700 (record_alias_subset): Likewise.
13701
13702 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13703
13704 * doc/install.texi (Downloading the source): Mark up
13705 contrib/download_prerequisites properly and drop leading "./".
13706
13707 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13708
13709 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13710 * config/lm32/lm32.h: Likewise.
13711 * config/mep/mep.h: Likewise.
13712 * config/visium/visium.h: Likewise.
13713 * system.h: Poison STRUCT_VALUE macro.
13714
13715 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13716
13717 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13718 CONSTANT_P operands.
13719
13720 2015-09-11 David S. Miller <davem@davemloft.net>
13721
13722 * config/sparc/constraints.md: Make "U" constraint a real register
13723 constraint.
13724 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13725 (D_MODES, DF_MODES): Add missing cast.
13726 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13727 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13728 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13729 cost to 8.
13730 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13731 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13732 provide these insn when flag_pic.
13733
13734 2015-09-11 Jeff Law <law@redhat.com>
13735
13736 PR tree-optimization/47679
13737 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13738 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13739 member with m_. Update inline member functions as necessary. Add
13740 toplevel comment.
13741 * tree-ssa-scopedtables.c: Update const_and_copies's member
13742 functions to use m_ prefix to access the stack.
13743
13744 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13745
13746 * graphite-optimize-isl.c (disable_tiling): Remove.
13747 (get_schedule_for_band): Do not use disable_tiling.
13748 (get_prevector_map): Delete function.
13749 (enable_polly_vector): Remove.
13750 (get_schedule_for_band_list): Remove dead code.
13751
13752 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13753
13754 * graphite-optimize-isl.c (get_tile_map): Refactor.
13755 (get_schedule_for_band): Same.
13756 (getScheduleForBand): Same.
13757 (get_prevector_map): Same.
13758 (get_schedule_for_band_list): Same.
13759 (get_schedule_map): Same.
13760 (get_single_map): Same.
13761 (apply_schedule_map_to_scop): Same.
13762 (optimize_isl): Same.
13763
13764 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13765
13766 PR target/63304
13767 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13768 (movtf): Delete.
13769 * config/aarch64/iterators.md (GPF_TF_F16): New.
13770 (GPF_F16): Delete.
13771
13772 2015-09-10 Nathan Sidwell <nathan@acm.org>
13773
13774 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13775 (nvptx_reorg): Adjust comments.
13776
13777 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13778
13779 PR bootstrap/67363
13780 * configure.ac: Check if setenv and unsetenv are declared.
13781 * configure: Rebuild.
13782 * config.in: Rebuild.
13783 * system.h: Declare setenv and unsetenv if not declared.
13784
13785 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13786
13787 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13788 commentary to simplify permute mask adjustment equation.
13789 (special_handling_values): Add SH_VPERM.
13790 (const_load_sequence_p): New function.
13791 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13792 the mask loaded from the constant pool.
13793 (adjust_vperm): New function.
13794 (handle_special_swappables): Call adjust_vperm.
13795 (dump_swap_insn_table): Handle SH_VPERM.
13796
13797 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13798
13799 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13800 * shrink-wrap.h (requires_stack_frame_p): Put back.
13801
13802 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13803
13804 * reload1.c (elimination_costs_in_insn): Locally turn
13805 -Wmaybe-uninitialized into a warning.
13806
13807 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13808
13809 * shrink-wrap.c (requires_stack_frame_p): Make static.
13810 (prepare_shrink_wrap): Likewise.
13811 (dup_block_and_redirect): Likewise.
13812 * shrink-wrap.h: Remove declarations of those functions.
13813
13814 2015-09-10 Mark Wielaard <mjw@redhat.com>
13815
13816 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13817
13818 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13819
13820 PR target/67506
13821 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13822 missing simplify_gen_subreg.
13823
13824 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13825
13826 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13827 the vector element is bigger than 64 bit.
13828
13829 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13830
13831 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13832 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13833
13834 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13835
13836 * config/s390/s390.c: Add V1TImode to constant pool modes.
13837
13838 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13839
13840 PR target/67439
13841 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13842 predicate. Set predicable_short_it attr to "no".
13843
13844 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13845
13846 PR rtl-optimization/67421
13847 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13848 left wide shift tranformation.
13849
13850 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13851
13852 * common/config/arc/arc-common.c: Remove references to A5.
13853 * config/arc/arc-opts.h: Likewise.
13854 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13855 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13856 * config/arc/t-arc-newlib: Likewise.
13857
13858 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13859
13860 * config/arc/arc.md (length): Fix attribute length for conditional
13861 executed instructions with long immediate.
13862
13863 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13864
13865 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13866 type for second alternative.
13867
13868 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13869
13870 * doc/invoke.texi (Downloading GCC): Mention
13871 contrib/download_prerequisites script.
13872
13873 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13874
13875 PR c++/67523
13876 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13877 for combined loop, assert seen_error () and return GS_ERROR.
13878
13879 PR middle-end/67521
13880 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13881 if decl is already in outer->variables.
13882
13883 PR middle-end/67517
13884 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13885 asserting that decl is not specified in octx->variables,
13886 break out of the loop if it is.
13887
13888 PR c++/67514
13889 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13890 iterator is not explicitly determined, but is defined inside
13891 of the combined workshare region, handle it like if it has
13892 DECL_EXPR in OMP_FOR_PRE_BODY.
13893
13894 2015-09-09 Nathan Sidwell <nathan@acm.org>
13895
13896 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13897 (*cmp<mode>): Add assembler spacing.
13898 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13899 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13900 level.
13901 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13902 (nvptx_expand_call): Likewise.
13903 (nvptx_output_call_insn): Likewise.
13904 (nvptx_reorg_subreg): Add spacing.
13905
13906 2015-09-09 Marek Polacek <polacek@redhat.com>
13907
13908 PR middle-end/67512
13909 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13910 for comparisons.
13911
13912 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13913
13914 PR c++/53184
13915 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13916
13917 2015-09-09 Tom de Vries <tom@codesourcery.com>
13918
13919 * params-list.h: Add missing copyright notice.
13920
13921 2015-09-09 Nathan Sidwell <nathan@acm.org>
13922
13923 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13924 sel_truesi, not andsi.
13925
13926 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13927
13928 * config/arm/arm.md (*subsi3_compare0): Rename to...
13929 (subsi3_compare0): ... This.
13930 (modsi3): New define_expand.
13931 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13932 when operand is power of 2.
13933
13934 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13935
13936 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13937 (*neg<mode>2_compare0): Rename to...
13938 (neg<mode>2_compare0): ... This.
13939 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13940 Move check for speed inside the if-then-elses. Reflect
13941 CSNEG sequence in MOD by power of 2 case.
13942
13943 2015-09-09 Alan Modra <amodra@gmail.com>
13944
13945 PR target/67378
13946 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13947 reload replacement for PRE_MODIFY address reg.
13948
13949 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13950
13951 PR tree-optimization/53852
13952 * config.in: Regenerate.
13953 * configure: Regenerate.
13954 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13955 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13956 PARAM_MAX_ISL_OPERATIONS is reached.
13957 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13958 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13959 result equal to isl_stat_ok as the status now can be isl_error_quota.
13960 (subtract_commutative_associative_deps): Same.
13961 (compute_deps): Same.
13962
13963 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13964 Sebastian Pop <s.pop@samsung.com>
13965
13966 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13967 Return the parameter if it was saved in corresponding
13968 parameter_rename_map of the region.
13969 (copy_def): Copy def from sese region to the newly created region.
13970 (copy_internal_parameters): Copy all the internal parameters defined
13971 within a region to the newly created region.
13972 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13973 translating isl to gimple.
13974 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13975 the loop-nest does not have any data-references.
13976 (build_graphite_scops): Create a scop only when there is at least one
13977 loop inside it.
13978 (contains_only_close_phi_nodes): Deleted.
13979 (print_graphite_scop_statistics): Deleted
13980 (print_graphite_statistics): Deleted
13981 (limit_scops): Deleted.
13982 (build_scops): Removed call to limit_scops.
13983 * sese.c (new_sese): Construct.
13984 (free_sese): Destruct.
13985 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13986 added.
13987 (set_rename): Pass sese region so that parameters inside the region can
13988 be added to its parameter_rename_map.
13989 (rename_uses): Pass sese region.
13990 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13991 generated in the header of the scop. For each SSA_NAME in the
13992 parameter_rename_map rename its usage.
13993 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13994 sese region.
13995 (scalar_evolution_in_region): If the tree t is invariant just return t.
13996 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13997 struct sese to keep track of all the parameters which need renaming.
13998 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13999 any data-refs.
14000 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14001
14002 2015-09-08 Tom de Vries <tom@codesourcery.com>
14003
14004 * Makefile.in (generated_files): Add params.list.
14005 (params.list, s-params.list): Add rule.
14006 * params.h (enum compiler_param): Include params-list.h. Move define
14007 DEFPARAM, include params.def and undef DEFPARAM ...
14008 * params-list.h: ... here. New file.
14009
14010 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14011
14012 * pretty-print.h (printer_fn): Fix typo in comment.
14013
14014 2015-09-07 Jeff Law <law@redhat.com>
14015
14016 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14017
14018 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14019
14020 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14021 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14022 (arm_neon_fp16_hw): New.
14023
14024 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14025
14026 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14027 UNITS_PER_WORD >= 4.
14028
14029 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14030
14031 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14032 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14033 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14034 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14035 (aarch64_float_extend_lo_v2df): Rename to...
14036 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14037
14038 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14039 (float_extend_lo): Add v4sf.
14040
14041 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14042 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14043 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14044 (Vwide): New mode_attr.
14045
14046 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14047
14048 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14049 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14050 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14051 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14052 V4HF and V8HF variants to iterator.
14053
14054 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14055
14056 * config/aarch64/iterators.md (VDQF_F16): New.
14057 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14058
14059 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14060
14061 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14062 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14063 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14064 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14065 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14066 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14067 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14068 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14069 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14070 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14071 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14072 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14073 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14074 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14075 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14076 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14077 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14078 vld1q_dup_f16): New.
14079
14080 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14081
14082 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14083 Reparameterize to...
14084 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14085 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14086 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14087
14088 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14089 v8hf variant.
14090 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14091
14092 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14093
14094 * config/aarch64/iterators.md (VDF, Vdtype): New.
14095 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14096
14097 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14098
14099 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14100 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14101 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14102 Add __builtin_aarch64_simd_hf.
14103 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14104 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14105 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14106 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14107 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14108 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14109 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14110 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14111 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14112
14113 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14114 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14115 (VDC, Vdbl): Add V4HF.
14116
14117 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14118
14119 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14120 V4HFmode and V8HFmode.
14121 (aarch64_split_simd_move): Add case for V8HFmode.
14122 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14123 (aarch64_simd_builtin_std_type): Handle HFmode.
14124 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14125
14126 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14127 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14128 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14129
14130 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14131 Float16x8_t.
14132
14133 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14134 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14135 New typedefs.
14136 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14137 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14138 vst1q_lane_f16): New.
14139 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14140 (VALLDI_F16, VALL_F16): New.
14141 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14142 Add cases for V4HF and V8HF.
14143 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14144
14145 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14146
14147 * config/arm/arm-builtins.c (VAR11, VAR12): New.
14148 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14149 vld4_dup): Add v4hf variant.
14150 (vget_high, vget_low): Add v8hf variant.
14151 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14152 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14153 v4hf and v8hf variants.
14154
14155 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14156 (VDX): Add V4HF.
14157 (V_DOUBLE): Add case for V4HF.
14158 (VQX): Add V8HF.
14159 (V_HALF): Add case for V8HF.
14160 (VDQX): Add V4HF, V8HF.
14161 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14162 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14163
14164 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14165 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14166 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14167 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14168 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14169 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14170 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14171 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14172 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14173
14174 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14175 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14176 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14177 Change VDX to VD_RE.
14178
14179 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14180 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14181 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14182
14183 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14184 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14185 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14186 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14187 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14188 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14189 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14190 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14191 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14192
14193 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14194
14195 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14196 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14197 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14198 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14199 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14200 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14201 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14202 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14203 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14204 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14205 New.
14206
14207 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14208
14209 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14210
14211 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14212
14213 * config/arm/arm-builtins.c (v8hf_UP): New.
14214 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14215
14216 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14217
14218 * config/arm/arm_neon.h (float16x8_t): New typedef.
14219
14220 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14221
14222 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14223 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14224 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14225 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14226 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14227 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14228 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14229 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14230 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14231 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14232
14233 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14234
14235 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14236 non-alphanumeric characters in the symbol name.
14237
14238 2015-09-07 Marek Polacek <polacek@redhat.com>
14239
14240 PR inline-asm/67448
14241 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14242 a memory input.
14243
14244 2015-09-07 Marek Polacek <polacek@redhat.com>
14245
14246 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14247
14248 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14249
14250 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14251 not warn.
14252
14253 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14254
14255 PR middle-end/67452
14256 * tree-ssa-live.c: Include cfgloop.h.
14257 (remove_unused_locals): Clear loop->simduid if simduid is about
14258 to be removed from cfun->local_decls.
14259
14260 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14261
14262 PR target/65210
14263 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14264 attribute as well.
14265
14266 2015-09-04 Tom de Vries <tom@codesourcery.com>
14267
14268 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14269
14270 2015-09-04 Jeff Law <law@redhat.com>
14271
14272 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14273 unnecessary constructor. It's now trivial and implemented inside...
14274 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14275 constructor. Add comments to various methods. Remove unused
14276 private fields.
14277 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14278 * tree-vrp.c (identify_jump_threads): Likewise.
14279 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14280 indentation issues.
14281 (thread_across_edge): Similarly.
14282 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14283 arguments in constructor call.
14284
14285 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14286
14287 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14288 temp path contains a '-'.
14289
14290 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14291 Petr Murzin <petr.murzin@intel.com>
14292 Kirill Yukhin <kirill.yukhin@intel.com>
14293
14294 * config/i386/i386-builtin-types.def
14295 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14296 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14297 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14298 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14299 * config/i386/i386.c
14300 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14301 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14302 IX86_BUILTIN_SCATTERALTDIV16SI.
14303 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14304 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14305 __builtin_ia32_scatteraltdiv8si.
14306 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14307 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14308 IX86_BUILTIN_SCATTERALTDIV16SI.
14309 (ix86_vectorize_builtin_scatter): New.
14310 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14311 ix86_vectorize_builtin_scatter.
14312
14313 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14314 Petr Murzin <petr.murzin@intel.com>
14315 Kirill Yukhin <kirill.yukhin@intel.com>
14316
14317 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14318 * doc/tm.texi: Regenerate.
14319 * target.def: Add scatter builtin.
14320 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14321 for loads/stores in case of gather/scatter accordingly.
14322 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14323 STMT_VINFO_GATHER_P(S).
14324 (vect_check_gather): Rename to ...
14325 (vect_check_gather_scatter): this.
14326 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14327 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14328 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14329 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14330 variable and new checkings for it accordingly.
14331 * tree-vect-stmts.c
14332 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14333 STMT_VINFO_GATHER_P(S).
14334 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14335 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14336
14337 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14338
14339 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14340 define_insn.
14341 (mulv16qi3): New define_expand.
14342
14343 2015-09-03 Martin Sebor <msebor@redhat.com>
14344
14345 PR c/66516
14346 * doc/extend.texi (Other Builtins): Document when the address
14347 of a built-in function can be taken.
14348
14349 2015-09-03 Richard Biener <rguenther@suse.de>
14350
14351 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14352 (dwarf2out_early_finish): ... here.
14353 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14354 flush_limbo_die_list. Assert we have no deferred asm names.
14355
14356 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14357
14358 * optabs.c (expand_binop): Don't create a broadcast vector with a
14359 source element wider than the inner mode.
14360
14361 2015-09-03 Richard Biener <rguenther@suse.de>
14362
14363 * varasm.c (output_constant): Use fold_convert instead of
14364 wide_int_to_tree.
14365
14366 2015-09-03 Tom de Vries <tom@codesourcery.com>
14367
14368 PR tree-optimization/65637
14369 * omp-low.c (expand_omp_for_static_chunk): Handle case that
14370 fin_bb has 2 predecessors.
14371
14372 2015-09-03 Tom de Vries <tom@codesourcery.com>
14373
14374 PR tree-optimization/65637
14375 * omp-low.c (find_phi_with_arg_on_edge): New function.
14376 (expand_omp_for_static_chunk): Fix inner loop phi.
14377
14378 2015-09-03 Tom de Vries <tom@codesourcery.com>
14379
14380 PR tree-optimization/65637
14381 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14382 that head is NULL.
14383
14384 2015-09-03 Tom de Vries <tom@codesourcery.com>
14385
14386 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14387
14388 2015-09-03 Tom de Vries <tom@codesourcery.com>
14389
14390 * doc/invoke.texi (parloops-chunk-size): Add item.
14391 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14392 * tree-parloops.c: Include params.h.
14393 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14394 param parloops-chunk-size is used.
14395
14396 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14397
14398 PR middle-end/67351
14399 * fold-const.c (fold_binary_loc) : Move
14400 Transform (x >> c) << c into x & (-1<<c) or
14401 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14402 types using simplify and match.
14403 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14404 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14405
14406 2015-09-03 Richard Biener <rguenther@suse.de>
14407
14408 PR ipa/66705
14409 * tree-ssa-structalias.c (ctor_for_analysis): New function.
14410 (create_variable_info_for_1): Use ctor_for_analysis instead
14411 of get_constructor.
14412 (create_variable_info_for): Likewise.
14413
14414 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
14415
14416 PR ipa/67280
14417 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14418 in new callgraph edge.
14419
14420 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
14421
14422 PR target/59810
14423 PR target/63652
14424 PR target/63653
14425 * config/aarch64/aarch64-simd.md
14426 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14427 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14428 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14429 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14430
14431 2015-09-02 Alan Modra <amodra@gmail.com>
14432
14433 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14434 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14435 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14436
14437 2015-09-02 Alan Modra <amodra@gmail.com>
14438
14439 PR target/67417
14440 * config/rs6000/predicates.md (current_file_function_operand): Don't
14441 return true for weak symbols.
14442 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14443
14444 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
14445 Andrew Bennett <andrew.bennett@imgtec.com>
14446
14447 * config/mips/mips-opts.h (mips_cb_setting): New enum.
14448 * config/mips/mips-protos.h: Add definitions for
14449 mips_output_jump and mips_output_equal_conditional_branch
14450 * config/mips/mips.c (MIPS_JR): Change to support the
14451 JIC instruction.
14452 (mips_emit_compare): Add support for the MIPS R6 conditional
14453 compact branches.
14454 (mips_process_sync_loop): Likewise.
14455 (mips_output_order_conditional_branch): Likewise.
14456 (mips16_build_call_stub): Change MIPS_CALL to
14457 mips_output_jump.
14458 (mips_print_operand_punctuation): Update 's' case to only
14459 apply to micromips r2.
14460 (mips_adjust_insn_length): Add support for forbidden slot
14461 hazards.
14462 (mips_avoid_hazard): Likewise.
14463 (mips_reorg_process_insns): Likewise.
14464 (mips_output_jump): New function.
14465 (mips_output_equal_conditional_branch): Likewise.
14466 (mips_output_conditional_branch): Use jrc/bc if compact
14467 branch support is enabled. Ensure the forbidden slots
14468 between the two branch instructions is filled with a nop.
14469 (mips_option_override): Add support to process the compact
14470 branch option and set the correct defaults. Prevent
14471 non-explict relocs being using for MIPS R6.
14472 (mips_trampoline_init): Add compact branch support.
14473 (mips_mult_zero_zero_cost): Allow zero initialisation of
14474 accumulators with TARGET_DSP.
14475 * config/mips/mips.h (TARGET_CB_NEVER): New define.
14476 (TARGET_CB_MAYBE): New define.
14477 (TARGET_CB_ALWAYS): New define.
14478 (ISA_HAS_DELAY_SLOTS): New define.
14479 (ISA_HAS_COMPACT_BRANCHES): New define.
14480 (ISA_HAS_JRC): New define.
14481 (MIPS_BRANCH_C): New define.
14482 (MIPS_CALL): Removed.
14483 (MICROMIPS_J): Removed.
14484 * config/mips/mips.md (compact_form): New attr.
14485 (hazard): Add support for forbidden slots.
14486 (define_delay): Add support for compact branches.
14487 (*branch_order<mode>): Likewise.
14488 (*branch_order<mode>_inverted): Likewise.
14489 (*branch_equality<mode>): Likewise.
14490 (*branch_equality<mode>_inverted): Likewise.
14491 (*jump_absolute): Likewise.
14492 (*jump_pic): Likewise.
14493 (indirect_jump): Use mips_output_jump to produce assembly output.
14494 (tablejump_<mode>"): Likewise.
14495 (*<optab>"): Likewise.
14496 (<optab>_internal): Likewise.
14497 (sibcall_internal): Likewise.
14498 (sibcall_value_internal): Likewise.
14499 (sibcall_value_multiple_internal): Likewise.
14500 (call_internal): Likewise.
14501 (call_split): Likewise.
14502 (call_internal_direct): Likewise.
14503 (call_direct_split): Likewise.
14504 (call_value_internal): Likewise.
14505 (call_value_split): Likewise.
14506 (call_value_internal_direct): Likewise.
14507 (call_value_direct_split): Likewise.
14508 (call_value_multiple_internal): Likewise.
14509 (call_value_multiple_split): Likewise.
14510 (mips_get_fcsr_mips16_<mode>): Likewise.
14511 (mips_set_fcsr_mips16_<mode>): Likewise.
14512 (tls_get_tp_mips16_<mode>): Likewise.
14513 * config/mips/mips.opt: Add -mcompact-branches option.
14514 * config/mips/predicates.md (order_operator): Ensure the
14515 conditional compact branches are only used if the ISA them.
14516 * doc/invoke.texi: Document -mcompact-branches option.
14517
14518 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14519
14520 PR target/61578
14521 * lra-lives.c (process_bb_lives): Process move pseudos with the
14522 same value for copies and preferences
14523 * lra-constraints.c (match_reload): Create match reload pseudo
14524 with the same value from single dying input pseudo.
14525
14526 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14527
14528 PR target/67405
14529 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14530
14531 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14532
14533 * trans-mem.c: Add contributed-by.
14534 * trans-mem.h: Same.
14535
14536 2015-09-01 Richard Biener <rguenther@suse.de>
14537
14538 * expr.c (expand_expr_real_1): For expanding TERed defs
14539 set the current location to that of the def if not UNKNOWN.
14540
14541 2015-09-01 David Sherwood <david.sherwood@arm.com>
14542
14543 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14544
14545 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14546
14547 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14548 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14549 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14550 Include rtl-iter.h.
14551 (noce_simple_bbs): New function.
14552 (noce_try_move): Bail if basic blocks are not simple.
14553 (noce_try_store_flag): Likewise.
14554 (noce_try_store_flag_constants): Likewise.
14555 (noce_try_addcc): Likewise.
14556 (noce_try_store_flag_mask): Likewise.
14557 (noce_try_cmove): Likewise.
14558 (noce_try_minmax): Likewise.
14559 (noce_try_abs): Likewise.
14560 (noce_try_sign_mask): Likewise.
14561 (noce_try_bitop): Likewise.
14562 (bbs_ok_for_cmove_arith): New function.
14563 (noce_emit_all_but_last): Likewise.
14564 (noce_emit_insn): Likewise.
14565 (noce_emit_bb): Likewise.
14566 (noce_try_cmove_arith): Handle non-simple basic blocks.
14567 (insn_valid_noce_process_p): New function.
14568 (contains_mem_rtx_p): Likewise.
14569 (bb_valid_for_noce_process_p): Likewise.
14570 (noce_process_if_block): Allow non-simple basic blocks
14571 where appropriate.
14572
14573 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14574
14575 * tree-ssa-dom.c (record_equivalences_from_phis,
14576 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14577 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14578
14579 2015-09-01 Nick Clifton <nickc@redhat.com>
14580
14581 * config/msp430/msp430.opt (mcpu): Fix typo.
14582
14583 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14584
14585 * config/aarch64/aarch64.c (aarch64_set_current_function):
14586 Re-layout any vector parameters have non-simd layout.
14587 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14588 Delete.
14589 (aarch64_simd_expand_args): Delete call to the above.
14590
14591 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14592
14593 * doc/invoke.texi (asan-stack): Add space before option.
14594
14595 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14596
14597 * tree.h (zerop): New function.
14598 * tree.c (zerop): Likewise.
14599 (element_precision): Handle expressions.
14600 * match.pd (define_predicates): Add zerop.
14601 (x <= +Inf): Fix comment.
14602 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14603 * fold-const.c (fold_binary_loc): ... here. Remove.
14604
14605 2015-08-31 Richard Biener <rguenther@suse.de>
14606
14607 PR middle-end/67381
14608 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14609
14610 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14611
14612 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14613 (CEXPI): New operator list.
14614 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14615 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14616 Converted from ...
14617 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14618
14619 2015-08-31 Tom de Vries <tom@codesourcery.com>
14620
14621 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14622 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14623 parameter.
14624 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14625 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14626 (rewrite_into_loop_closed_ssa): ... here.
14627 (replace_uses_in_dominated_bbs): Remove function.
14628 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14629 rewrite_into_loop_closed_ssa_1.
14630
14631 2015-08-31 Michael Matz <matz@suse.de>
14632
14633 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14634 enter entry and exit blocks for reverse post order.
14635
14636 2015-08-31 Richard Biener <rguenther@suse.de>
14637
14638 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14639 (lto_location_cache::current_sysp): Likewise.
14640 (output_block::current_sysp): Likewise.
14641 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14642 (lto_location_cache::apply_location_cache): Properly record
14643 system header locations.
14644 (lto_location_cache::input_location): Input whether a file
14645 is a system header.
14646 * lto-streamer-out.c (lto_output_location): Stream whether a file
14647 is a system header.
14648
14649 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14650
14651 PR bootstrap/67363
14652 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14653
14654 2015-08-31 Tom de Vries <tom@codesourcery.com>
14655
14656 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14657 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14658 Improve function header comments.
14659
14660 2015-08-30 Michael Collison <michael.collison@linaro.org>
14661
14662 PR other/67320
14663 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14664 standard names
14665
14666 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14667
14668 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14669 special_handling bitfield.
14670 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14671 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14672 that represents a general xxpermdi.
14673 (insn_is_swappable_p): Add handling for vec_concat of two
14674 doublewords, which maps to a specific xxpermdi.
14675 (adjust_xxpermdi): New function.
14676 (adjust_concat): Likewise.
14677 (handle_special_swappables): Call adjust_xxpermdi and
14678 adjust_concat.
14679 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14680
14681 2015-08-30 Rich Felker <dalias@libc.org>
14682
14683 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14684 case instead of sh[123456ble]-*-*.
14685
14686 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14687
14688 * ira.c (print_unform_and_important_classes,
14689 print_translated_classes): Remove reg_class_names static array.
14690 (print_unform_and_important_classes): Rename to ...
14691 (print_uniform_and_important_classes): ... this.
14692 (ira_debug_allocno_classes): Update accordingly.
14693
14694 2015-08-29 Tom de Vries <tom@codesourcery.com>
14695
14696 PR tree-optimization/46193
14697 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14698 clause.
14699
14700 2015-08-28 Jeff Law <law@redhat.com>
14701
14702 PR lto/66752
14703 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14704 unable to find X NE 0 in the tables, return X as the simplified
14705 condition.
14706 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14707 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14708 to VISISTED_BBS.
14709 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14710 after removing the control flow statement and unnecessary edges.
14711
14712 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14713
14714 Revert:
14715 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14716
14717 PR tree-optimization/67283
14718 * tree-sra.c (type_consists_of_records_p): Rename to...
14719 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14720
14721 (completely_scalarize_record): Rename to...
14722 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14723 code to:
14724 (scalarize_elem): New.
14725
14726 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14727
14728 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14729 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14730 (aarch64_symbol_type): Likewise.
14731 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14732 Likewise.
14733 (aarch64_expand_mov_immediate): Likewise.
14734 (aarch64_print_operand): Likewise.
14735 (aarch64_classify_tls_symbol): Likewise.
14736
14737 2015-08-28 Richard Biener <rguenther@suse.de>
14738
14739 * cgraphunit.c (symbol_table::compile): Move early debug generation
14740 and finish...
14741 (symbol_table::finalize_compilation_unit): ... back here and
14742 add a !seen_error () guard.
14743
14744 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14745
14746 * toplev.c (process_options): Do not use flag_loop_block,
14747 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14748 flag_loop_optimize_isl.
14749
14750 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14751
14752 * Makefile.in (OBJS): Remove graphite-blocking.o and
14753 graphite-interchange.o.
14754 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14755 Alias of floop-nest-optimize.
14756 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14757 Document as alias of -floop-nest-optimize.
14758 * graphite-blocking.c: Remove.
14759 * graphite-interchange.c: Remove.
14760 * graphite-optimize-isl.c: Include dumpfile.h.
14761 (getScheduleForBand): Add dump for tiled loops. Use
14762 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14763 * graphite-poly.c (scop_max_loop_depth): Remove.
14764 (print_scattering_function_1): Remove.
14765 (print_scattering_function): Remove.
14766 (print_scattering_functions): Remove.
14767 (debug_scattering_function): Remove.
14768 (debug_scattering_functions): Remove.
14769 (apply_poly_transforms): Remove use of flag_loop_block,
14770 flag_loop_strip_mine, and flag_loop_interchange.
14771 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14772 PBB_ORIGINAL.
14773 (print_pdr_access_layout): Remove.
14774 (print_pdr): Print ISL representation.
14775 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14776 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14777 (free_scop): Same.
14778 (openscop_print_pbb_domain): Remove.
14779 (print_pbb): Remove call to print_scattering_function.
14780 (openscop_print_scop_context): Remove.
14781 (print_scop_context): Do not print matrices anymore.
14782 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14783 SCOP_TRANSFORMED_SCHEDULE.
14784 (print_isl_set): Add printing of a new line.
14785 (print_isl_map): Same.
14786 (print_isl_aff): Same.
14787 (print_isl_constraint): Same.
14788 (loop_to_lst): Remove.
14789 (scop_to_lst): Remove.
14790 (lst_indent_to): Remove.
14791 (print_lst): Remove.
14792 (debug_lst): Remove.
14793 (dot_lst_1): Remove.
14794 (dot_lst): Remove.
14795 (reverse_loop_at_level): Remove.
14796 (reverse_loop_for_pbbs): Remove.
14797 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14798 (pdr_nb_params): Remove.
14799 (pdr_alias_set_dim): Remove.
14800 (pdr_subscript_dim): Remove.
14801 (pdr_iterator_dim): Remove.
14802 (pdr_parameter_dim): Remove.
14803 (same_pdr_p): Remove.
14804 (struct poly_scattering): Remove.
14805 (struct poly_bb): Remove _original, _transformed, _saved.
14806 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14807 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14808 (PBB_NB_LOCAL_VARIABLES): Remove.
14809 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14810 (schedule_to_scattering): Remove.
14811 (number_of_write_pdrs): Remove.
14812 (pbb_dim_iter_domain): Remove.
14813 (pbb_nb_params): Remove.
14814 (pbb_nb_scattering_orig): Remove.
14815 (pbb_nb_scattering_transform): Remove.
14816 (pbb_nb_dynamic_scattering_transform): Remove.
14817 (pbb_nb_local_vars): Remove.
14818 (pbb_iterator_dim): Remove.
14819 (pbb_parameter_dim): Remove.
14820 (psco_scattering_dim): Remove.
14821 (psct_scattering_dim): Remove.
14822 (psct_local_var_dim): Remove.
14823 (psco_iterator_dim): Remove.
14824 (psct_iterator_dim): Remove.
14825 (psco_parameter_dim): Remove.
14826 (psct_parameter_dim): Remove.
14827 (psct_dynamic_dim): Remove.
14828 (psct_static_dim): Remove.
14829 (psct_add_local_variable): Remove.
14830 (new_lst_loop): Remove.
14831 (new_lst_stmt): Remove.
14832 (free_lst): Remove.
14833 (copy_lst): Remove.
14834 (lst_add_loop_under_loop): Remove.
14835 (lst_depth): Remove.
14836 (lst_dewey_number): Remove.
14837 (lst_dewey_number_at_depth): Remove.
14838 (lst_pred): Remove.
14839 (lst_succ): Remove.
14840 (lst_find_pbb): Remove.
14841 (find_lst_loop): Remove.
14842 (lst_find_first_pbb): Remove.
14843 (lst_empty_p): Remove.
14844 (lst_find_last_pbb): Remove.
14845 (lst_contains_p): Remove.
14846 (lst_contains_pbb): Remove.
14847 (lst_create_nest): Remove.
14848 (lst_remove_from_sequence): Remove.
14849 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14850 (lst_niter_for_loop): Remove.
14851 (pbb_update_scattering): Remove.
14852 (lst_update_scattering_under): Remove.
14853 (lst_update_scattering): Remove.
14854 (lst_insert_in_sequence): Remove.
14855 (lst_replace): Remove.
14856 (lst_substitute_3): Remove.
14857 (lst_distribute_lst): Remove.
14858 (lst_remove_all_before_including_pbb): Remove.
14859 (lst_remove_all_before_excluding_pbb): Remove.
14860 (struct scop): Remove original_schedule, transformed_schedule, and
14861 saved_schedule.
14862 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14863 (SCOP_SAVED_SCHEDULE): Remove.
14864 (poly_scattering_new): Remove.
14865 (poly_scattering_free): Remove.
14866 (poly_scattering_copy): Remove.
14867 (store_scattering_pbb): Remove.
14868 (store_lst_schedule): Remove.
14869 (restore_lst_schedule): Remove.
14870 (store_scattering): Remove.
14871 (restore_scattering_pbb): Remove.
14872 (restore_scattering): Remove.
14873 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14874 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14875 compute the scattering polyhedron dimension from the dimension of
14876 pbb->domain.
14877 (build_scop_scattering): Update call to
14878 build_pbb_scattering_polyhedrons.
14879 (build_poly_scop): Remove call to scop_to_lst.
14880 * graphite.c (graphite_transform_loops): Add call to print_scop.
14881 (gate_graphite_transforms): Remove use of flag_loop_block,
14882 flag_loop_interchange, and flag_loop_strip_mine.
14883
14884 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14885
14886 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14887 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14888 -floop-nest-optimize.
14889 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14890 (generate_luj_sepclass): Remove.
14891 (generate_luj_options): Remove.
14892 (set_options): Remove opt_luj.
14893 (scop_to_isl_ast): Remove opt_luj.
14894 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14895 flag_loop_unroll_jam.
14896 (getPrevectorMap_full): Remove.
14897 (getScheduleForBandList): Remove map_sepcl.
14898 (getScheduleMap): Same.
14899 (apply_schedule_map_to_scop): Remove sepcl.
14900 (optimize_isl): Same.
14901 * graphite-poly.c (apply_poly_transforms): Remove check for
14902 flag_loop_unroll_jam.
14903 (new_poly_bb): Remove map_sepclass.
14904 * graphite-poly.h (struct poly_bb): Same.
14905 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14906 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14907 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14908 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14909
14910 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14911
14912 PR target/67317
14913 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14914 (addqi3_cc): Ditto.
14915 (UNSPEC_ADD_CARRY): Remove.
14916 (addqi3_cconly_overflow): New expander.
14917 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14918 Adjust for changed add<mode>3_carry.
14919 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14920 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14921 (<plusminus_insn><mode>3_carry): Remove expander.
14922 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14923 add<mode>3_carry and sub<mode>3_carry.
14924 (plusminus_carry_mnemonic): Remove code attribute.
14925 (add<mode>3_carry): Canonicalize insn pattern.
14926 (*addsi3_carry_zext): Ditto.
14927 (sub<mode>3_carry): Ditto.
14928 (*subsi3_carry_zext): Ditto.
14929 (adcx<mode>3): Remove insn pattern.
14930 (addcarry<mode>): New insn pattern.
14931 (subborrow<mode>): Ditto.
14932 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14933 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14934 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14935 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14936 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14937 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14938 Rewrite expander to not clobber carry flag chains.
14939
14940 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14941
14942 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14943 instead of a rotate.
14944
14945 2015-08-27 Marek Polacek <polacek@redhat.com>
14946
14947 PR middle-end/67005
14948 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14949 an entry into an irreducible region.
14950
14951 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14952
14953 * configure: Regenerate.
14954
14955 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14956
14957 PR tree-optimization/67283
14958 * tree-sra.c (type_consists_of_records_p): Rename to...
14959 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14960
14961 (completely_scalarize_record): Rename to...
14962 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14963 (scalarize_elem): New.
14964
14965 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14966
14967 * tree-sra.c (completely_scalarize_var): Rename to...
14968 (create_total_scalarization_access): ... Here. Drop call to
14969 completely_scalarize_record.
14970
14971 (analyze_all_variable_accesses): Replace completely_scalarize_var
14972 with create_total_scalarization_access and completely_scalarize_record.
14973
14974 2015-08-27 Alan Modra <amodra@gmail.com>
14975
14976 PR target/67356
14977 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14978 for operand 1.
14979
14980 2015-08-27 Richard Biener <rguenther@suse.de>
14981
14982 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14983 call with !seen_error ().
14984 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14985 early debug generation and finish...
14986 (symbol_table::compile): ... here to put it after a !seen_error ()
14987 guard.
14988
14989 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14990
14991 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14992 Solaris 12+.
14993
14994 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14995 Andre Vieira <andre.simoesdiasvieira@arm.com>
14996
14997 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14998 (*cb<optab><mode>1): Likewise.
14999 (*tb<optab><mode>1): Likewise.
15000 (*cb<optab><mode>1): Likewise.
15001 * config/aarch64/iterators.md (inv_cb): New code attribute.
15002 (inv_tb): Likewise.
15003 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15004 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15005
15006 2015-08-27 Richard Biener <rguenther@suse.de>
15007
15008 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15009
15010 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15011
15012 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15013 trap to fix ICE.
15014
15015 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15016
15017 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15018 Add declaration.
15019
15020 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15021 comment.
15022 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15023 floating point in VSX registers.
15024 (rs6000_output_move_128bit): Always print out the set insn if we
15025 can't generate an appropriate 128-bit move.
15026 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15027 point in VSX registers comparisons.
15028 (rs6000_expand_float128_convert): Likewise.
15029
15030 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15031 predicate for only GPR hard registers.
15032
15033 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15034 modes to iterators. Add new iterators for moving 128-bit values in
15035 scalar FPR registers and VSX registers.
15036 (FMOVE128): Likewise.
15037 (FMOVE128_FPR): Likewise.
15038 (FMOVE128_GPR): Likewise.
15039 (FMOVE128_VSX): Likewise.
15040 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15041 in VSX registers.
15042 (IFKF): Likewise.
15043 (IBM128): Likewise.
15044 (TFIFKF): Likewise.
15045 (RELOAD): Add IEEE 128-bit floating point modes.
15046 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15047 floating point in VSX registers modes.
15048 (signbit<mode>2, IBM128 iterator): Likewise.
15049 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15050 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15051 (negtf2): Likewise.
15052 (neg<mode>2, TFIFKF iterator): Likewise.
15053 (negtf2_internal): Likewise.
15054 (abstf2): Likewise.
15055 (abs<mode>2, TFIFKF iterator): Likewise.
15056 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15057 VSX insn support for negate, absolute value, and negative absolute
15058 value.
15059 (ieee_128bit_vsx_neg<mode>2): Likewise.
15060 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15061 (ieee_128bit_vsx_abs<mode>2): Likewise.
15062 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15063 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15064 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15065 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15066 floating point in VSX registers.
15067 (unpack<mode>_dm): Likewise.
15068 (unpack<mode>_nodm): Likewise.
15069 (pack<mode>): Likewise.
15070 (unpackv1ti): Likewise.
15071 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15072 (packv1ti): Likewise.
15073 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15074 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15075 registers.
15076 (extenddftf2_internal): Likewise.
15077 (trunctfdf2): Likewise.
15078 (trunctfdf2_internal2): Likewise.
15079 (fix_trunc_helper): Likewise.
15080 (fix_trunctfdi2"): Likewise.
15081 (floatditf2): Likewise.
15082 (floatuns<mode>tf2): Likewise.
15083 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15084 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15085 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15086 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15087 (float<SDI:mode><IFKF:mode>2): Likewise.
15088 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15089
15090 2015-08-26 Renlin Li <renlin.li@arm.com>
15091
15092 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15093
15094 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15095 Jiong Wang <jiong.wang@arm.com>
15096
15097 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15098 (tlsie_tiny_<mode>): New define_insn.
15099 (tlsie_tiny_sidi): Likewise.
15100 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15101 SYMBOL_TINY_TLSIE.
15102 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15103 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15104 SYMBOL_TINY_TLSIE.
15105 (aarch64_expand_mov_immediate): Likewise.
15106 (aarch64_print_operand): Likewise.
15107 (arch64_classify_tls_symbol): Likewise.
15108
15109 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15110
15111 * config/arm/arm-arches.def: Replace single value flags with
15112 an initializer built from ARM_FSET_MAKE_CPU1.
15113 * config/arm/arm-cores.def: Likewise.
15114 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15115 derivation from the ARM_CORE macro definition, use the given value
15116 instead.
15117 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15118 ARM_ARCH macro definition, use the given value instead.
15119
15120 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15121
15122 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15123 feature set.
15124 (struct builtin_description): Replace field mask with field
15125 features.
15126 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15127 (IWMMXT2_BUILTIN): Likewise.
15128 (IWMMXT2_BUILTIN2): Likewise.
15129 (FP_BUILTIN): Likewise.
15130 (CRC32_BUILTIN): Likewise.
15131 (CRYPTO_BUILTIN): Likewise.
15132 (iwmmx_mbuiltin): Likewise.
15133 (iwmmx2_mbuiltin): Likewise.
15134 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15135 struct builtin_description.
15136
15137 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15138
15139 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15140 (struct builtin_description): Change type of mask to unsigned
15141 long.
15142 * config/arm/arm-protos.h (insn_flags): Declare as type
15143 arm_feature_set.
15144 (tune_flags): Likewise.
15145 * config/arm/arm.c (feature_count): New.
15146 (insn_flags): Define as type arm_feature_set.
15147 (tune_flags): Likewise.
15148 (struct processors): Define field flags as type arm_feature_set.
15149 (all_cores): Update for change to struct processors.
15150 (all_architectures): Likewise.
15151 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15152 macros.
15153 (arm_option_override_internal): Likewise.
15154 (arm_option_override): Likewise.
15155
15156 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15157 Jiong Wang <jiong.wang@arm.com>
15158
15159 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15160 tls size for tiny, small, large memory model.
15161 (aarch64_load_symref_appropriately): Support new symbol types.
15162 (aarch64_expand_mov_immediate): Likewise.
15163 (aarch64_print_operand): Likewise.
15164 (aarch64_classify_tls_symbol): Likewise.
15165 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15166 (aarch64_symbol_type): Likewise.
15167 * config/aarch64/aarch64.md (tlsle): Deleted.
15168 (tlsle12_<mode>): New define_insn.
15169 (tlsle24_<mode>): Likewise.
15170 (tlsle32_<mode>): Likewise.
15171 (tlsle48_<mode>): Likewise.
15172 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15173 "aarch64_tlsle32".
15174
15175 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15176
15177 * config/arm/arm-protos.h (FL_NONE): New.
15178 (FL_ANY): New.
15179 (arm_feature_set): New.
15180 (ARM_FSET_MAKE): New.
15181 (ARM_FSET_MAKE_CPU1): New.
15182 (ARM_FSET_MAKE_CPU2): New.
15183 (ARM_FSET_CPU1): New.
15184 (ARM_FSET_CPU2): New.
15185 (ARM_FSET_EMPTY): New.
15186 (ARM_FSET_ANY): New.
15187 (ARM_FSET_HAS_CPU1): New.
15188 (ARM_FSET_HAS_CPU2): New.
15189 (ARM_FSET_HAS_CPU): New.
15190 (ARM_FSET_ADD_CPU1): New.
15191 (ARM_FSET_ADD_CPU2): New.
15192 (ARM_FSET_DEL_CPU1): New.
15193 (ARM_FSET_DEL_CPU2): New.
15194 (ARM_FSET_UNION): New.
15195 (ARM_FSET_INTER): New.
15196 (ARM_FSET_XOR): New.
15197 (ARM_FSET_EXCLUDE): New.
15198 (AFM_FSET_IS_EMPTY): New.
15199 (ARM_FSET_CPU_SUBSET): New.
15200
15201 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15202
15203 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15204 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15205 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15206 Likewise.
15207 (aarch64_expand_mov_immediate): Likewise.
15208 (aarch64_print_operand): Likewise.
15209 (aarch64_classify_symbol): Likewise.
15210
15211 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15212
15213 * config/aarch64/aarch64.opt (mtls-size): New entry.
15214 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15215 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15216 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15217
15218 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15219
15220 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15221 ARM_CORE entry. Fix some white-space.
15222 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15223 ARM_CORE definition.
15224
15225 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15226
15227 * fold-const.c (fold_binary_loc) : Move Optimize
15228 root(x)*root(y) as root(x*y) to match.pd.
15229 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15230 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15231 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15232 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15233 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15234 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15235 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15236 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15237 (rdiv @0 (exps:s @1)) : New simplifier.
15238
15239 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15240
15241 * gcc.c (driver::finalize): Only assign to extra_specs if
15242 [EXTRA_SPECS].
15243
15244 2015-08-25 Marek Polacek <polacek@redhat.com>
15245
15246 PR middle-end/67330
15247 * varasm.c (declare_weak): Return after giving an error.
15248
15249 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15250
15251 * gcc-main.c (main): Add params to driver ctor.
15252 * gcc.c (class env_manager): New.
15253 (env): New global.
15254 (env_manager::init): New.
15255 (env_manager::get): New.
15256 (env_manager::xput): New.
15257 (env_manager::restore): New.
15258 Poison getenv and putenv.
15259 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15260 (target_system_root): Update initialization to use
15261 DEFAULT_TARGET_SYSTEM_ROOT.
15262 (struct spec_list): Add field "default_ptr".
15263 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15264 (init_spec): Likewise.
15265 (set_spec): Clear field "default_ptr".
15266 (read_specs): Free "spec" and "buffer".
15267 (xputenv): Reimplement in terms of env_manager.
15268 (process_command): Replace ::getenv calls with calls to the
15269 env_manager singleton.
15270 (process_brace_body): Free string in three places.
15271 (driver::driver): New.
15272 (driver::~driver): New.
15273 (used_arg): Convert from a function to...
15274 (class used_arg_t): ...this class, and...
15275 (used_arg): ...this new global instance.
15276 (used_arg_t::finalize): New function.
15277 (getenv_spec_function): Add "const" to local "value". Replace
15278 ::getenv call with call to the env_manager singleton.
15279 (path_prefix_reset): New function.
15280 (driver::finalize): New function.
15281 * gcc.h (driver::driver): New.
15282 (driver::~driver): New.
15283 (driver::finalize): New.
15284
15285 2015-08-25 Nathan Sidwell <nathan@acm.org>
15286
15287 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15288 target doesn't have one.
15289
15290 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15291
15292 PR target/67346
15293 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15294
15295 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15296
15297 PR target/67344
15298 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15299 a define_insn, remove second alternative.
15300
15301 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15302 Joseph Myers <joseph@codesourcery.com>
15303
15304 * gcc.c (struct switchstr): Expand comment.
15305
15306 2015-08-25 Nathan Sidwell <nathan@acm.org>
15307
15308 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15309 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15310
15311 2015-08-25 Richard Biener <rguenther@suse.de>
15312
15313 PR middle-end/67306
15314 * genmatch.c (expr::gen_transform): Verify the result of
15315 builtin_decl_implicit.
15316 (dt_simplify::gen_1): Likewise.
15317
15318 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15319
15320 * config/arm/constraints.md: Also list Cs and US ARM-specific
15321 constraints as used.
15322
15323 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15324
15325 PR target/66609
15326 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15327 UNSPEC_PCREL.
15328 (nonpic_symbol_mentioned_p): Likewise.
15329 (sh_delegitimize_address): Likewise.
15330 (sh_function_ok_for_sibcall): Take into account weak symbols.
15331 (sh_expand_sym_label2reg): New.
15332 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15333 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15334 (call_pcrel): Use sh_expand_sym_label2reg.
15335 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15336 (symPCREL_label2reg) New expand.
15337
15338 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15339
15340 * graphite-poly.c: Change type of region from void* to sese.
15341 * graphite-poly.h (struct scop): Changing the type of scop::region
15342 from void* to sese. Change accessor macro accordingly.
15343 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15344
15345 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15346
15347 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15348 Constrain only on INTEGER_TYPE.
15349
15350 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15351
15352 PR target/67211
15353 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15354 -mefficient-unaligned-vsx on ISA 2.7.
15355
15356 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15357 option to a masked option.
15358
15359 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15360 logic for -mefficient-unaligned-vsx so that it is set via an arch
15361 ISA option, instead of being set if -mtune=power8 is set. Move
15362 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15363 near other default option handling.
15364
15365 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15366
15367 * genflags.c (gen_macro): Delete.
15368 (gen_proto): Don't create GEN.*CALL.* macros.
15369 * gensupport.h (get_file_location): Declare.
15370 * gensupport.c (rtx_locs): New variable.
15371 (read_md_rtx): Record rtx locations.
15372 (get_file_location): New function.
15373 * target-insns.def (call, call_pop, call_value, call_value_pop)
15374 (sibcall, sibcall_value): New patterns.
15375 * gentarget-def.c (parse_argument): New function.
15376 (def_target_insn): Use it. Handle optional operands. Raise an
15377 error if an .md pattern has the wrong number of operands for the
15378 pattern name. Remove the names of unused operands from the prototype.
15379 * builtins.c (expand_builtin_apply): Use targetm functions
15380 instead of HAVE_call_value and GEN_CALL_VALUE.
15381 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
15382 and sibcall_value_pop.
15383 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15384 of GEN_CALL.
15385 * config/alpha/alpha.md (untyped_call): Likewise.
15386 * config/iq2000/iq2000.md (untyped_call): Likewise.
15387 * config/m68k/m68k.md (untyped_call): Likewise.
15388 * config/mips/mips.md (untyped_call): Likewise.
15389 * config/pa/pa.md (untyped_call): Likewise.
15390 * config/rs6000/rs6000.md (untyped_call): Likewise.
15391 * config/sparc/sparc.md (untyped_call): Likewise.
15392 * config/tilegx/tilegx.md (untyped_call): Likewise.
15393 * config/tilepro/tilepro.md (untyped_call): Likewise.
15394 * config/visium/visium.md (untyped_call): Likewise.
15395 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15396 gen_call_value instead of GEN_CALL_VALUE.
15397 * config/arm/arm.md (untyped_call): Likewise.
15398 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15399 GEN_CALL.
15400
15401 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15402
15403 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15404 (have_cbranchcc4): New variable.
15405 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15406 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15407 (if_convert): Initialize have_cbranchcc4.
15408
15409 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15410
15411 * builtins.c (expand_cmpstrn): Rename to...
15412 (expand_cmpstrn_or_cmpmem): ...this.
15413 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15414 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15415 Remove mode argument.
15416 (expand_builtin): Update accordingly.
15417
15418 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15419
15420 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15421 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
15422 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15423 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15424 Add predicates for operands 0 and 3.
15425 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15426 operand.
15427 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15428 immediate_operand to nonmemory_operand.
15429
15430 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15431
15432 * df-scan.c (df_insn_info_init_fields): New function, split out
15433 from...
15434 (df_insn_create_insn_record): ...here.
15435 (df_insn_info_free_fields): New function, split out from...
15436 (df_insn_info_delete): ...here.
15437 (df_insn_rescan): Use the new functions instead of freeing and
15438 reallocating the df_insn_info.
15439
15440 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15441
15442 * doc/install.texi (Binaries): Remove links no longer valid.
15443
15444 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15445
15446 * config/nvptx/mkoffload.c (process): Replace
15447 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15448
15449 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
15450
15451 PR target/67329
15452 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15453
15454 2015-08-24 Renlin Li <renlin.li@arm.com>
15455
15456 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15457 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15458 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15459 * config/arm/constraints.md ("j"): Add check for high code.
15460
15461 2015-08-24 Tom de Vries <tom@codesourcery.com>
15462
15463 PR tree-optimization/65468
15464 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15465 chunk_size is one.
15466
15467 2015-08-24 Nathan Sidwell <nathan@acm.org>
15468
15469 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15470 change to nvptx_type_from_mode call. Use arg_promotion for both
15471 split and non-split args.
15472
15473 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15474
15475 * target-insns.def (movstr): New pattern.
15476 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15477 (expand_movstr): Use targetm rather than HAVE_movstr/
15478 CODE_FOR_movstr.
15479
15480 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15481
15482 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15483 cast syntax.
15484
15485 2015-08-24 Andrew Pinski <apinski@cavium.com>
15486
15487 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15488 AARCH64_EXTRA_TUNING_OPTION.
15489 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15490 New enum.
15491 (aarch64_extra_tuning_flags): Base the shifted value on the index
15492 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15493 * config/aarch64/aarch64.c: Remove the last argument to
15494 AARCH64_EXTRA_TUNING_OPTION.
15495
15496 2015-08-23 Nathan Sidwell <nathan@acm.org>
15497
15498 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15499 decls.
15500 (nvptx_declare_function_name): Insert formatting tabs for
15501 consistency.
15502
15503 2015-08-23 Tom de Vries <tom@codesourcery.com>
15504
15505 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15506 parm_decl, rather than generating a dummy default def in cfun.
15507 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15508 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15509 (move_stmt_op): Handle PARM_DECl.
15510 (gather_ssa_name_hash_map_from): New function.
15511 (move_sese_region_to_fn): Add default defs for function params, and add
15512 them to vars_map. Release copied ssa names.
15513 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15514
15515 2015-08-23 Tom de Vries <tom@codesourcery.com>
15516
15517 * doc/sourcebuild.texi: Rename vect_no_int_max with
15518 vect_no_int_min_max. Update description.
15519
15520 2015-08-22 Andrew Pinski <apinski@cavium.com>
15521
15522 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15523 * config/aarch64/aarch64-protos.h
15524 (aarch64_fusion_pairs_index): New enum.
15525 (aarch64_fusion_pairs): Base the shifted value on the index instead
15526 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15527 of the argument to AARCH64_FUSION_PAIR.
15528 * config/aarch64/aarch64.c: Remove the last argument to
15529 AARCH64_FUSION_PAIR.
15530
15531 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15532
15533 * dominance.c (new_zero_array): Define.
15534 (dom_info): Redefine as class with proper encapsulation.
15535 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15536 Add new members.
15537 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15538 allocations/deallocations. Pass function as parameter (instead of
15539 using cfun).
15540 (dom_info::get_idom): Define accessor method.
15541 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15542 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15543 (calculate_dominance_info): Adjust to use dom_info class.
15544 (verify_dominators): Likewise.
15545
15546 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15547
15548 * print-rtl.c (print_rtx): Check the correct range for
15549 flag_dump_unnumbered_links to behave as documented.
15550
15551 PR rtl-optimization/67227
15552 PR rtl-optimization/64164
15553 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15554 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15555 identical gimple_reg exprs.
15556
15557 2015-08-21 Nathan Sidwell <nathan@acm.org>
15558
15559 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15560 expansion.
15561 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15562 crtl->stack_alignment_needed to determine alignment.
15563 (nvptx_get_drap_rtx): New.
15564 (TARGET_GET_DRAP_RTX): Override.
15565 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15566
15567 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15568
15569 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15570
15571 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15572
15573 * configure.ac: Remove uwin* cases.
15574 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15575 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15576 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15577 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15578 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15579 i[34567]86-*-uwin*, powerpc-*-beos*.
15580
15581 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15582
15583 * gencodes.c (gencodes): Print the comma for the preceding
15584 enum value rather than the current one. Use aliased enum values
15585 rather than #defines for compiled-out patterns.
15586 (main): Update accordingly. Replace LAST_INSN_CODE with
15587 NUM_INSN_CODES.
15588 * lra.c (insn_code_data): Update accordingly.
15589 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15590 * recog.h (target_recog): Likewise.
15591 (preprocess_insn_constraints): Change parameter to unsigned int.
15592 * recog.c (preprocess_insn_constraints): Likewise.
15593 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15594 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15595
15596 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15597
15598 PR rtl-optimization/61657
15599 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15600 unsigned. Remove superflous uint64_t cast.
15601
15602 2014-08-21 Felix Yang <felix.yang@huawei.com>
15603 Jiji Jiang <jiangjiji@huawei.com>
15604
15605 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15606 argument and get builtin function code directly from CALL.
15607 (gimple_stringop_fixed_value): Modified accordingly.
15608 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15609 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15610
15611 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15612
15613 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15614
15615 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15616
15617 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15618 to match.pd.
15619 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15620 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15621 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15622 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15623 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15624 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15625 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15626 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15627 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15628 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15629
15630 * match.pd (SIN ) : New Operator.
15631 (TAN) : New Operator.
15632 (mult (SQRT@1 @0) @1) : New simplifier.
15633 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15634 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15635 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15636 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15637 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15638 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15639 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15640 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15641 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15642 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15643
15644 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15645
15646 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15647 loop if EXPR is simplified to const value.
15648
15649 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15650
15651 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15652 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15653
15654 2015-08-21 Richard Biener <rguenther@suse.de>
15655
15656 PR middle-end/67285
15657 * gimple-fold.c (replace_stmt_with_simplification): Assert
15658 seq is empty when replacing a call with itself but different
15659 arguments.
15660 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15661 a call require that it is const.
15662
15663 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15664
15665 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15666 * builtins.c (get_object_alignment_2): Adjust.
15667 * varasm.c (align_variable): Likewise.
15668 (get_variable_align): Likewise.
15669 (build_constant_desc): Likewise.
15670 (force_const_mem): Likewise.
15671 * doc/tm.texi.in: Likewise.
15672 * doc/tm.texi: Regenerate.
15673
15674 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15675
15676 * genconfig.c (main): Always define HAVE_cc0.
15677 * recog.c (rest_of_handle_peephole2): Adjust.
15678
15679 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15680
15681 * reorg.c (relax_delay_slots): Don't use #if to check value of
15682 HAVE_cc0.
15683
15684 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15685
15686 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15687 * targhooks.c (default_have_conditional_execution): Adjust.
15688
15689 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15690
15691 * rtl.h (rtvec_all_equal_p): Declare.
15692 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15693 * rtl.c (rtvec_all_equal_p): New function.
15694 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15695 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15696 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15697 * config/arm/arm.c (neon_vdup_constant): Likewise.
15698 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15699 * config/tilegx/constraints.md (W, Y): Likewise.
15700 * config/tilepro/constraints.md (W, Y): Likewise.
15701 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15702 (classify_immediate): Use unwrap_const_vec_duplicate.
15703 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15704 (reg_or_v2s8bit_operand): Likewise.
15705 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15706 (reg_or_v4s8bit_operand): Likewise.
15707
15708 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15709
15710 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15711 (vec_shasigma_be): New #define.
15712 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15713 (VPMSUMH): Likewise.
15714 (VPMSUMW): Likewise.
15715 (VPMSUMD): Likewise.
15716 (VPMSUM): New BU_P8V_OVERLOAD_2.
15717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15718 entries for VEC_MADD and VEC_VPMSUM.
15719
15720 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15721
15722 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15723 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15724 (avr_pgm_check_var_decl): Same.
15725
15726 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15727
15728 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15729 initialization of HFmode scalar type (float16_t) to...
15730 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15731 code.
15732
15733 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15734
15735 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15736 having an -mfp16-format.
15737
15738 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15739
15740 * config/i386/predicates.md (vector_all_ones_operand): Use
15741 CONSTM1_RTX to simplify definition.
15742
15743 2015-08-20 Richard Biener <rguenther@suse.de>
15744
15745 * toplev.c (compile_file): Remove loop calling late_global_decl
15746 on all symbols.
15747 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15748 on decls we assembled.
15749
15750 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15751
15752 * common/config/aarch64/aarch64-common.c
15753 (AARCH64_CPU_NAME_LENGTH): Delete.
15754 (aarch64_option_extension): New.
15755 (all_extensions): Likewise.
15756 (processor_name_to_arch): Likewise.
15757 (arch_to_arch_name): Likewise.
15758 (all_cores): New.
15759 (all_architectures): Likewise.
15760 (aarch64_get_extension_string_for_isa_flags): Likewise.
15761 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15762 architecture names.
15763 * config/aarch64/aarch64-protos.h
15764 (aarch64_get_extension_string_for_isa_flags): New.
15765 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15766 (aarch64_option_print): Get the string to print from
15767 aarch64_get_extension_string_for_isa_flags.
15768 (aarch64_declare_function_name): Likewise.
15769 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15770 (MCPU_TO_MARCH_SPEC): This.
15771 (ASM_CPU_SPEC): Use it.
15772 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15773 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15774 (EXTRA_SPEC_FUNCTIONS): Use it.
15775
15776 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15777
15778 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15779 expansion when !ISA_HAS_LWL_LWR.
15780 (mips_block_move_straight): Update the size of elements copied to
15781 account for alignment when !ISA_HAS_LWL_LWR.
15782 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15783
15784 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15785
15786 * expr.c (expand_expr_real_2): Check gimple statement during
15787 LSHIFT_EXPR expand.
15788
15789 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15790
15791 * common.opt (fstack-protector): Initialize to -1.
15792 (fstack-protector-all): Likewise.
15793 (fstack-protector-strong): Likewise.
15794 (fstack-protector-explicit): Likewise.
15795 * configure.ac: Add --enable-default-ssp.
15796 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15797 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15798 -1.
15799 * doc/install.texi: Document --enable-default-ssp.
15800 * config.in: Regenerated.
15801 * configure: Likewise.
15802
15803 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15804
15805 PR rtl-optimization/64164
15806 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15807 (parm_in_stack_slot_p): ... this. Disregard mode, what
15808 matters is whether the parm will live in a pseudo or a stack
15809 slot.
15810 (expand_one_ssa_partition): Deal with params without a default
15811 def. Disregard mode.
15812 * cfgexpand.h: Renamed function declaration.
15813 * tree-ssa-coalesce.c: Adjust.
15814 * function.c (split_complex_args): Allocate stack slot for
15815 unassigned parms before splitting.
15816 (parm_in_unassigned_mem_p): New. Use it instead of
15817 parm_maybe_byref_p throughout this file.
15818 (assign_parm_setup_block): Use it. Accept pseudos in the
15819 expand-assigned rtl.
15820 (assign_parm_setup_reg): Drop BLKmode requirement.
15821 (assign_parm_setup_stack): Allocate and fill in the address of
15822 unassigned MEM parms.
15823
15824 2015-08-19 David Sherwood <david.sherwood@arm.com>
15825
15826 * genmodes.c (emit_mode_unit_size_inline): New function.
15827 (emit_mode_unit_precision_inline): New function.
15828 (emit_insn_modes_h): Emit new #define. Emit new functions.
15829 (emit_mode_unit_size): New function.
15830 (emit_mode_unit_precision): New function.
15831 (emit_mode_adjustments): Add mode_unit_size adjustments.
15832 (emit_insn_modes_c): Emit new arrays.
15833 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15834 use new inline methods.
15835
15836 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15837
15838 * config/aarch64/aarch64.c (bit_count): Delete prototype
15839 and definition.
15840 (aarch64_print_operand): Use popcount_hwi instead of the above.
15841
15842 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15843
15844 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15845 comment.
15846
15847 2015-08-19 Marek Polacek <polacek@redhat.com>
15848
15849 PR middle-end/67133
15850 * gimple-ssa-isolate-paths.c
15851 (insert_trap_and_remove_trailing_statements): Rename to ...
15852 (insert_trap): ... this. Don't remove trailing statements; split
15853 block instead.
15854 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15855
15856 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15857
15858 PR other/67042
15859 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15860 conditionalize the whole on __GNUC__. Add fallback code
15861 depending neither on undefined nor implementation-defined behaviour.
15862
15863 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15864
15865 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15866 whitespaces with tab.
15867
15868 2015-08-19 Florian Weimer <fweimer@redhat.com>
15869
15870 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15871 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15872 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15873 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15874 trampolines.
15875
15876 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15877
15878 * config/arm/arm.c (bounds_check): Use %wd print format
15879 for HOST_WIDE_INT arguments.
15880
15881 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15882
15883 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15884 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15885 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15886 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15887 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15888 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15889 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15890 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15891 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15892 typedefs.
15893
15894 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15895
15896 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15897 function.c, graphite-scop-detection.c, haifa-sched.c,
15898 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15899 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15900 varasm.c: Remove typedefs of structs.
15901
15902 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15903
15904 * config/rs6000/altivec.h (vec_adde): New define.
15905 (vec_addec): Likewise.
15906 (vec_double): Likewise.
15907 (vec_bperm): Likewise.
15908 (vec_gb): Likewise.
15909 * config/rs6000/rs6000-builtin.def (ADDE): New
15910 BU_ALTIVEC_OVERLOAD_3.
15911 (ADDEC): Likewise.
15912 (DOUBLE): New BU_VSX_OVERLOAD_1.
15913 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15914 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15915 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15916 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15917 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15918 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15919 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15920 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15921 and P8V_BUILTIN_VEC_VBPERMQ.
15922
15923 2015-08-18 Jason Merrill <jason@redhat.com>
15924
15925 * print-tree.c (print_node): Handle TREE_BINFO.
15926
15927 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15928
15929 PR middle-end/36757
15930 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15931 we can expand BUILT_IN_SIGNBIT inline.
15932 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15933 * doc/extend.texi: Document the type-generic __builtin_signbit.
15934
15935 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15936
15937 PR rtl-optimization/67218
15938 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15939 (simplify_unary_operation_1): Use it.
15940
15941 2015-08-18 Marek Polacek <polacek@redhat.com>
15942
15943 PR middle-end/67222
15944 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15945 if the call isn't valid.
15946 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15947 gimple_call_builtin_p.
15948 (call_may_clobber_ref_p_1): Likewise.
15949 (stmt_kills_ref_p): Likewise.
15950
15951 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15952
15953 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15954 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15955 (mips_hard_regno_scratch_ok): Likewise.
15956 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15957 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15958
15959 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15960
15961 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15962 (determine_value_range): Call refine_value_range_using_guard for
15963 each loop initial condition to improve value range.
15964
15965 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15966
15967 * config/i386/i386.c: Remove include of fibheap.h.
15968
15969 2015-08-17 Richard Biener <rguenther@suse.de>
15970
15971 PR tree-optimization/67221
15972 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15973 (sccvn_dom_walker::before_dom_children): Mark backedges of
15974 non-executable blocks as not executable.
15975
15976 2015-08-17 David Sherwood <david.sherwood@arm.com>
15977
15978 * config/arm/arm.c (neon_element_bits): Replace call to
15979 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15980 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15981 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15982 (neon_vdup_lane<mode>): Likewise.
15983 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15984 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15985 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15986 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15987 * config/spu/spu.c (arith_immediate_p): Likewise.
15988 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15989 * expr.c (expand_expr_real_2): Likewise.
15990 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15991 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15992 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15993 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15994 New variable.
15995 * fold-const.c (fold_binary_loc): Replace call to
15996 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15997 GET_MODE_UNIT_PRECISION (m).
15998
15999 2015-08-17 Mike Stump <mikestump@comcast.net>
16000
16001 * config/arm/arm.c (arm_block_move_unaligned_straight):
16002 Emit normal move instead of unaligned load when source or destination
16003 are appropriately aligned.
16004
16005 2015-08-17 Richard Biener <rguenther@suse.de>
16006 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16007
16008 PR middle-end/16107
16009 * match.pd (div (coss (op @0) : New simplifier.
16010
16011 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16012
16013 PR rtl-optimization/64164
16014 PR bootstrap/66978
16015 PR middle-end/66983
16016 PR rtl-optimization/67000
16017 PR middle-end/67034
16018 PR middle-end/67035
16019 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16020 * tree-ssa-copyrename.c: Removed.
16021 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16022 -ftree-coalesce-vars.
16023 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16024 * common.opt (ftree-copyrename): Ignore.
16025 (ftree-coalesce-inlined-vars): Likewise.
16026 * doc/invoke.texi: Remove the ignored options above.
16027 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16028 * tree-ssa-coalesce.h: ... here.
16029 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16030 headers required by it.
16031 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16032 across variables when flag_tree_coalesce_vars. Check register
16033 use and promoted modes to allow coalescing. Do not coalesce
16034 maybe-byref parms with SSA_NAMEs of other variables, or
16035 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16036 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16037 with its member functions to tree-ssa-coalesce.c.
16038 (var_map_base_init): Likewise. Renamed to
16039 compute_samebase_partition_bases.
16040 (partition_view_normal): Drop want_bases parameter.
16041 (partition_view_bitmap): Likewise.
16042 * tree-ssa-live.h: Adjust declarations.
16043 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16044 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16045 default defs at the entry point.
16046 (dump_part_var_map): New.
16047 (compute_optimized_partition_bases): New, called by...
16048 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16049 of compute_samebase_partition_bases. Adjust.
16050 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16051 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16052 (ssa_default_def_partition): New.
16053 (get_rtl_for_parm_ssa_default_def): New.
16054 (align_local_variable, add_stack_var): Support anonymous SSA
16055 names.
16056 (defer_stack_allocation): Likewise. Declare earlier.
16057 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16058 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16059 Do no record deferred-allocation marker in
16060 SA.partition_to_pseudo.
16061 (expand_stack_vars): Adjust check for the marker in it.
16062 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16063 redundant MEM attr setting.
16064 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16065 from...
16066 (expand_one_stack_var): ... this. New wrapper to check and
16067 skip already expanded SSA partitions.
16068 (record_alignment_for_reg_var): New, factored out of...
16069 (expand_one_var): ... this.
16070 (expand_one_ssa_partition): New.
16071 (adjust_one_expanded_partition_var): New.
16072 (expand_one_register_var): Check and skip already expanded SSA
16073 partitions.
16074 (expand_used_vars): Don't create DECLs for anonymous SSA
16075 names. Expand all SSA partitions, then adjust all SSA names.
16076 (pass::execute): Replace the loops that set
16077 SA.partition_to_pseudo from partition leaders and cleared
16078 DECL_RTL for multi-location variables, and that which used to
16079 rename vars and set attrs, with one that clears DECL_RTL and
16080 checks that PARMs and RESULTs default_defs match DECL_RTL.
16081 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16082 * emit-rtl.c: Include stor-layout.h.
16083 (set_reg_attrs_for_parm): Handle NULL decl.
16084 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16085 it's not a DECL.
16086 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16087 rather than its possibly-NULL DECL.
16088 * explow.c (promote_ssa_mode): New.
16089 * explow.h (promote_ssa_mode): Declare.
16090 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16091 (read_complex_part): Export.
16092 * expr.h (read_complex_part): Declare.
16093 * cfgexpand.h (parm_maybe_byref_p): Declare.
16094 * function.c: Include cfgexpand.h.
16095 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16096 (use_register_for_parm_decl): Wrapper for the above to
16097 special-case the result_ptr.
16098 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16099 (split_complex_args): Take assign_parm_data_all argument.
16100 Pass it to rtl_for_parm. Set up rtl and context for split
16101 args. Reset complex parm before fetching its default decl
16102 rtl.
16103 (assign_parms_unsplit_complex): Use the default-def complex
16104 parm rtl if it matches the components.
16105 (assign_parms_augmented_arg_list): Adjust.
16106 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16107 multiple locations. Recognize split complex args.
16108 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16109 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16110 (assign_parm_setup_block): Prefer SSA-assigned location, and
16111 fill in its address if the memory location of a maybe-byref
16112 parm was not assigned by cfgexpand.
16113 (assign_parm_setup_reg): Likewise. Adjust its mode as
16114 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16115 sure passed_pointer parms don't need conversion. Copy address
16116 or value as needed.
16117 (assign_parm_setup_stack): Prefer SSA-assigned location.
16118 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16119 rtl before testing for pointer bounds. Special-case result_ptr.
16120 (expand_function_start): Maybe reset DECL_RTL of result.
16121 Prefer SSA-assigned location for result and static chain.
16122 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16123 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16124 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16125 anonymous SSA names. Use promote_ssa_mode.
16126 (get_temp_reg): Likewise.
16127 (remove_ssa_form): Adjust.
16128 * stor-layout.c (layout_decl): Don't set mem attributes of
16129 non-MEMs.
16130 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16131 and get its reg_usage for reg invalidation.
16132 (compute_bb_dataflow): Pass it insn.
16133 (emit_notes_in_bb): Likewise.
16134
16135 2015-08-14 Marek Polacek <polacek@redhat.com>
16136
16137 * tree-core.h (tree_base): Fix typo.
16138
16139 2015-08-14 Marek Polacek <polacek@redhat.com>
16140
16141 PR middle-end/67133
16142 * gimple.c (infer_nonnull_range_by_attribute): Check that the
16143 nonnull argument position is not outside function arguments.
16144
16145 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
16146
16147 PR target/67143
16148 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16149 'lconst_atomic' with 'const_atomic'.
16150 (atomic_fetch_<optab><mode>): Likewise.
16151 (atomic_<optab>_fetch<mode>): Likewise.
16152 * config/aarch64/iterators.md (lconst-atomic): Move below
16153 'const_atomic'.
16154 (const_atomic): New.
16155
16156 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
16157 Bernd Schmidt <bernds@codesourcery.com>
16158
16159 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16160 debug options.
16161 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16162 (DWARF2_DEBUGGING_INFO): Don't define.
16163 * debug.h (dwarf2_lineno_debug_hooks): Declare.
16164 * toplev.c (process_options): Add a case for it.
16165 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16166 (dwarf2out_init): Skip most initializations if
16167 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16168 case.
16169 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16170 DWARF2_LINENO_DEBUGGING_INFO.
16171 * opts.c (set_debug_level): Likewise.
16172
16173 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16174
16175 * config/arm/types.md (is_neon_type): Add missing types.
16176
16177 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16178
16179 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16180 for skylake.
16181 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16182 (processor_alias_table): Add skylake description.
16183 (enum processor_model): Add skylake processor.
16184 (arch_names_table): Add skylake record.
16185 * doc/invoke.texi: Add skylake item.
16186
16187 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16188
16189 * ira-int.h: Include recog.h.
16190 * ira-build.c: Don't include recog.h.
16191 * ira-color.c: Likewise.
16192 * ira-conflicts.c: Likewise.
16193 * ira-costs.c: Likewise.
16194 * ira-emit.c: Likewise.
16195 * ira-lives.c: Likewise.
16196 * ira.c: Likewise.
16197 * sched-deps.c: Likewise.
16198 * sel-sched.c: Likewise.
16199 * target-globals.c: Likewise.
16200
16201 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16202
16203 PR bootstrap/55035
16204 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16205 compiler that the n_dups and n_operands loop bounds are invariant.
16206
16207 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16208
16209 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16210 expressions in A and B.
16211
16212 2015-08-13 Richard Biener <rguenther@suse.de>
16213
16214 * tree.c (nonnull_arg_p): Move from ...
16215 * tree-vrp.c (nonnull_arg_p): ... here.
16216 * tree.h (nonnull_arg_p): Declare.
16217 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16218 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16219 Properly initialize static chain and by-reference result pointer.
16220 (run_scc_vn): Adjust.
16221
16222 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16223
16224 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16225 TUNE_I6400.
16226
16227 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16228
16229 * config/aarch64/aarch64-protos.h
16230 (aarch64_gen_atomic_cas): Declare.
16231 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16232 Choose appropriate instruction pattern for the target.
16233 (aarch64_gen_atomic_cas): New.
16234 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16235 (atomic_compare_and_swap<mode>_1): Rename to
16236 aarch64_compare_and_swap<mode>. Fix some indentation.
16237 (aarch64_compare_and_swap<mode>_lse): New.
16238 (aarch64_atomic_cas<mode>): New.
16239
16240 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16241
16242 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16243 (TARGET_LSE): New.
16244
16245 2015-08-13 Richard Biener <rguenther@suse.de>
16246
16247 PR tree-optimization/67191
16248 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16249 assert we value-numbered last stmts operand because it can validly
16250 trigger for unreachable code.
16251
16252 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16253
16254 PR rtl-optimization/67103
16255 * ifcvt.c (noce_try_store_flag_constants): Move
16256 x = (-(test != 0) & (b - a)) + a transformation to...
16257 (noce_try_cmove): ... Here. Try it if normal conditional
16258 move fails.
16259
16260 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16261
16262 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16263 pseudo-processors.
16264 * config/mips/mips.md (processor): Remove w32 and w64.
16265
16266 2015-08-13 Richard Biener <rguenther@suse.de>
16267
16268 PR tree-optimization/66502
16269 PR tree-optimization/67167
16270 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16271 backedge arguments.
16272 (vn_phi_lookup): Adjust.
16273 (vn_phi_insert): Likewise.
16274 (visit_phi): Prefer to value-number to another PHI node
16275 over value-numbering to a PHI argument.
16276 (init_scc_vn): Mark DFS back edges.
16277
16278 2015-08-13 Richard Biener <rguenther@suse.de>
16279
16280 * gimple.h (gcall::code_): New constant static member.
16281 (gcond::code_): Likewise.
16282 * gimple.c (gcall::code_): Define.
16283 (gcond::code_): Likewise.
16284 (is_a_helper <const gcond *>): Add.
16285 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16286 and forward to a new gcall overload with less checking and a
16287 cheaper way to access the operand.
16288 (gimple_call_lhs_ptr): Likewise.
16289 (gimple_call_set_lhs): Likewise.
16290 (gimple_call_internal_p): Likewise.
16291 (gimple_call_with_bounds_p): Likewise.
16292 (gimple_call_set_with_bounds): Likewise.
16293 (gimple_call_internal_fn): Likewise.
16294 (gimple_call_set_ctrl_altering): Likewise.
16295 (gimple_call_ctrl_altering_p): Likewise.
16296 (gimple_call_fntype): Likewise.
16297 (gimple_call_fn): Likewise.
16298 (gimple_call_fn_ptr): Likewise.
16299 (gimple_call_set_fndecl): Likewise.
16300 (gimple_call_fndecl): Likewise.
16301 (gimple_call_chain): Likewise.
16302 (gimple_call_num_args): Likewise.
16303 (gimple_call_arg): Likewise.
16304 (gimple_call_arg_ptr): Likewise.
16305 (gimple_call_set_arg): Likewise.
16306 (gimple_call_noreturn_p): Likewise.
16307 (gimple_cond_code): Likewise.
16308 (gimple_cond_lhs): Likewise.
16309 (gimple_cond_rhs): Likewise.
16310 (gimple_has_lhs): Reduce checking.
16311
16312 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16313
16314 PR middle-end/25529
16315 * match.pd (div (mult @0 @1) @1) : New simplifier.
16316
16317 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16318
16319 PR target/67071
16320 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16321 predicate to allow construction of vector constants using the
16322 VSLDOI vector shift instruction.
16323
16324 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16325 declaration.
16326
16327 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16328 the number of bytes to be shifted left and filled in with either
16329 all zero or all one bits.
16330 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16331 methods exist.
16332 (output_vec_const_move): On power8, generate XXLORC to generate
16333 a vector constant with all 1's. Do a split if we need to use a
16334 VSLDOI instruction.
16335
16336 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16337 properly test for the MSB.
16338
16339 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16340 vector constants that can be created with VSLDOI.
16341
16342 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16343
16344 revert:
16345 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16346 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16347 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16348 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16349 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16350 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16351 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16352 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16353 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16354
16355 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16356
16357 * config/xtensa/constraints.md (define_constraint "Y"): New
16358 constraint.
16359 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16360 * config/xtensa/linux.h (ASM_SPEC): Likewise.
16361 * config/xtensa/predicates.md (move_operand): Match constants
16362 and symbols in the presence of TARGET_AUTO_LITPOOLS.
16363 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16364 immediate references to TLS data.
16365 (xtensa_emit_move_sequence): Don't force constants to memory in
16366 the presence of TARGET_AUTO_LITPOOLS.
16367 (print_operand): Add 'y' format, same as default, but capable of
16368 printing SF mode constants as well.
16369 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16370 (movsf_internal): Add movi pattern that loads literal.
16371 (movsf, movdf): Don't force constants to memory in the presence
16372 of TARGET_AUTO_LITPOOLS.
16373 (movdf_internal): Add 'Y' constraint.
16374 * config/xtensa/xtensa.opt (mauto-litpools): New option.
16375 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16376
16377 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16378
16379 * config/arm/arm-fpus.def: Replace booleans with feature flags.
16380 Update comment.
16381 * config/arm/arm.c (ARM_FPU): Update macro.
16382 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16383 (TARGET_FP16): Likewise.
16384 (TARGET_CRYPTO): Likewise.
16385 (TARGET_NEON): Likewise.
16386 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
16387 field features.
16388
16389 2015-08-12 Tom de Vries <tom@codesourcery.com>
16390
16391 PR other/67092
16392 PR other/67098
16393 * doc/install.texi: Remove --with_host_libstdcxx item. Update
16394 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16395 accordingly. Mention default for --with-stage1-ldflags.
16396
16397 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16398
16399 * config/arm/arm.h (arm_fpu_feature_set): New.
16400 (ARM_FPU_FSET_HAS): New.
16401 (FPU_FL_NONE): New.
16402 (FPU_FL_NEON): New.
16403 (FPU_FL_FP16): New.
16404 (FPU_FL_CRYPTO): New.
16405
16406 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16407
16408 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16409 after -mcmodel=large -fPIC sorry.
16410
16411 2015-08-12 Richard Biener <rguenther@suse.de>
16412
16413 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16414 comparison operand order and commutative ternary op operand order.
16415 (sccvn_dom_walker::cond_stack): New state to track temporary
16416 expressions.
16417 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16418 no longer valid.
16419 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16420 expression.
16421 (sccvn_dom_walker::record_conds): Add a temporary conditional
16422 expressions and all related expressions also true/false.
16423 (sccvn_dom_walker::before_dom_children): Record temporary
16424 expressions based on the controlling condition of a single
16425 predecessor. When trying to simplify a conditional statement
16426 lookup expressions we might have inserted earlier.
16427
16428 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
16429
16430 PR target/67127
16431 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16432 to ARM core registers.
16433
16434 2015-08-12 Nathan Sidwell <nathan@acm.org>
16435
16436 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16437 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16438
16439 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
16440
16441 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16442 line with comments.
16443 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16444
16445 2015-08-12 Richard Biener <rguenther@suse.de>
16446
16447 * gimple.h (remove_pointer): New trait.
16448 (GIMPLE_CHECK2): New inline template function.
16449 (gassign::code_): New constant static member.
16450 (is_a_helper<const gassign *>): Add.
16451 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16452 and forward to a new gassign overload with less checking and a
16453 cheaper way to access the operand.
16454 (gimple_assign_lhs_ptr): Likewise.
16455 (gimple_assign_set_lhs): Likewise.
16456 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16457 Likewise.
16458 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16459 Likewise.
16460 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16461 Likewise.
16462 (gimple_assign_rhs_code): Likewise.
16463 * gimple.c (gassign::code_): Define.
16464
16465 2015-08-12 Richard Biener <rguenther@suse.de>
16466
16467 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16468 Eliminate edges marked as not executable by SCCVN.
16469 * tree-ssa-sccvn.c: Include gimple-iterator.h.
16470 (cond_dom_walker): Rename to sccvn_dom_walker.
16471 (sccvn_dom_walker::before_dom_children): Value-number defs
16472 of all stmts.
16473 (run_scc_vn): Remove loop value-numbering all SSA names.
16474 Drop not visited SSA names to varying.
16475
16476 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16477
16478 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16479 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16480 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16481 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16482 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16483 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16484 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16485 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16486 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16487
16488 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16489
16490 PR target/66954
16491 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16492 to enum feature_priority and feature_list.
16493 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16494 and isa_names_table.
16495
16496 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16497
16498 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16499 vect_induction_def.
16500
16501 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16502
16503 PR c/66098
16504 PR c/66711
16505 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16506 account when deciding what was the command-line status.
16507
16508 2015-08-11 Nathan Sidwell <nathan@acm.org>
16509
16510 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16511
16512 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16513 we're not the only contributor to target phi.
16514
16515 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16516
16517 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16518 FIXED_REG0.
16519
16520 2015-08-11 Tom de Vries <tom@codesourcery.com>
16521
16522 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16523
16524 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16525
16526 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16527 with CPU_SLM.
16528 * config/i386/i386.md (cpu): Remove knl.
16529
16530 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16531
16532 PR libgomp/65742
16533 PR middle-end/66332
16534 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16535 open-coded sequence.
16536 * omp-low.c (oacc_process_reduction_data): Remove handline of
16537 GOMP_DEVICE_HOST_NONSHM.
16538
16539 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16540 GET_MODE_INNER changes.
16541
16542 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16543 Ilya Verbin <ilya.verbin@intel.com>
16544
16545 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16546
16547 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16548
16549 * doc/options.texi (EnabledBy): Document that the argument must be
16550 a Common option.
16551 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16552 Not enabled by -Wall.
16553 * optc-gen.awk: Give nicer error messages. Detect if the argument
16554 of EnabledBy is not a Common option.
16555 * common.opt (Wnull-dereference): Not enabled by -Wall.
16556 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16557
16558 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16559
16560 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16561 model == 0x4f as Broadwell.
16562
16563 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16564
16565 PR rtl-optimization/67028
16566 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16567 Add test to see if a const_int fits in the new mode.
16568
16569 2015-08-07 DJ Delorie <dj@redhat.com>
16570
16571 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16572
16573 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16574
16575 PR rtl-optimization/67029
16576 * ira-color.c: Include "recog.h" before including "ira-int.h".
16577 * target-globals.c: Likewise.
16578 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16579 adds an alternative_mask argument and use it instead of
16580 preferred_alternatives.
16581 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16582 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16583 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16584 (sched_analyze_insn): Update call to
16585 ira_implicitly_set_insn_hard_regs.
16586 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16587 (implicit_clobber_conflict_p): Update call to
16588 ira_implicitly_set_insn_hard_regs.
16589
16590 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16591
16592 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16593
16594 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16595
16596 PR target/67002
16597 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16598 currently_expanding_to_rtl is set.
16599
16600 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16601
16602 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16603 * configure: Regenerate.
16604
16605 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16606 Jiong Wang <jiong.wang@arm.com>
16607
16608 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16609 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16610 (REG_CLASS_NAMES): Likewise.
16611 (REG_CLASS_CONTENTS): Likewise.
16612 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16613 (aarch64_register_move_cost): Likewise.
16614 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16615 possible.
16616 * config/aarch64/constraints.md (Uc0): New constraint.
16617
16618 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16619
16620 * config/aarch64/constraints.md (Usf): Add the test of
16621 aarch64_is_noplt_call_p.
16622
16623 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16624
16625 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16626 declaration.
16627 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16628 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16629 (call_symbol): Likewise.
16630
16631 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16632
16633 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16634 for vectorizing multiplication patterns.
16635 * tree-vectorizer.h: Adjust the number of patterns.
16636
16637 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16638
16639 * config/i386/sse.md (*vec_concatv2df): Declare added
16640 alternatives as sselog type.
16641
16642 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16643
16644 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16645 all GPRs.
16646
16647 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16648
16649 * config/s390/s390.c (s390_expand_tbegin): Expand either
16650 tbegin_1_z13 or tbegin_1 depending on VX flag.
16651 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16652
16653 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16654
16655 * config/s390/s390.opt: Clarify description for -mzvector
16656 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16657 -mzvector.
16658
16659 2015-08-06 Richard Biener <rguenther@suse.de>
16660
16661 * gimple.h (gimple_call_set_fn): Access op member directly.
16662 (gimple_call_chain_ptr): Likewise.
16663 (gimple_call_set_chain): Likewise.
16664 (gimple_cond_lhs_ptr): Likewise.
16665 (gimple_cond_set_lhs): Likewise.
16666 (gimple_cond_rhs_ptr): Likewise.
16667 (gimple_cond_set_rhs): Likewise.
16668 (gimple_cond_true_label): Likewise.
16669 (gimple_cond_set_true_label): Likewise.
16670 (gimple_cond_set_false_label): Likewise.
16671 (gimple_cond_false_label): Likewise.
16672 (gimple_label_label): Likewise.
16673 (gimple_label_set_label): Likewise.
16674 (gimple_goto_set_dest): Likewise.
16675 (gimple_asm_input_op): Likewise.
16676 (gimple_asm_input_op_ptr): Likewise.
16677 (gimple_asm_set_input_op): Likewise.
16678 (gimple_asm_output_op): Likewise.
16679 (gimple_asm_output_op_ptr): Likewise.
16680 (gimple_asm_set_output_op): Likewise.
16681 (gimple_asm_clobber_op): Likewise.
16682 (gimple_asm_set_clobber_op): Likewise.
16683 (gimple_asm_label_op): Likewise.
16684 (gimple_asm_set_label_op): Likewise.
16685 (gimple_switch_index): Likewise.
16686 (gimple_switch_index_ptr): Likewise.
16687 (gimple_return_retval_ptr): Likewise.
16688 (gimple_return_retval): Likewise.
16689 (gimple_return_set_retval): Likewise.
16690 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16691 (gimple_switch_label): Likewise.
16692 (gimple_switch_set_label): Likewise.
16693
16694 2015-08-06 Richard Biener <rguenther@suse.de>
16695
16696 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16697 bool comparison canonicalization and restrict to integers.
16698
16699 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16700
16701 * coretypes.h (enum symbol_visibility): Relocate here.
16702 * flag-types.h (enum symbol_visibility): Remove.
16703 * tree-core.h (enum symbol_visibility): Remove.
16704
16705 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16706
16707 PR target/66870
16708 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16709 for no_split_stack function attribute along with
16710 flag_split_stack.
16711 (rs6000_expand_split_stack_prologue): Likewise.
16712
16713 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16714 Jeff Law <law@redhat.com>
16715
16716 PR c/16351
16717 * doc/invoke.texi (Wnull-dereference): New.
16718 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16719 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16720 Warn for potential NULL dereferences.
16721 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16722 * ubsan.c (instrument_nonnull_arg): Call
16723 infer_nonnull_range_by_attribute.
16724 (instrument_nonnull_return): Likewise.
16725 * common.opt (Wnull-dereference); New.
16726 * gimple.c (infer_nonnull_range): Remove bool arguments.
16727 (infer_nonnull_range_by_dereference): New.
16728 (infer_nonnull_range_by_attribute): New.
16729 * gimple.h: Update declarations.
16730
16731 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16732
16733 * gensupport.c (sequence_num): Replace with...
16734 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16735 ...these new variables.
16736 (init_rtx_reader_args_cb): Update accordingly.
16737 (get_num_code_insns): Likewise.
16738 (read_md_rtx): Rework to use a while loop and get_c_test.
16739 Use the new counters. Remove redundant DEFINE_SUBST case.
16740 * genoutput.c (gen_split): Delete.
16741 (main): Don't call it.
16742
16743 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16744
16745 * gensupport.h (get_c_test): Declare.
16746 * gensupport.c (get_c_test): New function.
16747 * genconditions.c (main): Use it.
16748 * genrecog.c (validate_pattern): Likewise.
16749 (match_pattern_1): Likewise. Remove c_test argument.
16750 (match_pattern): Update accordingly and remove c_test argument.
16751 (main): Update accordingly.
16752
16753 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16754
16755 * gensupport.h (get_num_insn_codes): Declare.
16756 * gensupport.c (get_num_insn_codes): New function.
16757 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16758 num_insn_codes.
16759 (main): Likewise. Use get_num_insn_codes.
16760 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16761
16762 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16763
16764 PR middle-end/66311
16765 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16766 is zero- rather than sign-extended.
16767
16768 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16769
16770 * target-insns.def (can_extend): Delete.
16771
16772 2015-08-05 Richard Biener <rguenther@suse.de>
16773
16774 PR tree-optimization/67121
16775 * tree-if-conv.c (combine_blocks): Clear range-info produced
16776 by stmts no longer executed conditionally.
16777
16778 2015-08-05 Nick Clifton <nickc@redhat.com>
16779
16780 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16781 to allow identical far pointers to remain.
16782
16783 2015-08-05 Richard Biener <rguenther@suse.de>
16784
16785 PR middle-end/67120
16786 * match.pd: Compare address bases with == if they are decls
16787 or SSA names, not operand_equal_p. Otherwise fail.
16788
16789 2015-08-05 Richard Biener <rguenther@suse.de>
16790
16791 PR tree-optimization/67055
16792 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16793 NULL gimple_block.
16794
16795 * g++.dg/torture/pr67055.C: New testcase.
16796
16797 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16798
16799 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16800 noavx512vl.
16801 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16802 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16803 AVX-512 alternative out of SSE.
16804 (define_insn "*vec_concatv2df"): Ditto.
16805
16806 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16807
16808 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16809 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16810 CODE_FOR_avx_ptestv4di.
16811 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16812 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16813 (define_insn "avx_ptest256"): Merge this ...
16814 (define_insn "sse4_1_ptest"): And this ...
16815 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16816
16817 2015-08-05 Richard Biener <rguenther@suse.de>
16818
16819 PR tree-optimization/67109
16820 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16821 against too big groups. Print whether this is a load or store
16822 group. Rename from ...
16823 (vect_analyze_group_access): ... this which is now a wrapper
16824 dissolving an invalid group.
16825 (vect_analyze_data_ref_accesses): Print whether this is a load
16826 or store group.
16827
16828 2015-08-05 Richard Biener <rguenther@suse.de>
16829
16830 PR middle-end/67107
16831 * match.pd: Guard const_binop result checking against NULL_TREE
16832 result.
16833
16834 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16835
16836 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16837 when dest and value in the REG_EQUAL are same and dest
16838 is STRICT_LOW_PART.
16839
16840 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16841
16842 * config/moxie/moxie.h (PRINT_OPERAND,
16843 PRINT_OPERAND_ADDRESS): Remove macros.
16844 * config/moxie/moxie-protos.h (moxie_print_operand,
16845 moxie_print_operand_address): Remove declaration.
16846 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16847 TARGET_PRINT_OPERAND_ADDRESS): Define.
16848 (moxie_print_operand, moxie_print_operand_address): Make static.
16849
16850 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16851
16852 PR target/66731
16853 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16854 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16855
16856 2015-08-04 Richard Biener <rguenther@suse.de>
16857
16858 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16859 generated code.
16860 (dt_operand::gen_gimple_expr): Adjust.
16861
16862 2015-08-04 Richard Biener <rguenther@suse.de>
16863
16864 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16865 bool compares on RHS.
16866 * match.pd: Add X ==/!= !X is false/true pattern.
16867
16868 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16869
16870 * config/aarch64/aarch64.c: Change inner loop statement cost
16871 to be consistent with other targets.
16872
16873 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16874
16875 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16876 targets.
16877
16878 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16879
16880 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16881 (machine_function): Remove pseudos field.
16882
16883 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16884
16885 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16886 Exit early and use target_option_current_node if processing current
16887 pragma.
16888
16889 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16890
16891 * doc/extend.texi (AArch64 Function Attributes): New node.
16892 (AArch64 Pragmas): Likewise.
16893
16894 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16895
16896 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16897 Initialize simd builtins if TARGET_SIMD.
16898 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16899 Make sure that the builtins are initialized only once no matter how
16900 many times the function is called.
16901 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16902 (aarch64_relayout_simd_param): New function.
16903 (aarch64_simd_expand_args): Use above during argument expansion.
16904 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16905 simd builtins if TARGET_SIMD.
16906 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16907 prototype.
16908 (aarch64_relayout_simd_types): Likewise.
16909
16910 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16911
16912 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16913 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16914 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16915 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16916 static keyword.
16917 (aarch64_reset_previous_fndecl): New function.
16918 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16919 the string.
16920 * config/aarch64/aarch64-c.c: New file.
16921 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16922 Push and pop options at beginning and end. Remove ifdef
16923 __ARM_FEATURE_CRC32.
16924 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16925 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16926 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16927 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16928 Define prototype.
16929 (aarch64_register_pragmas): Likewise.
16930 (aarch64_reset_previous_fndecl): Likewise.
16931 (aarch64_process_target_attr): Likewise.
16932 (aarch64_override_options_internal): Likewise.
16933
16934 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16935
16936 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16937 New function.
16938 (aarch64_can_inline_p): Likewise.
16939 (TARGET_CAN_INLINE_P): Define.
16940
16941 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16942
16943 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16944 Remove static. Handle OPT_mgeneral_regs_only,
16945 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16946 OPT_momit_leaf_frame_pointer.
16947 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16948 (aarch64_attr_opt_type): New enum.
16949 (aarch64_attribute_info): New struct.
16950 (aarch64_handle_attr_arch): New function.
16951 (aarch64_handle_attr_cpu): Likewise.
16952 (aarch64_handle_attr_tune): Likewise.
16953 (aarch64_handle_attr_isa_flags): Likewise.
16954 (aarch64_attributes): New table.
16955 (aarch64_process_one_target_attr): New function.
16956 (num_occurences_in_str): Likewise.
16957 (aarch64_process_target_attr): Likewise.
16958 (aarch64_option_valid_attribute_p): Likewise.
16959 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16960 * config/aarch64/aarch64-protos.h: Include input.h
16961 (aarch64_handle_option): Declare prototype.
16962
16963 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16964
16965 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16966 * config/aarch64/aarch64.c: Include target-globals.h
16967 (aarch64_previous_fndecl): New variable.
16968 (aarch64_set_current_function): New function.
16969 (TARGET_SET_CURRENT_FUNCTION): Define.
16970
16971 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16972
16973 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16974 (explicit_arch): Likewise.
16975 (x_aarch64_isa_flags): Likewise.
16976 (mgeneral-regs-only): Mark as Save.
16977 (mfix-cortex-a53-835769): Likewise.
16978 (mcmodel=): Likewise.
16979 (mstrict-align): Likewise.
16980 (momit-leaf-frame-pointer): Likewise.
16981 (mtls-dialect): Likewise.
16982 (master=): Likewise.
16983 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16984 (aarch64_isa_flags): Remove extern declaration.
16985 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16986 to indicate success or failure.
16987 (aarch64_validate_march): Likewise.
16988 (aarch64_validate_mtune): Likewise.
16989 (aarch64_isa_flags): Delete.
16990 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16991 instead of aarch64_isa_flags.
16992 (aarch64_get_tune_cpu): New function.
16993 (aarch64_get_arch): Likewise.
16994 (aarch64_override_options): Use above and set up explicit_tune_core
16995 and explicit_arch.
16996 (aarch64_print_extension): Move earlier in file. Add isa_flags
16997 argument and use that instead of the global aarch64_isa_flags.
16998 (aarch64_option_save): New function.
16999 (aarch64_option_restore): Likewise.
17000 (aarch64_option_print): Likewise.
17001 (aarch64_declare_function_name): Likewise.
17002 (aarch64_start_file): Delete.
17003 (TARGET_ASM_FILE_START): Do not define.
17004 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17005 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17006 Declare prototype.
17007
17008 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17009
17010 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17011 flag_omit_leaf_frame_pointer to 2.
17012
17013 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17014
17015 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17016 define to 0 or 1.
17017 (TARGET_FIX_ERR_A53_835769): New macro.
17018 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17019 handling of opts->x_aarch64_fix_a53_err835769.
17020 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17021 than aarch64_fix_a53_err835769.
17022 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17023 * config/aarch64/aarch64-linux.h: Likewise.
17024
17025 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17026
17027 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17028 ix86_expand_int_movcc as boolean.
17029
17030 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17031
17032 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17033 (aarch64_cpu_string): Likewise.
17034 (aarch64_tune_string): Likewise.
17035 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17036 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17037 Add extra argument to put result into.
17038 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17039 (aarch64_parse_cpu): Add arguments to put results into. Return
17040 aarch64_parse_opt_result.
17041 (aarch64_parse_tune): Likewise.
17042 (aarch64_override_options_after_change_1): New function.
17043 (aarch64_override_options_internal): New function.
17044 (aarch64_validate_mcpu): Likewise.
17045 (aarch64_validate_march): Likewise.
17046 (aarch64_validate_mtune): Likewise.
17047 (aarch64_override_options): Update to reflect above changes.
17048 Move some logic into aarch64_override_options_internal.
17049 Initialize target_option_default_node and target_option_current_node.
17050 (aarch64_override_options_after_change): Move logic into
17051 aarch64_override_options_after_change_1 and call it with global_options.
17052 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17053 flag values from that.
17054
17055 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17056
17057 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17058 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17059 * config/aarch64/aarch64.c (struct processor): Add arch field.
17060 (all_architectures): Handle above, move above all_cores.
17061 (all_cores): Handle above.
17062 (aarch64_parse_arch): Handle above changes.
17063 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17064 above. Update comments.
17065 (armv8.1-a): Likewise.
17066 * config/aarch64/aarch64-cores.def: Update according to above.
17067 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17068 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17069 aarch64_arch_driver_info.
17070
17071 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17072
17073 * config/aarch64/aarch64.c (struct processor): Add ident field.
17074 Rename core sched_core.
17075 (all_cores): Handle above changes.
17076 (all_architectures): Likewise.
17077 (aarch64_parse_arch): Likewise.
17078 (aarch64_override_options): Likewise.
17079
17080 2015-08-04 Richard Biener <rguenther@suse.de>
17081
17082 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17083 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17084 comparisons embedded in [VEC_]COND_EXPRs.
17085
17086 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17087
17088 * tree-if-conv.c: Fix various typos in comments.
17089 * tree-vect-stmts.c: Likewise.
17090
17091 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17092
17093 PR tree-optimization/67043
17094 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17095 preheader after hoisting invariant in it.
17096 (find_defs): Force recomputation of all luids.
17097
17098 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17099
17100 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17101 using a base register.
17102
17103 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17104
17105 * main.c (main): Pass in NULL for toplev's external_timer.
17106 * timevar.c: Include coretypes.h.
17107 (class timer::named_items): New.
17108 (timer::named_items::named_items): New.
17109 (timer::named_items::~named_items): New.
17110 (timer::named_items::push): New.
17111 (timer::named_items::pop): New.
17112 (timer::named_items::print): New.
17113 (timer::timer): Initialize field "m_jit_client_items".
17114 (timer::~timer): New.
17115 (timer::push): Move bulk of implementation to...
17116 (timer::push_internal): ...here. New function.
17117 (timer::pop): Move bulk of implementation to...
17118 (timer::pop_internal): ...here. New function.
17119 (timer::push_client_item): New.
17120 (timer::pop_client_item): New.
17121 (timer::print_row): New function, taken from timer::print.
17122 (timer::print): Print "GCC items" header if we also have client
17123 items. Move row-printing to timer::print_row. Print any client
17124 items.
17125 (timer::get_topmost_item_name): New method.
17126 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17127 (TV_JIT_CLIENT_CODE): New.
17128 * timevar.h (timer::push_client_item): New declaration.
17129 (timer::pop_client_item): New declaration.
17130 (timer::get_topmost_item_name): New method.
17131 (timer::push_internal): New declaration.
17132 (timer::pop_internal): New declaration.
17133 (timer::print_row): New declaration.
17134 (timer::named_items): New declaration.
17135 (timer::m_jit_client_items): New field.
17136 (timer): Add friend class named_items.
17137 (auto_timevar::auto_timevar): Add timer param.
17138 (auto_timevar::~auto_timevar): Use field "m_timer".
17139 (auto_timevar::m_timer): New field.
17140 * toplev.c (initialize_rtl): Add g_timer as param when
17141 constructing auto_timevar instance.
17142 (toplev::toplev): Add "external_timer" param, and use it to
17143 initialize the "g_timer" global if non-NULL.
17144 (toplev::~toplev): If this created "g_timer", delete it.
17145 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17146 with "external_timer" timer *.
17147
17148 2015-08-03 Alexander Basov <coohpt@gmail.com>
17149
17150 PR middle-end/64744
17151 PR middle-end/48470
17152 PR middle-end/43404
17153 * cfgexpand.c (expand_one_var): Add check if stack is going to
17154 be used in naked function.
17155 * expr.c (expand_expr_addr_expr_1): Remove excess checking
17156 whether expression should not reside in MEM.
17157 * function.c (use_register_for_decl): Do not use registers for
17158 non-register things (volatile, float, BLKMode) in naked functions.
17159
17160 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
17161
17162 PR target/67060
17163 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17164 Adjust splits to match new pattern.
17165
17166 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17167
17168 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17169 (VEC_M): Likewise.
17170 (VEC_N): Likewise.
17171 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17172 point in VSX registers.
17173
17174 * config/rs6000/constraints.md (wb constraint): Document unused
17175 w<x> constraint.
17176 (we constraint): Likewise.
17177 (wo constraint): Likewise.
17178 (wp constraint): New constraint for IEEE 128-bit floating point in
17179 VSX registers.
17180 (wq constraint): Likewise.
17181
17182 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17183 IEEE 128-bit floating point in VSX registers.
17184 (easy_scalar_constant): Likewise.
17185
17186 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17187 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17188 registers.
17189 (rs6000_init_hard_regno_mode_ok): Likewise.
17190
17191 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17192 floating point in VSX registers.
17193 (VSX_L): Likewise.
17194 (VSX_M): Likewise.
17195 (VSX_M2): Likewise.
17196 (VSm): Likewise.
17197 (VSs): Likewise.
17198 (VSr): Likewise.
17199 (VSa): Likewise.
17200 (VSv): Likewise.
17201 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17202 IEEE 128-bit floating point in VSX registers on little endian.
17203 (vsx_le_undo_permute_<mode>): Likewise.
17204 (vsx_le_perm_load_<mode>): Likewise.
17205 (vsx_le_perm_store_<mode>): Likewise.
17206 (splitters for IEEE 128-bit fp moves): Likewise.
17207
17208 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17209 wq constraints.
17210
17211 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17212 floating point in VSX registers.
17213 (VM2): Likewise.
17214
17215 * doc/md.text (Machine Constraints): Document wp and wq
17216 constraints on PowerPC.
17217
17218 2015-08-03 Jeff Law <law@redhat.com>
17219
17220 PR middle-end/66314
17221 PR gcov-profile/66899
17222 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17223 iterate over the jump threading paths when an element in the
17224 jump threading paths array is eliminated.
17225
17226 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17227
17228 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17229
17230 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17231
17232 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17233 is_use_properly_guarded the variable def_preds. Free its
17234 contents before returning.
17235 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17236 (is_use_properly_guarded): Replace local variable def_preds with
17237 a parameter. Adjust accordingly. Only update *def_preds if it's
17238 the empty vector.
17239
17240 2015-08-03 Richard Biener <rguenther@suse.de>
17241
17242 * genmatch.c (simplify::for_subst_vec): New member.
17243 (binary_ok): New helper for for lowering.
17244 (lower_for): Delay substituting operators into result expressions
17245 if we can merge the results eventually again.
17246 (capture_info::walk_result): Adjust for user_id appearing as
17247 result expression operator.
17248 (expr::gen_transform): Likewise.
17249 (dt_simplify::gen_1): Likewise.
17250 (dt_simplify::gen): Pass not substituted operators to tail
17251 functions or initialize local variable with it.
17252 (decision_tree::gen): Adjust function signature.
17253 * match.pd: Fix tests against global code and add default
17254 cases to switch stmts.
17255
17256 2015-08-03 Richard Biener <rguenther@suse.de>
17257
17258 * genmatch.c (dt_simplify::gen): Create captures array
17259 with an initializer.
17260
17261 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17262
17263 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17264 the host compiler is affected by placement new aliasing bug.
17265 * configure: Regenerate.
17266 * Makefile.in (ALIASING_FLAGS): New variable.
17267 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17268
17269 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17270
17271 PR target/66731
17272 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17273 (negmulsf3_vfp): Likewise.
17274 (muldf3negdf_vfp): Disable for -frounding-math.
17275 (mulsf3negsf_vfp): Likewise.
17276 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17277 fix MULT cost with -frounding-math.
17278
17279 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17280
17281 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17282 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17283 explicit. Prefer to add the flag whenever possible.
17284 (noce_process_if_block): Try noce_try_store_flag_constants before
17285 noce_try_cmove.
17286
17287 2015-08-03 Richard Biener <rguenther@suse.de>
17288
17289 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17290 New hash-map to record equivalent transforms.
17291 (dt_node::analyze): Populate the equivalent transforms hash-map.
17292 (dt_simplify::info): Add reference to hash-map entry.
17293 (dt_simplify::gen): If we have split out a function for the
17294 transform, generate a call to it.
17295 (sinfo_hashmap_traits::hash): New function.
17296 (compare_op): New helper function for ...
17297 (sinfo_hashmap_traits::equal_keys): ... this new function.
17298 (decision_tree::gen): Split out common equivalent transforms
17299 into functions.
17300
17301 2015-08-03 Richard Biener <rguenther@suse.de>
17302
17303 * gimple-fold.c (fold_gimple_assign): Remove folding of
17304 the comparison in COND_EXPRs.
17305
17306 2015-08-03 Richard Biener <rguenther@suse.de>
17307
17308 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17309 on the rhs of assignments first simplify the embedded
17310 GENERIC condition.
17311
17312 2015-08-03 Richard Biener <rguenther@suse.de>
17313
17314 PR tree-optimization/66917
17315 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17316 field.
17317 (DR_VECT_AUX): New macro.
17318 (set_dr_misalignment): Adjust.
17319 (dr_misalignment): Likewise.
17320 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17321 Compute whether the base is at least element aligned.
17322 * tree-vect-stmts.c (ensure_base_align): Adjust.
17323 (vectorizable_store): If the base is not element aligned
17324 preserve alignment of the original access if misalignment is unknown.
17325 (vectorizable_load): Likewise.
17326
17327 2015-08-02 Martin Sebor <msebor@redhat.com>
17328
17329 * c-family/c.opt (-Wframe-address): New warning option.
17330 * doc/invoke.texi (Wframe-address): Document it.
17331 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17332 Clarify possible effects of calling the functions with non-zero
17333 arguments and mention -Wframe-address.
17334 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17335
17336 2015-08-01 Michael Collison <michael.collison@linaro.org
17337 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17338
17339 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17340 (*arm_umin_cmp): Likewise.
17341
17342 2015-08-01 Caroline Tice <cmtice@google.com>
17343
17344 PR 66521
17345 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17346 global variables.
17347 (vtbl_find_mangled_name): New function.
17348 (vtbl_register_mangled_name): New function.
17349 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17350 mangled name in mangled name vectors.
17351 (find_or_create_vtbl_map_node): Ditto.
17352 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17353 update recursion_depth on function entry; pass it to every recursive
17354 call; automatically exit if depth > 25 (give up looking at that point).
17355 (verify_bb_vtables): Initialize recursion_depth and pass it to
17356 var_is_used_for_virtual_call_p.
17357 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17358 global variable decls.
17359 (vtbl_register_mangled_name): New extern function decl.
17360
17361 2015-08-01 Tom de Vries <tom@codesourcery.com>
17362
17363 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17364 function.
17365 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17366 Declare.
17367 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17368 operation_no_trapping_overflow. Allow non-overflow operations.
17369 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17370 operations.
17371
17372 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
17373
17374 PR target/67049
17375 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17376
17377 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17378
17379 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17380 Enable for TARGET_32BIT.
17381 (*if_move_neg): Likewise.
17382
17383 2015-07-31 Nick Clifton <nickc@redhat.com>
17384
17385 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17386 Returns true for __model__.
17387 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17388
17389 2015-07-31 Alan Modra <amodra@gmail.com>
17390
17391 PR target/66870
17392 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17393 (rs6000_emit_prologue): Set it.
17394 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17395
17396 2015-07-31 Richard Biener <rguenther@suse.de>
17397
17398 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17399 -> X == (C1 ^ C2) which is already implemented in match.pd.
17400 Remove redundant dispatching to fold_relational_const.
17401 Move unordered self and NaN compares ...
17402 * match.pd: ... as patterns here. Remove some stray captures
17403 and add a comment.
17404
17405 2015-07-31 Petr Murzin <petr.murzin@intel.com>
17406
17407 * config/i386/i386.c
17408 (bdesc_special_args): Convert mask type from signed to unsigned for
17409 masked builtins.
17410 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17411 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17412 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17413 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17414 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17415 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17416 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17417 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17418 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17419 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17420 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17421 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17422 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17423 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17424 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17425 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17426 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17427 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17428 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17429 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17430 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17431 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17432 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17433 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17434 * config/i386/i386-builtin-types.def
17435 (V16QI_FTYPE_V16SI): Remove.
17436 (V8DF_FTYPE_V8SI): Ditto.
17437 (V8HI_FTYPE_V8DI): Ditto.
17438 (V8SI_FTYPE_V8DI): Ditto.
17439 (V8SF_FTYPE_V8DF): Ditto.
17440 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17441 (V16HI_FTYPE_V16SI): Ditto.
17442 (V16SF_FTYPE_V16HI): Ditto.
17443 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17444 (V16SF_FTYPE_V16SI): Ditto.
17445 (V4DI_FTYPE_V4DI): Ditto.
17446 (V16SI_FTYPE_V16SF): Ditto.
17447 (V16SF_FTYPE_FLOAT): Ditto.
17448 (V8DF_FTYPE_DOUBLE): Ditto.
17449 (V8DI_FTYPE_INT64): Ditto.
17450 (V8DI_FTYPE_V4DI): Ditto.
17451 (V16QI_FTYPE_V8DI): Ditto.
17452 (UINT_FTYPE_V4SF): Ditto.
17453 (UINT64_FTYPE_V4SF): Ditto.
17454 (UINT_FTYPE_V2DF): Ditto.
17455 (UINT64_FTYPE_V2DF): Ditto.
17456 (V16SI_FTYPE_V16SI): Ditto.
17457 (V8DI_FTYPE_V8DI): Ditto.
17458 (V16SI_FTYPE_PV4SI): Ditto.
17459 (V16SF_FTYPE_PV4SF): Ditto.
17460 (V8DI_FTYPE_PV2DI): Ditto.
17461 (V8DF_FTYPE_PV2DF): Ditto.
17462 (V4DI_FTYPE_PV2DI): Ditto.
17463 (V4DF_FTYPE_PV2DF): Ditto.
17464 (V16SI_FTYPE_PV2SI): Ditto.
17465 (V16SF_FTYPE_PV2SF): Ditto.
17466 (V8DI_FTYPE_PV4DI): Ditto.
17467 (V8DF_FTYPE_PV4DF): Ditto.
17468 (V8SF_FTYPE_FLOAT): Ditto.
17469 (V4SF_FTYPE_FLOAT): Ditto.
17470 (V4DF_FTYPE_DOUBLE): Ditto.
17471 (V8SF_FTYPE_PV4SF): Ditto.
17472 (V8SI_FTYPE_PV4SI): Ditto.
17473 (V4SI_FTYPE_PV2SI): Ditto.
17474 (V8SF_FTYPE_PV2SF): Ditto.
17475 (V8SI_FTYPE_PV2SI): Ditto.
17476 (V16SF_FTYPE_PV8SF): Ditto.
17477 (V16SI_FTYPE_PV8SI): Ditto.
17478 (V8DI_FTYPE_V8SF): Ditto.
17479 (V4DI_FTYPE_V4SF): Ditto.
17480 (V2DI_FTYPE_V4SF): Ditto.
17481 (V64QI_FTYPE_QI): Ditto.
17482 (V32HI_FTYPE_HI): Ditto.
17483 (V8UHI_FTYPE_V8UHI): Ditto.
17484 (V16UHI_FTYPE_V16UHI): Ditto.
17485 (V32UHI_FTYPE_V32UHI): Ditto.
17486 (V2UDI_FTYPE_V2UDI): Ditto.
17487 (V4UDI_FTYPE_V4UDI): Ditto.
17488 (V8UDI_FTYPE_V8UDI): Ditto.
17489 (V4USI_FTYPE_V4USI): Ditto.
17490 (V8USI_FTYPE_V8USI): Ditto.
17491 (V16USI_FTYPE_V16USI): Ditto.
17492 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17493 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17494 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17495 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17496 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17497 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17498 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17499 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17500 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17501 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17502 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17503 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17504 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17505 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17506 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17507 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17508 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17509 (V16SI_FTYPE_V16SI_SI): Ditto.
17510 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17511 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17512 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17513 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17514 (QI_FTYPE_QI): Ditto.
17515 (SI_FTYPE_SI): Ditto.
17516 (DI_FTYPE_DI): Ditto.
17517 (QI_FTYPE_QI_QI): Ditto.
17518 (QI_FTYPE_QI_INT): Ditto.
17519 (HI_FTYPE_HI_INT): Ditto.
17520 (SI_FTYPE_SI_INT): Ditto.
17521 (DI_FTYPE_DI_INT): Ditto.
17522 (HI_FTYPE_V16QI_V16QI): Ditto.
17523 (SI_FTYPE_V32QI_V32QI): Ditto.
17524 (DI_FTYPE_V64QI_V64QI): Ditto.
17525 (QI_FTYPE_V8HI_V8HI): Ditto.
17526 (HI_FTYPE_V16HI_V16HI): Ditto.
17527 (SI_FTYPE_V32HI_V32HI): Ditto.
17528 (QI_FTYPE_V4SI_V4SI): Ditto.
17529 (QI_FTYPE_V8SI_V8SI): Ditto.
17530 (QI_FTYPE_V2DI_V2DI): Ditto.
17531 (QI_FTYPE_V4DI_V4DI): Ditto.
17532 (QI_FTYPE_V8DI_V8DI): Ditto.
17533 (HI_FTYPE_V16SI_V16SI): Ditto.
17534 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17535 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17536 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17537 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17538 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17539 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17540 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17541 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17542 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17543 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17544 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17545 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17546 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17547 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17548 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17549 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17550 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17551 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17552 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17553 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17554 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17555 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17556 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17557 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17558 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17559 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17560 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17561 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17562 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17563 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17564 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17565 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17566 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17567 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17568 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17569 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17570 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17571 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17572 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17573 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17574 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17575 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17576 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17577 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17578 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17579 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17580 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17581 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17582 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17583 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17584 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17585 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17586 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17587 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17588 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17589 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17590 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17591 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17592 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17593 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17594 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17595 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17596 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17597 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17598 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17599 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17600 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17601 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17602 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17603 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17604 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17605 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17606 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17607 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17608 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17609 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17610 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17611 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17612 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17613 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17614 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17615 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17616 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17617 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17618 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17619 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17620 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17621 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17622 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17623 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17624 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17625 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17626 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17627 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17628 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17629 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17630 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17631 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17632 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17633 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17634 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17635 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17636 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17637 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17638 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17639 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17640 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17641 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17642 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17643 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17644 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17645 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17646 (HI_FTYPE_HI): Ditto.
17647 (HI_FTYPE_V16QI): Ditto.
17648 (SI_FTYPE_V32QI): Ditto.
17649 (DI_FTYPE_V64QI): Ditto.
17650 (QI_FTYPE_V8HI): Ditto.
17651 (HI_FTYPE_V16HI): Ditto.
17652 (SI_FTYPE_V32HI): Ditto.
17653 (QI_FTYPE_V4SI): Ditto.
17654 (QI_FTYPE_V8SI): Ditto.
17655 (HI_FTYPE_V16SI): Ditto.
17656 (QI_FTYPE_V2DI): Ditto.
17657 (QI_FTYPE_V4DI): Ditto.
17658 (QI_FTYPE_V8DI): Ditto.
17659 (V16QI_FTYPE_HI): Ditto.
17660 (V32QI_FTYPE_SI): Ditto.
17661 (V64QI_FTYPE_DI): Ditto.
17662 (V8HI_FTYPE_QI): Ditto.
17663 (V16HI_FTYPE_HI): Ditto.
17664 (V32HI_FTYPE_SI): Ditto.
17665 (V4SI_FTYPE_QI): Ditto.
17666 (V4SI_FTYPE_HI): Ditto.
17667 (V8SI_FTYPE_QI): Ditto.
17668 (V8SI_FTYPE_HI): Ditto.
17669 (V2DI_FTYPE_QI): Ditto.
17670 (V4DI_FTYPE_QI): Ditto.
17671 (HI_FTYPE_HI_HI): Ditto.
17672 (SI_FTYPE_SI_SI): Ditto.
17673 (DI_FTYPE_DI_DI): Ditto.
17674 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17675 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17676 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17677 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17678 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17679 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17680 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17681 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17682 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17683 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17684 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17685 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17686 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17687 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17688 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17689 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17690 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17691 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17692 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17693 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17694 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17695 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17696 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17697 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17698 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17699 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17700 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17701 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17702 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17703 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17704 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17705 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17706 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17707 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17708 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17709 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17710 (V16SI_FTYPE_HI): Ditto.
17711 (V8DI_FTYPE_QI): Ditto.
17712 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17713 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17714 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17715 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17716 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17717 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17718 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17719 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17720 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17721 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17722 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17723 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17724 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17725 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17726 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17727 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17728 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17729 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17730 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17731 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17732 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17733 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17734 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17735 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17736 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17737 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17738 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17739 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17740 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17741 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17742 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17743 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17744 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17745 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17746 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17747 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17748 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17749 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17750 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17751 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17752 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17753 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17754 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17755 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17756 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17757 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17758 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17759 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17760 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17761 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17762 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17763 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17764 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17765 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17766 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17767 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17768 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17769 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17770 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17771 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17772 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17773 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17774 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17775 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17776 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17777 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17778 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17779 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17780 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17781 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17782 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17783 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17784 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17785 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17786 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17787 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17788 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17789 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17790 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17791 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17792 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17793 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17794 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17795 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17796 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17797 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17798 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17799 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17800 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17801 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17802 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17803 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17804 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17805 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17806 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17807 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17808 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17809 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17810 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17811 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17812 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17813 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17814 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17815 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17816 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17817 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17818 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17819 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17820 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17821 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17822 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17823 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17824 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17825 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17826 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17827 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17828 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17829 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17830 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17831 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17832 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17833 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17834 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17835 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17836 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17837 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17838 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17839 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17840 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17841 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17842 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17843 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17844 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17845 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17846 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17847 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17848 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17849 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17850 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17851 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17852 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17853 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17854 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17855 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17856 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17857 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17858 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17859 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17860 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17861 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17862 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17863 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17864 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17865 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17866 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17867 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17868 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17869 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17870 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17871 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17872 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17873 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17874 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17875 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17876 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17877 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17878 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17879 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17880 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17881 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17882 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17883 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17884 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17885 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17886 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17887 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17888 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17889 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17890 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17891 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17892 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17893 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17894 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17895 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17896 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17897 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17898 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17899 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17900 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17901 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17902 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17903 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17904 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17905 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17906 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17907 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17908 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17909 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17910 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17911 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17912 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17913 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17914 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17915 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17916 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17917 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17918 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17919 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17920 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17921 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17922 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17923 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17924 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17925 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17926 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17927 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17928 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17929 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17930 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17931 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17932 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17933 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17934 (QI_FTYPE_V8DF_INT_QI): Ditto.
17935 (QI_FTYPE_V4DF_INT_QI): Ditto.
17936 (QI_FTYPE_V2DF_INT_QI): Ditto.
17937 (HI_FTYPE_V16SF_INT_HI): Ditto.
17938 (QI_FTYPE_V8SF_INT_QI): Ditto.
17939 (QI_FTYPE_V4SF_INT_QI): Ditto.
17940 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17941
17942 2015-07-31 Richard Biener <rguenther@suse.de>
17943
17944 * gimple-fold.c (fold_gimple_assign): Remove folding of
17945 GIMPLE_BINARY_RHS.
17946
17947 2015-07-31 Tom de Vries <tom@codesourcery.com>
17948
17949 PR tree-optimization/66846
17950 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17951 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17952 (expand_omp_target) [ENABLE_CHECKING]: Same.
17953 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17954 cfun if !LOOPS_NEED_FIXUP.
17955 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17956 that omp_for already has its own loop struct.
17957 * tree-parloops.c (create_phi_for_local_result)
17958 (create_call_for_reduction): Handle simple latch bb.
17959 (create_parallel_loop): Add simple latch bb to preserve
17960 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17961 (gen_parallel_loop): Remove call to cancel_loop_tree.
17962 (parallelize_loops): Skip loops that are inner loops of parallelized
17963 loops.
17964 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17965 verify_loop_structure.
17966
17967 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17968
17969 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17970 * config/v850/v850.md (RV_REGNUM): New constants.
17971 * config/v850/v850.c (v850_libcall_value): New functions.
17972 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17973 (TARGET_LIBCALL_VALUE): Define.
17974
17975 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17976
17977 * rtl.h (lowpart_subreg): Move in file.
17978 * loop-iv.c (lowpart_subreg): Move to...
17979 * simplify-rtx.c (lowpart_subreg): ...here.
17980 (simplify_binary_operation_1): Use lowpart_subreg instead of
17981 simplify_gen_subreg.
17982 * expr.c (expand_expr_real_2): Ditto.
17983 * emit-rtl.c (gen_lowpart_common): Ditto.
17984 * combine.c (gen_lowpart_for_combine): Ditto.
17985 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17986 expand_debug_source_expr): Ditto.
17987
17988 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17989
17990 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17991 (expand_builtin_atomic_clear): Remove support for atomic_clear
17992 pattern.
17993
17994 2015-07-30 Richard Biener <rguenther@suse.de>
17995
17996 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17997 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17998 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17999 redundant operand canonicalization.
18000
18001 2015-07-30 David Sherwood <david.sherwood@arm.com>
18002
18003 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18004 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18005 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18006 * config/arm/arm.c (neon_valid_immediate): Likewise.
18007 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18008 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18009 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18010 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18011 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18012 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18013 * config/i386/sse.md
18014 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18015 (*ssse3_palignr<mode>_perm): Likewise.
18016 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18017 * config/spu/spu.c (arith_immediate_p): Likewise.
18018 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18019 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18020
18021 2015-07-30 Richard Biener <rguenther@suse.de>
18022
18023 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18024 (decision_tree::gen_generic): ... this into ...
18025 (decision_tree::gen): ... this.
18026 (main): Adjust callers.
18027
18028 2015-07-30 Richard Biener <rguenther@suse.de>
18029
18030 * genmatch.c (verbose): New global.
18031 (warning_at): Add overload with source_location.
18032 (capture_info::capture_info): Add bool whether generating gimple
18033 or generic. Add gimple member.
18034 (capture_info::cinfo): Add capture member.
18035 (capture_info::walk_match): Record capture. Warn on
18036 non-captured leafs.
18037 (capture_info::walk_c_expr): Add more fragments captures cannot
18038 escape through. Warn on escaped captures.
18039 (dt_simplify::gen_1): Warn on operands we force to have no
18040 side-effects.
18041 (main): Initialize verbose.
18042 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18043
18044 2015-07-30 Richard Biener <rguenther@suse.de>
18045
18046 PR middle-end/67053
18047 * match.pd: Allow both operands to independently have conversion
18048 when simplifying compares of addresses.
18049
18050 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18051
18052 PR target/66217
18053 PR target/67045
18054 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18055 around those cases that need one.
18056
18057 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18058
18059 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18060
18061 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18062
18063 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18064 New. Copied from config/i386/gnu-user.h.
18065 (ASM_COMMENT_START): Likewise.
18066 (DBX_REGISTER_NUMBER): Likewise.
18067
18068 2015-07-29 Richard Biener <rguenther@suse.de>
18069
18070 * gimple-fold.c (fold_gimple_cond): Remove.
18071 (fold_stmt_1): Do not call it.
18072
18073 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18074
18075 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18076 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18077
18078 * config/aarch64/aarch64-modes.def: Add HFmode.
18079
18080 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18081 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18082
18083 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18084 aarch64_promoted_type): New.
18085
18086 (aarch64_float_const_representable_p): Disable HFmode.
18087 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18088 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18089 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18090
18091 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18092 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18093
18094 * config/aarch64/iterators.md (GPF_F16): New.
18095
18096 2015-07-29 Richard Biener <rguenther@suse.de>
18097
18098 * match.pd: Merge address comparison patterns and make them
18099 handle some more cases.
18100
18101 2015-07-29 Richard Biener <rguenther@suse.de>
18102
18103 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18104 (parser::parse_capture): Add bool argument on whether to reject
18105 unknown captures.
18106 (parser::parse_expr): Adjust.
18107 (parser::parse_op): Likewise.
18108 (parser::parse_pattern): Likewise.
18109
18110 2015-07-29 Richard Biener <rguenther@suse.de>
18111
18112 * gimple-fold.c (has_use_on_stmt): New function.
18113 (replace_stmt_with_simplification): Use it to allow
18114 abnormals originally referenced in the stmt.
18115 (fold_stmt_1): Canonicalize operand order.
18116
18117 2015-07-28 David Sherwood <david.sherwood@arm.com>
18118
18119 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18120 GET_MODE_INNER unconditionally.
18121 * config/spu/spu.c (arith_immediate_p): Likewise.
18122 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18123 * expmed.c (synth_mult): Remove check for VOIDmode result from
18124 GET_MODE_INNER.
18125 (expand_mult_const): Likewise.
18126 * fold-const.c (fold_binary_loc): Replace call to element_precision
18127 with call to GET_MODE_PRECISION.
18128 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18129 m->name.
18130 (emit_mode_inner): Likewise.
18131 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18132 result check.
18133 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18134 (GET_MODE_UNIT_PRECISION): Likewise.
18135 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18136 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18137 * stor-layout.c (bitwise_type_for_mode): Update assert.
18138 (element_precision): Remove.
18139
18140 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18141
18142 * target-insns.def (reload_load_address): New targetm instruction
18143 pattern.
18144 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18145
18146 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18147
18148 * target-insns.def (atomic_test_and_set): New targetm instruction
18149 pattern.
18150 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18151 HAVE_*/gen_* interface.
18152
18153 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18154
18155 * target-insns.def (can_extend, ptr_extend): New targetm instruction
18156 patterns.
18157 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18158 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18159 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18160 * rtlanal.c (nonzero_bits1): Likewise.
18161 (num_sign_bit_copies1): Likewise.
18162
18163 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18164
18165 * target-insns.def (eh_return): New targetm instruction pattern.
18166 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18167 interface.
18168 * function.c (thread_prologue_and_epilogue_insns): Remove
18169 preprocessor condition.
18170
18171 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18172
18173 * target-insns.def (indirect_jump): New targetm instruction pattern.
18174 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18175 interface.
18176
18177 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18178
18179 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18180 instead of nonimmediate_operand. Remove C condiition.
18181
18182 2015-07-28 Richard Biener <rguenther@suse.de>
18183
18184 * match.pd: Add more simplification of address comparisons.
18185
18186 2015-07-28 Richard Biener <rguenther@suse.de>
18187
18188 * match.pd: Re-order two cases in comparison with max/min
18189 value simplification to make it apply for bools.
18190
18191 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18192
18193 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18194 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18195 (aarch64_rtx_costs): Properly strip extend or extract before
18196 passing down to rtx costs again.
18197
18198 2015-07-28 Nick Clifton <nickc@redhat.com>
18199
18200 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18201 Optimizes the case where -mes0 is active and a constant symbolic
18202 address is used.
18203 * config/rl78/rl78-protos.h: Prototype the new function.
18204 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18205
18206 2015-07-28 Tom de Vries <tom@codesourcery.com>
18207
18208 * tree-parloops.c (reduc_stmt_res): New function.
18209 (initialize_reductions, add_field_for_reduction)
18210 (create_phi_for_local_result, create_loads_for_reductions)
18211 (create_stores_for_reduction, build_new_reduction): Handle case that
18212 reduc_stmt is a phi.
18213 (gather_scalar_reductions): Allow double_reduc reductions.
18214
18215 2015-07-28 Richard Biener <rguenther@suse.de>
18216
18217 * fold-const.c (fold_comparison): Remove equality folding
18218 of decl addresses ...
18219 * match.pd: ... here and merge with existing pattern.
18220
18221 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18222
18223 PR tree-optimization/66828
18224 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18225 from int64_t to uint64_t.
18226
18227 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18228
18229 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18230 as valid only in the error message of the driver, not in the
18231 messages of the language compilers.
18232
18233 2015-07-27 Tom de Vries <tom@codesourcery.com>
18234
18235 * tree-parloops.c (gather_scalar_reductions): Simplify function
18236 structure.
18237
18238 2015-07-27 Marek Polacek <polacek@redhat.com>
18239
18240 * ipa-devirt.c (types_same_for_odr): Fix typo.
18241
18242 2015-07-27 Jason Merrill <jason@redhat.com>
18243
18244 PR debug/66468
18245 * dwarf2out.c (gen_inlined_subroutine_die): Check
18246 cgraph_function_possibly_inlined_p.
18247
18248 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18249
18250 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18251 Place integer variant first.
18252 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18253
18254 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18255
18256 PR/63870
18257 * config/arm/arm-builtins.c (enum arm_builtins):
18258 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18259 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18260 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18261 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18262 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18263
18264 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18265
18266 PR/63870
18267 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18268 Add qualifier_lane_index.
18269 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18270 (arm_getlane_qualifiers): Use qualifier_lane_index.
18271 (arm_lanemac_qualifiers): Rename to...
18272 (arm_mac_n_qualifiers): ...this.
18273 (LANEMAC_QUALIFIERS): Rename to...
18274 (MAC_N_QUALIFIERS): ...this.
18275 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18276 (arm_setlane_qualifiers): Use qualifier_lane_index.
18277 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18278 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18279 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18280 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18281
18282 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18283 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18284 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18285 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18286 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18287 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18288 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18289 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18290 qualifiers to TERNOP_IMM.
18291 (vdup_lane): Change qualifiers to GETLANE.
18292 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18293 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18294 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18295 vqdmlsl_n): Change qualifiers to MAC_N.
18296
18297 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18298 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18299 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18300 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18301 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18302 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18303 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18304 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18305 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18306 Remove call to neon_lane_bounds.
18307
18308 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18309
18310 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18311 Place integer variant first.
18312
18313 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18314
18315 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18316 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18317 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18318 for armv6kz targets.
18319 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18320 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18321 (FL_FOR_ARCH6ZK): Remove.
18322 (FL_FOR_ARCH6KZ): New.
18323 (arm_arch6zk): New declaration.
18324 * config/arm/arm-tables.opt: Regenerate.
18325 * config/arm/arm.c (arm_arch6kz): New.
18326 (arm_option_override): Set arm_arch6kz.
18327 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18328 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18329 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18330
18331 2015-07-27 Marek Polacek <polacek@redhat.com>
18332
18333 PR c++/66555
18334 PR c/54979
18335 * doc/invoke.texi: Document -Wtautological-compare.
18336
18337 2015-07-27 Richard Biener <rguenther@suse.de>
18338
18339 * genmatch.c (decision_tree::gen_gimple): Split out large
18340 subtrees into separate functions.
18341 (decision_tree::gen_generic): Likewise.
18342
18343 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18344
18345 * config/alpha/alpha.c: Use SUBREG_P predicate.
18346 * config/alpha/predicates.md: Ditto.
18347
18348 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18349
18350 * config.host (s390*-*-*): Include driver-native.c only when
18351 building with s390* as host *and* target.
18352
18353 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18354
18355 PR target/66930
18356 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18357 T bit register modified_between_p check.
18358
18359 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18360
18361 * config/i386/i386.c: Use SUBREG_P predicate.
18362 * config/i386/i386.md: Ditto.
18363 * config/i386/sse.md: Ditto.
18364 * config/i386/predicates.md: Ditto.
18365
18366 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18367
18368 PR target/67004
18369 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18370 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18371
18372 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18373
18374 * Makefile.in: Remove use of TREEBROWSER.
18375 * config.in: Regenerated.
18376 * configure: Regenerated.
18377 * configure.ac: Remove definition of TREEBROWSER.
18378 * tree-browser.c: Removed.
18379 * tree-browser.def: Removed.
18380
18381 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18382
18383 * graphite-scop-detection.c: Include gimple-pretty-print.h.
18384 (stmt_simple_for_scop_p): Print when a stmt is not handled in
18385 Graphite.
18386 (scopdet_basic_block_info): Print when a loop or bb cannot be
18387 represented in Graphite.
18388
18389 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18390
18391 PR target/66648
18392 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18393 execution guard when min_size is less than size_needed.
18394
18395 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18396
18397 * doc/install.texi: Document supported versions of ISL.
18398
18399 2015-07-25 Jeff Law <law@redhat.com>
18400
18401 Revert:
18402 PR lto/66752
18403 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18404 unable to find X NE 0 in the tables, return X as the simplified
18405 condition.
18406 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18407 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18408 to VISISTED_BBS. */
18409 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18410 after removing the control flow statement and unnecessary edges.
18411
18412 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
18413
18414 Revert:
18415 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18416
18417 PR rtl-optimization/64164
18418 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18419 * tree-ssa-copyrename.c: Removed.
18420 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18421 -ftree-coalesce-vars.
18422 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18423 * common.opt (ftree-copyrename): Ignore.
18424 (ftree-coalesce-inlined-vars): Likewise.
18425 * doc/invoke.texi: Remove the ignored options above.
18426 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18427 * tree-ssa-coalesce.h: ... here.
18428 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18429 headers required by it.
18430 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18431 across variables when flag_tree_coalesce_vars. Check register
18432 use and promoted modes to allow coalescing. Moved to
18433 tree-ssa-coalesce.c.
18434 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18435 with its member functions to tree-ssa-coalesce.c.
18436 (var_map_base_init): Likewise. Renamed to
18437 compute_samebase_partition_bases.
18438 (partition_view_normal): Drop want_bases parameter.
18439 (partition_view_bitmap): Likewise.
18440 * tree-ssa-live.h: Adjust declarations.
18441 * tree-ssa-coalesce.c: Include explow.h.
18442 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18443 default defs at the entry point.
18444 (dump_part_var_map): New.
18445 (compute_optimized_partition_bases): New, called by...
18446 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18447 of compute_samebase_partition_bases. Adjust.
18448 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18449 * cfgexpand.c (leader_merge): New.
18450 (get_rtl_for_parm_ssa_default_def): New.
18451 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18452 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18453 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18454 redundant MEM attr setting.
18455 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18456 from...
18457 (expand_one_stack_var): ... this. New wrapper to check and
18458 skip already expanded SSA partitions.
18459 (record_alignment_for_reg_var): New, factored out of...
18460 (expand_one_var): ... this.
18461 (expand_one_ssa_partition): New.
18462 (adjust_one_expanded_partition_var): New.
18463 (expand_one_register_var): Check and skip already expanded SSA
18464 partitions.
18465 (expand_used_vars): Don't create DECLs for anonymous SSA
18466 names. Expand all SSA partitions, then adjust all SSA names.
18467 (pass::execute): Replace the loops that set
18468 SA.partition_to_pseudo from partition leaders and cleared
18469 DECL_RTL for multi-location variables, and that which used to
18470 rename vars and set attrs, with one that clears DECL_RTL and
18471 checks that PARMs and RESULTs default_defs match DECL_RTL.
18472 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18473 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18474 * explow.c (promote_ssa_mode): New.
18475 * explow.h (promote_ssa_mode): Declare.
18476 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18477 * function.c: Include cfgexpand.h.
18478 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18479 (use_register_for_parm_decl): Wrapper for the above to
18480 special-case the result_ptr.
18481 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18482 (split_complex_args): Take assign_parm_data_all argument.
18483 Pass it to rtl_for_parm. Set up rtl and context for split
18484 args.
18485 (assign_parms_augmented_arg_list): Adjust.
18486 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18487 multiple locations. Recognize split complex args.
18488 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18489 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18490 (assign_parm_setup_block): Prefer SSA-assigned location.
18491 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18492 if stack_parm is NULL.
18493 (assign_parm_setup_stack): Prefer SSA-assigned location.
18494 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18495 rtl before testing for pointer bounds. Special-case result_ptr.
18496 (expand_function_start): Maybe reset DECL_RTL of result.
18497 Prefer SSA-assigned location for result and static chain.
18498 Factor out DECL_RESULT and SET_DECL_RTL.
18499 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18500 anonymous SSA names. Use promote_ssa_mode.
18501 (get_temp_reg): Likewise.
18502 (remove_ssa_form): Adjust.
18503 * stor-layout.c (layout_decl): Don't set mem attributes of
18504 non-MEMs.
18505 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18506 and get its reg_usage for reg invalidation.
18507 (compute_bb_dataflow): Pass it insn.
18508 (emit_notes_in_bb): Likewise.
18509
18510 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18511
18512 * config/i386/i386.c (ix86_va_start): Remove
18513 unneeded !TARGET_64BIT check.
18514 (ix86_gimplify_va_arg): Ditto.
18515
18516 2015-07-24 Tom de Vries <tom@codesourcery.com>
18517
18518 * graphite-sese-to-poly.c (build_poly_scop): Always call
18519 rewrite_commutative_reductions_out_of_ssa.
18520
18521 2015-07-24 Tom de Vries <tom@codesourcery.com>
18522
18523 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18524 flag_associative_math to FLOAT_TYPE_P. Honour
18525 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18526
18527 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18528
18529 PR c++/64079
18530 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18531 and "%qD" in warning_at instead of "%q+D" in warning.
18532
18533 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18534
18535 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18536 (ix86_function_abi): Cleanup.
18537
18538 2015-07-24 Michael Darling <darlingm@gmail.com>
18539
18540 PR other/66259
18541 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18542 * configure: Likewise
18543 * configure.ac: Likewise
18544 * doc/install.texi: Likewise
18545 * doc/tm.texi: Likewise
18546 * doc/tm.texi.in: Likewise
18547
18548 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18549
18550 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18551 manually swapping values.
18552 * cse.c (fold_rtx): Likewise.
18553 * lra-eliminations.c (form_sum): Likewise.
18554
18555 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18556
18557 PR target/64003
18558 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18559 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18560 (*jcc_1, *jcc_2, jump, simple_return_internal)
18561 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18562 Set length_nobnd attribute instead of length attribute.
18563 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18564 (length_nobnd): Remove attribute.
18565 (length): Remove length_nobnd processing.
18566
18567 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18568
18569 * gimplify.c (omp_default_clause): New function. Reorganize flow
18570 for clarity. Broken out of ...
18571 (omp_notice_variable): ... here.
18572
18573 2015-07-24 Gary Funck <gary@intrepid.com>
18574
18575 PR middle-end/66984
18576 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18577 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18578
18579 2015-07-24 Tom de Vries <tom@codesourcery.com>
18580
18581 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18582 exit-first loop transform.
18583
18584 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18585
18586 PR 66714
18587 * tree-cfg.c (struct replace_decls_d): New struct.
18588 (replace_block_vars_by_duplicates_1): New function.
18589 (replace_block_vars_by_duplicates): Use it to replace the decls
18590 in the value exprs by duplicates.
18591
18592 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18593
18594 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18595 -shared, -symbolic, -rdynamic.
18596
18597 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18598
18599 PR target/65711
18600 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18601 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18602 %{!static.
18603
18604 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18605
18606 PR ipa/66566
18607 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18608 edge summary is available.
18609
18610 2015-07-24 Richard Biener <rguenther@suse.de>
18611
18612 * genmatch.c (struct dt_node): Add statistic fields.
18613 (dt_node::analyze): New method.
18614 (decision_tree::gen_gimple): Call analyze on the root node
18615 and print statistics to stderr.
18616 (decision_tree::gen_generic): Likewise.
18617
18618 2015-07-24 Richard Biener <rguenther@suse.de>
18619
18620 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18621 against the highest or lowest possible integer ...
18622 * match.pd: ... as patterns here.
18623
18624 2015-07-24 Richard Biener <rguenther@suse.de>
18625
18626 * genmatch.c (struct capture_info): Add same_as field.
18627 (capture_info::capture_info): Initialize same_as.
18628 (capture_info::walk_match): Compute same_as.
18629 (capture_info::walk_result): Compute stuff for the leader.
18630 (capture_info::walk_c_expr): Likewise.
18631 (dt_simplify::gen_1): Only look at leaders when deciding
18632 to force no side-effects or emit side-effects of omitted operands.
18633
18634 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18635
18636 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18637 reg note to the GPR -> FPR save instructions.
18638
18639 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18640
18641 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18642 cheaper.
18643 (s390_expand_insv): Don't generate risbg pattern for constant zero
18644 sources.
18645 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18646 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18647 splitters.
18648
18649 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18650
18651 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18652 with
18653 -mtune=
18654 (s390_issue_rate): Likewise.
18655 (s390_sched_reorder): Likewise.
18656 (s390_sched_variable_issue): Likewise.
18657 (s390_loop_unroll_adjust): Likewise.
18658 (s390_option_override): Likewise.
18659
18660 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18661
18662 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18663 processor capabilities with -march=native.
18664 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18665 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18666 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18667
18668 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18669
18670 * config/s390/s390.c (s390_issue_rate): Handle
18671 PROCESSOR_2094_Z9_EC.
18672 (s390_option_override): Likewise.
18673 (s390_adjust_priority): Likewise.
18674
18675 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18676
18677 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18678 when cross compiling.
18679
18680 2015-07-24 Richard Biener <rguenther@suse.de>
18681
18682 * fold-const.c (maybe_canonicalize_comparison_1): Move
18683 A code CST canonicalization ...
18684 * match.pd: ... to a pattern here.
18685
18686 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18687
18688 Revert:
18689 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18690 PR target/63521
18691 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18692 (HONOR_REG_ALLOC_ORDER): Define.
18693
18694 2015-07-24 Richard Biener <rguenther@suse.de>
18695
18696 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18697 * fold-const.c (fold_comparison): Move parameter does not
18698 alias &local simplification ...
18699 * match.pd: ... as a pattern here.
18700
18701 2015-07-24 Richard Biener <rguenther@suse.de>
18702
18703 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18704 valueizing call operands.
18705 * gimple-match-head.c (maybe_push_res_to_seq): Take
18706 number of call arguments from ops array.
18707 (do_valueize): New function.
18708 (gimple_simplify): Return true if valueization changed
18709 any operand even if the result didn't simplify further.
18710
18711 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18712
18713 PR middle-end/25530
18714 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18715
18716 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18717
18718 PR middle-end/25529
18719 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18720
18721 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18722
18723 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18724 instruction.
18725
18726 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18727
18728 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18729 clean up.
18730
18731 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18732
18733 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18734 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18735 targets here.
18736 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18737 ms_va_list_type_node initialization.
18738
18739 2015-07-23 Jeff Law <law@redhat.com>
18740
18741 PR lto/66752
18742 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18743 unable to find X NE 0 in the tables, return X as the simplified
18744 condition.
18745 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18746 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18747 to VISISTED_BBS. */
18748 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18749 after removing the control flow statement and unnecessary edges.
18750
18751 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18752
18753 * tree-pass.h (get_current_pass_name): Removed.
18754
18755 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18756
18757 PR rtl-optimization/64164
18758 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18759 * tree-ssa-copyrename.c: Removed.
18760 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18761 -ftree-coalesce-vars.
18762 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18763 * common.opt (ftree-copyrename): Ignore.
18764 (ftree-coalesce-inlined-vars): Likewise.
18765 * doc/invoke.texi: Remove the ignored options above.
18766 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18767 * tree-ssa-coalesce.h: ... here.
18768 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18769 headers required by it.
18770 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18771 across variables when flag_tree_coalesce_vars. Check register
18772 use and promoted modes to allow coalescing. Moved to
18773 tree-ssa-coalesce.c.
18774 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18775 with its member functions to tree-ssa-coalesce.c.
18776 (var_map_base_init): Likewise. Renamed to
18777 compute_samebase_partition_bases.
18778 (partition_view_normal): Drop want_bases parameter.
18779 (partition_view_bitmap): Likewise.
18780 * tree-ssa-live.h: Adjust declarations.
18781 * tree-ssa-coalesce.c: Include explow.h.
18782 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18783 default defs at the entry point.
18784 (dump_part_var_map): New.
18785 (compute_optimized_partition_bases): New, called by...
18786 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18787 of compute_samebase_partition_bases. Adjust.
18788 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18789 * cfgexpand.c (leader_merge): New.
18790 (get_rtl_for_parm_ssa_default_def): New.
18791 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18792 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18793 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18794 redundant MEM attr setting.
18795 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18796 from...
18797 (expand_one_stack_var): ... this. New wrapper to check and
18798 skip already expanded SSA partitions.
18799 (record_alignment_for_reg_var): New, factored out of...
18800 (expand_one_var): ... this.
18801 (expand_one_ssa_partition): New.
18802 (adjust_one_expanded_partition_var): New.
18803 (expand_one_register_var): Check and skip already expanded SSA
18804 partitions.
18805 (expand_used_vars): Don't create DECLs for anonymous SSA
18806 names. Expand all SSA partitions, then adjust all SSA names.
18807 (pass::execute): Replace the loops that set
18808 SA.partition_to_pseudo from partition leaders and cleared
18809 DECL_RTL for multi-location variables, and that which used to
18810 rename vars and set attrs, with one that clears DECL_RTL and
18811 checks that PARMs and RESULTs default_defs match DECL_RTL.
18812 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18813 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18814 * explow.c (promote_ssa_mode): New.
18815 * explow.h (promote_ssa_mode): Declare.
18816 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18817 * function.c: Include cfgexpand.h.
18818 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18819 (use_register_for_parm_decl): Wrapper for the above to
18820 special-case the result_ptr.
18821 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18822 (split_complex_args): Take assign_parm_data_all argument.
18823 Pass it to rtl_for_parm. Set up rtl and context for split
18824 args.
18825 (assign_parms_augmented_arg_list): Adjust.
18826 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18827 multiple locations. Recognize split complex args.
18828 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18829 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18830 (assign_parm_setup_block): Prefer SSA-assigned location.
18831 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18832 if stack_parm is NULL.
18833 (assign_parm_setup_stack): Prefer SSA-assigned location.
18834 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18835 rtl before testing for pointer bounds. Special-case result_ptr.
18836 (expand_function_start): Maybe reset DECL_RTL of result.
18837 Prefer SSA-assigned location for result and static chain.
18838 Factor out DECL_RESULT and SET_DECL_RTL.
18839 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18840 anonymous SSA names. Use promote_ssa_mode.
18841 (get_temp_reg): Likewise.
18842 (remove_ssa_form): Adjust.
18843 * stor-layout.c (layout_decl): Don't set mem attributes of
18844 non-MEMs.
18845 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18846 and get its reg_usage for reg invalidation.
18847 (compute_bb_dataflow): Pass it insn.
18848 (emit_notes_in_bb): Likewise.
18849
18850 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18851
18852 PR target/66217
18853 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18854 prototype.
18855 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18856 (rs6000_emit_2insn_and): Handle dot forms.
18857 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18858 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18859 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18860
18861 2015-07-23 Richard Biener <rguenther@suse.de>
18862
18863 * generic-match-head.c: Include cgraph.h.
18864 * gimple-match-head.c: Likewise.
18865 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18866 SSA names.
18867 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18868 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18869 pattern.
18870
18871 2015-07-23 Richard Biener <rguenther@suse.de>
18872
18873 * gimple-fold.c (fold_gimple_cond): Do not require folding
18874 results to pass valid_gimple_rhs_p.
18875 * tree-cfg.h (fold_cond_expr_cond): Remove.
18876 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18877 (make_edges): Do not call it.
18878 * tree-inline.c (tree_function_versioning): Likewise.
18879
18880 2015-07-23 Tom de Vries <tom@codesourcery.com>
18881
18882 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18883 vect_force_simple_reduction.
18884 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18885 (vect_is_simple_reduction_1): Add and handle
18886 need_wrapping_integral_overflow parameter.
18887 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18888 need_wrapping_integral_overflow parameter.
18889 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18890 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18891 decl.
18892
18893 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18894
18895 PR tree-optimization/66926,66951
18896 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18897 INNER_LOOP and fix up condition for renaming virtual operands.
18898
18899 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18900
18901 * combine.c (try_combine): Use std::swap instead of manually
18902 swapping.
18903
18904 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18905
18906 * config/mips/i6400.md: New file.
18907 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18908 (mips64r6): Likewise.
18909 (i6400): Define.
18910 * config/mips/mips-tables.opt: Regenerate.
18911 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18912 (mips_issue_rate): Add support for i6400.
18913 (mips_multipass_dfa_lookahead): Likewise.
18914 * config/mips/mips.h (TUNE_I6400): Define.
18915 * config/mips/mips.md: Include i6400.md.
18916 (processor): Add i6400.
18917 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18918
18919 2015-07-23 Richard Biener <rguenther@suse.de>
18920
18921 PR middle-end/66916
18922 * match.pd: Guard widen and sign-change comparison simplification
18923 with single_use.
18924
18925 2015-07-23 Richard Biener <rguenther@suse.de>
18926
18927 PR tree-optimization/66945
18928 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18929 ::before_dom_children): Force the propagators idea of
18930 non-executable edges to materialize, not what the folder
18931 chooses.
18932
18933 2015-07-23 Richard Biener <rguenther@suse.de>
18934
18935 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18936 (gimple_cond_make_true): Use 1 != 0.
18937
18938 2015-07-22 DJ Delorie <dj@redhat.com>
18939
18940 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18941 slashes.
18942
18943 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18944 (ashrhi3): Likewise.
18945 (lshrhi3): Likewise.
18946 (movhi): Take advantage of zero-extend to load small constants.
18947 (movpsi): Likewise.
18948 (and<mode>3): Likewise.
18949 (zero_extendqihi2): Likewise.
18950 (zero_extendqisi2): New.
18951 * config/msp430/constraints.md (N,O): New.
18952 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18953
18954 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18955
18956 PR target/66954
18957 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18958 to enum feature_priority and feature_list.
18959 (fold_builtin_cpu): Add F_AES to enum processor_features
18960 and isa_names_table.
18961
18962 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18963
18964 PR driver/66737
18965 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18966 for 64bit target only.
18967
18968 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18969
18970 * config/nvptx/nvptx.c: Expand some comments.
18971
18972 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18973
18974 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18975 (cortex_a53_advsimd): ...This.
18976
18977 2015-07-22 Richard Biener <rguenther@suse.de>
18978
18979 * genmatch.c (expr::gen_transform): Clarify error message
18980 and display location.
18981
18982 2015-07-22 Richard Biener <rguenther@suse.de>
18983
18984 * genmatch.c (struct operand): Add location member.
18985 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18986 constructors.
18987 (struct simplify): Remove match_location and result_location
18988 members.
18989 (elsehwere): Adjust.
18990
18991 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18992
18993 * config/mips/m5100.md: New file.
18994 * config/mips/mips-cpus.def (m5100, m5101): Define.
18995 * config/mips/mips-tables.opt: Regenerate.
18996 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18997 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18998 -march=m5101 to -mips32r5.
18999 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19000 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19001 !-msoft-float.
19002 * config/mips/mips.md: Include m5100.md.
19003 (processor): Add m5100.
19004 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19005
19006 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19007
19008 * config/mips/mips-cpus.def (interaptiv): Define.
19009 * config/mips/mips-tables.opt: Regenerate.
19010 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19011 -mips32r2.
19012 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19013 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19014
19015 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19016
19017 PR target/63521
19018 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19019 (HONOR_REG_ALLOC_ORDER): Define.
19020
19021 2015-07-22 Richard Biener <rguenther@suse.de>
19022
19023 PR tree-optimization/66952
19024 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19025 blocks we end up executing unconditionally reset all SSA
19026 info such as range and alignment.
19027 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19028 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19029
19030 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19031
19032 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19033 typo in attribute.
19034
19035 2015-07-22 Richard Biener <rguenther@suse.de>
19036
19037 * genmatch.c (parser::parse_result): Properly handle
19038 match with result operands and conditions.
19039
19040 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19041
19042 PR target/63870
19043 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19044 Add qualifier_struct_load_store_lane_index.
19045 (aarch64_types_loadstruct_lane_qualifiers): Use
19046 qualifier_struct_load_store_lane_index for lane index argument for
19047 last argument.
19048 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19049 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19050 (aarch64_simd_expand_args): Add new argument describing mode of
19051 builtin. Check lane bounds for arguments with
19052 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19053 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19054 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19055 (aarch64_simd_expand_builtin): Handle arguments with
19056 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19057 aarch64_simd_expand_args.
19058 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19059 vst[234]_lane with BUILTIN_VALLDIF.
19060 * config/aarch64/aarch64-simd.md:
19061 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19062 endianness reversal on lane index.
19063 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19064 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19065 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19066 (vec_store_lanesci_lane<mode>): Ditto.
19067 (vec_store_lanesxi_lane<mode>): Ditto.
19068 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19069 reversal of lane index.
19070 (aarch64_ld3_lane<mode>): Ditto.
19071 (aarch64_ld4_lane<mode>): Ditto.
19072 (aarch64_st2_lane<mode>): Ditto.
19073 (aarch64_st3_lane<mode>): Ditto.
19074 (aarch64_st4_lane<mode>): Ditto.
19075 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19076 to qmode. Add new mode parameter. Update uses.
19077 (__LD3_LANE_FUNC): Ditto.
19078 (__LD4_LANE_FUNC): Ditto.
19079 (__ST2_LANE_FUNC): Ditto.
19080 (__ST3_LANE_FUNC): Ditto.
19081 (__ST4_LANE_FUNC): Ditto.
19082
19083 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19084
19085 * doc/invoke.texi (Language Independent Options): Rename node to
19086 Diagnostic Message Formatting Options.
19087
19088 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19089
19090 PR ipa/66424.
19091 * lra-remat.c (operand_to_remat): Prevent using insns with input
19092 subregs processed separately by IRA.
19093
19094 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19095
19096 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19097 straight loops.
19098 (single_imm_use): Check for iterator node.
19099 (num_imm_uses): Likewise.
19100 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19101 (single_imm_use_1): Check for iterator node.
19102
19103 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19104 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19105
19106 * configure.ac: Add check for new options in isl-0.15.
19107 * config.in, configure: Rebuilt.
19108 * graphite-blocking.c: Include <isl/constraint.h>
19109 * graphite-interchange.c, graphite-poly.c: Likewise.
19110 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19111 * graphite.c: Likewise.
19112 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19113 <isl/union_set.h>.
19114 * graphite-dependences.c: Include <isl/constraint.h>.
19115 (max_number_of_out_dimensions): Returns isl_stat.
19116 (extend_schedule_1): Likewise
19117 (extend_schedule): Corresponding changes.
19118 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19119 <isl/union_set.h>.
19120 (getSingleMap): Change return type of isl_stat.
19121 (optimize_isl): Conditionally use
19122 isl_options_set_schedule_serialize_sccs.
19123 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19124 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19125
19126 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19127
19128 PR target/66956
19129 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19130 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19131
19132 2015-07-21 Richard Biener <rguenther@suse.de>
19133
19134 PR tree-optimization/66948
19135 * genmatch.c (capture_info::walk_match): Also recurse to
19136 captures. Properly compute expr state from captures of
19137 captures.
19138 * match.pd: Add single-use guards to
19139 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19140
19141 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
19142
19143 * config/nvptx/mkoffload.c (process): Add static destructor call.
19144
19145 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19146
19147 PR middle-end/66915
19148 * match.pd (A - B -> A + (-B)): Don't allow folding
19149 when type if a fixed-point type.
19150
19151 2015-07-20 DJ Delorie <dj@redhat.com>
19152
19153 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19154 (iorqi3_real): Likewise for set1.
19155
19156 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
19157
19158 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19159 for !TARGET_64BIT.
19160
19161 2015-07-20 Aditya Kumar <hiraditya@msn.com>
19162
19163 * graphite-isl-ast-to-gimple.c:
19164 Refactor so that each function can access 'region'. This will help
19165 maintain a parameter rename_map within a region.
19166
19167 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19168
19169 * config/rs6000/rs6000.md (*lt0_disi): New.
19170
19171 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19172
19173 PR target/66217
19174 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19175 "available letters" comment.
19176 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19177 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19178 and_2rld_operand): Delete.
19179 (and_operand): Adjust.
19180 (rotate_mask_operator): New.
19181 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19182 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19183 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19184 extract_ME): Delete.
19185 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19186 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19187 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19188 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19189 rs6000_emit_2insn_and): New.
19190 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19191 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19192 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19193 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19194 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19195 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19196 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19197 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19198 rs6000_emit_2insn_and): New.
19199 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19200 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19201 handling.
19202 <NOT>: Don't fall through to next case.
19203 <AND>: Handle the various rotate-and-mask cases directly.
19204 <IOR>: Always cost as one insn.
19205 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19206 (and<mode>3): Adjust expander for the new patterns.
19207 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19208 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19209 (*and<mode>3_imm_dot_shifted): New.
19210 (*and<mode>3_mask): Delete, rewrite as ...
19211 (and<mode>3_mask): ... New.
19212 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19213 (andsi3_internal0_nomc): Delete.
19214 (*andsi3_internal6): Delete.
19215 (*and<mode>3_2insn): New.
19216 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19217 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19218 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19219 *insvdi_internal3): Delete.
19220 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19221 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19222 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19223 *ior<mode>_mask): New.
19224 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19225 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19226 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19227 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19228 Delete.
19229 (ashr<mode>3): Delete expander.
19230 (*ashr<mode>3): Rename to ...
19231 (ashr<mode>3): ... This.
19232 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19233 (*rotldi3_internal4, *rotldi3_internal5 and split,
19234 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19235 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19236 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19237 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19238 (splitter for loading a mask): Adjust.
19239 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19240
19241 2015-07-20 Marek Polacek <polacek@redhat.com>
19242
19243 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19244 output_add_clobbers, output_added_clobbers_hard_reg_p,
19245 gen_rtx_scratch): Remove declarations.
19246
19247 2015-07-20 Marek Polacek <polacek@redhat.com>
19248
19249 PR c++/55095
19250 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19251
19252 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19253
19254 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19255 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19256
19257 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19258
19259 * combine.c (combine_simplify_rtx): Move simplification step
19260 before various transformations/substitutions.
19261
19262 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19263
19264 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19265 (struct int_traits): Likewise.
19266
19267 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19268
19269 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19270 function to vmsdbgout_function_decl.
19271
19272 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19273
19274 PR target/66922
19275 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19276 from misaligned positions.
19277 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19278
19279 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19280
19281 PR middle-end/46851
19282 PR middle-end/60340
19283 * Makefile.in: Removed omega.o.
19284 * common.opt: Document flag fcheck-data-deps as deprecated.
19285 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19286 its associated params: omega-max-vars, omega-max-geqs,
19287 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19288 omega-max-keys, omega-eliminate-redundant-constraints.
19289 * doc/loop.texi: Remove all the section on Omega.
19290 * graphite-blocking.c: Include missing params.h: it used to be
19291 included through tree-data-ref.h and omega.h.
19292 * graphite-isl-ast-to-gimple.c: Same.
19293 * graphite-optimize-isl.c: Same.
19294 * graphite-sese-to-poly.c: Same.
19295 * graphite.c: Same.
19296 * omega.c: Remove.
19297 * omega.h: Remove.
19298 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19299 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19300 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19301 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19302 * passes.def: Remove pass_check_data_deps.
19303 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19304 (dump_conflict_function): Same.
19305 (dump_subscript): Same.
19306 (print_direction_vector): Same.
19307 (print_dir_vectors): Same.
19308 (print_lambda_vector): Same.
19309 (print_dist_vectors): Same.
19310 (dump_data_dependence_relation): Same.
19311 (dump_data_dependence_relations): Same.
19312 (dump_dist_dir_vectors): Same.
19313 (dump_ddrs): Same.
19314 (init_omega_eq_with_af): Removed.
19315 (omega_extract_distance_vectors): Removed.
19316 (omega_setup_subscript): Removed.
19317 (init_omega_for_ddr_1): Removed.
19318 (init_omega_for_ddr): Removed.
19319 (ddr_consistent_p): Removed.
19320 (compute_affine_dependence): Do not use omega to check data
19321 dependences.
19322 (compute_data_dependences_for_bb): Removed.
19323 (analyze_all_data_dependences): Removed.
19324 (tree_check_data_deps): Removed.
19325 * tree-data-ref.h: Do not include omega.h.
19326 (compute_data_dependences_for_bb): Removed.
19327 (tree_check_data_deps): Removed.
19328 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19329 (make_pass_check_data_deps): Removed.
19330 * tree-ssa-phiopt.c: Include params.h.
19331 * tree-vect-data-refs.c: Same.
19332 * tree-vect-slp.c: Same.
19333
19334 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19335
19336 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19337 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19338 (mem->fpreg splitters): Ditto.
19339 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19340 Disable DFmode for TARGET_64BIT.
19341
19342 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19343
19344 PR target/66906
19345 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19346 chain on the stack.
19347
19348 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19349
19350 * config/nvptx/mkoffload.c (process): Constify host data.
19351 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19352 Constify host data.
19353 (generate_host_descr_file): Likewise.
19354
19355 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19356 Sebastian Pop <s.pop@samsung.com>
19357
19358 PR middle-end/61929
19359 * graphite-dependences.c (add_pdr_constraints): Renamed
19360 pdr->extent to pdr->subscript_sizes.
19361 * graphite-interchange.c (build_linearized_memory_access): Add
19362 back all gcc_assert's that the "isl_int to isl_val conversion"
19363 patch has removed. Refactored.
19364 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19365 * graphite-poly.c (new_poly_dr): Same.
19366 (free_poly_dr): Same.
19367 * graphite-poly.h (struct poly_dr): Same.
19368 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19369 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19370 * graphite-scop-detection.h: Fix space.
19371 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19372 back all gcc_assert's removed by a previous patch.
19373 (wrap): Remove the_isl_ctx global variable that the same patch has
19374 added.
19375 (build_loop_iteration_domains): Same.
19376 (add_param_constraints): Same.
19377 (pdr_add_data_dimensions): Same. Refactored.
19378 (build_poly_dr): Renamed extent to subscript_sizes.
19379
19380 2015-07-17 Marek Polacek <polacek@redhat.com>
19381
19382 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19383 * match.pd: ... here.
19384
19385 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19386
19387 * config/nvptx/mkoffload.c (process): Constify target data.
19388 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19389 Constify target data.
19390 (generate_target_offloadend_file): Likewise.
19391
19392 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
19393
19394 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19395 to allow renaming of PHI arguments on edges incoming from outer
19396 loop header, add corresponding check before start PHI iterator.
19397 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19398 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19399 with true force_vectorize. Set-up dominator for outer loop too.
19400 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19401 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19402 was marked with force_vectorize and has restricted cfg.
19403 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19404 inner loop.
19405 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19406 do peeling for outer loops.
19407
19408 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
19409 Matthias Klose <doko@ubuntu.com>
19410
19411 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19412 build-sysroot, sysroot from the `Miscenalleous configure options' to
19413 the `Directories' section and strip trailing `/' from with_sysroot.
19414 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19415 * configure: Regenerated.
19416
19417 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19418
19419 PR target/66824
19420 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19421 (TARGET_HARD_DF_REGS): Ditto.
19422 (TARGET_HARD_XF_REGS): Ditto.
19423 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19424 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19425 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19426 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19427 (*movsf_internal): Add alternatives 16 and 17. Enable
19428 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19429
19430 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19431
19432 PR rtl-optimization/66891
19433 * calls.c (expand_call): Wrap precompute_register_parameters with
19434 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19435
19436 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
19437
19438 * config/nvptx/mkoffload.c (process): Constify mapping variables.
19439 Define target data struct and initialize it.
19440
19441 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
19442
19443 PR rtl-optimization/66626
19444 * ira.h (emit-rtl.h): Include.
19445 (non_spilled_static_chain_regno_p): New.
19446 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19447 unless it is non spilled static chain pseudo.
19448 (assign_hard_rego): Spill memory profitable allocno unless it is
19449 non spilled static chain pseudo.
19450 (allocno_spill_priority_compare): Put non spilled static chain
19451 pseudo at the end of sorted array.
19452 (improve_allocation): Do nothing if we have static chain and
19453 non-local goto.
19454 (allocno__priority_compare_func): Put non spilled static chain
19455 pseudo at the beginning of sorted array.
19456 (move_spill_restore): Ignore non spilled static chain pseudo.
19457 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19458 to non spilled static chain pseudo.
19459 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19460 pseudo at the beginning of sorted array.
19461 (spill_for): Spill non spilled static chain pseudo last.
19462 * lra-constraints.c (lra_constraints): Remove static chain pseudo
19463 check for equivalence.
19464
19465 2015-07-16 Martin Liska <mliska@suse.cz>
19466
19467 PR ipa/66896.
19468 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19469 dst_ctx if it does not exist.
19470
19471 2015-07-16 Martin Liska <mliska@suse.cz>
19472
19473 * hash-set.h (remove): New function.
19474 (iterator): New iteration class for hash_set.
19475
19476 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19477
19478 * genattrtab.c (make_canonical): Add a file_location parameter.
19479 Use fatal_at rather than fatal.
19480 (get_attr_value): Likewise. Update call to make_canonical.
19481 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19482 (make_internal_attr): Update calls accordingly.
19483
19484 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19485
19486 * read-md.h (message_with_line, error_with_line): Delete.
19487 * read-md.c (message_with_line, error_with_line): Delete.
19488 * gensupport.h: Include read-md.h.
19489 (md_rtx_info): New structure.
19490 (read_md_rtx): Use it. Return a bool success value.
19491 * gensupport.c (read_md_rtx): Likewise.
19492 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19493 (main): Update after interface changes.
19494 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19495 (main): Update after interface changes.
19496 * genattrtab.c (insn_code_number): Delete.
19497 (optimize_attrs): Add a max_insn_code parameter and use it instead
19498 of insn_code_number.
19499 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19500 Use *_at rather than *_with_line functions.
19501 (gen_insn): Likewise.
19502 (gen_delay): Likewise.
19503 (gen_insn_reserv): Likewise.
19504 (gen_bypass): Take an md_rtx_info rather than an rtx.
19505 (main): Update after interface changes. Use a local max_insn_code
19506 variable instead of insn_code_number.
19507 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19508 an rtx. Use fatal_at rather than fatal.
19509 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19510 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19511 (gen_absence_set, gen_final_absence_set, gen_automaton)
19512 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19513 (main): Update after interface changes.
19514 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19515 and code number.
19516 (main): Update after interface changes.
19517 * genconditions.c (main): Use new read_md_rtx interface.
19518 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19519 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19520 (main): Update after interface changes.
19521 * genemit.c (insn_code_number, insn_index_number): Delete.
19522 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19523 Use fatal_at rather than fatal.
19524 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19525 rather than fatal.
19526 (gen_split): Likewise.
19527 (main): Update after interface changes.
19528 * genextract.c (line_no): Delete.
19529 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19530 Update call to walk_rtx.
19531 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19532 rather than message_with_line.
19533 (walk_rtx): Add an md_rtx_info argument. Update call to
19534 VEC_safe_set_locstr.
19535 (main): Update after interface changes.
19536 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19537 and lineno. Use error_at rather than separate message_with_line
19538 calls and have_error assignments.
19539 (main): Update after interface changes.
19540 * genmddump.c (main): Use new read_md_rtx interface.
19541 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19542 (main): Update after interface changes.
19543 * genoutput.c (next_code_number): Delete.
19544 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19545 (gen_peephole, gen_expand, gen_split): Likewise.
19546 (note_constraint): Likewise. Use *_at rather than *_with_line
19547 functions.
19548 (main): Update after interface changes.
19549 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19550 rtx and lineno.
19551 (main): Update after interface changes.
19552 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19553 than an rtx and lineno.
19554 (process_define_constraint): Likewise.
19555 (process_define_register_constraint): Likewise.
19556 (main): Update after interface changes.
19557 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19558 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19559 Use *_at rather than *_with_line functions.
19560 (match_pattern_2): Likewise.
19561 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19562 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19563 Use *_at rather than *_with_line functions.
19564 * gentarget-def.c (add_insn): New function.
19565 (main): Use it. Use new read_md_rtx interface.
19566
19567 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19568
19569 * gensupport.h (compute_test_codes): Take a file_location rather
19570 than a line number.
19571 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19572 rather than *_with_line functions.
19573 (process_define_predicate): Update call to compute_test_codes.
19574 * genpreds.c (validate_exp): Take a file_location rather than a
19575 line number. Use *_at functions rather than *_with_line functions.
19576 (process_define_predicate): Update call to validate_exp.
19577 (constraint_data): Replace lineno field with a file_location.
19578 (add_constraint): Take a file_location rather than a line number.
19579 Use *_at functions rather than *_with_line functions. Fix error
19580 message for address constraints. Update after changes to
19581 validate_exp, constraint_data and compute_test_codes.
19582 (process_define_constraint): Update accordingly.
19583 (process_define_register_constraint): Likewise.
19584
19585 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19586
19587 * genoutput.c (data): Use a file_location to record the source
19588 position.
19589 (nothing): Delete.
19590 (idata, idata_end): Remove initialization.
19591 (constraint_data): Replace lineno with a file_location.
19592 (output_insn_data): Update after changes to data.
19593 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19594 (scan_operands): Likewise, using *_at rather than *_with_line
19595 functions.
19596 (process_template): Likewise.
19597 (validate_insn_alternatives): Likewise.
19598 (validate_insn_operands): Likewise.
19599 (validate_optab_operands): Likewise.
19600 (init_insn_for_nothing): Initialize idata and idata_end.
19601 (note_constraint): Update after changes to constraint_data,
19602 using at rather than with_line functions.
19603 (mdep_constraint_len): Take a file_location rather than a
19604 line number. Use at rather than with_line functions.
19605
19606 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19607
19608 * read-md.h (fatal_at): Declare.
19609 * read-md.c (fatal_at): New function.
19610 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19611 to record the source position.
19612 (check_attr_test): Take a file_location instead of a line number.
19613 Use fatal_at instead of fatal.
19614 (check_attr_value): Update after above changes, using "at"
19615 rather than "with_line" reporting functions.
19616 (convert_set_attr_alternative): Likewise.
19617 (gen_attr): Likewise.
19618 (check_defs): Likewise. Don't assign to read_md_filename.
19619 (gen_insn): Update initialization after above changes.
19620 (gen_delay): Likewise.
19621 (write_insn_cases): Print the filename for a define_peephole.
19622 (gen_insn_reserv): Take a line number as argument and update
19623 the call to check_attr_test.
19624 (main): Pass a line number to gen_insn_reserv.
19625
19626 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19627
19628 * read-md.h (file_location): New structure.
19629 (directive_handler_t): Take a file_location rather than a line number.
19630 (message_at, error_at): Declare.
19631 (read_skip_construct): Delete.
19632 * read-md.c (message_with_line_1): Replace with...
19633 (message_at_1): ...this new function.
19634 (message_at, error_at): New functions.
19635 (message_with_line, error_with_line): Update to use message_at_1.
19636 (handle_enum): Take a file_location rather than a line number
19637 and use error_at for error reporting.
19638 (handle_include): Likewise.
19639 (read_skip_construct): Likewise. Make static.
19640 (handle_file): Update after above changes. Pass a file_location
19641 rather than a line number to handle_directive.
19642 * gensupport.c (queue_elem): Replace separate filename and lineno
19643 with a file_location.
19644 (queue_pattern): Replace filename and lineno arguments with a
19645 file_location. Update after change to queue_elem.
19646 (process_define_predicate): Replace lineno argument with a
19647 file_location and use error_at for error reporting. Update
19648 after above changes.
19649 (process_rtx): Likewise.
19650 (subst_pattern_match): Likewise.
19651 (get_alternatives_number): Likewise.
19652 (alter_predicate_for_insn): Likewise.
19653 (rtx_handle_directive): Likewise.
19654 (is_predicable): Update after above changes, using error_at rather
19655 than error_with_line.
19656 (has_subst_attribute): Likewise.
19657 (identify_predicable_attribute): Likewise.
19658 (alter_attrs_for_subst_insn): Likewise.
19659 (process_one_cond_exec): Likewise.
19660 (process_substs_on_one_elem): Likewise.
19661 (process_define_subst): Likewise.
19662 (check_define_attr_duplicates): Likewise.
19663 (read_md_rtx): Update after change to queue_elem.
19664
19665 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19666
19667 * genoutput.c (next_index_number): Delete.
19668 (data): Remove index_number.
19669 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19670 (main): Remove manipulation of next_index_number.
19671
19672 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19673
19674 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19675 (make_canonical): Likewise.
19676
19677 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19678
19679 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19680 instead of adjust_address_nv.
19681 (restore_stack_nonlocal): Likewise.
19682 (nonlocal_goto): Likewise.
19683
19684 2015-07-16 Tom de Vries <tom@codesourcery.com>
19685
19686 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19687 not have a corresponding loop header phi.
19688
19689 2015-07-16 Tom de Vries <tom@codesourcery.com>
19690
19691 * tree-parloops.c (create_loads_for_reductions): Handle case that
19692 reduction is unused.
19693
19694 2015-07-16 Richard Biener <rguenther@suse.de>
19695
19696 PR tree-optimization/66894
19697 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19698 about deriving NE_EXPR from truncated values.
19699
19700 2015-07-16 Martin Liska <mliska@suse.cz>
19701
19702 * alloc-pool.h
19703 (object_allocator): Add new class.
19704 (pool_allocator::initialize): Use the underlying class.
19705 (pool_allocator::allocate): Likewise.
19706 (pool_allocator::remove): Likewise.
19707 (operator new): A new generic allocator.
19708 * asan.c (struct asan_mem_ref): Remove unused members.
19709 (asan_mem_ref_new): Replace new operator with
19710 object_allocator::allocate.
19711 (free_mem_ref_resources): Change deallocation.
19712 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19713 with object_allocator.
19714 * config/sh/sh.c (add_constant): Replace new operator with
19715 object_allocator::allocate.
19716 (sh_reorg): Change call to a release method.
19717 * cselib.c (struct elt_list): Remove unused members.
19718 (new_elt_list): Replace new operator with
19719 object_allocator::allocate.
19720 (new_elt_loc_list): Likewise.
19721 (new_cselib_val): Likewise.
19722 (unchain_one_elt_list): Change delete operator with remove method.
19723 (unchain_one_elt_loc_list): Likewise.
19724 (unchain_one_value): Likewise.
19725 (cselib_finish): Release newly added static allocators.
19726 * cselib.h (struct cselib_val): Remove unused members.
19727 (struct elt_loc_list): Likewise.
19728 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19729 object_allocator.
19730 * df-scan.c (struct df_scan_problem_data): Likewise.
19731 (df_scan_alloc): Likewise.
19732 * df.h (struct dataflow): Likewise.
19733 * dse.c (struct read_info_type): Likewise.
19734 (struct insn_info_type): Likewise.
19735 (struct dse_bb_info_type): Likewise.
19736 (struct group_info): Likewise.
19737 (struct deferred_change): Likewise.
19738 (get_group_info): Likewise.
19739 (delete_dead_store_insn): Likewise.
19740 (free_read_records): Likewise.
19741 (replace_read): Likewise.
19742 (check_mem_read_rtx): Likewise.
19743 (scan_insn): Likewise.
19744 (dse_step1): Likewise.
19745 (dse_step7): Likewise.
19746 * et-forest.c (struct et_occ): Remove unused members.
19747 (et_new_occ): Use allocate instead of new operator.
19748 (et_new_tree): Likewise.
19749 (et_free_tree): Call release method explicitly.
19750 (et_free_tree_force): Likewise.
19751 (et_free_pools): Likewise.
19752 (et_split): Use remove instead of delete operator.
19753 * et-forest.h (struct et_node): Remove unused members.
19754 * ipa-cp.c: Change pool_allocator to object_allocator.
19755 * ipa-inline-analysis.c: Likewise.
19756 * ipa-profile.c: Likewise.
19757 * ipa-prop.c: Likewise.
19758 * ipa-prop.h: Likewise.
19759 * ira-build.c (initiate_cost_vectors): Cast return value.
19760 (ira_allocate_cost_vector): Likewise.
19761 * ira-color.c (struct update_cost_record): Remove unused members.
19762 * lra-int.h (struct lra_live_range): Likewise.
19763 (struct lra_copy): Likewise.
19764 (struct lra_insn_reg): Likewise.
19765 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19766 * lra.c (new_insn_reg): Replace new operator with allocate method.
19767 (free_insn_regs): Same for operator delete.
19768 (finish_insn_regs): Release new static allocator.
19769 (finish_insn_recog_data): Likewise.
19770 (lra_free_copies): Replace delete operator with remove method.
19771 (lra_create_copy): Replace operator new with allocate method.
19772 (invalidate_insn_data_regno_info): Same for remove method.
19773 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19774 (free_debug_insn_changes): Replace delete operator with remove method.
19775 (replace_oldest_value_reg): Replace operator new with allocate method.
19776 (pass_cprop_hardreg::execute): Release new static variable.
19777 * sched-deps.c (sched_deps_init): Change pool_allocator to
19778 object_allocator.
19779 * sel-sched-ir.c: Likewise.
19780 * sel-sched-ir.h: Likewise.
19781 * stmt.c (expand_case): Likewise.
19782 (expand_sjlj_dispatch_table): Likewise.
19783 * tree-sra.c (struct access): Remove unused members.
19784 (struct assign_link): Likewise.
19785 (sra_deinitialize): Release newly added static pools.
19786 (create_access_1):Replace operator new with allocate method.
19787 (build_accesses_from_assign): Likewise.
19788 (create_artificial_child_access): Likewise.
19789 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19790 pool_allocator to object_allocator.
19791 * tree-ssa-pre.c: Likewise.
19792 * tree-ssa-reassoc.c: Likewise.
19793 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19794 * tree-ssa-strlen.c: Likewise.
19795 * tree-ssa-structalias.c: Likewise.
19796 * var-tracking.c (onepart_pool_allocate): New function.
19797 (unshare_variable): Use the newly added function.
19798 (variable_merge_over_cur): Likewise.
19799 (variable_from_dropped): Likewise.
19800 (variable_was_changed): Likewise.
19801 (set_slot_part): Likewise.
19802 (emit_notes_for_differences_1): Likewise.
19803 (vt_finalize): Release newly added static pools.
19804
19805 2015-07-16 Martin Jambor <mjambor@suse.cz>
19806
19807 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19808 all uses. Fix two typos in its general comment.
19809 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19810
19811 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19812
19813 * config/i386/linux-common.h (LINK_MPX): New.
19814 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19815 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19816 indicating '-z bndplt' support by linker.
19817 * configure: Regenerate.
19818 * config.in: Regenerate.
19819
19820 2015-07-16 Richard Biener <rguenther@suse.de>
19821
19822 * fold-const.c (fold_widened_comparison): Remove.
19823 (fold_sign_changed_comparison): Likewise.
19824 (fold_comparison): Move widened and sign-changed comparison
19825 simplification ...
19826 * match.pd: ... to patterns here.
19827 * generic-match-head.c: Include target.h.
19828 * gimple-match-head.c: Likewise.
19829
19830 2015-07-16 Richard Biener <rguenther@suse.de>
19831
19832 * tree-ssa-dom.c (dom_valueize): New function.
19833 (record_temporary_equivalences): Also record equivalences
19834 for dominating stmts that have uses of equivalences we are
19835 about to record.
19836
19837 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19838
19839 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19840 add_autoinc_candidates.
19841 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19842 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19843 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19844 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19845 Call new function.
19846 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19847 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19848 Remove parameter struct iv*. Call add_autoinc_candidates here.
19849 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19850 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19851 Call new function.
19852 (find_iv_candidates): Call new functions.
19853
19854 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19855
19856 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19857 uninitialized-variable warning.
19858
19859 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19860
19861 PR target/65249
19862 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19863 when the destination is R0.
19864
19865 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19866
19867 PR target/66866
19868 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19869 * config/i386/i386.c (ix86_expand_pextr): New function.
19870 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19871 for non-lowpart subregs.
19872 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19873 (insv<mode>): Use SWI248 mode iterator.
19874 (insv<mode>_1): Ditto.
19875
19876 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19877 Sebastian Pop <s.pop@samsung.com>
19878
19879 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19880 iterator to use_stmt.
19881
19882 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19883 Sebastian Pop <s.pop@samsung.com>
19884
19885 * graphite-scop-detection.c (build_scops_1): Discard scops for
19886 which entry==exit.
19887
19888 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19889 Sebastian Pop <s.pop@samsung.com>
19890
19891 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19892 case of a return statement in scop.
19893
19894 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19895 Sebastian Pop <s.pop@samsung.com>
19896
19897 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19898 INTEGER_TYPE parameters.
19899 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19900 VECTOR_CST in scan_tree_for_params.
19901 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19902
19903 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19904
19905 * gimple-pretty-print.h: Don't include pretty-print.h.
19906 * tree-streamer.h: Don't include lto-streamer.h.
19907 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19908 * gimple-streamer-in.c: Remove redundant includes.
19909 * gimple-streamer-out.c: Likewise.
19910 * ipa-devirt.c: Likewise.
19911 * ipa-icf.c: Likewise.
19912 * ipa-inline-analysis.c: Likewise.
19913 * ipa-polymorphic-call.c: Likewise.
19914 * ipa-profile.c: Likewise.
19915 * ipa-prop.c: Likewise.
19916 * ipa-pure-const.c: Likewise.
19917 * lto-cgraph.c: Likewise.
19918 * lto-streamer-in.c: Likewise.
19919 * lto-streamer-out.c: Likewise.
19920 * lto-streamer.c: Likewise.
19921 * tree-streamer-in.c: Likewise.
19922 * tree-streamer-out.c: Likewise.
19923 * tree-streamer.c: Likewise.
19924
19925 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19926
19927 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19928 include input.h.
19929 * opts.c: Remove multiline #include comment.
19930
19931 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19932
19933 * config/nvptx/mkoffload.c (process): Add C++ protection to
19934 emitted code.
19935
19936 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19937
19938 PR target/66854
19939 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19940 null before IEEE 128-bit floating point support patch.
19941
19942 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19943
19944 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19945 for (!c) != {0,...,0} ? a : b for vector modes.
19946
19947 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19948 Martin Jambor <mjambor@suse.cz>
19949
19950 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19951 struct func_body_info* instead of struct ipa_node_params*, expecting
19952 fbi->info to be filled in. Replace throughout. Adjust call to
19953 ipa_load_from_parm_agg.
19954 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19955 instead of struct ipa_node_params*. Adjust calls to other functions
19956 so that they pass either fbi or fbi->info.
19957 (set_switch_stmt_execution_predicate): Likewise.
19958 (will_be_nonconstant_predicate): Likewise.
19959 (compute_bb_predicates): Likewise.
19960 (estimate_function_body_sizes): Move asserts earlier. Fill in
19961 struct func_body_info, replace parms_info with fbi.info. Adjust
19962 calls to functions that now accept struct func_body_info.
19963 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19964 (struct func_body_info): Likewise.
19965 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19966 remove static. Adjust callers.
19967 (ipa_load_from_parm_agg): Remove.
19968 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19969 (func_body_info): Likewise.
19970 (ipa_load_from_parm_agg): Adjust prototype.
19971
19972 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19973
19974 * gensupport.c (rtx_handle_directive): Adjust.
19975 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19976 instead of expr list rtx.
19977 (add_define_attr_for_define_subst): Likewise.
19978 (add_define_subst_attr): Likewise.
19979 (read_subst_mapping): Likewise.
19980 (read_rtx): Likewise.
19981 * rtl.h (read_rtx): Adjust.
19982
19983 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19984
19985 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19986
19987 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19988
19989 PR target/58066
19990 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19991 (*tls_local_dynamic_base_64_<mode>): Ditto.
19992 (*tls_local_dynamic_base_64_largepic): Ditto.
19993 (tls_global_dynamic_64_<mode>): Update expander pattern.
19994 (tls_local_dynamic_base_64_<mode>): Ditto.
19995
19996 2015-07-15 Richard Biener <rguenther@suse.de>
19997
19998 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19999 and bool_var == 1 -> bool_var simplifications ...
20000 * match.pd: ... to patterns here. Factor out negate_expr_p
20001 cases from the A - B -> A + (-B) patterns as negate_expr_p
20002 predicate and add a -(A + B) -> (-B) - A pattern.
20003
20004 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20005
20006 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20007
20008 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20009 Robert Suchanek <robert.suchanek@imgtec.com>
20010
20011 * config/mips/mips.c (mips_int_mask): New enum.
20012 (mips_shadow_set): Likewise.
20013 (int_mask): New variable.
20014 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20015 (machine_function): Add int_mask and use_shadow_register_set.
20016 (mips_attribute_table): Add attribute handlers for interrupt and
20017 use_shadow_register_set.
20018 (mips_interrupt_mask): New static function.
20019 (mips_handle_interrupt_attr): Likewise.
20020 (mips_handle_use_shadow_register_set_attr): Likewise.
20021 (mips_use_shadow_register_set): Change return type to enum
20022 mips_shadow_set. Add argument handling for use_shadow_register_set
20023 attribute.
20024 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20025 compare with mips_shadow_set enum.
20026 (mips_compute_frame_info): Add interrupt mask and
20027 use_shadow_register_set to per-function information structure.
20028 Add a stack slot for EPC unconditionally.
20029 (mips_expand_prologue): Compare use_shadow_register_set value
20030 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20031 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20032 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20033 copying the stack pointer from the shadow register set.
20034 * config/mips/mips.h (SR_IM0): New define.
20035 * config/mips/mips.md (mips_rdpgpr): Rename to...
20036 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20037 * doc/extend.texi (Declaring Attributes of Functions): Document
20038 optional arguments for interrupt and use_shadow_register_set
20039 attributes.
20040
20041 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20042
20043 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20044 interrupt attribute.
20045 (mips_expand_prologue): Disable the floating point unit in an ISR.
20046 * config/mips/mips.h (SR_COP1): New define.
20047
20048 2015-07-15 Richard Biener <rguenther@suse.de>
20049
20050 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20051 to tell how many tokens to peek ahead (default 1).
20052 (parser::eat_token, parser::eat_ident): Return token consumed.
20053 (parser::parse_result): Parse new switch statement.
20054 * match.pd: Use case statements where appropriate.
20055
20056 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20057
20058 PR rtl-optimization/58066
20059 * calls.c (expand_call): Precompute register parameters before stack
20060 alignment is performed.
20061
20062 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20063
20064 PR rtl-optimization/66838
20065 * postreload.c (reload_cse_move2add): Also process
20066 CALL_INSN_FUNCTION_USAGE when resetting information of
20067 call-clobbered registers.
20068
20069 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20070 Cesar Philippidis <cesar@codesourcery.com>
20071 Chung-Lin Tang <cltang@codesourcery.com>
20072
20073 * config/nios2/constraints.md (U, v): New constraints.
20074 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20075 (ldstex_memory_operand): New.
20076 * config/nios2/sync.md: New file.
20077 * config/nios2/nios2.md (unspecv): Add new builtin function
20078 UNSPECV codes.
20079 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20080 (top-level): Include sync.md.
20081 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20082 new builtins.
20083 (N2_BUILTINS): Add arch field setting, add new builtins.
20084 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20085 for arch field.
20086 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20087 Also handle ldex/stex/ldsex/stsex builtins.
20088 (nios2_expand_rdprs_builtin): New function.
20089 (nios2_expand_cache_builtin): New function.
20090 (nios2_expand_wrpie_builtin): New function.
20091 (nios2_expand_eni_builtin): New function.
20092 (nios2_expand_builtin): Add arch field handling and new builtin
20093 cases.
20094 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20095 new builtins.
20096 * doc/md.texi (Machine Constraints): Document U and v constraints.
20097
20098 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20099 Cesar Philippidis <cesar@codesourcery.com>
20100 Chung-Lin Tang <cltang@codesourcery.com>
20101
20102 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20103 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20104 callee_save_reg_size and uses_anonymous_args fields.
20105 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20106 (nios2_create_cfa_notes): New function.
20107 (nios2_adjust_stack): New function for adjusting stack.
20108 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20109 Use nios2_adjust_stack.
20110 (nios2_expand_epilogue): Likewise.
20111 (nios2_expand_return): New function.
20112 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20113 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20114 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20115 * config/nios2/nios2.md (return): Use nios2_expand_return.
20116
20117 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20118 Cesar Philippidis <cesar@codesourcery.com>
20119 Chung-Lin Tang <cltang@codesourcery.com>
20120
20121 * config/nios2/predicates.md (pop_operation): New.
20122 (ldwm_operation, stwm_operation): New.
20123 (nios2_hard_register_operand): New.
20124 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20125 (ldstwm_operation_p): Declare.
20126 (gen_ldstwm_peep): Declare.
20127 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20128 (base_reg_adjustment_p): New.
20129 (pop_operation_p): New.
20130 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20131 (nios2_ldstwm_regset_p): New.
20132 (ldstwm_operation_p): New.
20133 (gen_ldst): New.
20134 (nios2_ldst_parallel): New.
20135 (struct ldswm_operand): Declare.
20136 (compare_ldstwm_operands): New.
20137 (can_use_cdx_ldstw): New.
20138 (gen_ldstwm_peep): New.
20139 * config/nios2/nios2-ldstwm.sml: New.
20140 * config/nios2/nios2.md: Include ldstwm.md.
20141 * config/nios2/ldstwm.md: Generated.
20142
20143 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20144 Cesar Philippidis <cesar@codesourcery.com>
20145 Chung-Lin Tang <cltang@codesourcery.com>
20146
20147 * config/nios2/nios2.h (LABEL_ALIGN): Define.
20148 (REG_ALLOC_ORDER): Define.
20149 (ADJUST_REG_ALLOC_ORDER): Define.
20150 (HONOR_REG_ALLOC_ORDER): Define.
20151 (CDX_REG_P): Define.
20152 (ANDCLEAR_INT): Define.
20153 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20154 (nios2_label_align): Declare.
20155 (nios2_cdx_narrow_form_p): Declare.
20156 (nios2_adjust_reg_alloc_order): Declare.
20157 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20158 operation.
20159 (nios2_large_unspec_reloc_p): New function, split from...
20160 (nios2_legitimate_pic_operand_p): ...here.
20161 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20162 (nios2_print_operand_punct_valid_p): New.
20163 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
20164 (split_mem_address): New.
20165 (split_alu_insn): New.
20166 (cdxreg): New.
20167 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20168 (enum nios2_add_insn_kind): New.
20169 (nios2_add_insn_names, nios2_add_insn_narrow): New.
20170 (nios2_add_insn_classify): New.
20171 (nios2_add_insn_asm): New.
20172 (nios2_cdx_narrow_form_p): New.
20173 (label_align, min_labelno, max_labelno): New.
20174 (nios2_reorg): New.
20175 (nios2_label_align): New.
20176 (nios2_adjust_reg_alloc_order): New.
20177 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20178 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20179 * config/nios2/constraints.md (P): New constraint.
20180 * config/nios2/predicates.md (const_and_operand): New.
20181 (and_operand): New.
20182 (stack_memory_operand): New.
20183 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20184 (length): Update to use nios2_cdx_narrow_form_p().
20185 (type): Add new insn type values.
20186 (control, alu, st, ld, shift): Update insn reservations with
20187 new insn type values.
20188 (*high, *lo_sum): Define new insn patterns for constant generation.
20189 (movqi_internal, movhi_internal, movsi_internal): Reduce
20190 alternatives, update asm template to handle CDX variants, update
20191 type attributes.
20192 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20193 template, update type attributes.
20194 (extendhisi2, extendqi<mode>2): Likewise.
20195 (addsi3): Change to use function for asm string.
20196 (subsi3): Add CDX notation to asm template, update type attributes.
20197 (negsi3, one_cmplsi3): Likewise.
20198 (andsi3): New pattern, specialized from logical patterns.
20199 (<code>si3): Remove and case, combine alternatives, update asm
20200 template.
20201 (<shift_op>si3): Add CDX notation, update type attributes.
20202 (rotrsi3): Update type attribute.
20203 (*merge, extzv, insv): New insn patterns.
20204 (return): Change to define_expand.
20205 (simple_return): Add CDX notation, update type attributes.
20206 (indirect_jump): Add CDX notation.
20207 (jump): Update asm cases, update length attribute expression.
20208 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20209 (nios2_cbranch): Update asm cases and length attribute expression
20210 to handle CDX variants.
20211 (nios2_cmp<code>): Update asm template.
20212 (nop): Add CDX notation, update type attributes.
20213 (trap): Add CDX notation.
20214 (ctrapsi4): Update asm cases and length attribute expression to
20215 handle CDX variant.
20216 * doc/md.texi (Machine Constraints): Document P constraint.
20217
20218 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20219 Cesar Philippidis <cesar@codesourcery.com>
20220 Chung-Lin Tang <cltang@codesourcery.com>
20221
20222 * config/nios2/nios2.h (SMALL_INT12): New macro.
20223 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20224 (nios2_valid_addr_expr_p): Use it.
20225 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20226 with implicit "io" instructions on R2.
20227 * config/nios2/constraints.md (w): New constraint.
20228 * config/nios2/predicates.md (ldstio_memory_operand): New.
20229 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20230 operand predicate and constraint.
20231 (ld<bh>io_signed, st<bhw>io>): Likewise.
20232 * doc/md.texi (Machine Constraints): Document w constraint.
20233
20234 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20235 Cesar Philippidis <cesar@codesourcery.com>
20236 Chung-Lin Tang <cltang@codesourcery.com>
20237
20238 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20239 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20240 Nios II architecture level.
20241 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20242 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20243 (OPTION_DEFAULT_SPECS): Define.
20244 (ASM_SPEC): Add -march= spec strings.
20245 * config/nios2/nios2.c (nios2_option_override): Check for
20246 conflicts involving new options.
20247 * config.gcc (nios2*-*-*): Support --with-arch=.
20248 * doc/invoke.texi (Option Summary, Nios II Options): Document
20249 -march=, -mbmx, and -mcdx.
20250
20251 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20252
20253 PR rtl-optimization/66626
20254 * lra-constraints.c (lra_constraints): Prevent equivalence
20255 substitution for static chain pseudo in functions with nonlocal
20256 goto.
20257
20258 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20259
20260 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20261 (nios2_emit_stack_limit_check): Add size parameter. Handle
20262 -fstack-limit-symbol as well as -fstack-limit-register.
20263 (nios2_expand_prologue): Emit only a single stack limit check,
20264 even if multiple stack adjustments are required.
20265 (nios2_option_override): Diagnose unsupported combination of -fpic
20266 and -stack-limit-symbol.
20267
20268 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20269
20270 * Makefile.in (top_srcdir): New.
20271 * configure.ac: Use AM_ZLIB.
20272 * configure: Regeneated.
20273
20274 2015-07-14 Matthias Klose <doko@ubuntu.com>
20275
20276 PR target/66840
20277 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20278
20279 2015-07-14 Richard Biener <rguenther@suse.de>
20280
20281 PR tree-optimization/66863
20282 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20283 what we record for conversion use stmt lhs inequalities.
20284
20285 2015-07-14 Richard Biener <rguenther@suse.de>
20286
20287 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20288 (decision_tree::gen_gimple): Likewise.
20289
20290 2015-07-14 Tom de Vries <tom@codesourcery.com>
20291
20292 * gcc.c (greater_than_spec_func): Declare forward.
20293 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20294 -ftree-parallelize-loops={0,1}.
20295 (static_spec_functions): Add greater_than_spec_func function with name
20296 "gt".
20297 (greater_than_spec_func): New function.
20298
20299 2015-07-14 Richard Biener <rguenther@suse.de>
20300
20301 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20302 wideing type conversion case from record_equivalences_from_incoming_edge
20303 and use record_equality to record equivalences.
20304 (record_equivalences_from_incoming_edge): Call
20305 record_temporary_equivalences.
20306
20307 2015-07-14 Richard Biener <rguenther@suse.de>
20308
20309 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20310 (struct if_expr): New.
20311 (struct with_expr): Likewise.
20312 (is_a_helper): Add helpers for if_expr and with_expr.
20313 (struct simplify): Add simplify_kind enum and member. Remove
20314 ifexpr_vec member.
20315 (simplify::simplify): Adjust.
20316 (lower_commutative): Adjust.
20317 (lower_opt_convert): Likewise.
20318 (lower_cond): Likewise.
20319 (replace_id): Handle with_expr and if_expr.
20320 (lower_for): Adjust.
20321 (dt_simplify::gen_1): New recursive worker, split out from ...
20322 (dt_simplify::gen): ... here. Deal with if and with expansion
20323 recursively.
20324 (capture_info::capture_info): Take context argument
20325 (capture_info::walk_result): Only analyze specific result.
20326 (parser::parse_result): New function.
20327 (parser::parse_simplify): Adjust to parse ifs with then end
20328 else case.
20329 (parser::parse_if): Simplify.
20330 (parser::parse_pattern): Pass down simplify kind.
20331 * match.pd: Convert if structure to new syntax.
20332
20333 2015-07-13 Marek Polacek <polacek@redhat.com>
20334
20335 * rtl.c (rtx_equal_p_cb): Fix typo.
20336
20337 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20338
20339 * omega.h: Don't include config.h, don't include params.h again if
20340 omega.h has already been included.
20341 * graphite-poly.h: Include sese.h.
20342 * graphite.c: Don't include sese.h, remove needless includes and
20343 minimize includes outside #ifdef HAVE_isl block.
20344 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20345 and wrap entire file in #ifdef HAVE_isl
20346 * graphite-dependences.c: Likewise.
20347 * graphite-interchange.c: Likewise.
20348 * graphite-isl-ast-to-gimple.c: Likewise.
20349 * graphite-optimize-isl.c: Likewise.
20350 * graphite-poly.c: Likewise.
20351 * graphite-scop-detection.c: Likewise.
20352 * graphite-sese-to-poly.c: Likewise.
20353
20354 2015-07-13 Tom de Vries <tom@codesourcery.com>
20355
20356 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20357
20358 2015-07-13 Renlin Li <renlin.li@arm.com>
20359
20360 PR rtl/66556
20361 * simplify-rtx.c (simplify_const_relational_operation): Add
20362 side_effects_p checks.
20363
20364 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
20365
20366 * bitmap.h: Fix double word typos.
20367 * builtins.c: Same.
20368 * calls.c: Same.
20369 * cfgloopmanip.c: Same.
20370 * cgraph.c: Same.
20371 * cgraph.h: Same.
20372 * cgraphclones.c: Same.
20373 * combine.c: Same.
20374 * config/aarch64/aarch64-protos.h: Same.
20375 * config/aarch64/aarch64.c: Same.
20376 * config/aarch64/aarch64.md: Same.
20377 * config/arm/arm.md: Same.
20378 * config/arm/arm1020e.md: Same.
20379 * config/arm/arm1026ejs.md: Same.
20380 * config/arm/arm926ejs.md: Same.
20381 * config/arm/fa526.md: Same.
20382 * config/arm/fa606te.md: Same.
20383 * config/arm/fa626te.md: Same.
20384 * config/arm/fa726te.md: Same.
20385 * config/arm/fmp626.md: Same.
20386 * config/darwin.c: Same.
20387 * config/epiphany/epiphany.c: Same.
20388 * config/frv/frv.c: Same.
20389 * config/ft32/ft32.c: Same.
20390 * config/gnu-user.h: Same.
20391 * config/h8300/constraints.md: Same.
20392 * config/i386/i386.c: Same.
20393 * config/i386/i386.md: Same.
20394 * config/iq2000/iq2000.md: Same.
20395 * config/mips/mips.c: Same.
20396 * config/mmix/mmix.md: Same.
20397 * config/moxie/moxie.c: Same.
20398 * config/nds32/nds32.md: Same.
20399 * config/pa/pa.h: Same.
20400 * config/rs6000/aix.h: Same.
20401 * config/rs6000/rs6000.h: Same.
20402 * config/sh/sh.c: Same.
20403 * config/tilegx/tilegx.md: Same.
20404 * config/tilepro/gen-mul-tables.cc: Same.
20405 * cse.c: Same.
20406 * dbxout.c: Same.
20407 * doc/invoke.texi: Same.
20408 * dse.c: Same.
20409 * dwarf2out.c: Same.
20410 * final.c: Same.
20411 * gcc.c: Same.
20412 * genmatch.c: Same.
20413 * gimplify.c: Same.
20414 * hash-table.h: Same.
20415 * internal-fn.c: Same.
20416 * ipa-cp.c: Same.
20417 * ipa-devirt.c: Same.
20418 * ipa-icf.c: Same.
20419 * ipa-icf.h: Same.
20420 * ipa-profile.c: Same.
20421 * ipa-prop.c: Same.
20422 * ipa-prop.h: Same.
20423 * ira.c: Same.
20424 * omp-low.c: Same.
20425 * reg-stack.c: Same.
20426 * regcprop.c: Same.
20427 * reorg.c: Same.
20428 * rtl.h: Same.
20429 * sbitmap.h: Same.
20430 * tree-eh.c: Same.
20431 * tree-inline.c: Same.
20432 * tree-sra.c: Same.
20433 * tree-ssa-dom.c: Same.
20434 * tree-ssa-loop-ivopts.c: Same.
20435 * tree-ssa-structalias.c: Same.
20436 * tree-ssa-tail-merge.c: Same.
20437 * tree-ssa-ter.c: Same.
20438 * tree-ssa-threadupdate.c: Same.
20439 * tree-ssa-uninit.c: Same.
20440 * tree-ssanames.c: Same.
20441 * tree-vect-loop-manip.c: Same.
20442 * tree-vrp.c: Same.
20443 * tree.c: Same.
20444 * valtrack.c: Same.
20445 * vec.h: Same.
20446
20447 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20448
20449 PR middle-end/66726
20450 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20451 tree_ssa_phiopt_worker): Call it.
20452
20453 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20454
20455 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20456 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20457 REG_EQUAL note.
20458
20459 2015-07-11 Marek Polacek <polacek@redhat.com>
20460
20461 PR middle-end/66353
20462 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20463 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20464 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20465 rather than bb_has_abnormal_call_pred.
20466 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20467 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20468 rather than bb_has_abnormal_call_pred.
20469
20470 2015-07-10 Anatoly Sokolov <aesok@post.ru>
20471
20472 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20473 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20474 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20475 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20476 v850_legitimate_address_p): New functions.
20477 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20478
20479 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
20480
20481 PR target/66819
20482 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20483 indirect sibcall with register arguments if register available
20484 for argument passing.
20485 (init_cumulative_args): Set cfun->machine->arg_reg_available
20486 to (cum->nregs > 0) or to true if function has a variable
20487 argument list.
20488 (function_arg_advance_32): Set cfun->machine->arg_reg_available
20489 to false if cum->nregs <= 0.
20490 * config/i386/i386.h (machine_function): Add arg_reg_available.
20491
20492 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20493
20494 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20495 and gen_higpart instead of gen_rtx_SUBREG.
20496 * config/i386/i386.md
20497 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20498 (read-modify peephole2): Use gen_lowpart instead of
20499 gen_rtx_SUBREG for operand 5.
20500
20501 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20502
20503 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20504 generated files.
20505 * config/tilepro/mul-tables.c: Regenerate.
20506 * config/tilegx/mul-tables.c: Regenerate.
20507
20508 2015-07-10 Richard Biener <rguenther@suse.de>
20509
20510 * fold-const.c (distribute_bit_expr): Remove.
20511 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20512 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20513 to A & (B | C) and simplifying A << C1 << C2 to ...
20514 * match.pd: ... patterns here.
20515
20516 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20517
20518 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20519 Mark mem as READONLY and NOTRAP for PIC symbol.
20520
20521 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20522
20523 * gimple-predict.h: New file.
20524 (gimple_predict_predictor, gimple_predict_set_predictor,
20525 gimple_predict_outcome, gimple_predict_set_outcome,
20526 gimple_build_predict): Relocate here.
20527 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20528 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20529 gimple-predict.h.
20530 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20531 * basic-block.h: Don't include cfghooks.h.
20532 * backend.h: Don't include predict.h.
20533 * cfghooks.h: Include predict.h.
20534 * gimple-pretty-print.c: Include gimple-predict.h.
20535 * gimplify.c: Likwise.
20536 * predict.c: Adjust includes.
20537 * tree-inline.c: Likewise.
20538 * asan.c: Likewise.
20539 * auto-inc-dec.c: Likewise.
20540 * auto-profile.c: Likewise.
20541 * bb-reorder.c: Likewise.
20542 * builtins.c: Likewise.
20543 * caller-save.c: Likewise.
20544 * calls.c: Likewise.
20545 * cfganal.c: Likewise.
20546 * cfgbuild.c: Likewise.
20547 * cfg.c: Likewise.
20548 * cfgcleanup.c: Likewise.
20549 * cfgexpand.c: Likewise.
20550 * cfghooks.c: Likewise.
20551 * cfgloopanal.c: Likewise.
20552 * cfgloop.c: Likewise.
20553 * cfgloopmanip.c: Likewise.
20554 * cfgrtl.c: Likewise.
20555 * cgraph.c: Likewise.
20556 * cgraphunit.c: Likewise.
20557 * combine.c: Likewise.
20558 * cprop.c: Likewise.
20559 * cse.c: Likewise.
20560 * dce.c: Likewise.
20561 * dojump.c: Likewise.
20562 * dse.c: Likewise.
20563 * except.c: Likewise.
20564 * expmed.c: Likewise.
20565 * expr.c: Likewise.
20566 * final.c: Likewise.
20567 * fold-const.c: Likewise.
20568 * function.c: Likewise.
20569 * fwprop.c: Likewise.
20570 * gcc-plugin.h: Likewise.
20571 * gcse.c: Likewise.
20572 * genattrtab.c: Likewise.
20573 * genemit.c: Likewise.
20574 * gengtype.c: Likewise.
20575 * genopinit.c: Likewise.
20576 * genoutput.c: Likewise.
20577 * genpreds.c: Likewise.
20578 * genrecog.c: Likewise.
20579 * gimple-fold.c: Likewise.
20580 * gimple-iterator.c: Likewise.
20581 * gimple-ssa-isolate-paths.c: Likewise.
20582 * gimple-ssa-strength-reduction.c: Likewise.
20583 * graph.c: Likewise.
20584 * graphite-blocking.c: Likewise.
20585 * graphite.c: Likewise.
20586 * graphite-dependences.c: Likewise.
20587 * graphite-interchange.c: Likewise.
20588 * graphite-isl-ast-to-gimple.c: Likewise.
20589 * graphite-optimize-isl.c: Likewise.
20590 * graphite-poly.c: Likewise.
20591 * graphite-scop-detection.c: Likewise.
20592 * graphite-sese-to-poly.c: Likewise.
20593 * haifa-sched.c: Likewise.
20594 * ifcvt.c: Likewise.
20595 * internal-fn.c: Likewise.
20596 * ipa-cp.c: Likewise.
20597 * ipa-profile.c: Likewise.
20598 * ipa-split.c: Likewise.
20599 * ipa-utils.c: Likewise.
20600 * ira-build.c: Likewise.
20601 * ira-color.c: Likewise.
20602 * ira-conflicts.c: Likewise.
20603 * ira-costs.c: Likewise.
20604 * ira-emit.c: Likewise.
20605 * ira-lives.c: Likewise.
20606 * jump.c: Likewise.
20607 * loop-doloop.c: Likewise.
20608 * loop-init.c: Likewise.
20609 * loop-invariant.c: Likewise.
20610 * loop-unroll.c: Likewise.
20611 * lower-subreg.c: Likewise.
20612 * lra-assigns.c: Likewise.
20613 * lra.c: Likewise.
20614 * lra-coalesce.c: Likewise.
20615 * lra-constraints.c: Likewise.
20616 * lra-lives.c: Likewise.
20617 * lto-cgraph.c: Likewise.
20618 * lto-streamer-in.c: Likewise.
20619 * mode-switching.c: Likewise.
20620 * modulo-sched.c: Likewise.
20621 * omp-low.c: Likewise.
20622 * optabs.c: Likewise.
20623 * passes.c: Likewise.
20624 * postreload.c: Likewise.
20625 * postreload-gcse.c: Likewise.
20626 * profile.c: Likewise.
20627 * recog.c: Likewise.
20628 * regstat.c: Likewise.
20629 * reload1.c: Likewise.
20630 * reorg.c: Likewise.
20631 * rtlanal.c: Likewise.
20632 * sched-ebb.c: Likewise.
20633 * sel-sched-ir.c: Likewise.
20634 * sese.c: Likewise.
20635 * shrink-wrap.c: Likewise.
20636 * simplify-rtx.c: Likewise.
20637 * stmt.c: Likewise.
20638 * store-motion.c: Likewise.
20639 * tracer.c: Likewise.
20640 * trans-mem.c: Likewise.
20641 * tree-call-cdce.c: Likewise.
20642 * tree-cfg.c: Likewise.
20643 * tree-cfgcleanup.c: Likewise.
20644 * tree-chkp.c: Likewise.
20645 * tree-complex.c: Likewise.
20646 * tree-eh.c: Likewise.
20647 * tree-if-conv.c: Likewise.
20648 * tree-loop-distribution.c: Likewise.
20649 * tree-outof-ssa.c: Likewise.
20650 * tree-parloops.c: Likewise.
20651 * tree-predcom.c: Likewise.
20652 * tree-pretty-print.c: Likewise.
20653 * tree-profile.c: Likewise.
20654 * tree-sra.c: Likewise.
20655 * tree-ssa.c: Likewise.
20656 * tree-ssa-coalesce.c: Likewise.
20657 * tree-ssa-dce.c: Likewise.
20658 * tree-ssa-dom.c: Likewise.
20659 * tree-ssa-forwprop.c: Likewise.
20660 * tree-ssa-ifcombine.c: Likewise.
20661 * tree-ssa-loop-ch.c: Likewise.
20662 * tree-ssa-loop-im.c: Likewise.
20663 * tree-ssa-loop-ivcanon.c: Likewise.
20664 * tree-ssa-loop-ivopts.c: Likewise.
20665 * tree-ssa-loop-manip.c: Likewise.
20666 * tree-ssa-loop-prefetch.c: Likewise.
20667 * tree-ssa-loop-unswitch.c: Likewise.
20668 * tree-ssa-math-opts.c: Likewise.
20669 * tree-ssa-phiopt.c: Likewise.
20670 * tree-ssa-pre.c: Likewise.
20671 * tree-ssa-reassoc.c: Likewise.
20672 * tree-ssa-sink.c: Likewise.
20673 * tree-ssa-tail-merge.c: Likewise.
20674 * tree-ssa-threadedge.c: Likewise.
20675 * tree-ssa-threadupdate.c: Likewise.
20676 * tree-switch-conversion.c: Likewise.
20677 * tree-tailcall.c: Likewise.
20678 * tree-vect-data-refs.c: Likewise.
20679 * tree-vect-loop.c: Likewise.
20680 * tree-vect-loop-manip.c: Likewise.
20681 * tree-vectorizer.c: Likewise.
20682 * tree-vrp.c: Likewise.
20683 * ubsan.c: Likewise.
20684 * value-prof.c: Likewise.
20685 * varasm.c: Likewise.
20686 * var-tracking.c: Likewise.
20687 * config/aarch64/aarch64-builtins.c: Likewise.
20688 * config/aarch64/aarch64.c: Likewise.
20689 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20690 * config/alpha/alpha.c: Likewise.
20691 * config/arc/arc.c: Likewise.
20692 * config/arm/arm.c: Likewise.
20693 * config/avr/avr.c: Likewise.
20694 * config/bfin/bfin.c: Likewise.
20695 * config/c6x/c6x.c: Likewise.
20696 * config/cr16/cr16.c: Likewise.
20697 * config/cris/cris.c: Likewise.
20698 * config/darwin.c: Likewise.
20699 * config/darwin-c.c: Likewise.
20700 * config/epiphany/epiphany.c: Likewise.
20701 * config/epiphany/mode-switch-use.c: Likewise.
20702 * config/epiphany/resolve-sw-modes.c: Likewise.
20703 * config/fr30/fr30.c: Likewise.
20704 * config/frv/frv.c: Likewise.
20705 * config/ft32/ft32.c: Likewise.
20706 * config/h8300/h8300.c: Likewise.
20707 * config/i386/i386.c: Likewise.
20708 * config/i386/winnt.c: Likewise.
20709 * config/ia64/ia64.c: Likewise.
20710 * config/iq2000/iq2000.c: Likewise.
20711 * config/lm32/lm32.c: Likewise.
20712 * config/m32c/m32c.c: Likewise.
20713 * config/m32r/m32r.c: Likewise.
20714 * config/m68k/m68k.c: Likewise.
20715 * config/mcore/mcore.c: Likewise.
20716 * config/mep/mep.c: Likewise.
20717 * config/microblaze/microblaze.c: Likewise.
20718 * config/mips/mips.c: Likewise.
20719 * config/mmix/mmix.c: Likewise.
20720 * config/mn10300/mn10300.c: Likewise.
20721 * config/moxie/moxie.c: Likewise.
20722 * config/msp430/msp430.c: Likewise.
20723 * config/nds32/nds32.c: Likewise.
20724 * config/nds32/nds32-cost.c: Likewise.
20725 * config/nds32/nds32-fp-as-gp.c: Likewise.
20726 * config/nds32/nds32-intrinsic.c: Likewise.
20727 * config/nds32/nds32-isr.c: Likewise.
20728 * config/nds32/nds32-md-auxiliary.c: Likewise.
20729 * config/nds32/nds32-memory-manipulation.c: Likewise.
20730 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20731 * config/nds32/nds32-predicates.c: Likewise.
20732 * config/nios2/nios2.c: Likewise.
20733 * config/nvptx/nvptx.c: Likewise.
20734 * config/pa/pa.c: Likewise.
20735 * config/pdp11/pdp11.c: Likewise.
20736 * config/rl78/rl78.c: Likewise.
20737 * config/rs6000/rs6000.c: Likewise.
20738 * config/rx/rx.c: Likewise.
20739 * config/s390/s390.c: Likewise.
20740 * config/sh/sh.c: Likewise.
20741 * config/sh/sh-mem.cc: Likewise.
20742 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20743 * config/sh/sh_treg_combine.cc: Likewise.
20744 * config/sparc/sparc.c: Likewise.
20745 * config/spu/spu.c: Likewise.
20746 * config/stormy16/stormy16.c: Likewise.
20747 * config/tilegx/tilegx.c: Likewise.
20748 * config/tilepro/tilepro.c: Likewise.
20749 * config/v850/v850.c: Likewise.
20750 * config/vax/vax.c: Likewise.
20751 * config/visium/visium.c: Likewise.
20752 * config/xtensa/xtensa.c: Likewise.
20753
20754 2015-07-10 Richard Biener <rguenther@suse.de>
20755
20756 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20757 (decision_tree::gen_gimple): Likewise.
20758 (decision_tree::gen_generic): Likewise.
20759
20760 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20761
20762 PR target/66813
20763 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20764 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20765
20766 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20767
20768 PR middle-end/66820
20769 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20770 or ORT_TASK contexts.
20771 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20772 is non-zero.
20773
20774 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20775
20776 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20777 above function.
20778
20779 2015-07-10 Tom de Vries <tom@codesourcery.com>
20780
20781 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20782 insert nit + 1 bound.
20783
20784 2015-07-10 Richard Biener <rguenther@suse.de>
20785
20786 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20787 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20788 (if_convertible_loop_p_1): For this always compute bb predicates.
20789 (if_convertible_loop_p): And free them.
20790
20791 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20792
20793 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20794 in dump message.
20795
20796 2015-07-10 Richard Biener <rguenther@suse.de>
20797
20798 PR tree-optimization/66823
20799 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20800 inverted predicate.
20801
20802 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20803
20804 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20805 to handle mips[32|64]r3 and mips[32|64]r5.
20806
20807 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20808
20809 PR middle-end/66633
20810 * tree-nested.c (get_static_chain): Or in a flag into
20811 info->static_chain_added.
20812 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20813 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20814 2015-07-01 changes.
20815 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20816 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20817 add it to clauses.
20818
20819 PR tree-optimization/66718
20820 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20821 field.
20822 (vect_simd_lane_linear): New function.
20823 (vectorizable_simd_clone_call): Support using linear arguments for
20824 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20825
20826 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20827
20828 PR target/66821
20829 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20830
20831 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20832
20833 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20834 Use machine mode, not enum machine_mode in the prototype.
20835
20836 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20837 classify 128-bit floating point support.
20838 (FLOAT128_IBM_P): Likewise.
20839 (FLOAT128_VECTOR_P): Likewise.
20840 (FLOAT128_2REG_P): Likewise.
20841 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20842 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20843 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20844 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20845
20846 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20847 tests against TFmode/TDmode, since those modes do not use VSX
20848 addresses.
20849 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20850 support.
20851 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20852 tests against TFmode, etc.
20853 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20854 (reg_offset_addressing_ok_p): Likewise.
20855 (rs6000_legitimate_offset_address_p): Likewise.
20856 (rs6000_legitimize_address): Likewise.
20857 (rs6000_legitimize_reload_address): Likewise.
20858 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20859 TDmode to use the new helper macros, which will include IFmode and
20860 KFmode.
20861 (rs6000_emit_move): Likewise.
20862 (rs6000_darwin64_record_arg_recurse): Likewise.
20863 (print_operand): Likewise.
20864 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20865 that uses a single vector register as a vector and not as a
20866 floating point register in terms of the calling sequence.
20867 (rs6000_discover_homogeneous_aggregate): Likewise.
20868 (rs6000_return_in_memory): Likewise.
20869 (init_cumulative_args): Likewise.
20870 (rs6000_function_arg_boundary): Likewise.
20871 (rs6000_function_arg_advance_1): Likewise.
20872 (rs6000_function_arg): Likewise.
20873 (rs6000_pass_by_reference): Likewise.
20874 (rs6000_gimplify_va_arg): Likewise.
20875 (rs6000_secondary_reload_memory): Use machine_mode not enum
20876 machine mode.
20877 (rs6000_split_multireg_move): Use new helper macros.
20878 (spe_func_has_64bit_regs_p): Likewise.
20879 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20880 (output_toc): Use new helper macros.
20881 (rs6000_register_move_cost): Likewise.
20882 (rs6000_function_value): Add IEEE 128-bit floating point calling
20883 sequence support.
20884 (rs6000_libcall_value): Likewise.
20885 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20886 floating point support.
20887 (rs6000_vector_mode_supported_p): Likewise.
20888
20889 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20890
20891 PR rtl-optimization/66782
20892 * lra-int.h (struct lra_insn_recog_data): Add comment about
20893 clobbered hard regs for arg_hard_regs.
20894 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20895 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20896 Add condition for processing used hard regs.
20897 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20898 Process clobbered hard regs.
20899
20900 2015-07-09 Michael Matz <matz@suse.de>
20901
20902 * genmatch.c (fprintf_indent): New function.
20903 (operand::gen_transform): Add indent parameter.
20904 (expr::gen_transform, c_expr::gen_transform,
20905 capture::gen_transform): Ditto and use fprintf_indent.
20906 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20907 (dt_operand::gen, dt_operand::gen_predicate,
20908 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20909 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20910 (decision_tree::gen_gimple): Adjust calls and indent generated
20911 code.
20912 (decision_tree::gen_generic): Ditto.
20913 (write_predicate): Ditto.
20914
20915 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20916
20917 PR target/66814
20918 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20919 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20920 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20921 {GENERAL,SSE,MMX}_REG_P where appropriate.
20922
20923 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20924
20925 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20926 * builtins.c: Adjust includes.
20927 * gimple.c: Likewise.
20928 * ipa-icf.c: Likewise.
20929 * lto-opts.c: Likewise.
20930 * ipa-reference.c: Likewise.
20931 * lto-section-out.c: Likewise.
20932 * lto-streamer-in.c: Likewise.
20933 * lto-streamer-out.c: Likewise.
20934 * opts-global.c: Likewise.
20935 * symtab.c: Likewise.
20936 * tree-chkp.c: Likewise.
20937 * tree-ssa-live.c: Likewise.
20938 * tree-streamer-in.c: Likewise.
20939 * tree-streamer-out.c: Likewise.
20940 * config/darwin.c: Likewise.
20941 * config/i386/winnt.c: Likewise.
20942
20943 2015-07-09 Richard Biener <rguenther@suse.de>
20944
20945 * genmatch.c (struct expr): Add force_single_use flag.
20946 (expr::expr): Add copy constructor.
20947 (capture_info::walk_match): Gather force_single_use captures.
20948 (expr::gen_transform): Use possibly NULLified sequence.
20949 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20950 seq if any constrained expr is not single-use.
20951 (parser::parse_expr): Refactor to allow multiple flags. Handle
20952 's' flag to force an expression have a single-use if the pattern
20953 simplifies to more than one statement.
20954 * match.pd: Convert most single_use conditionals to :s flags.
20955
20956 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20957
20958 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20959 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20960 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20961
20962 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20963
20964 * flags.h: Don't include flag-types.h or options.h.
20965 * opts-common.c: Adjust includes.
20966 * opts-global.c: Likewise.
20967 * common/config/epiphany/epiphany-common.c: Likewise.
20968
20969 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20970
20971 PR target/66818
20972 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20973 for IA MCU.
20974
20975 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20976
20977 PR target/66817
20978 * config/i386/i386.c (ix86_return_in_memory): Return true
20979 if int_size_in_bytes returns negative for IA MCU.
20980
20981 2015-07-09 Marek Polacek <polacek@redhat.com>
20982
20983 PR tree-optimization/66718
20984 * Makefile.in (OBJS): Add gimple-laddress.o.
20985 * passes.def: Schedule pass_laddress.
20986 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20987 * tree-pass.h (make_pass_laddress): Declare.
20988 * gimple-laddress.c: New file.
20989
20990 2015-07-09 Richard Biener <rguenther@suse.de>
20991
20992 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20993
20994 2015-07-09 Richard Biener <rguenther@suse.de>
20995
20996 PR tree-optimization/66807
20997 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20998
20999 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21000
21001 * function.c (stack_protect_epilogue): Use if rather than switch for
21002 check targetm.have_stack_protect_test.
21003
21004 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21005
21006 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21007 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21008 * config/arc/arc.h: Likewise.
21009 * config/arm/arm.h: Likewise.
21010 * config/bfin/bfin.h: Likewise.
21011 * config/epiphany/epiphany.h: Likewise.
21012 * config/frv/frv.h: Likewise.
21013 * config/ia64/ia64.h: Likewise.
21014 * config/iq2000/iq2000.h: Likewise.
21015 * config/lm32/lm32.h: Likewise.
21016 * config/m32r/m32r.h: Likewise.
21017 * config/mcore/mcore.h: Likewise.
21018 * config/mep/mep.h: Likewise.
21019 * config/microblaze/microblaze.h: Likewise.
21020 * config/mips/mips.h: Likewise.
21021 * config/mmix/mmix.h: Likewise.
21022 * config/mn10300/mn10300.h: Likewise.
21023 * config/nds32/nds32.h: Likewise.
21024 * config/nios2/nios2.h: Likewise.
21025 * config/pa/pa.h: Likewise.
21026 * config/rl78/rl78.h: Likewise.
21027 * config/sh/sh.h: Likewise.
21028 * config/sparc/sparc.h: Likewise.
21029 * config/stormy16/stormy16.h: Likewise.
21030 * config/tilegx/tilegx.h: Likewise.
21031 * config/tilepro/tilepro.h: Likewise.
21032 * config/v850/v850.h: Likewise.
21033 * config/xtensa/xtensa.h: Likewise.
21034 * doc/tm.texi: Regenerate.
21035 * doc/tm.texi.in: Adjust.
21036 * combine.c (simplify_set): Likewise.
21037 (simplify_comparison): Likewise.
21038 * expr.c (store_constructor): Likewise.
21039 * internal-fn.c (expand_arith_overflow): Likewise.
21040 * reload.c (push_reload): Likewise.
21041 (find_reloads): Likewise.
21042 (find_reloads_subreg_address): Likewise.
21043 * reload1.c (eliminate_regs_1): Likewise.
21044 * rtlanal.c (nonzero_bits1): Likewise.
21045 (num_sign_bit_copies1): Likewise.
21046 * simplify-rtx.c (simplify_truncation): Likewise.
21047
21048 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21049
21050 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21051 of AUTO_INC_DEC with the preprocessor.
21052 * combine.c (combine_instructions): Likewise.
21053 (can_combine_p): Likewise.
21054 (try_combine): Likewise.
21055 * emit-rtl.c (try_split): Likewise.
21056 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21057 * lower-subreg.c (resolve_simple_move): Likewise.
21058 * lra.c (update_inc_notes): Likewise.
21059 * recog.c (asm_operand_ok): Likewise.
21060 (constrain_operands): Likewise.
21061 * regrename.c (scan_rtx_address): Likewise.
21062 * reload.c (update_auto_inc_notes): Likewise.
21063 (reg_inc_found_and_valid_p): Likewise.
21064 * reload1.c (reload): Likewise.
21065 (emit_input_reload_insns): Likewise.
21066 (delete_output_reload): Likewise.
21067 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21068 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21069
21070 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21071
21072 * rtl.h: Always define AUTO_INC_DEC.
21073 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21074 * combine.c (combine_instructions): Likewise.
21075 (can_combine_p): Likewise.
21076 (try_combine): Likewise.
21077 * emit-rtl.c (try_split): Likewise.
21078 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21079 * lower-subreg.c (resolve_simple_move): Likewise.
21080 * lra.c (update_inc_notes): Likewise.
21081 * recog.c (asm_operand_ok): Likewise.
21082 (constrain_operands): Likewise.
21083 * regrename.c (scan_rtx_address): Likewise.
21084 * reload.c (update_auto_inc_notes): Likewise.
21085 (find_equiv_reg): Likewise.
21086 * reload1.c (reload): Likewise.
21087 (reload_as_needed): Likewise.
21088 (choose_reload_regs): Likewise.
21089 (emit_input_reload_insns): Likewise.
21090 (delete_output_reload): Likewise.
21091 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21092 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21093
21094 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21095
21096 * combine.c (can_combine_def_p): Don't check the value of
21097 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21098 (combinable_i3pat): Likewise.
21099 (mark_used_regs_combine): Likewise.
21100 * regrename.c (rename_chains): Likewise.
21101 * reload.c (find_reloads_address): Likewise.
21102 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21103
21104 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21105
21106 * combine.c (update_rsp_from_reg_equal): Don't check if
21107 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21108 (reg_nonzero_bits_for_combine): Likewise.
21109 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21110 1.
21111 * config/frv/frv.h: Likewise.
21112 * config/lm32/lm32.h: Likewise.
21113 * config/mep/mep.h: Likewise.
21114 * config/mips/mips.h: Likewise.
21115 * config/rs6000/rs6000.h: Likewise.
21116 * config/sh/sh.h: Likewise.
21117 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21118 * config/tilepro/tilepro.h: Likewise.
21119 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21120 * doc/tm.texi: Regenerate.
21121 * doc/tm.texi.in: Adjust.
21122 * rtlanal.c (nonzero_bits1): Likewise.
21123
21124 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21125
21126 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21127 with the preprocessor.
21128 (combine_instructions): Likewise.
21129 (try_combine): Likewise.
21130 (subst): Likewise.
21131 (distribute_notes): Likewise.
21132
21133 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21134
21135 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21136 defined.
21137 (simplify_set): Likewise.
21138 * cse.c (cse_insn): Likewise.
21139 * fold-const.c (fold_single_bit_test): Likewise.
21140 (fold_unary_loc): Likewise.
21141 * postreload.c (reload_cse_simplify_set): Likewise.
21142 (reload_cse_simplify_operands): Likewise.
21143
21144 2015-07-08 Jiong Wang <jiong.wang@arm.com>
21145
21146 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21147 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21148
21149 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21150
21151 PR target/66746
21152 * config/i386/x86intrin.h: Include <adxintrin.h> even if
21153 __iamcu__ is defined.
21154
21155 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21156
21157 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21158
21159 2015-07-08 Iain Sandoe <iain@codesourcery.com>
21160
21161 PR target/66523
21162 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21163 names from preservation.
21164
21165 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21166
21167 PR target/66806
21168 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21169 change for IAMCU.
21170 (function_arg_advance_32): Don't pass vectors in registers for
21171 IAMCU.
21172 (function_arg_32): Likewise.
21173 (ix86_return_in_memory): Don't return vectors in registers for
21174 IAMCU.
21175
21176 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21177
21178 PR middle-end/66334
21179 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21180 hard regno live at the start of BB with incoming abnormal edges.
21181 * lra-lives.c (process_bb_lives): Ditto.
21182
21183 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21184
21185 PR libgomp/65099
21186 * config/nvptx/mkoffload.c (main): Create an offload image only in
21187 64-bit configurations.
21188
21189 2015-07-08 Martin Liska <mliska@suse.cz>
21190
21191 PR bootstrap/66744
21192 * tree-sra.c (create_access_1): Call ctor without brackets.
21193 (create_artificial_child_access): Likewise.
21194
21195 2015-07-08 Richard Biener <rguenther@suse.de>
21196
21197 PR tree-optimization/66793
21198 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21199 Properly split the block after stmts ending it.
21200
21201 2015-07-08 Richard Biener <rguenther@suse.de>
21202
21203 PR tree-optimization/66794
21204 * passes.c (execute_function_todo): Assert that post-dominators
21205 are not computed.
21206 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21207 Free post-dominators.
21208
21209 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21210
21211 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21212 with early exit.
21213
21214 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21215
21216 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21217 more than or equal 8 and less than 32 when optimizing for size.
21218
21219 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21220
21221 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21222 COSTS_N_INSNS (1) and increment it appropriately throughout the
21223 function.
21224
21225 2015-07-08 Richard Biener <rguenther@suse.de>
21226
21227 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21228
21229 2015-07-08 Alan Modra <amodra@gmail.com>
21230
21231 * target.def (rtx_costs): Remove "code" param, add "mode".
21232 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21233 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21234 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21235 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21236 call. Track mode when given in rtx.
21237 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21238 (default_address_cost): Pass Pmode to rtx_cost.
21239 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21240 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21241 with NULL set.
21242 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21243 (notreg_cost): Add mode param. Use it.
21244 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21245 mode param and pass to set_src_cost. Update all calls.
21246 (hash_scan_set): Formatting.
21247 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21248 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21249 * hooks.h: Ditto.
21250 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21251 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21252 emit_store_flag): Update set_src_cost and rtx_cost calls.
21253 * auto-inc-dec.c (attempt_change): Likewise.
21254 * calls.c (precompute_register_parameters): Likewise.
21255 * combine.c (expand_compound_operation, make_extraction,
21256 force_to_mode, distribute_and_simplify_rtx): Likewise.
21257 * dojump.c (prefer_and_bit_test): Likewise.
21258 * dse.c (find_shift_sequence): Likewise.
21259 * expr.c (compress_float_constant): Likewise.
21260 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21261 * ifcvt.c (noce_try_sign_mask): Likewise.
21262 * loop-doloop.c (doloop_optimize): Likewise.
21263 * loop-invariant.c (create_new_invariant): Likewise.
21264 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21265 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21266 lshift_cheap_p): Likewise.
21267 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21268 try_replace_in_use, reload_cse_move2add): Likewise.
21269 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21270 Likewise.
21271 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21272 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21273 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21274 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21275 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21276 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21277 to rtx_cost calls.
21278 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21279 * config/arc/arc.c (arc_rtx_costs): Likewise.
21280 * config/arm/arm.c (arm_rtx_costs): Likewise.
21281 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21282 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21283 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21284 * config/cris/cris.c (cris_rtx_costs): Likewise.
21285 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21286 * config/frv/frv.c (frv_rtx_costs): Likewise.
21287 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21288 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21289 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21290 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21291 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21292 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21293 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21294 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21295 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21296 * config/mep/mep.c (mep_rtx_cost): Likewise.
21297 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21298 * config/mips/mips.c (mips_rtx_costs): Likewise.
21299 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21300 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21301 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21302 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21303 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21304 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21305 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21306 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21307 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21308 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21309 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21310 * config/s390/s390.c (s390_rtx_costs): Likewise.
21311 * config/sh/sh.c (sh_rtx_costs): Likewise.
21312 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21313 * config/spu/spu.c (spu_rtx_costs): Likewise.
21314 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21315 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21316 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21317 * config/v850/v850.c (v850_rtx_costs): Likewise.
21318 * config/vax/vax.c (vax_rtx_costs): Likewise.
21319 * config/visium/visium.c (visium_rtx_costs): Likewise.
21320 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21321 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21322 "code" param, and pass as outer_code to first rtx_cost call. Pass
21323 mode to rtx_cost calls.
21324 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21325 calls.
21326 (aarch64_rtx_costs_wrapper): Update.
21327 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21328 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21329 rtx_cost calls.
21330 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21331 and rtx_cost calls.
21332 (avr_operand_rtx_cost): Similarly.
21333 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21334 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21335 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21336 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21337 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21338 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21339 rtx_cost.
21340 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21341 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21342 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21343 * doc/tm.texi: Regenerate.
21344
21345 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21346
21347 * tree-core.h: Include symtab.h.
21348 * rtl.h: Include hard-reg-set.h but not flags.h.
21349 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21350 hard-reg-set.h is always included.
21351 * regs.h: Don't include hard-reg-set.h or rtl.h.
21352 * cfg.h: Include dominance.h.
21353 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21354 * backend.h: New. Aggregate commonly used backend header files.
21355 * gimple-ssa.h: Don't include tree-hasher.h.
21356 * ssa.h: New. Aggregate commonly used SSA header files.
21357 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21358 * sel-sched-ir.h: Flatten includes.
21359 * lra-int.h: Flatten completely.
21360 * sel-sched-dump.h: Flatten includes.
21361 * ira-int.h: Flatten includes.
21362 * gimple-streamer.h: Remove all includes.
21363 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21364 * resource.h: Flatten hard-reg-set.h and df.h.
21365 * sched-int.h: Flatten insn-arrt.h and df.h.
21366 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21367 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21368 * genattrtab.c (write_header): Adjust generated includes.
21369 * genautomata.c (main): Likewise.
21370 * genconditions.c (write-header): Likewise.
21371 * genemit.c (main): Likewise.
21372 * gengtype.c (open_base_files): Likewise.
21373 * genopinit.c (main): Likewise.
21374 * genoutput.c (output_prologue): Likewise.
21375 * genpeep.c (main): Likewise.
21376 * genpreds.c (write_insn_preds_c): Likewise.
21377 * genrecog.c (write_header): Likewise.
21378 * alias.c: Adjust includes.
21379 * asan.c: Likewise.
21380 * attribs.c: Likewise.
21381 * auto-inc-dec.c: Likewise.
21382 * auto-profile.c: Likewise.
21383 * bb-reorder.c: Likewise.
21384 * bt-load.c: Likewise.
21385 * builtins.c: Likewise.
21386 * caller-save.c: Likewise.
21387 * calls.c: Likewise.
21388 * ccmp.c: Likewise.
21389 * cfg.c: Likewise.
21390 * cfganal.c: Likewise.
21391 * cfgbuild.c: Likewise.
21392 * cfgcleanup.c: Likewise.
21393 * cfgexpand.c: Likewise.
21394 * cfghooks.c: Likewise.
21395 * cfgloop.c: Likewise.
21396 * cfgloopanal.c: Likewise.
21397 * cfgloopmanip.c: Likewise.
21398 * cfgrtl.c: Likewise.
21399 * cgraph.c: Likewise.
21400 * cgraphbuild.c: Likewise.
21401 * cgraphclones.c: Likewise.
21402 * cgraphunit.c: Likewise.
21403 * cilk-common.c: Likewise.
21404 * combine-stack-adj.c: Likewise.
21405 * combine.c: Likewise.
21406 * compare-elim.c: Likewise.
21407 * convert.c: Likewise.
21408 * coverage.c: Likewise.
21409 * cppbuiltin.c: Likewise.
21410 * cprop.c: Likewise.
21411 * cse.c: Likewise.
21412 * cselib.c: Likewise.
21413 * data-streamer-in.c: Likewise.
21414 * data-streamer-out.c: Likewise.
21415 * data-streamer.c: Likewise.
21416 * dbxout.c: Likewise.
21417 * dce.c: Likewise.
21418 * ddg.c: Likewise.
21419 * debug.c: Likewise.
21420 * df-core.c: Likewise.
21421 * df-problems.c: Likewise.
21422 * df-scan.c: Likewise.
21423 * dfp.c: Likewise.
21424 * dojump.c: Likewise.
21425 * dominance.c: Likewise.
21426 * domwalk.c: Likewise.
21427 * double-int.c: Likewise.
21428 * dse.c: Likewise.
21429 * dumpfile.c: Likewise.
21430 * dwarf2asm.c: Likewise.
21431 * dwarf2cfi.c: Likewise.
21432 * dwarf2out.c: Likewise.
21433 * emit-rtl.c: Likewise.
21434 * et-forest.c: Likewise.
21435 * except.c: Likewise.
21436 * explow.c: Likewise.
21437 * expmed.c: Likewise.
21438 * expr.c: Likewise.
21439 * final.c: Likewise.
21440 * fixed-value.c: Likewise.
21441 * fold-const.c: Likewise.
21442 * function.c: Likewise.
21443 * fwprop.c: Likewise.
21444 * gcc-plugin.h: Likewise.
21445 * gcse-common.c: Likewise.
21446 * gcse.c: Likewise.
21447 * generic-match-head.c: Likewise.
21448 * ggc-page.c: Likewise.
21449 * gimple-builder.c: Likewise.
21450 * gimple-expr.c: Likewise.
21451 * gimple-fold.c: Likewise.
21452 * gimple-iterator.c: Likewise.
21453 * gimple-low.c: Likewise.
21454 * gimple-match-head.c: Likewise.
21455 * gimple-pretty-print.c: Likewise.
21456 * gimple-ssa-isolate-paths.c: Likewise.
21457 * gimple-ssa-strength-reduction.c: Likewise.
21458 * gimple-streamer-in.c: Likewise.
21459 * gimple-streamer-out.c: Likewise.
21460 * gimple-walk.c: Likewise.
21461 * gimple.c: Likewise.
21462 * gimplify-me.c: Likewise.
21463 * gimplify.c: Likewise.
21464 * godump.c: Likewise.
21465 * graph.c: Likewise.
21466 * graphite-blocking.c: Likewise.
21467 * graphite-dependences.c: Likewise.
21468 * graphite-interchange.c: Likewise.
21469 * graphite-isl-ast-to-gimple.c: Likewise.
21470 * graphite-optimize-isl.c: Likewise.
21471 * graphite-poly.c: Likewise.
21472 * graphite-scop-detection.c: Likewise.
21473 * graphite-sese-to-poly.c: Likewise.
21474 * graphite.c: Likewise.
21475 * haifa-sched.c: Likewise.
21476 * hw-doloop.c: Likewise.
21477 * ifcvt.c: Likewise.
21478 * init-regs.c: Likewise.
21479 * internal-fn.c: Likewise.
21480 * ipa-chkp.c: Likewise.
21481 * ipa-comdats.c: Likewise.
21482 * ipa-cp.c: Likewise.
21483 * ipa-devirt.c: Likewise.
21484 * ipa-icf-gimple.c: Likewise.
21485 * ipa-icf.c: Likewise.
21486 * ipa-inline-analysis.c: Likewise.
21487 * ipa-inline-transform.c: Likewise.
21488 * ipa-inline.c: Likewise.
21489 * ipa-polymorphic-call.c: Likewise.
21490 * ipa-profile.c: Likewise.
21491 * ipa-prop.c: Likewise.
21492 * ipa-pure-const.c: Likewise.
21493 * ipa-ref.c: Likewise.
21494 * ipa-reference.c: Likewise.
21495 * ipa-split.c: Likewise.
21496 * ipa-utils.c: Likewise.
21497 * ipa-visibility.c: Likewise.
21498 * ipa.c: Likewise.
21499 * ira-build.c: Likewise.
21500 * ira-color.c: Likewise.
21501 * ira-conflicts.c: Likewise.
21502 * ira-costs.c: Likewise.
21503 * ira-emit.c: Likewise.
21504 * ira-lives.c: Likewise.
21505 * ira.c: Likewise.
21506 * jump.c: Likewise.
21507 * langhooks.c: Likewise.
21508 * lcm.c: Likewise.
21509 * loop-doloop.c: Likewise.
21510 * loop-init.c: Likewise.
21511 * loop-invariant.c: Likewise.
21512 * loop-iv.c: Likewise.
21513 * loop-unroll.c: Likewise.
21514 * lower-subreg.c: Likewise.
21515 * lra-assigns.c: Likewise.
21516 * lra-coalesce.c: Likewise.
21517 * lra-constraints.c: Likewise.
21518 * lra-eliminations.c: Likewise.
21519 * lra-lives.c: Likewise.
21520 * lra-remat.c: Likewise.
21521 * lra-spills.c: Likewise.
21522 * lra.c: Likewise.
21523 * lto-cgraph.c: Likewise.
21524 * lto-compress.c: Likewise.
21525 * lto-opts.c: Likewise.
21526 * lto-section-in.c: Likewise.
21527 * lto-section-out.c: Likewise.
21528 * lto-streamer-in.c: Likewise.
21529 * lto-streamer-out.c: Likewise.
21530 * lto-streamer.c: Likewise.
21531 * mcf.c: Likewise.
21532 * mode-switching.c: Likewise.
21533 * modulo-sched.c: Likewise.
21534 * omega.c: Likewise.
21535 * omp-low.c: Likewise.
21536 * optabs.c: Likewise.
21537 * opts-global.c: Likewise.
21538 * passes.c: Likewise.
21539 * plugin.c: Likewise.
21540 * postreload-gcse.c: Likewise.
21541 * postreload.c: Likewise.
21542 * predict.c: Likewise.
21543 * print-rtl.c: Likewise.
21544 * print-tree.c: Likewise.
21545 * profile.c: Likewise.
21546 * real.c: Likewise.
21547 * realmpfr.c: Likewise.
21548 * recog.c: Likewise.
21549 * ree.c: Likewise.
21550 * reg-stack.c: Likewise.
21551 * regcprop.c: Likewise.
21552 * reginfo.c: Likewise.
21553 * regrename.c: Likewise.
21554 * regstat.c: Likewise.
21555 * reload.c: Likewise.
21556 * reload1.c: Likewise.
21557 * reorg.c: Likewise.
21558 * resource.c: Likewise.
21559 * rtl-chkp.c: Likewise.
21560 * rtlanal.c: Likewise.
21561 * rtlhooks.c: Likewise.
21562 * sanopt.c: Likewise.
21563 * sched-deps.c: Likewise.
21564 * sched-ebb.c: Likewise.
21565 * sched-rgn.c: Likewise.
21566 * sched-vis.c: Likewise.
21567 * sdbout.c: Likewise.
21568 * sel-sched-dump.c: Likewise.
21569 * sel-sched-ir.c: Likewise.
21570 * sel-sched.c: Likewise.
21571 * sese.c: Likewise.
21572 * shrink-wrap.c: Likewise.
21573 * simplify-rtx.c: Likewise.
21574 * stack-ptr-mod.c: Likewise.
21575 * stmt.c: Likewise.
21576 * stor-layout.c: Likewise.
21577 * store-motion.c: Likewise.
21578 * stringpool.c: Likewise.
21579 * symtab.c: Likewise.
21580 * target-globals.c: Likewise.
21581 * targhooks.c: Likewise.
21582 * toplev.c: Likewise.
21583 * tracer.c: Likewise.
21584 * trans-mem.c: Likewise.
21585 * tree-affine.c: Likewise.
21586 * tree-browser.c: Likewise.
21587 * tree-call-cdce.c: Likewise.
21588 * tree-cfg.c: Likewise.
21589 * tree-cfgcleanup.c: Likewise.
21590 * tree-chkp-opt.c: Likewise.
21591 * tree-chkp.c: Likewise.
21592 * tree-chrec.c: Likewise.
21593 * tree-complex.c: Likewise.
21594 * tree-data-ref.c: Likewise.
21595 * tree-dfa.c: Likewise.
21596 * tree-diagnostic.c: Likewise.
21597 * tree-dump.c: Likewise.
21598 * tree-eh.c: Likewise.
21599 * tree-emutls.c: Likewise.
21600 * tree-if-conv.c: Likewise.
21601 * tree-inline.c: Likewise.
21602 * tree-into-ssa.c: Likewise.
21603 * tree-iterator.c: Likewise.
21604 * tree-loop-distribution.c: Likewise.
21605 * tree-nested.c: Likewise.
21606 * tree-nrv.c: Likewise.
21607 * tree-object-size.c: Likewise.
21608 * tree-outof-ssa.c: Likewise.
21609 * tree-parloops.c: Likewise.
21610 * tree-phinodes.c: Likewise.
21611 * tree-predcom.c: Likewise.
21612 * tree-pretty-print.c: Likewise.
21613 * tree-profile.c: Likewise.
21614 * tree-scalar-evolution.c: Likewise.
21615 * tree-sra.c: Likewise.
21616 * tree-ssa-address.c: Likewise.
21617 * tree-ssa-alias.c: Likewise.
21618 * tree-ssa-ccp.c: Likewise.
21619 * tree-ssa-coalesce.c: Likewise.
21620 * tree-ssa-copy.c: Likewise.
21621 * tree-ssa-copyrename.c: Likewise.
21622 * tree-ssa-dce.c: Likewise.
21623 * tree-ssa-dom.c: Likewise.
21624 * tree-ssa-dse.c: Likewise.
21625 * tree-ssa-forwprop.c: Likewise.
21626 * tree-ssa-ifcombine.c: Likewise.
21627 * tree-ssa-live.c: Likewise.
21628 * tree-ssa-loop-ch.c: Likewise.
21629 * tree-ssa-loop-im.c: Likewise.
21630 * tree-ssa-loop-ivcanon.c: Likewise.
21631 * tree-ssa-loop-ivopts.c: Likewise.
21632 * tree-ssa-loop-manip.c: Likewise.
21633 * tree-ssa-loop-niter.c: Likewise.
21634 * tree-ssa-loop-prefetch.c: Likewise.
21635 * tree-ssa-loop-unswitch.c: Likewise.
21636 * tree-ssa-loop.c: Likewise.
21637 * tree-ssa-math-opts.c: Likewise.
21638 * tree-ssa-operands.c: Likewise.
21639 * tree-ssa-phiopt.c: Likewise.
21640 * tree-ssa-phiprop.c: Likewise.
21641 * tree-ssa-pre.c: Likewise.
21642 * tree-ssa-propagate.c: Likewise.
21643 * tree-ssa-reassoc.c: Likewise.
21644 * tree-ssa-sccvn.c: Likewise.
21645 * tree-ssa-scopedtables.c: Likewise.
21646 * tree-ssa-sink.c: Likewise.
21647 * tree-ssa-strlen.c: Likewise.
21648 * tree-ssa-structalias.c: Likewise.
21649 * tree-ssa-tail-merge.c: Likewise.
21650 * tree-ssa-ter.c: Likewise.
21651 * tree-ssa-threadedge.c: Likewise.
21652 * tree-ssa-threadupdate.c: Likewise.
21653 * tree-ssa-uncprop.c: Likewise.
21654 * tree-ssa-uninit.c: Likewise.
21655 * tree-ssa.c: Likewise.
21656 * tree-ssanames.c: Likewise.
21657 * tree-stdarg.c: Likewise.
21658 * tree-streamer-in.c: Likewise.
21659 * tree-streamer-out.c: Likewise.
21660 * tree-streamer.c: Likewise.
21661 * tree-switch-conversion.c: Likewise.
21662 * tree-tailcall.c: Likewise.
21663 * tree-vect-data-refs.c: Likewise.
21664 * tree-vect-generic.c: Likewise.
21665 * tree-vect-loop-manip.c: Likewise.
21666 * tree-vect-loop.c: Likewise.
21667 * tree-vect-patterns.c: Likewise.
21668 * tree-vect-slp.c: Likewise.
21669 * tree-vect-stmts.c: Likewise.
21670 * tree-vectorizer.c: Likewise.
21671 * tree-vrp.c: Likewise.
21672 * tree.c: Likewise.
21673 * tsan.c: Likewise.
21674 * ubsan.c: Likewise.
21675 * valtrack.c: Likewise.
21676 * value-prof.c: Likewise.
21677 * var-tracking.c: Likewise.
21678 * varasm.c: Likewise.
21679 * varpool.c: Likewise.
21680 * vmsdbgout.c: Likewise.
21681 * vtable-verify.c: Likewise.
21682 * web.c: Likewise.
21683 * wide-int.cc: Likewise.
21684 * xcoffout.c: Likewise.
21685 * config/aarch64/aarch64-builtins.c: Likewise.
21686 * config/aarch64/aarch64.c: Likewise.
21687 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21688 * config/alpha/alpha.c: Likewise.
21689 * config/arc/arc.c: Likewise.
21690 * config/arm/aarch-common.c: Likewise.
21691 * config/arm/arm-builtins.c: Likewise.
21692 * config/arm/arm-c.c: Likewise.
21693 * config/arm/arm.c: Likewise.
21694 * config/avr/avr-c.c: Likewise.
21695 * config/avr/avr-log.c: Likewise.
21696 * config/avr/avr.c: Likewise.
21697 * config/bfin/bfin.c: Likewise.
21698 * config/c6x/c6x.c: Likewise.
21699 * config/cr16/cr16.c: Likewise.
21700 * config/cris/cris.c: Likewise.
21701 * config/darwin-c.c: Likewise.
21702 * config/darwin.c: Likewise.
21703 * config/epiphany/epiphany.c: Likewise.
21704 * config/epiphany/mode-switch-use.c: Likewise.
21705 * config/epiphany/resolve-sw-modes.c: Likewise.
21706 * config/fr30/fr30.c: Likewise.
21707 * config/frv/frv.c: Likewise.
21708 * config/ft32/ft32.c: Likewise.
21709 * config/h8300/h8300.c: Likewise.
21710 * config/i386/i386-c.c: Likewise.
21711 * config/i386/i386.c: Likewise.
21712 * config/i386/msformat-c.c: Likewise.
21713 * config/i386/winnt-cxx.c: Likewise.
21714 * config/i386/winnt-stubs.c: Likewise.
21715 * config/i386/winnt.c: Likewise.
21716 * config/ia64/ia64-c.c: Likewise.
21717 * config/ia64/ia64.c: Likewise.
21718 * config/iq2000/iq2000.c: Likewise.
21719 * config/lm32/lm32.c: Likewise.
21720 * config/m32c/m32c-pragma.c: Likewise.
21721 * config/m32c/m32c.c: Likewise.
21722 * config/m32r/m32r.c: Likewise.
21723 * config/m68k/m68k.c: Likewise.
21724 * config/mcore/mcore.c: Likewise.
21725 * config/mep/mep-pragma.c: Likewise.
21726 * config/mep/mep.c: Likewise.
21727 * config/microblaze/microblaze-c.c: Likewise.
21728 * config/microblaze/microblaze.c: Likewise.
21729 * config/mips/mips.c: Likewise.
21730 * config/mmix/mmix.c: Likewise.
21731 * config/mn10300/mn10300.c: Likewise.
21732 * config/moxie/moxie.c: Likewise.
21733 * config/msp430/msp430-c.c: Likewise.
21734 * config/msp430/msp430.c: Likewise.
21735 * config/nds32/nds32-cost.c: Likewise.
21736 * config/nds32/nds32-fp-as-gp.c: Likewise.
21737 * config/nds32/nds32-intrinsic.c: Likewise.
21738 * config/nds32/nds32-isr.c: Likewise.
21739 * config/nds32/nds32-md-auxiliary.c: Likewise.
21740 * config/nds32/nds32-memory-manipulation.c: Likewise.
21741 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21742 * config/nds32/nds32-predicates.c: Likewise.
21743 * config/nds32/nds32.c: Likewise.
21744 * config/nios2/nios2.c: Likewise.
21745 * config/nvptx/nvptx.c: Likewise.
21746 * config/pa/pa.c: Likewise.
21747 * config/pdp11/pdp11.c: Likewise.
21748 * config/rl78/rl78-c.c: Likewise.
21749 * config/rl78/rl78.c: Likewise.
21750 * config/rs6000/rs6000-c.c: Likewise.
21751 * config/rs6000/rs6000.c: Likewise.
21752 * config/rx/rx.c: Likewise.
21753 * config/s390/s390-c.c: Likewise.
21754 * config/s390/s390.c: Likewise.
21755 * config/sh/sh-c.c: Likewise.
21756 * config/sh/sh-mem.cc: Likewise.
21757 * config/sh/sh.c: Likewise.
21758 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21759 * config/sh/sh_treg_combine.cc: Likewise.
21760 * config/sol2-c.c: Likewise.
21761 * config/sol2-cxx.c: Likewise.
21762 * config/sol2-stubs.c: Likewise.
21763 * config/sol2.c: Likewise.
21764 * config/sparc/sparc-c.c: Likewise.
21765 * config/sparc/sparc.c: Likewise.
21766 * config/spu/spu-c.c: Likewise.
21767 * config/spu/spu.c: Likewise.
21768 * config/stormy16/stormy16.c: Likewise.
21769 * config/tilegx/mul-tables.c: Likewise.
21770 * config/tilegx/tilegx-c.c: Likewise.
21771 * config/tilegx/tilegx.c: Likewise.
21772 * config/tilepro/mul-tables.c: Likewise.
21773 * config/tilepro/tilepro-c.c: Likewise.
21774 * config/tilepro/tilepro.c: Likewise.
21775 * config/v850/v850-c.c: Likewise.
21776 * config/v850/v850.c: Likewise.
21777 * config/vax/vax.c: Likewise.
21778 * config/visium/visium.c: Likewise.
21779 * config/vms/vms-c.c: Likewise.
21780 * config/vms/vms.c: Likewise.
21781 * config/vxworks.c: Likewise.
21782 * config/xtensa/xtensa.c: Likewise.
21783
21784 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21785
21786 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21787 Remove operand constraints. Change operand 2 predicate to
21788 nonmemory operand. Limit const_int values to mode bitsize. Only
21789 allow const_int values less than 32 when optimizing for size.
21790 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21791 Remove operand constraints.
21792 (*bt<mode>): Use SImode for const_int values less than 32.
21793 (regmode): Remove mode attribute.
21794
21795 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21796
21797 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21798 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21799 moxie_legitimate_address_p): New functions.
21800 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21801
21802 2015-07-07 Tom de Vries <tom@codesourcery.com>
21803
21804 PR tree-optimization/66642
21805 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21806 header comment. Rename split_edge variable to edge_at_split. Split
21807 exit edge to create new loop exit bb. Insert loop exit phis in new
21808 loop exit bb.
21809
21810 2015-07-07 Tom de Vries <tom@codesourcery.com>
21811
21812 * tree-cfg.c (get_virtual_phi): New function.
21813 * tree-cfg.h (get_virtual_phi): Declare.
21814 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21815 (rewrite_virtuals_into_loop_closed_ssa): New function.
21816 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21817 Declare.
21818 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21819 (transform_to_exit_first_loop_alt): Use
21820 rewrite_virtuals_into_loop_closed_ssa.
21821
21822 2015-07-07 Richard Biener <rguenther@suse.de>
21823
21824 * fold-const.c (fold_binary_loc): Move
21825 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21826 * match.pd: ... here.
21827 Add (X * C1) % C2 -> 0 simplification pattern derived from
21828 extract_muldiv_1.
21829
21830 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21831
21832 PR target/66780
21833 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21834 change for target/65249.
21835
21836 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21837
21838 * symtab.c (address_matters_1): Fix typo in comment above.
21839 (can_increase_alignment_p): Likewise.
21840
21841 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21842
21843 * function.c (free_after_compilation): Clear PROP_cfg in
21844 f->curr_properties.
21845
21846 2015-07-07 Richard Biener <rguenther@suse.de>
21847
21848 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21849 add which use to.
21850 (add_control_edge): Remove excessive vertical space in dumping.
21851 (process_ssa_edge_worklist): Simulate at most one statement and
21852 return whether we did. Do not simulate PHIs if they are in a
21853 BB not yet simulated.
21854 (ssa_propagate): Adjust to always drain the BB worklist whenever
21855 a BB is available there, likewise the VARYING edges list before
21856 the interesting edge list.
21857
21858 2015-07-07 Christian Bruel <christian.bruel@st.com>
21859
21860 PR target/52144
21861 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21862
21863 2015-07-07 Richard Biener <rguenther@suse.de>
21864
21865 PR middle-end/66739
21866 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21867 A - B.
21868
21869 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21870
21871 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21872 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21873 Copy operand 0 to a temporary if !ext_register_operand. Remove
21874 ancient extract_bit_field workaround.
21875 (insv<mode>_1): Rename from mov<mode>_insv_1.
21876 (*insvqi): Rename from *movqi_insv_2.
21877 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21878 for renamed insvsi_1.
21879 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21880
21881 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21882
21883 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21884 call to nvptx_reorg_subreg.
21885
21886 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21887
21888 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21889 * graphite-dependencies.c, graphite-interchange.c,
21890 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21891 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21892 Likewise.
21893
21894 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21895
21896 * match.pd: Remove element_mode inside HONOR_*.
21897 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21898 (~X | X -> -1, ~X ^ X -> -1): Merge.
21899 * tree.c (build_each_one_cst): New function.
21900 * tree.h (build_each_one_cst): Likewise.
21901
21902 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21903
21904 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21905 PROCESSOR_IAMCU.
21906
21907 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21908
21909 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21910 * config/mips/mips.opt (mfused-madd): Remove.
21911 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21912 * config/mips/mips.h (TARGET_MIPS8000): New.
21913 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21914 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21915 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21916 (ISA_HAS_NMADD4_NMSUB4): Remove.
21917 (ISA_HAS_NMADD3_NMSUB3): Remove.
21918 (ISA_HAS_FUSED_MADD4): New.
21919 (ISA_HAS_UNFUSED_MADD4): New.
21920 (ISA_HAS_FUSED_MADDF): New.
21921 (ISA_HAS_FUSED_MADD3): New.
21922 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21923 (*fma<mode>4_madd3) New.
21924 (*fma<mode>4_madd4) New.
21925 (*fma<mode>4_maddf) New.
21926 (fms<mode>4) New.
21927 (*fms<mode>4_msub3) New.
21928 (*fms<mode>4_msub4) New.
21929 (fnma<mode>4) New.
21930 (*fnma<mode>4_nmadd3) New.
21931 (*fnma<mode>4_nmadd4) New.
21932 (fnms<mode>4) New.
21933 (*fnms<mode>4_nmsub3) New.
21934 (*fnms<mode>4_nmsub4) New.
21935 (*madd4<mode>) Modify to be unfused only.
21936 (*msub4<mode>) Modify to be unfused only.
21937 (*nmadd4<mode>) Modify to be unfused only.
21938 (*nmsub4<mode>) Modify to be unfused only.
21939 (*madd3<mode>) Remove.
21940 (*msub3<mode>) Remove.
21941 (*nmadd3<mode>) Remove.
21942 (*nmsub3<mode>) Remove.
21943 (*nmadd3<mode>_fastmath) Remove.
21944 (*nmsub3<mode>_fastmath) Remove.
21945 (*nmadd4<mode>_fastmath) Update condition.
21946 (*nmsub4<mode>_fastmath) Update condition.
21947
21948 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21949
21950 PR target/65956
21951 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21952 alignment attribute, exploring one level down for records and arrays.
21953
21954 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21955
21956 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21957 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21958 Copy operand 1 to a temporary if !ext_register_operand. Remove
21959 ancient extract_bit_field workaround.
21960 (*extv<mode>): Rename from *mov<mode>_extv_1.
21961 (*extvqi): Rename from *movqi_extv_1.
21962 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21963 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21964 to a temporary if !ext_register_operand. Remove ancient
21965 extract_bit_field workaround.
21966 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21967 (*extzvqi): Rename from *movqi_extzv_2.
21968 (*testqi_ext_3): Remove modes from const_int_operand predicated
21969 operands. Add "n" constraint.
21970 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21971 operand. Add "J" constraint.
21972 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21973 const_0_to_63 predicated operand.
21974 (regmode): New insn attribute.
21975 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21976 to nonmemory_operand. Use regmode insn attribute.
21977 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21978 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21979 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21980 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21981 operands. Use "N" constraint instead of "n".
21982
21983 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21984
21985 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21986
21987 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21988
21989 PR target/66749
21990 * config/i386/i386.c (iamcu_cost): New.
21991 (m_IAMCU): Likewise.
21992 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21993 (processor_target_table): Add an entry for "iamcu".
21994 (processor_alias_table): Likewise.
21995 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21996 (ix86_adjust_cost): Likewise.
21997 (ia32_multipass_dfa_lookahead): Likewise.
21998 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21999 * config/i386/x86-tune.def: Updated for m_IAMCU.
22000
22001 2015-07-06 Richard Biener <rguenther@suse.de>
22002
22003 PR tree-optimization/66772
22004 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22005 values are available in the PHI node BB when there are
22006 still unexecutable edges.
22007
22008 2015-07-06 Richard Biener <rguenther@suse.de>
22009
22010 PR tree-optimization/66767
22011 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22012 Make sure to build the alignment test on a SSA name without
22013 final alignment info valid only if the alignment test
22014 evaluates to true.
22015
22016 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22017
22018 PR target/66620
22019 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22020 loop start when inserting LSETUP.
22021
22022 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22023
22024 PR target/53383
22025 * config/i386/i386.c (ix86_option_override_internal): Allow
22026 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22027
22028 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22029
22030 * read-md.c (decimal_string): Rename to ...
22031 (md_decimal_string): ... this.
22032 (handle_enum): Reflect this.
22033
22034 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22035
22036 PR target/66731
22037 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22038
22039 2015-07-06 Richard Biener <rguenther@suse.de>
22040
22041 PR middle-end/66759
22042 * match.pd: Add missing constraint of y to REAL_CST in
22043 REAL_CST - x CMP y to y - CST CMP x simplification.
22044
22045 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22046
22047 PR tree-optimization/66757
22048 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22049
22050 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22051 Sandra Loosemore <sandra@codesourcery.com>
22052
22053 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22054 Delete extern declaration.
22055 (gprel_constant_p): Add extern declaration.
22056 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22057 instead of nios2_symbol_ref_in_small_data_p.
22058 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22059 (nios2_symbol_ref_in_small_data_p): Make static.
22060 (gprel_constant_p): Make non-static.
22061
22062 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22063
22064 * doc/fragments.texi (Target Fragment): Convert debian.org
22065 link to use https.
22066 * doc/install.texi (Configuration): Ditto.
22067
22068 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22069
22070 PR tree-optimization/66718
22071 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22072 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22073
22074 PR tree-optimization/66718
22075 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22076 vectorizable_load, vectorizable_condition): Move vectype,
22077 nunits, ncopies computation after checking what kind of statement
22078 stmt is.
22079
22080 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22081
22082 * target-insns.def (extv, extzv, insv): New targetm instruction
22083 patterns.
22084 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22085 interface.
22086 * recog.c (simplify_while_replacing): Likewise.
22087
22088 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22089
22090 * target-insns.def (doloop_begin, doloop_end): New targetm
22091 instruction patterns.
22092 * loop-init.c: Include target.h.
22093 (pass_loop2::gate): Use the new targetm patterns instead of
22094 HAVE_*/gen_* interface.
22095 (pass_rtl_doloop::gate): Likewise.
22096 (pass_rtl_doloop::execute): Remove preprocessor condition.
22097 * hw-doloop.c: Build unconditionally.
22098 * loop-doloop.c: Likewise.
22099 (doloop_optimize): Use the new targetm patterns instead of
22100 HAVE_*/gen_* interface.
22101 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22102 * modulo-sched.c (doloop_register_get): Likewise.
22103
22104 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22105
22106 * target-insns.def (clear_cache): New targetm instruction pattern.
22107 * builtins.c (expand_builtin___clear_cache): Use it instead of
22108 HAVE_*/gen_* interface.
22109
22110 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22111
22112 * target-insns.def (allocate_stack, check_stack, probe_stack)
22113 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22114 New targetm instruction patterns.
22115 * explow.c (allocate_dynamic_stack_space): Use them instead of
22116 HAVE_*/gen_* interface.
22117 (emit_stack_probe): Likewise.
22118 (probe_stack_range): Likewise.
22119 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22120
22121 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22122
22123 * target-insns.def (stack_protect_set, stack_protect_test): New
22124 targetm instruction patterns.
22125 * cfgexpand.c (stack_protect_prologue): Use them instead of
22126 HAVE_*/gen_* interface.
22127 * function.c (stack_protect_epilogue): Likewise.
22128
22129 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22130
22131 * expr.h (gen_move_insn_uncast): Delete.
22132 * expr.c (gen_move_insn_uncast): Delete.
22133
22134 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22135
22136 * target-insns.def (restore_stack_block, restore_stack_function)
22137 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22138 (save_stack_nonlocal): New targetm instruction patterns.
22139 * builtins.c (expand_builtin_apply): Use them instead of
22140 HAVE_*/gen_* interface.
22141 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22142
22143 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22144
22145 * target-insns.def (trap): New targetm instruction pattern.
22146 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22147 interface.
22148 * explow.c (allocate_dynamic_stack_space): Likewise.
22149 * ifcvt.c (find_if_header): Likewise.
22150
22151 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22152
22153 * target-insns.def (prefetch): New targetm instruction pattern.
22154 * tree-ssa-loop-prefetch.c: Include targeth.
22155 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22156 of HAVE_*/gen_* interface.
22157 * builtins.c (expand_builtin_prefetch): Likewise.
22158 * toplev.c (process_options): Likewise.
22159
22160 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22161
22162 * target-insns.def (untyped_call, untyped_return): New targetm
22163 instruction patterns.
22164 * builtins.c (expand_builtin_apply): Use them instead of
22165 HAVE_*/gen_* interface.
22166 (result_vector): Define unconditionally.
22167
22168 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22169
22170 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22171 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22172 (nonlocal_goto_receiver): New targetm instruction patterns.
22173 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22174 of HAVE_*/gen_* interface.
22175 (expand_builtin_setjmp_receiver): Likewise.
22176 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22177 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22178
22179 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22180
22181 * target.def: Add code_for_* hooks.
22182 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22183 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22184 * target-insns.def (casesi, tablejump): New targetm instruction
22185 patterns.
22186 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22187 (do_tablejump): Likewise.
22188 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22189 (expand_sjlj_dispatch_table): Likewise.
22190 * targhooks.c (default_case_values_threshold): Likewise.
22191
22192 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22193
22194 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22195 Use rtx_insn * instead of rtx.
22196 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22197 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22198 (nios2_call_tls_get_addr): Likewise.
22199 (nios2_emit_expensive_div): Likewise.
22200 (nios2_emit_move_sequence): Change return type to bool.
22201 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22202 Change return type to bool.
22203
22204 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22205
22206 PR target/66747
22207 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22208
22209 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22210
22211 PR target/66114
22212 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22213 of register_operand. Remove constraint.
22214
22215 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22216
22217 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22218 the first argument.
22219
22220 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22221
22222 * attribs.c (decl_attributes): Guard inform with the return value
22223 of the preceding warning.
22224
22225 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22226
22227 * doc/invoke.texi (moverride): Move to correct section.
22228
22229 2015-07-03 Richard Biener <rguenther@suse.de>
22230
22231 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22232 Copy from tree.c
22233 (dt_operand::gen_gimple_expr): After valueizing operands
22234 re-canonicalize operand order for commutative tree codes.
22235
22236 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22237
22238 PR target/66746.
22239 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22240 is defined.
22241 (__crc32w): Likewise.
22242 (__crc32d): Likewise.
22243 (__rdpmc): Likewise.
22244 (__rdtscp): Likewise.
22245 (_rdpmc): Likewise.
22246 (_rdtscp): Likewise.
22247 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22248 is defined.
22249
22250 2015-07-03 Richard Biener <rguenther@suse.de>
22251
22252 * fold-const.c (fold_mathfn_compare): Remove.
22253 (fold_inf_compare): Likewise.
22254 (fold_comparison): Move floating point comparison simplifications...
22255 * match.pd: ... to patterns here. Introduce simple_comparisons
22256 operator list and use it for patterns formerly in fold_comparison.
22257
22258 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22259
22260 PR tree-optimization/66119
22261 * toplev.c (process_options): Don't set up default values for
22262 the sra_max_scalarization_size_{speed,size} parameters.
22263 * tree-sra (analyze_all_variable_accesses): If no values
22264 have been set for the sra_max_scalarization_size_{speed,size}
22265 parameters, call get_move_ratio to get target defaults.
22266
22267 2015-07-03 Richard Biener <rguenther@suse.de>
22268
22269 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22270 * match.pd: ... here.
22271
22272 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22273
22274 PR target/37072
22275 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22276 is not actually the default on FreeBSD.
22277
22278 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22279
22280 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22281 definition.
22282 (CMPGE_8HI): Likewise.
22283 (CMPGE_4SI): Likewise.
22284 (CMPGE_2DI): Likewise.
22285 (CMPGE_U16QI): Likewise.
22286 (CMPGE_U8HI): Likewise.
22287 (CMPGE_U4SI): Likewise.
22288 (CMPGE_U2DI): Likewise.
22289 (CMPLE_16QI): Likewise.
22290 (CMPLE_8HI): Likewise.
22291 (CMPLE_4SI): Likewise.
22292 (CMPLE_2DI): Likewise.
22293 (CMPLE_U16QI): Likewise.
22294 (CMPLE_U8HI): Likewise.
22295 (CMPLE_U4SI): Likewise.
22296 (CMPLE_U2DI): Likewise.
22297 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22298 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22299 ALTIVEC_BUILTIN_VEC_CMPLE.
22300 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22301 floating-point vector modes.
22302 (vector_nlt<mode>): New define_expand.
22303 (vector_nltu<mode>): Likewise.
22304 (vector_ngt<mode>): Likewise.
22305 (vector_ngtu<mode>): Likewise.
22306
22307 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22308
22309 PR rtl-optimization/66706
22310 * combine.c (make_compound_operation): If an AND of SUBREG of
22311 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22312
22313 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22314
22315 * tree-pass.h (make_pass_ch_vect): New.
22316 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22317
22318 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22319 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22320 make_pass_ch_vect): New.
22321 (pass_ch): Extend ch_base.
22322
22323 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22324 (ch_base::copy_headers): ...here.
22325
22326 2015-07-02 Richard Biener <rguenther@suse.de>
22327
22328 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22329 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22330 (fold_binary_loc): Implement (T)ptr & CST in terms of
22331 get_pointer_alignment_1.
22332 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22333 Make sure to build the alignment test on a SSA name without
22334 final alignment info valid only after the prologue.
22335
22336 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22337
22338 * config/cris/cris.md ("epilogue"): Remove condition.
22339 ("prologue"): Ditto.
22340
22341 2015-07-02 Richard Biener <rguenther@suse.de>
22342
22343 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22344 parameter to record a condition that is false.
22345 (record_conditions): When recording an extra NE_EXPR that is
22346 true also record a EQ_EXPR that is false.
22347
22348 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22349
22350 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22351 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22352 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22353 (set_iv, find_interesting_uses_address, add_candidate_1): New
22354 argument to alloc_iv.
22355 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22356 duplicate struct iv.
22357 (free_loop_data): Don't free struct iv explicitly.
22358 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22359
22360 2015-07-01 DJ Delorie <dj@redhat.com>
22361
22362 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22363 (LIB_SPEC): Add.
22364 (SUPPORTS_DISCRIMINATOR): Define.
22365
22366 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22367
22368 PR bootstrap/66685
22369 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22370 there are no CALLs in the same pattern.
22371
22372 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22373
22374 PR rtl-optimization/61047
22375 * rtlanal.c (get_initial_register_offset): New function.
22376 (rtx_addr_can_trap_p_1): Check offsets of stack references.
22377
22378 2015-07-01 Richard Biener <rguenther@suse.de>
22379
22380 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22381 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22382 ~X CMP C -> X CMP' ~C to ...
22383 * match.pd: ... patterns here.
22384
22385 2015-07-01 Nick Clifton <nickc@redhat.com>
22386
22387 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22388 a 16-bit value into a 20-bit memory slot.
22389
22390 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22391
22392 * doc/sourcebuild.texi (AArch64-specific attributes): Document
22393 "aarch64_tiny", "aarch64_small", "aarch64_large",
22394 "aarch64_little_endian", "aarch64_big_endian".
22395
22396 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22397
22398 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22399 Document "aarch64_small_fpic".
22400
22401 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22402
22403 * configure.ac: Add check for aarch64 assembler -fpic relocation
22404 modifier support.
22405 * configure: Regenerate.
22406 * config.in: Regenerate.
22407 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22408 to -fPIC if not support of -fpic relocation modifier in assembler.
22409
22410 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22411
22412 PR bootstrap/66685
22413 * rtl.c (classify_insn): Handle returns in PARALLELs.
22414
22415 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
22416
22417 PR middle-end/66633
22418 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22419 to true if the function is nested and if not optimizing.
22420 (convert_local_omp_clauses): Initialize need_frame to true if the
22421 function contains nested functions and if not optimizing.
22422
22423 2015-07-01 Richard Biener <rguenther@suse.de>
22424
22425 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22426 (X & Y) ^ Y -> ~X & Y transforms to ...
22427 * match.pd: ... here.
22428
22429 2015-07-01 Richard Biener <rguenther@suse.de>
22430
22431 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22432 of converts to avoid uninteresting noise from the conversion
22433 simplifying patterns.
22434
22435 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
22436
22437 * config/c6x/c6x.c (try_rename_operands): Do not depend on
22438 gcc_assert evaluating its argument for side-effect.
22439
22440 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
22441
22442 PR target/64833
22443 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22444 flag_pic is set.
22445
22446 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22447
22448 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22449 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22450 (hash_scc): Add this_ref_p and ref_p parameters and pass them
22451 to the inner DFS walk.
22452
22453 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22454
22455 * target-insns.def (jump): New targetm instruction pattern.
22456 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22457 instead of gen_jump.
22458 (fix_up_crossing_landing_pad): Likewise.
22459 (add_labels_and_missing_jumps): Likewise.
22460 (fix_crossing_conditional_branches): Likewise.
22461 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22462 (force_nonfallthru_and_redirect): Likewise.
22463 * cse.c (cse_insn): Likewise.
22464 * expmed.c (expand_divmod): Likewise.
22465 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22466 * haifa-sched.c (init_before_recovery): Likewise.
22467 (sched_create_recovery_edges): Likewise.
22468 * ifcvt.c (find_cond_trap): Likewise.
22469 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22470 (expand_float, expand_fix): Likewise.
22471 * stmt.c (emit_jump): Likewise.
22472
22473 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22474
22475 * defaults.h (HAVE_load_multiple, gen_load_multiple)
22476 (HAVE_store_multiple, gen_store_multiple): Delete.
22477 * target-insns.def (load_multiple, store_multiple): New targetm
22478 instruction patterns.
22479 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22480 of HAVE_*/gen_* interface.
22481
22482 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22483
22484 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22485 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22486 (gen_mem_signal_fence): Delete.
22487 * target-insns.def (mem_signal_fence, mem_thread_fence)
22488 (memory_barrier): New targetm instruction patterns.
22489 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22490 interface.
22491 (expand_mem_signal_fence): Likewise.
22492
22493 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22494
22495 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22496 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22497 targetm instruction patterns.
22498 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22499 interface.
22500 * calls.c (expand_call): Likewise.
22501 * cfgrtl.c (cfg_layout_finalize): Likewise.
22502 * df-scan.c (df_get_entry_block_def_set): Likewise.
22503 (df_get_exit_block_use_set): Likewise.
22504 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22505 * final.c (final_start_function): Likewise.
22506 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22507 (reposition_prologue_and_epilogue_notes): Likewise.
22508 * reorg.c (find_end_label): Likewise.
22509 * toplev.c (process_options): Likewise.
22510
22511 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22512
22513 * typed-splay-tree.h: New file.
22514
22515 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22516
22517 PR debug/66691
22518 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22519 (lra_substitute_pseudo_within_insn): Ditto.
22520 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22521 of constant.
22522 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22523 to lra_substitute_pseudo.
22524 * lra-lives.c (process_bb_lives): Add an argument to
22525 lra_substitute_pseudo_within_insn call.
22526 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22527 argument to lra_substitute_pseudo and
22528 lra_substitute_pseudo_within_insn calls.
22529 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22530
22531 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22532
22533 * configure: Regenerated.
22534
22535 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22536
22537 * config.gcc: Support i[34567]86-*-elfiamcu target.
22538 * config/i386/iamcu.h: New.
22539 * config/i386/i386.opt: Add -miamcu.
22540 * doc/invoke.texi: Document -miamcu.
22541 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22542 off x87/MMX/SSE/AVX codegen for -miamcu.
22543 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22544 __iamcu/__iamcu__ for -miamcu.
22545 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22546 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22547 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22548 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22549 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22550 MCU by default. Default long double to 64-bit for Intel MCU.
22551 Turn on -freg-struct-return for Intel MCU. Issue an error when
22552 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22553 AVX is turned on.
22554 (function_arg_advance_32): Pass value whose size is no larger
22555 than 8 bytes in registers for Intel MCU.
22556 (function_arg_32): Likewise.
22557 (ix86_return_in_memory): Return value whose size is no larger
22558 than 8 bytes in registers for Intel MCU.
22559 (iamcu_alignment): New function.
22560 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22561 true.
22562 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22563 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22564 true.
22565
22566 2015-06-30 Marek Polacek <polacek@redhat.com>
22567
22568 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22569 both operands of the resulting expression.
22570
22571 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22572 the final expression with the operand's type and then convert
22573 it to the type of the expression.
22574
22575 2015-06-30 Richard Biener <rguenther@suse.de>
22576
22577 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22578 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22579 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22580 * match.pd: ... to patterns here.
22581
22582 2015-06-30 Richard Biener <rguenther@suse.de>
22583
22584 PR tree-optimization/66704
22585 * tree-vect-data-refs.c (vect_setup_realignment): Use
22586 make_ssa_name for non-SSA name source.
22587
22588 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22589
22590 PR middle-end/66702
22591 * omp-low.c (simd_clone_adjust): Handle addressable linear
22592 or uniform parameters or non-gimple type uniform parameters.
22593
22594 2015-06-30 Richard Biener <rguenther@suse.de>
22595
22596 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22597 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22598 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22599 * match.pd: ... here.
22600 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22601 Move (x & y) | x -> x and friends before
22602 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22603
22604 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22605
22606 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22607 -mfix-ut699 is not specified.
22608 (leon3_load): Rename into...
22609 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22610 is specified.
22611
22612 2015-06-30 Marek Polacek <polacek@redhat.com>
22613
22614 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22615 * match.pd: ... here.
22616
22617 2015-06-30 Richard Biener <rguenther@suse.de>
22618
22619 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22620 * fold-const.c (build_range_check): Replace uses of
22621 HAVE_canonicalize_funcptr_for_compare.
22622 (fold_widened_comparison): Likewise.
22623 (fold_sign_changed_comparison): Likewise.
22624 * dojump.c: Include "target.h".
22625 (do_compare_and_jump): Replace uses of
22626 HAVE_canonicalize_funcptr_for_compare and
22627 gen_canonicalize_funcptr_for_compare.
22628 * expr.c (do_store_flag): Likewise.
22629
22630 2015-06-30 Tom de Vries <tom@codesourcery.com>
22631
22632 PR tree-optimization/66652
22633 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22634 max_loop_iterations to determine if nit + 1 overflows.
22635
22636 2015-06-30 Richard Biener <rguenther@suse.de>
22637
22638 * tree-vrp.c (register_edge_assert_for_2): Also register
22639 asserts for dominating conversion results.
22640
22641 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22642
22643 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22644 field in struct iv.
22645
22646 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22647
22648 PR target/66509
22649 * configure.ac: Fix filds and fildq test for 64-bit.
22650 * configure: Regenerated.
22651
22652 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22653
22654 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22655 (nvptx_reorg): Here. Keep the non-subreg pieces.
22656
22657 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22658
22659 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22660 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22661
22662 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22663
22664 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22665 Set attribute "length_nobnd" instead of "length".
22666 (*jcc_2): Ditto.
22667 (jump): Ditto.
22668 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22669
22670 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22671
22672 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22673 assert less restrictive.
22674
22675 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22676
22677 PR fortran/66605
22678 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22679 do_warn_unused_parameter.
22680 * function.c (do_warn_unused_parameter): Move from here.
22681 * function.h (do_warn_unused_parameter): Do not declare.
22682
22683 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22684
22685 PR target/65697
22686 * gcc.target/arm/armv-sync-comp-swap.c: New.
22687 * gcc.target/arm/armv-sync-op-acquire.c: New.
22688 * gcc.target/arm/armv-sync-op-full.c: New.
22689 * gcc.target/arm/armv-sync-op-release.c: New.
22690
22691 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22692
22693 PR target/65697
22694 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22695 initial acquire barrier with final barrier.
22696
22697 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22698
22699 PR target/65697
22700 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22701 initial acquire barrier with final barrier.
22702
22703 2015-06-29 Richard Henderson <rth@redhat.com>
22704
22705 * config/i386/constraints.md (Bf): New constraint.
22706 * config/i386/i386-c.c (ix86_target_macros): Define
22707 __GCC_ASM_FLAG_OUTPUTS__.
22708 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22709 as flags outputs.
22710 * doc/extend.texi (FlagOutputOperands): Document them.
22711
22712 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22713
22714 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22715 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22716 unspec name.
22717 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22718 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22719 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22720 (aarch64_symbol_context): Ditto.
22721 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22722 and use new pattern name.
22723 (aarch64_expand_mov_immediate): Ditto.
22724 (aarch64_print_operand): Ditto.
22725 (aarch64_classify_tls_symbol): Ditto.
22726
22727 2015-06-29 Marek Polacek <polacek@redhat.com>
22728 Marc Glisse <marc.glisse@inria.fr>
22729
22730 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22731 * match.pd: ... pattern here.
22732
22733 2015-06-29 Tom de Vries <tom@codesourcery.com>
22734
22735 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22736 function structure.
22737
22738 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22739
22740 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22741 feature description, split out the native option, add a link to
22742 the feature documentation, rearrange and slightly rewrite text.
22743 (Aarch64 options, -mcpu): Likewise.
22744 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22745 +rdma implies Adv. SIMD.
22746
22747 2015-06-29 Marek Polacek <polacek@redhat.com>
22748
22749 PR c/66322
22750 * function.c (stack_protect_epilogue): Remove a cast to int.
22751 * doc/invoke.texi: Update -Wswitch-bool description.
22752
22753 2015-06-29 Richard Biener <rguenther@suse.de>
22754
22755 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22756 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22757 via ptr_difference_const ...
22758 * match.pd: ... here.
22759 When matching (X ^ Y) == Y also match with swapped operands.
22760
22761 2015-06-29 Richard Biener <rguenther@suse.de>
22762
22763 * lto-streamer.h (LTO_major_version): Bump to 5.
22764
22765 2015-06-29 Richard Biener <rguenther@suse.de>
22766
22767 PR tree-optimization/66677
22768 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22769 STMT_VINFO_VEC_STMT clobbering less strict.
22770
22771 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22772
22773 PR middle-end/64130
22774 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22775 division, compute max and min when value ranges for dividend and
22776 divisor are available.
22777
22778 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22779 Sandra Loosemore <sandra@codesourcery.com>
22780
22781 * regrename.h (regrename_do_replace): Change to return bool.
22782 * regrename.c (rename_chains): Check return value of
22783 regname_do_replace.
22784 (regrename_do_replace): Re-validate the modified insns and
22785 return bool status.
22786 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22787 Update to match rename_chains changes.
22788 * config/c6x/c6x.c (try_rename_operands): Assert that
22789 regrename_do_replace returns true.
22790
22791 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22792
22793 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22794 operand 2 here. Use copy_addr_to_reg to copy non-index
22795 register operand 2 to a temporary.
22796 (<mode>_stx): Ditto for operand 1.
22797 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22798 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22799 (ix86_store_bounds): Ditto.
22800
22801 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22802
22803 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22804
22805 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22806
22807 * gimple.c (gimple_call_set_fndecl): Remove.
22808 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22809 build1_loc directly instead of build_fold_addr_expr_loc.
22810
22811 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22812
22813 * hash-map.h (hash_map::traverse): Use the definition of the
22814 Key typedef rather than the typedef itself.
22815
22816 2015-06-26 Martin Jambor <mjambor@suse.cz>
22817
22818 PR debug/66301
22819 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22820 NULL instead of calling dump_enabled_p.
22821
22822 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22823
22824 * config/aarch64/aarch64.opt: (override): New.
22825 * doc/invoke.texi (override): Document.
22826 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22827 (aarch64_fusible_pairs): Likewise.
22828 (aarch64_tuning_flags): Likewise.
22829 (aarch64_tuning_override_function): Likewise.
22830 (aarch64_tuning_override_functions): Likewise.
22831 (aarch64_parse_one_option_token): Likewise.
22832 (aarch64_parse_boolean_options): Likewise.
22833 (aarch64_parse_fuse_string): Likewise.
22834 (aarch64_parse_tune_string): Likewise.
22835 (aarch64_parse_one_override_token): Likewise.
22836 (aarch64_parse_override_string): Likewise.
22837 (aarch64_override_options): Parse the -override string if it
22838 is present.
22839
22840 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22841
22842 * config/aarch64/aarch64-protos.h (tune_params): Remove
22843 const from members.
22844 (aarch64_tune_params): Remove const, change to no longer be
22845 a pointer.
22846 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22847 change to no longer be a pointer, initialize to generic_tunings.
22848 (aarch64_min_divisions_for_recip_mul): Change dereference of
22849 aarch64_tune_params to member access.
22850 (aarch64_reassociation_width): Likewise.
22851 (aarch64_rtx_mult_cost): Likewise.
22852 (aarch64_address_cost): Likewise.
22853 (aarch64_branch_cost): Likewise.
22854 (aarch64_rtx_costs): Likewise.
22855 (aarch64_register_move_cost): Likewise.
22856 (aarch64_memory_move_cost): Likewise.
22857 (aarch64_sched_issue_rate): Likewise.
22858 (aarch64_builtin_vectorization_cost): Likewise.
22859 (aarch64_override_options): Take a copy of the selected tuning
22860 struct in to aarch64_tune_params, rather than just setting
22861 a pointer, change dereferences of aarch64_tune_params to member
22862 accesses.
22863 (aarch64_override_options_after_change): Change dereferences of
22864 aarch64_tune_params to member access.
22865 (aarch64_macro_fusion_p): Likewise.
22866 (aarch_macro_fusion_pair_p): Likewise.
22867 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22868
22869 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22870
22871 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22872 (aarch64_tune_flags): Likewise.
22873 (AARCH64_TUNE_FMA_STEERING): Likewise.
22874 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22875 to AARCH64_FL_USE_FMA_STEERING_PASS.
22876 (cortex-a57.cortex-a53): Likewise.
22877 (cortex-a72): Use cortexa72_tunings.
22878 (cortex-a72.cortex-a53): Likewise.
22879 (exynos-m1): Likewise.
22880 * config/aarch64/aarch64-protos.h (tune_params): Add
22881 a field: extra_tuning_flags.
22882 * config/aarch64/aarch64-tuning-flags.def: New.
22883 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22884 (aarch64_extra_tuning_flags): Likewise.
22885 (aarch64_tune_params): Declare here.
22886 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22887 (cortexa53_tunings): Likewise.
22888 (cortexa57_tunings): Likewise.
22889 (thunderx_tunings): Likewise.
22890 (xgene1_tunings): Likewise.
22891 (cortexa72_tunings): New.
22892 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22893 (gate): Check against aarch64_tune_params.
22894 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22895 aarch64-protos.h.
22896
22897 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22898
22899 * config/aarch64/aarch64-fusion-pairs.def: New.
22900 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22901 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22902 aarch64_fusion_pairs.
22903 (AARCH64_FUSE_MOV_MOVK): Likewise.
22904 (AARCH64_FUSE_ADRP_ADD): Likewise.
22905 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22906 (AARCH64_FUSE_ADRP_LDR): Likewise.
22907 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22908
22909 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22910
22911 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22912 SYMBOL_SMALL_GOT_28K.
22913 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22914 relocation modifiers.
22915 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22916 (ldr_got_small_28k_<mode>): New.
22917 (ldr_got_small_28k_sidi): New.
22918 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22919 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22920 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22921 SYMBOL_SMALL_GOT_28K.
22922 (aarch64_rtx_costs): Add costs for new instruction sequences.
22923 (initialize_aarch64_code_model): Initialize new model.
22924 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22925 (aarch64_asm_preferred_eh_data_format): Support new model.
22926 (aarch64_load_symref_appropriately): Generate new instruction
22927 sequences for -fpic.
22928 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22929 (aarch64_use_pseudo_pic_reg): New function.
22930
22931 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22932
22933 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22934 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22935 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22936 (aarch64_expand_mov_immediate): Ditto.
22937 (aarch64_print_operand): Ditto.
22938 (aarch64_classify_symbol): Ditto.
22939
22940 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22941
22942 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22943
22944 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22945
22946 PR bootstrap/66638
22947 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22948 assertion failed. Remove assertion itself.
22949
22950 2015-06-26 Richard Biener <rguenther@suse.de>
22951
22952 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22953 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22954 in match.pd.
22955 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22956 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22957 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22958 * match.pd: ... patterns here.
22959
22960 2015-06-26 Marek Polacek <polacek@redhat.com>
22961
22962 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22963 (x | y) & (~x ^ y) -> x & y): New patterns.
22964
22965 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22966
22967 * rtl.h (emit): Add an optional boolean parameter to control
22968 whether barriers are emitted.
22969 * emit-rtl.c (emit): Likewise.
22970 * gensupport.c (get_emit_function): Return null rather than "emit".
22971 * genemit.c (gen_emit_seq): Handle the null return value.
22972 Don't emit barriers after the final instruction in the sequence.
22973 * gentarget-def.c (main): Don't emit barriers after the instruction.
22974
22975 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22976
22977 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22978 TARGET_UNIFIED_ASM.
22979
22980 2015-06-26 Richard Biener <rguenther@suse.de>
22981
22982 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22983
22984 2015-06-26 Richard Biener <rguenther@suse.de>
22985
22986 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22987 irrespective on whether the inner operation has a single use
22988 of both off are constant.
22989
22990 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22991 Segher Boessenkool <segher@kernel.crashing.org>
22992
22993 PR target/66412
22994 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22995 before doing PUT_MODE or PUT_CODE on operands to avoid
22996 in-place RTX modification.
22997
22998 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22999
23000 * gentarget-def.c (def_target_insn): Cast return of strtol to
23001 unsigned int.
23002
23003 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23004
23005 * gimple.h (gimple_call_set_fn): Move inline function.
23006 * gimple.c (gimple_call_set_fn): Relocate here.
23007
23008 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23009
23010 PR target/65979
23011 PR target/66611
23012 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23013 the replacement insn will work.
23014
23015 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23016
23017 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23018 by default.
23019
23020 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23021
23022 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23023 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23024 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23025 (symtab_node::address_can_be_compared_p): Move function.
23026 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23027 definition here.
23028 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23029 * auto-profile.c: Likewise.
23030 * bb-reorder.c: Likewise.
23031 * builtins.c: Likewise.
23032 * calls.c: Likewise.
23033 * cfgexpand.c: Likewise.
23034 * cgraphbuild.c: Likewise.
23035 * cgraphclones.c: Likewise.
23036 * cgraphunit.c: Likewise.
23037 * combine.c: Likewise.
23038 * coverage.c: Likewise.
23039 * data-streamer-in.c: Likewise.
23040 * data-streamer-out.c: Likewise.
23041 * data-streamer.c: Likewise.
23042 * dbxout.c: Likewise.
23043 * dwarf2out.c: Likewise.
23044 * except.c: Likewise.
23045 * expr.c: Likewise.
23046 * final.c: Likewise.
23047 * fold-const.c: Likewise.
23048 * ggc-page.c: Likewise.
23049 * gimple-fold.c: Likewise.
23050 * gimple-iterator.c: Likewise.
23051 * gimple-pretty-print.c: Likewise.
23052 * gimple-streamer-in.c: Likewise.
23053 * gimple-streamer-out.c: Likewise.
23054 * gimple.c: Likewise.
23055 * gimplify.c: Likewise.
23056 * ipa-chkp.c: Likewise.
23057 * ipa-comdats.c: Likewise.
23058 * ipa-cp.c: Likewise.
23059 * ipa-devirt.c: Likewise.
23060 * ipa-icf-gimple.c: Likewise.
23061 * ipa-icf.c: Likewise.
23062 * ipa-inline-analysis.c: Likewise.
23063 * ipa-inline-transform.c: Likewise.
23064 * ipa-inline.c: Likewise.
23065 * ipa-polymorphic-call.c: Likewise.
23066 * ipa-profile.c: Likewise.
23067 * ipa-prop.c: Likewise.
23068 * ipa-pure-const.c: Likewise.
23069 * ipa-ref.c: Likewise.
23070 * ipa-reference.c: Likewise.
23071 * ipa-split.c: Likewise.
23072 * ipa-utils.c: Likewise.
23073 * ipa-visibility.c: Likewise.
23074 * ipa.c: Likewise.
23075 * langhooks.c: Likewise.
23076 * lto-cgraph.c: Likewise.
23077 * lto-compress.c: Likewise.
23078 * lto-opts.c: Likewise.
23079 * lto-section-in.c: Likewise.
23080 * lto-section-out.c: Likewise.
23081 * lto-streamer-in.c: Likewise.
23082 * lto-streamer-out.c: Likewise.
23083 * lto-streamer.c: Likewise.
23084 * omp-low.c: Likewise.
23085 * opts-global.c: Likewise.
23086 * passes.c: Likewise.
23087 * predict.c: Likewise.
23088 * print-tree.c: Likewise.
23089 * profile.c: Likewise.
23090 * ree.c: Likewise.
23091 * sanopt.c: Likewise.
23092 * stor-layout.c: Likewise.
23093 * symtab.c: Likewise.
23094 * toplev.c: Likewise.
23095 * trans-mem.c: Likewise.
23096 * tree-cfg.c: Likewise.
23097 * tree-chkp.c: Likewise.
23098 * tree-eh.c: Likewise.
23099 * tree-emutls.c: Likewise.
23100 * tree-inline.c: Likewise.
23101 * tree-nested.c: Likewise.
23102 * tree-parloops.c: Likewise.
23103 * tree-pretty-print.c: Likewise.
23104 * tree-profile.c: Likewise.
23105 * tree-sra.c: Likewise.
23106 * tree-ssa-alias.c: Likewise.
23107 * tree-ssa-live.c: Likewise.
23108 * tree-ssa-loop-ivcanon.c: Likewise.
23109 * tree-ssa-loop-ivopts.c: Likewise.
23110 * tree-ssa-pre.c: Likewise.
23111 * tree-ssa-sccvn.c: Likewise.
23112 * tree-ssa-strlen.c: Likewise.
23113 * tree-ssa-structalias.c: Likewise.
23114 * tree-streamer-in.c: Likewise.
23115 * tree-streamer-out.c: Likewise.
23116 * tree-streamer.c: Likewise.
23117 * tree-switch-conversion.c: Likewise.
23118 * tree-tailcall.c: Likewise.
23119 * tree-vect-data-refs.c: Likewise.
23120 * tree-vect-stmts.c: Likewise.
23121 * tree-vectorizer.c: Likewise.
23122 * tree.c: Likewise.
23123 * tsan.c: Likewise.
23124 * ubsan.c: Likewise.
23125 * value-prof.c: Likewise.
23126 * varasm.c: Likewise.
23127 * varpool.c: Likewise.
23128 * config/arm/arm.c: Likewise.
23129 * config/bfin/bfin.c: Likewise.
23130 * config/c6x/c6x.c: Likewise.
23131 * config/cris/cris.c: Likewise.
23132 * config/darwin-c.c: Likewise.
23133 * config/darwin.c: Likewise.
23134 * config/i386/i386.c: Likewise.
23135 * config/i386/winnt.c: Likewise.
23136 * config/microblaze/microblaze.c: Likewise.
23137 * config/mips/mips.c: Likewise.
23138 * config/rs6000/rs6000.c: Likewise.
23139 * config/rx/rx.c: Likewise.
23140 * config/s390/s390.c: Likewise.
23141 * config/tilegx/mul-tables.c: Likewise.
23142
23143 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23144
23145 * config/aarch64/aarch64.c, config/alpha/alpha.c,
23146 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23147 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23148 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23149 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23150 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23151 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23152 config/microblaze/microblaze.c, config/mips/mips.c,
23153 config/mmix/mmix.c, config/mn10300/mn10300.c,
23154 config/moxie/moxie.c, config/msp430/msp430.c,
23155 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23156 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23157 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23158 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23159 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23160 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23161 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23162 target-def.h include.
23163 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
23164
23165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23166
23167 * Makefile.in (TARGET_DEF): Add target-insns.def.
23168 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23169 (build/gentarget-def.o): New rule.
23170 (genprogrtl): Add target-def.
23171 * target-insns.def, gentarget-def.c: New files.
23172 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23173 based on the contents of target-insns.def.
23174 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23175 (HAVE_return, gen_return): Delete.
23176 * target-def.h: Include insn-target-def.h.
23177 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23178 instead of direct calls. Rely on them to do the appropriate assertions.
23179 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23180 (convert_jumps_to_returns): Use targetm interface instead of
23181 direct calls.
23182 (thread_prologue_and_epilogue_insns): Likewise.
23183 * reorg.c (find_end_label, dbr_schedule): Likewise.
23184 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23185 * shrink-wrap.c (convert_to_simple_return): Likewise.
23186 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23187
23188 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23189
23190 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23191 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23192 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23193 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23194 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23195 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23196 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23197 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23198 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23199 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23200 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23201 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23202 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23203 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23204 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23205 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23206 includes to end.
23207
23208 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23209
23210 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23211 (unbounded_int_hashmap_traits::key_type): Likewise.
23212 * hash-map.h (hash_map): Get the key type from the traits.
23213 * hash-traits.h (default_hash_traits): By default, inherit from the
23214 template parameter.
23215 * alias.c (alias_set_traits): Delete.
23216 (alias_set_entry_d::children): Use alias_set_hash as the first
23217 template parameter.
23218 (record_alias_subset): Update accordingly.
23219 * except.c (tree_hash_traits): Delete.
23220 (type_to_runtime_map): Use tree_hash as the first template parameter.
23221 (init_eh): Update accordingly.
23222 * genmatch.c (capture_id_map_hasher): Delete.
23223 (cid_map_t): Use nofree_string_hash as first template parameter.
23224 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23225 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23226 Use symbol_compare_hash as the first template parameter in
23227 subdivide_hash_map.
23228 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23229 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23230 template parameter.
23231 * passes.c (pass_registry_hasher): Delete.
23232 (name_to_pass_map): Use nofree_string_hash as the first template
23233 parameter.
23234 (register_pass_name): Update accordingly.
23235 * sanopt.c (sanopt_tree_map_traits): Delete.
23236 (sanopt_tree_triplet_map_traits): Delete.
23237 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23238 template parameter.
23239 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23240 the first template parameter.
23241 * sese.c (rename_map_hasher): Delete.
23242 (rename_map_type): Use tree_ssa_name_hash as the first template
23243 parameter.
23244 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23245 (function_summary::m_map): Use map_hash as the first template
23246 parameter.
23247 (function_summary::release): Update accordingly.
23248 * tree-if-conv.c (phi_args_hash_traits): Delete.
23249 (predicate_scalar_phi): Use tree_operand_hash as the first template
23250 parameter to phi_arg_map.
23251 * tree-inline.h (dependence_hasher): Delete.
23252 (copy_body_data::dependence_map): Use dependence_hash as the first
23253 template parameter.
23254 * tree-inline.c (remap_dependence_clique): Update accordingly.
23255 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23256 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23257 parameter.
23258 (addr_stridxptr): Update accordingly.
23259 * value-prof.c (profile_id_traits): Delete.
23260 (cgraph_node_map): Use profile_id_hash as the first template
23261 parameter.
23262 (init_node_map): Update accordingly.
23263 * config/alpha/alpha.c (string_traits): Delete.
23264 (machine_function::links): Use nofree_string_hash as the first
23265 template parameter.
23266 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23267 * config/m32c/m32c.c (pragma_traits): Delete.
23268 (pragma_htab): Use nofree_string_hash as the first template parameter.
23269 (m32c_note_pragma_address): Update accordingly.
23270 * config/mep/mep.c (pragma_traits): Delete.
23271 (pragma_htab): Use nofree_string_hash as the first template parameter.
23272 (mep_note_pragma_flag): Update accordingly.
23273 * config/mips/mips.c (mips16_flip_traits): Delete.
23274 (mflip_mips16_htab): Use nofree_string_hash as the first template
23275 parameter.
23276 (mflip_mips16_use_mips16_p): Update accordingly.
23277 (local_alias_traits): Delete.
23278 (mips16_local_aliases): Use nofree_string_hash as the first template
23279 parameter.
23280 (mips16_local_alias): Update accordingly.
23281
23282 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23283
23284 * hash-map-traits.h (default_hashmap_traits): Delete.
23285
23286 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23287
23288 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23289 (unbounded_int_hashmap_traits): Likewise.
23290 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23291
23292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23293
23294 * ipa-icf.h (symbol_compare_hash): New class.
23295 (symbol_compare_hashmap_traits): Use it.
23296 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23297 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23298 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23299 default_hashmap_traits.
23300 * sanopt.c (sanopt_tree_triplet_hash): New class.
23301 (sanopt_tree_triplet_map_traits): Use it.
23302
23303 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23304
23305 * gengtype-parse.c (require_template_declaration): Allow '+' in
23306 template parameters. Consolidate cases.
23307 * hash-traits.h (int_hash): New class.
23308 * alias.c (alias_set_hash): New structure.
23309 (alias_set_traits): Use it.
23310 * symbol-summary.h (function_summary::map_hash): New class.
23311 (function_summary::summary_hashmap_traits): Use it.
23312 * tree-inline.h (dependence_hash): New class.
23313 (dependence_hasher): Use it.
23314 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23315 * value-prof.c (profile_id_hash): New class.
23316 (profile_id_traits): Use it.
23317
23318 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23319
23320 * config/mips/mips.c (mips16_flip_traits): Use it.
23321 (local_alias_traits, mips16_local_aliases): Convert from a map of
23322 rtxes to a map of symbol names.
23323 (mips16_local_alias): Update accordingly.
23324
23325 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23326
23327 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23328 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23329 * passes.c (pass_registry_hasher): Likewise.
23330 * config/alpha/alpha.c (string_traits): Likewise.
23331 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23332 * config/m32c/m32c.c (pragma_traits): Likewise.
23333 * config/mep/mep.c (pragma_traits): Likewise.
23334
23335 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23336
23337 * tree-hash-traits.h (tree_hash): New class.
23338 * except.c: Include tree-hash-traits.h.
23339 (tree_hash_traits): Use tree_hash.
23340
23341 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23342
23343 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23344 * sese.c: Include tree-hash-traits.h.
23345 (rename_map_hasher): Use tree_ssa_name_hasher.
23346
23347 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23348
23349 * tree-hash-traits.h (tree_decl_hash): New class.
23350 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23351 (stridxlist_hash_traits): Use tree_decl_hash.
23352
23353 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23354
23355 * tree-hash-traits.h: New file.
23356 (tree_operand_hash): New class.
23357 * sanopt.c: Include tree-hash-traits.h.
23358 (sanopt_tree_map_traits): Use tree_operand_hash.
23359 * tree-if-conv.c: Include tree-hash-traits.h.
23360 (phi_args_hash_traits): Use tree_operand_hash.
23361 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23362 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23363
23364 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23365
23366 * hash-map-traits.h: Include hash-traits.h.
23367 (simple_hashmap_traits): New class.
23368 * mem-stats.h (hash_map): Change the default traits to
23369 simple_hashmap_traits<default_hash_traits<Key> >.
23370
23371 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23372
23373 * hash-table.h: Update comments.
23374
23375 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23376
23377 * hash-traits.h (default_hash_traits): New structure.
23378 * hash-set.h (default_hashset_traits): Delete.
23379 (hash_set): Use default_hash_traits<Key> instead of
23380 default_hashset_traits. Delete hash_entry type and use Key directly.
23381 * ipa-devirt.c (pair_traits): Delete.
23382 (default_hash_traits <type_pair>): Override.
23383 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23384 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23385
23386 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23387
23388 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23389
23390 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23391
23392 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23393 (has_is_empty, is_empty_helper): Delete.
23394 (has_mark_deleted, mark_deleted_helper): Delete.
23395 (has_mark_empty, mark_empty_helper): Delete.
23396 (hash_table::is_deleted): Call the Descriptor unconditionally.
23397 (hash_table::is_empty): Likewise.
23398 (hash_table::mark_deleted): Likewise.
23399 (hash_table::mark_empty): Likewise.
23400
23401 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23402
23403 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
23404 redundant typedefs and members.
23405 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
23406 redundant typedefs.
23407 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23408 * ipa-devirt.c (odr_name_hasher): Likewise.
23409 (polymorphic_call_target_hasher): Likewise.
23410 * ira-costs.c (cost_classes_hasher): Likewise.
23411 * statistics.c (stats_counter_hasher): Likewise.
23412 * trans-mem.c (log_entry_hasher): Likewise.
23413 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23414 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23415 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23416 * var-tracking.c (variable_hasher): Likewise.
23417 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23418 Remove redundant typedefs and members.
23419
23420 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23421
23422 * hash-traits.h (ggc_cache_hasher): Rename to...
23423 (ggc_cache_remove): ...this and remove typedefs.
23424 (ggc_cache_ptr_hash): New class.
23425 * hash-table.h: Update commentary.
23426 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23427 rather than ggc_cache_hasher.
23428 (const_wide_int_hasher, reg_attr_hasher): Likewise.
23429 (const_double_hasher, const_fixed_hasher): Likewise.
23430 * function.c (insn_cache_hasher): Likewise.
23431 * trans-mem.c (tm_wrapper_hasher): Likewise.
23432 * tree.h (tree_decl_map_cache_hasher): Likewise.
23433 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23434 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23435 * ubsan.c (tree_type_map_cache_hasher): Likewise.
23436 * varasm.c (tm_clone_hasher): Likewise.
23437 * config/i386/i386.c (dllimport_hasher): Likewise.
23438 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23439 (tree_hasher): Likewise.
23440
23441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23442
23443 * hash-traits.h (ggc_hasher): Rename to...
23444 (ggc_remover): ...this and remove typedefs.
23445 (ggc_cache_hasher): Update accordingly. Add typedefs.
23446 (ggc_ptr_hash): New class.
23447 * hash-table.h: Update comment.
23448 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23449 ggc_hasher.
23450 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23451 (tree_descriptor_hasher): Likewise.
23452 * cgraph.c (function_version_hasher): Likewise.
23453 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23454 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23455 (dw_loc_list_hasher, addr_hasher): Likewise.
23456 * function.h (used_type_hasher): Likewise.
23457 * function.c (temp_address_hasher): Likewise.
23458 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23459 * libfuncs.h (libfunc_hasher): Likewise.
23460 * lto-streamer.h (decl_state_hasher): Likewise.
23461 * optabs.c (libfunc_decl_hasher): Likewise.
23462 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23463 * varasm.c (section_hasher, object_block_hasher): Likewise.
23464 (const_rtx_desc_hasher): Likewise.
23465 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23466 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23467
23468 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23469
23470 * hash-traits.h (free_ptr_hash): New class.
23471 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23472 rather than typed_free_remove. Remove redudant typedefs.
23473 (external_ref_hasher): Likewise.
23474 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23475 (ehspec_hasher): Likewise.
23476 * ggc-common.c (saving_hasher): Likewise.
23477 * gimplify.c (gimplify_hasher): Likewise.
23478 * haifa-sched.c (delay_i2_hasher): Likewise.
23479 * loop-invariant.c (invariant_expr_hasher): Likewise.
23480 * loop-iv.c (biv_entry_hasher): Likewise.
23481 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23482 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23483 * tree-cfg.c (locus_discrim_hasher): Likewise.
23484 * tree-eh.c (finally_tree_hasher): Likewise.
23485 * tree-into-ssa.c (var_info_hasher): Likewise.
23486 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23487 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23488 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23489 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23490 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23491 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23492 (shared_bitmap_hasher): Likewise.
23493 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23494 * tree-vectorizer.h (peel_info_hasher): Likewise.
23495 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23496 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23497
23498 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23499
23500 * hash-table.h: Update comments.
23501 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23502 (nofree_ptr_hash): New class.
23503 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23504 than typed_noop_remove. Remove redudant typedefs.
23505 * attribs.c (attribute_hasher): Likewise.
23506 * cfg.c (bb_copy_hasher): Likewise.
23507 * cselib.c (cselib_hasher): Likewise.
23508 * dse.c (invariant_group_base_hasher): Likewise.
23509 * dwarf2cfi.c (trace_info_hasher): Likewise.
23510 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23511 (comdat_type_hasher, loc_list_hasher): Likewise.
23512 * gcse.c (pre_ldst_expr_hasher): Likewise.
23513 * genmatch.c (id_base): Likewise.
23514 * genrecog.c (test_pattern_hasher): Likewise.
23515 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23516 * haifa-sched.c (delay_i1_hasher): Likewise.
23517 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23518 * ipa-icf.h (congruence_class_group_hash): Likewise.
23519 * ipa-profile.c (histogram_hash): Likewise.
23520 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23521 * lto-streamer.h (string_slot_hasher): Likewise.
23522 * lto-streamer.c (tree_entry_hasher): Likewise.
23523 * plugin.c (event_hasher): Likewise.
23524 * postreload-gcse.c (expr_hasher): Likewise.
23525 * store-motion.c (st_expr_hasher): Likewise.
23526 * tree-sra.c (uid_decl_hasher): Likewise.
23527 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23528 (ssa_name_var_hash): Likewise.
23529 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23530 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23531 * tree-ssa-pre.c (pre_expr_d): Likewise.
23532 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23533 * vtable-verify.h (registration_hasher): Likewise.
23534 * vtable-verify.c (vtbl_map_hasher): Likewise.
23535 * config/arm/arm.c (libcall_hasher): Likewise.
23536 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23537 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23538 * config/sol2.c (comdat_entry_hasher): Likewise.
23539 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23540 (print_fold_checksum, fold_checksum_tree): Likewise.
23541 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23542 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23543 (fold_build_call_array_loc): Likewise.
23544 * tree-ssa-ccp.c (gimple_htab): Likewise.
23545 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23546 rather than pointer_type.
23547
23548 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23549
23550 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23551 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23552
23553 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23554
23555 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23556 (ggc_hasher::ggc_mx): Likewise.
23557 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23558 that duplicate ggc_hasher ones.
23559
23560 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23561
23562 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23563 (gt_cleare_cache): Check here for deleted and empty entries.
23564 Replace handle_cache_entry with a call to keep_cache_entry.
23565 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23566 (ggc_cache_hasher::keep_cache_entry): New function.
23567 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23568 (tm_wrapper_hasher::keep_cache_entry): New function.
23569 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23570 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23571 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23572 (type_cache_hasher::keep_cache_entry): New function.
23573 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23574 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23575 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23576 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23577 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23578 (tm_clone_hasher::keep_cache_entry): New function.
23579 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23580 (dllimport_hasher::keep_cache_entry): New function.
23581
23582 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23583
23584 * hash-table.h: Include hash-traits.h.
23585 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23586 (ggc_cache_hasher): Move to...
23587 * hash-traits.h: ...this new file.
23588
23589 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23590
23591 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23592 struct cl_optimization.
23593 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23594 * tree.c (make_node_stat): Allocate cl_optimization struct.
23595 (copy_node_stat): Allocate and copy cl_optimization struct.
23596
23597 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23598
23599 * function.h (struct incoming_args): Move struct.
23600 (pass_by_reference, reference_callee_copied): Remove prototypes.
23601 * emit-rtl.h (struct incoming_args): Relocate struct here.
23602 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23603 prototypes here.
23604 * function.c (pass_by_reference, reference_callee_copied): Move.
23605 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23606 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23607 * ipa-chkp.c: Include calls.h.
23608
23609 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23610
23611 * alias.h (alias_set_type): Move typedef.
23612 * coretypes.h (alias_set_type): Relocate typedef here.
23613 * rtl.h: Don't include alias.h.
23614
23615 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23616
23617 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23618 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23619 and instance.
23620 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23621 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23622 doesn't exist.
23623 * calls.c: Include hard-reg-set.h before rtl.h.
23624 * ira.c: Likewise.
23625
23626 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23627 Vladimir Makarov <vmakarov@redhat.com>
23628
23629 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23630 Add assert.
23631
23632 2015-06-25 Richard Biener <rguenther@suse.de>
23633
23634 * fold-const.c (fold_binary_loc): Move simplification of
23635 (X <<>> C1) & C2 ...
23636 * match.pd: ... here.
23637
23638 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23639
23640 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23641
23642 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23643
23644 * match.pd: Add patterns for vec_conds between 1 and 0.
23645
23646 2015-06-25 Richard Biener <rguenther@suse.de>
23647
23648 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23649 STMT_VINFO_VEC_STMT for SLP.
23650 (vectorizable_store): Likewise.
23651 (vectorizable_load): Likewise.
23652 (vect_transform_stmt): Catch SLP vectorization clobbering
23653 STMT_VINFO_VEC_STMT.
23654
23655 2015-06-25 Richard Biener <rguenther@suse.de>
23656
23657 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23658 dumping.
23659 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23660 cleanup resulting dead code and parameters.
23661 (vect_transform_slp_perm_load): Adjust.
23662
23663 2015-06-25 Nick Clifton <nickc@redhat.com>
23664
23665 * config/bfin/bfin.c (bfin_expand_prologue): Set
23666 current_function_static_stack_size if flag_stack_usage_info is set.
23667 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23668 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23669 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23670 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23671
23672 2015-06-25 Tom de Vries <tom@codesourcery.com>
23673
23674 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23675 comment that the generated IV is unsigned.
23676
23677 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23678
23679 PR target/29693
23680 * config/arm/arm.c (arm_dbx_register_number): Return
23681 DWARF_FRAME_REGISTERS by default.
23682
23683 2015-06-25 Tom de Vries <tom@codesourcery.com>
23684
23685 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23686 argument. Call verify_dominator when reusing dominator info.
23687
23688 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23689
23690 PR target/66563
23691 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23692 an additional element of the unspec vector. Modify indices
23693 of operands.
23694 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23695 * config/sh/sh.c (prepare_move_operands): Pass incremented
23696 const_int to gen_GOTaddr2picreg.
23697 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23698
23699 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23700
23701 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23702 Condition on TARGET_FLOAT.
23703
23704 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23705
23706 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23707 and (no)crypto.
23708
23709 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23710
23711 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23712
23713 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23714 aarch64_err_no_fpadvsimd.
23715
23716 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23717 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23718 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23719 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23720 Turn error into assert, test TARGET_FLOAT.
23721 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23722 TARGET_FLOAT.
23723
23724 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23725
23726 PR debug/66482
23727 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23728
23729 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23730
23731 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23732
23733 2015-06-24 Renlin Li <renlin.li@arm.com>
23734
23735 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23736 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23737
23738 2015-06-24 Richard Biener <rguenther@suse.de>
23739
23740 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23741 (main): Likewise.
23742 (lower_opt_convert): Support lowering of conditional view_convert.
23743 (parser::parse_operation): Likewise.
23744 (parser::parse_for): Likewise.
23745
23746 2015-06-24 Renlin Li <renlin.li@arm.com>
23747
23748 * varasm.c (emit_local): Use unsigned int for align variable.
23749
23750 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23751
23752 PR target/63408
23753 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23754 for negative numbers.
23755
23756 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23757
23758 PR rtl-optimization/66306
23759 * reload.c (find_reloads): Swap the match_dup info for
23760 commutative operands.
23761
23762 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23763
23764 * config/s390/vx-builtins.md
23765 ("vec_scatter_element<mode>_<non_vec_int>")
23766 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23767 attribute with bhfgq.
23768
23769 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23770
23771 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23772
23773 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23774
23775 * config/s390/s390-builtin-types.def: Add flag to indicate the
23776 options under which the function type is needed.
23777 * config/s390/s390-builtins.def: Add flag to indicate the options
23778 under which the builtin is enabled.
23779 * config/s390/s390-builtins.h: Add flags parameter to macro
23780 definitions.
23781 (bflags_for_builtin): New function.
23782 (flags_for_builtin): Renamed to ...
23783 (opflags_for_builtin): ... this.
23784 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23785 flags_for_builtin to bflags_for_builtin and
23786 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23787 * config/s390/s390.c: Add initialization of bflags_builtin and
23788 opflags_builtin arrays.
23789 Remove code for flags_builtin.
23790 (s390_init_builtins): Only create builtin function types if one of
23791 their flags is active.
23792 Only create builtins if all of their flags are active.
23793 (s390_expand_builtin): Rename flags_for_builtin to
23794 opflags_for_builtin.
23795
23796 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23797
23798 * config/s390/vecintrin.h: Remove internal builtins.
23799
23800 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23801
23802 * config/s390/s390.c (s390_secondary_reload): Fix check for
23803 GENERAL_REGS register class.
23804
23805 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23806
23807 * config/s390/s390.c (s390_support_vector_misalignment): Call
23808 default implementation for !TARGET_VX.
23809
23810 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23811
23812 * config/s390/s390.c (s390_legitimate_constant_p): Add
23813 TARGET_VX check.
23814
23815 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23816
23817 * config/s390/s390.c (s390_vector_abi): New variable definition.
23818 (s390_check_type_for_vector_abi): New function.
23819 (TARGET_ASM_FILE_END): New macro definition.
23820 (s390_asm_file_end): New function.
23821 (s390_function_arg): Call s390_check_type_for_vector_abi.
23822 (s390_gimplify_va_arg): Likewise.
23823 * configure: Regenerate.
23824 * configure.ac: Check for .gnu_attribute Binutils feature.
23825
23826 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23827
23828 PR target/65803
23829 * config/bfin/bfin.c (hwloop_optimize): Initialize
23830 JUMP_LABEL for newly created jump.
23831
23832 2015-06-23 Tristan Gingold <gingold@adacore.com>
23833
23834 * collect-utils.c (collect_wait): Unlink the response file here
23835 instead of...
23836 (do_wait): ...here.
23837 (utils_cleanup): ...and here.
23838
23839 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23840
23841 * df-scan.c: Don't include target-def.h.
23842 * targhooks.c: Likewise.
23843 * config/arm/arm-c.c: Likewise.
23844 * config/i386/i386-c.c: Likewise.
23845 * config/nds32/nds32-cost.c: Likewise.
23846 * config/nds32/nds32-fp-as-gp.c: Likewise.
23847 * config/nds32/nds32-intrinsic.c: Likewise.
23848 * config/nds32/nds32-isr.c: Likewise.
23849 * config/nds32/nds32-md-auxiliary.c: Likewise.
23850 * config/nds32/nds32-memory-manipulation.c: Likewise.
23851 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23852 * config/nds32/nds32-predicates.c: Likewise.
23853
23854 2015-06-23 Richard Biener <rguenther@suse.de>
23855
23856 PR tree-optimization/66636
23857 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23858 def type for further defs for strided stores.
23859
23860 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23861
23862 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23863 conditional selects.
23864 (setcc_int<mode>, setcc_float<mode>): Reformat.
23865
23866 2015-06-23 Marek Polacek <polacek@redhat.com>
23867
23868 * match.pd ((x + y) - (x | y) -> x & y,
23869 (x + y) - (x & y) -> x | y): New patterns.
23870
23871 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23872
23873 PR 65711
23874 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23875 '-dynamic-linker' within %{!shared: ...}.
23876
23877 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23878
23879 PR target/66560
23880 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23881 (addsub_vs_operator): Ditto.
23882 (addsub_vs_parallel): Ditto.
23883 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23884 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23885 Put minus RTX before plus and adjust vec_merge selector.
23886 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23887 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23888 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23889 (addsub vec_merge splitters): New combiner splitters.
23890 (addsub vec_select/vec_concat splitters): Ditto.
23891
23892 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23893
23894 PR tree-optimization/66449
23895 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23896 POINTER_PLUS_EXPR for pointers.
23897
23898 2015-06-23 Alan Modra <amodra@gmail.com>
23899
23900 * rtlanal.c (commutative_operand_precedence): Correct comments.
23901 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23902 declaration. Return an int. Distinguish REG,REG return from
23903 others.
23904 (struct simplify_plus_minus_op_data): Make local to function.
23905 (simplify_plus_minus): Don't set canonicalized if merely sorting
23906 registers. Avoid packing ops if nothing changes. White space fixes.
23907
23908 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23909
23910 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23911 -fdump-ada-spec is passed but not if -fsyntax-only is.
23912
23913 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23914
23915 PR bootstrap/63740
23916 * lra-lives.c (process_bb_lives): Check insn copying the same
23917 reload pseudo and don't create a copy for it.
23918
23919 2015-06-22 Tom de Vries <tom@codesourcery.com>
23920
23921 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23922 for cond_stmt.
23923
23924 2015-06-22 Tom de Vries <tom@codesourcery.com>
23925
23926 * builtins.def (DEF_GOMP_BUILTIN): Test
23927 'flag_tree_parallelize_loops > 1' instead of
23928 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23929
23930 2015-06-22 Tom de Vries <tom@codesourcery.com>
23931
23932 * dominance.c (calculate_dominance_info): Verify dominators if
23933 early-out.
23934
23935 2015-06-22 Marek Polacek <polacek@redhat.com>
23936
23937 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23938 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23939 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23940 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23941
23942 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23943
23944 PR target/65871
23945 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23946 cost of embedded comparison.
23947
23948 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23949
23950 PR target/65914
23951 * config/rs6000/predicates.md (altivec_register_operand): Permit
23952 virtual stack registers.
23953 (vsx_register_operand): Likewise.
23954 (vfloat_operand): Likewise.
23955 (vint_operand): Likewise.
23956 (vlogical_operand): Likewise.
23957
23958 2015-06-22 Richard Biener <rguenther@suse.de>
23959
23960 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23961 and single_scalar_iteration_cost members.
23962 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23963 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23964 (vect_get_single_scalar_iteration_cost): Remove.
23965 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23966 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23967 * tree-vect-loop.c (destroy_loop_vec_info): Free
23968 scalar_cost_vec.
23969 (vect_get_single_scalar_iteration_cost): Compute result into
23970 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23971 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23972 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23973 (vect_estimate_min_profitable_iters): Use them.
23974
23975 2015-06-22 Christian Bruel <christian.bruel@st.com>
23976
23977 PR target/52144
23978 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23979 (TARGET_INSERT_ATTRIBUTES): Define.
23980 (thumb_flipper): New var.
23981 * config/arm/arm.opt (-mflip-thumb): New switch.
23982
23983 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23984 Martin Liska <mliska@suse.cz>
23985
23986 PR ipa/65908
23987 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23988 construction of arg_types.
23989 (sem_function::sem_function): Likewise.
23990 (sem_function::~sem_function): Remove destruction of arg_types.
23991 (sem_function::compatible_parm_types_p): New function.
23992 (sem_function::equals_wpa): Reorg matching of return values
23993 and parameter types.
23994 (sem_function::equals_private): Reorg mathcing of argument types.
23995 (sem_function::parse_tree_args): Remove.
23996 * ipa-icf.h (init_wpa): Do not call it.
23997 (parse_tree_args): Remove.
23998 (compatible_parm_types_p): Declare.
23999 (result_type): Remove.
24000 (arg_types): Remove.
24001
24002 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24003
24004 PR ipa/66351
24005 * ipa-polymorphic-call.c
24006 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24007 initializing alias oracle; fix formating; set base_alias_set if it
24008 is known.
24009
24010 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24011
24012 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24013 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24014 (find_inc): Likewise.
24015 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24016 swapping.
24017 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24018 * df-scan.c (df_swap_refs): Remove.
24019 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24020 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24021 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24022 * fold-const.c (fold_relational_const): Likewise.
24023 * genattrtab.c (simplify_test_exp): Likewise.
24024 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24025 gimple_simplify): Likewise.
24026 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24027 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24028 * ipa-devirt.c (add_type_duplicate): Likewise.
24029 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24030 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24031 * lra.c (lra_create_copy): Likewise.
24032 * lto-streamer-out.c (DFS::DFS): Likewise.
24033 * modulo-sched.c (get_sched_window): Likewise.
24034 * omega.c (omega_pretty_print_problem): Likewise.
24035 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24036 * reload1.c (reloads_unique_chain_p): Likewise.
24037 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24038 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24039 use std::swap.
24040 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24041 manually swapping.
24042 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24043 predicate_mem_writes): Likewise.
24044 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24045 * tree-predcom.c (combine_chains): Likewise.
24046 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24047 refs_may_alias_p_1): Likewise.
24048 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24049 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24050 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24051 number_of_iterations_cond): Likewise.
24052 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24053 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24054 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24055 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24056 * tree-vrp.c (extract_range_from_binary_expr_1,
24057 extract_range_from_unary_expr_1): Likewise.
24058
24059 2015-06-20 Marek Polacek <polacek@redhat.com>
24060
24061 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24062
24063 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24064
24065 PR target/66591
24066 * config/sh/sh.c (prepare_move_operands): Replace subreg
24067 index term with R0 for base and index addressing.
24068
24069 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24070
24071 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24072 op1 is an fp zero.
24073 (movsf_aarch64): Change condition from register_operand to
24074 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24075 load1. Change type for alternative 7 to store1.
24076 (movdf_aarch64): Likewise.
24077
24078 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24079
24080 * config/vax/vax.md: Adjust sign/zero extend patterns to
24081 handle SUBREGs in operands[1].
24082
24083 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24084
24085 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24086 of manually swapping.
24087 (expand_vec_perm_interleave2): Likewise.
24088
24089 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24090
24091 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24092 reuse bounds created for abnormal ssa names.
24093
24094 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24095
24096 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24097 (allocate_stack_<mode>): ... this, and add :P on both
24098 match_operand and unspec.
24099 (allocate_stack): New expander.
24100
24101 2015-06-19 Christian Bruel <christian.bruel@st.com>
24102
24103 PR target/66541
24104 PR target/52144
24105 * config/arm/arm.c (arm_set_current_function): Handle
24106 explicit default options.
24107
24108 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24109
24110 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24111 (zero-extended cmove with mem peephole2): New pattern.
24112 (cmove with mem peephole2): Merge patterns.
24113
24114 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24115
24116 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24117
24118 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24119
24120 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24121 * config/mips/mips.md (*madd4<mode>): Ditto.
24122 (*nmadd3<mode>) Ditto.
24123 (*nmadd4<mode>_fastmath): Ditto.
24124 (*nmadd3<mode>_fastmath): Ditto.
24125 (*nmsub4<mode>): Ditto.
24126 (*nmsub3<mode>): Ditto.
24127 (*nmsub4<mode>_fastmath): Ditto.
24128 (*nmsub3<mode>_fastmath): Ditto.
24129
24130 2015-06-18 Michael Matz <matz@suse.de>
24131
24132 PR middle-end/66253
24133 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24134 grouped strided stores.
24135 (vectorizable_load): Don't use the DR from first_stmt in
24136 the non-SLP grouped strided case.
24137
24138 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24139
24140 PR target/66569
24141 * function.c (assign_bounds): Add arguments assign_regs,
24142 assign_special, assign_bt.
24143 (assign_parms): For vararg functions handle bounds in BT
24144 and special slots after incoming vararg bounds.
24145
24146 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24147
24148 PR middle-end/66568
24149 * cfgexpand.c (expand_return): Handle missing bounds.
24150 (expand_gimple_stmt_1): Likewise.
24151 * tree-chkp.c (chkp_expand_zero_bounds): New.
24152 * tree-chkp.h (chkp_expand_zero_bounds): New.
24153
24154 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24155
24156 PR middle-end/66567
24157 * ipa-chkp.c (chkp_maybe_create_clone): Require
24158 functions to be instrumentable.
24159 * tree-chkp.c (chkp_replace_function_pointer): Use
24160 chkp_instrumentable_p instead of attribute check.
24161
24162 2015-06-18 Richard Biener <rguenther@suse.de>
24163
24164 PR tree-optimization/66510
24165 * tree-vect-stmts.c (vectorizable_load): Properly compute the
24166 number of vector loads for SLP permuted loads.
24167 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24168 check the stride for loop vectorization.
24169 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24170 vectorization factor.
24171 (vect_analyze_group_access): If the group size is not a power
24172 of two require a epilogue loop.
24173 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24174 compute and optimizing and alias test pruning after final
24175 vectorization factor computation.
24176 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24177 vector alignment.
24178 (vect_transform_slp_perm_load): Properly compute the original
24179 number of vector load stmts.
24180
24181 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24182
24183 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24184 "unlikely character , in @var" warning.
24185
24186 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24187
24188 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24189 (ix86_function_arg_advance): Ditto.
24190 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24191
24192 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24193
24194 * function.h (struct rtl_data): Remove struct and accessor macros.
24195 * emit-rtl.h (struct rtl_data): Relocate to here.
24196 * Makefile.in (GTFILES): Add emit-rtl.h.
24197 * df-core.c: Include emit-rtl.h.
24198 * genattrtab.c: Likewise.
24199 * genconditions.c: Likewise.
24200 * genpreds.c: Likewise.
24201 * genrecog.c: Likewise.
24202 * regcprop.c: Likewise.
24203 * resource.c: Likewise.
24204 * sched-rgn.c: Likewise.
24205 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24206 * config/i386/winnt.c: Likewise.
24207
24208 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24209
24210 PR middle-end/66429
24211 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24212 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24213 and has_force_vectorize_loops flags from cfun into
24214 child_cfun.
24215 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24216 if simduid is non-NULL.
24217 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24218 * passes.def (pass_simduid_cleanup): Add new pass after loop
24219 passes.
24220 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24221 indirection from htab argument's type.
24222 (shrink_simd_arrays): New function.
24223 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24224 Don't call adjust_simduid_builtins if there are no loops.
24225 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24226 (pass_simduid_cleanup::execute): New method.
24227 (make_pass_simduid_cleanup): New function.
24228
24229 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24230
24231 * tree-core.h (tree_target_option): Make opts field a pointer to a
24232 cl_target_option instead of an instance of the struct.
24233 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24234 the structure.
24235 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24236 TARGET_OPTION_NODE.
24237 (copy_node_stat): Allocate and copy struct cl_target_option.
24238
24239 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24240
24241 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24242 Remove conditional exposure of prototypes.
24243 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24244 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24245 definitions in tree.h with functions.
24246 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24247 anon_aggrname_p.
24248 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24249
24250 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24251
24252 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24253 (*cmp<mode>_signed): ... this.
24254 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24255 (*cmp<mode>_unsigned): ... this. Remove %b.
24256
24257 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24258
24259 * coretypes.h: Include input.h and as-a.h.
24260 * rtl.h: Include input.h and as-a.h for generator files.
24261 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24262 * vec.c: Don't include diagnostic-core.h.
24263 * alias.c: Do not include input.h, line-map.h or is-a.h.
24264 * asan.c: Likewise.
24265 * attribs.c: Likewise.
24266 * auto-inc-dec.c: Likewise.
24267 * auto-profile.c: Likewise.
24268 * bb-reorder.c: Likewise.
24269 * bt-load.c: Likewise.
24270 * builtins.c: Likewise.
24271 * caller-save.c: Likewise.
24272 * calls.c: Likewise.
24273 * ccmp.c: Likewise.
24274 * cfg.c: Likewise.
24275 * cfganal.c: Likewise.
24276 * cfgbuild.c: Likewise.
24277 * cfgcleanup.c: Likewise.
24278 * cfgexpand.c: Likewise.
24279 * cfghooks.c: Likewise.
24280 * cfgloop.c: Likewise.
24281 * cfgloop.h: Likewise.
24282 * cfgloopanal.c: Likewise.
24283 * cfgloopmanip.c: Likewise.
24284 * cfgrtl.c: Likewise.
24285 * cgraph.c: Likewise.
24286 * cgraphbuild.c: Likewise.
24287 * cgraphclones.c: Likewise.
24288 * cgraphunit.c: Likewise.
24289 * cilk-common.c: Likewise.
24290 * combine-stack-adj.c: Likewise.
24291 * combine.c: Likewise.
24292 * compare-elim.c: Likewise.
24293 * convert.c: Likewise.
24294 * coverage.c: Likewise.
24295 * cppbuiltin.c: Likewise.
24296 * cprop.c: Likewise.
24297 * cse.c: Likewise.
24298 * cselib.c: Likewise.
24299 * data-streamer-in.c: Likewise.
24300 * data-streamer-out.c: Likewise.
24301 * data-streamer.c: Likewise.
24302 * dbxout.c: Likewise.
24303 * dce.c: Likewise.
24304 * ddg.c: Likewise.
24305 * debug.c: Likewise.
24306 * df-core.c: Likewise.
24307 * df-problems.c: Likewise.
24308 * df-scan.c: Likewise.
24309 * df.h: Likewise.
24310 * dfp.c: Likewise.
24311 * diagnostic-core.h: Likewise.
24312 * diagnostic.c: Likewise.
24313 * dojump.c: Likewise.
24314 * dominance.c: Likewise.
24315 * domwalk.c: Likewise.
24316 * double-int.c: Likewise.
24317 * dse.c: Likewise.
24318 * dumpfile.c: Likewise.
24319 * dumpfile.h: Likewise.
24320 * dwarf2asm.c: Likewise.
24321 * dwarf2cfi.c: Likewise.
24322 * dwarf2out.c: Likewise.
24323 * emit-rtl.c: Likewise.
24324 * et-forest.c: Likewise.
24325 * except.c: Likewise.
24326 * explow.c: Likewise.
24327 * expmed.c: Likewise.
24328 * expr.c: Likewise.
24329 * final.c: Likewise.
24330 * fixed-value.c: Likewise.
24331 * fold-const.c: Likewise.
24332 * function.c: Likewise.
24333 * fwprop.c: Likewise.
24334 * gcc-plugin.h: Likewise.
24335 * gcse.c: Likewise.
24336 * generic-match-head.c: Likewise.
24337 * ggc-page.c: Likewise.
24338 * gimple-builder.c: Likewise.
24339 * gimple-expr.c: Likewise.
24340 * gimple-fold.c: Likewise.
24341 * gimple-iterator.c: Likewise.
24342 * gimple-low.c: Likewise.
24343 * gimple-match-head.c: Likewise.
24344 * gimple-pretty-print.c: Likewise.
24345 * gimple-ssa-isolate-paths.c: Likewise.
24346 * gimple-ssa-strength-reduction.c: Likewise.
24347 * gimple-streamer-in.c: Likewise.
24348 * gimple-streamer-out.c: Likewise.
24349 * gimple-streamer.h: Likewise.
24350 * gimple-walk.c: Likewise.
24351 * gimple.c: Likewise.
24352 * gimplify-me.c: Likewise.
24353 * gimplify.c: Likewise.
24354 * godump.c: Likewise.
24355 * graph.c: Likewise.
24356 * graphite-blocking.c: Likewise.
24357 * graphite-dependences.c: Likewise.
24358 * graphite-interchange.c: Likewise.
24359 * graphite-isl-ast-to-gimple.c: Likewise.
24360 * graphite-optimize-isl.c: Likewise.
24361 * graphite-poly.c: Likewise.
24362 * graphite-scop-detection.c: Likewise.
24363 * graphite-sese-to-poly.c: Likewise.
24364 * graphite.c: Likewise.
24365 * haifa-sched.c: Likewise.
24366 * hw-doloop.c: Likewise.
24367 * ifcvt.c: Likewise.
24368 * init-regs.c: Likewise.
24369 * input.c: Likewise.
24370 * internal-fn.c: Likewise.
24371 * ipa-chkp.c: Likewise.
24372 * ipa-comdats.c: Likewise.
24373 * ipa-cp.c: Likewise.
24374 * ipa-devirt.c: Likewise.
24375 * ipa-icf-gimple.c: Likewise.
24376 * ipa-icf.c: Likewise.
24377 * ipa-inline-analysis.c: Likewise.
24378 * ipa-inline-transform.c: Likewise.
24379 * ipa-inline.c: Likewise.
24380 * ipa-polymorphic-call.c: Likewise.
24381 * ipa-profile.c: Likewise.
24382 * ipa-prop.c: Likewise.
24383 * ipa-pure-const.c: Likewise.
24384 * ipa-ref.c: Likewise.
24385 * ipa-reference.c: Likewise.
24386 * ipa-split.c: Likewise.
24387 * ipa-utils.c: Likewise.
24388 * ipa-visibility.c: Likewise.
24389 * ipa.c: Likewise.
24390 * ira-build.c: Likewise.
24391 * ira-color.c: Likewise.
24392 * ira-conflicts.c: Likewise.
24393 * ira-costs.c: Likewise.
24394 * ira-emit.c: Likewise.
24395 * ira-lives.c: Likewise.
24396 * ira.c: Likewise.
24397 * jump.c: Likewise.
24398 * langhooks.c: Likewise.
24399 * lcm.c: Likewise.
24400 * loop-doloop.c: Likewise.
24401 * loop-init.c: Likewise.
24402 * loop-invariant.c: Likewise.
24403 * loop-iv.c: Likewise.
24404 * loop-unroll.c: Likewise.
24405 * lower-subreg.c: Likewise.
24406 * lra-assigns.c: Likewise.
24407 * lra-coalesce.c: Likewise.
24408 * lra-constraints.c: Likewise.
24409 * lra-eliminations.c: Likewise.
24410 * lra-lives.c: Likewise.
24411 * lra-remat.c: Likewise.
24412 * lra-spills.c: Likewise.
24413 * lra.c: Likewise.
24414 * lto-cgraph.c: Likewise.
24415 * lto-compress.c: Likewise.
24416 * lto-opts.c: Likewise.
24417 * lto-section-in.c: Likewise.
24418 * lto-section-out.c: Likewise.
24419 * lto-streamer-in.c: Likewise.
24420 * lto-streamer-out.c: Likewise.
24421 * lto-streamer.c: Likewise.
24422 * mcf.c: Likewise.
24423 * mode-switching.c: Likewise.
24424 * modulo-sched.c: Likewise.
24425 * omega.c: Likewise.
24426 * omp-low.c: Likewise.
24427 * optabs.c: Likewise.
24428 * opts-global.c: Likewise.
24429 * opts.h: Likewise.
24430 * passes.c: Likewise.
24431 * plugin.c: Likewise.
24432 * postreload-gcse.c: Likewise.
24433 * postreload.c: Likewise.
24434 * predict.c: Likewise.
24435 * pretty-print.h: Likewise.
24436 * print-rtl.c: Likewise.
24437 * print-tree.c: Likewise.
24438 * profile.c: Likewise.
24439 * real.c: Likewise.
24440 * realmpfr.c: Likewise.
24441 * recog.c: Likewise.
24442 * ree.c: Likewise.
24443 * reg-stack.c: Likewise.
24444 * regcprop.c: Likewise.
24445 * reginfo.c: Likewise.
24446 * regrename.c: Likewise.
24447 * regstat.c: Likewise.
24448 * reload.c: Likewise.
24449 * reload1.c: Likewise.
24450 * reorg.c: Likewise.
24451 * resource.c: Likewise.
24452 * rtl-chkp.c: Likewise.
24453 * rtl-error.c: Likewise.
24454 * rtlanal.c: Likewise.
24455 * rtlhooks.c: Likewise.
24456 * sanopt.c: Likewise.
24457 * sched-deps.c: Likewise.
24458 * sched-ebb.c: Likewise.
24459 * sched-rgn.c: Likewise.
24460 * sched-vis.c: Likewise.
24461 * sdbout.c: Likewise.
24462 * sel-sched-dump.c: Likewise.
24463 * sel-sched-ir.c: Likewise.
24464 * sel-sched.c: Likewise.
24465 * sese.c: Likewise.
24466 * shrink-wrap.c: Likewise.
24467 * simplify-rtx.c: Likewise.
24468 * stack-ptr-mod.c: Likewise.
24469 * statistics.c: Likewise.
24470 * stmt.c: Likewise.
24471 * stor-layout.c: Likewise.
24472 * store-motion.c: Likewise.
24473 * streamer-hooks.c: Likewise.
24474 * stringpool.c: Likewise.
24475 * symtab.c: Likewise.
24476 * target-globals.c: Likewise.
24477 * targhooks.c: Likewise.
24478 * toplev.c: Likewise.
24479 * tracer.c: Likewise.
24480 * trans-mem.c: Likewise.
24481 * tree-affine.c: Likewise.
24482 * tree-browser.c: Likewise.
24483 * tree-call-cdce.c: Likewise.
24484 * tree-cfg.c: Likewise.
24485 * tree-cfgcleanup.c: Likewise.
24486 * tree-chkp-opt.c: Likewise.
24487 * tree-chkp.c: Likewise.
24488 * tree-chrec.c: Likewise.
24489 * tree-complex.c: Likewise.
24490 * tree-data-ref.c: Likewise.
24491 * tree-dfa.c: Likewise.
24492 * tree-diagnostic.c: Likewise.
24493 * tree-dump.c: Likewise.
24494 * tree-eh.c: Likewise.
24495 * tree-emutls.c: Likewise.
24496 * tree-if-conv.c: Likewise.
24497 * tree-inline.c: Likewise.
24498 * tree-into-ssa.c: Likewise.
24499 * tree-iterator.c: Likewise.
24500 * tree-loop-distribution.c: Likewise.
24501 * tree-nested.c: Likewise.
24502 * tree-nrv.c: Likewise.
24503 * tree-object-size.c: Likewise.
24504 * tree-outof-ssa.c: Likewise.
24505 * tree-parloops.c: Likewise.
24506 * tree-phinodes.c: Likewise.
24507 * tree-predcom.c: Likewise.
24508 * tree-pretty-print.c: Likewise.
24509 * tree-profile.c: Likewise.
24510 * tree-scalar-evolution.c: Likewise.
24511 * tree-sra.c: Likewise.
24512 * tree-ssa-address.c: Likewise.
24513 * tree-ssa-alias.c: Likewise.
24514 * tree-ssa-ccp.c: Likewise.
24515 * tree-ssa-coalesce.c: Likewise.
24516 * tree-ssa-copy.c: Likewise.
24517 * tree-ssa-copyrename.c: Likewise.
24518 * tree-ssa-dce.c: Likewise.
24519 * tree-ssa-dom.c: Likewise.
24520 * tree-ssa-dse.c: Likewise.
24521 * tree-ssa-forwprop.c: Likewise.
24522 * tree-ssa-ifcombine.c: Likewise.
24523 * tree-ssa-live.c: Likewise.
24524 * tree-ssa-loop-ch.c: Likewise.
24525 * tree-ssa-loop-im.c: Likewise.
24526 * tree-ssa-loop-ivcanon.c: Likewise.
24527 * tree-ssa-loop-ivopts.c: Likewise.
24528 * tree-ssa-loop-manip.c: Likewise.
24529 * tree-ssa-loop-niter.c: Likewise.
24530 * tree-ssa-loop-prefetch.c: Likewise.
24531 * tree-ssa-loop-unswitch.c: Likewise.
24532 * tree-ssa-loop.c: Likewise.
24533 * tree-ssa-math-opts.c: Likewise.
24534 * tree-ssa-operands.c: Likewise.
24535 * tree-ssa-phiopt.c: Likewise.
24536 * tree-ssa-phiprop.c: Likewise.
24537 * tree-ssa-pre.c: Likewise.
24538 * tree-ssa-propagate.c: Likewise.
24539 * tree-ssa-reassoc.c: Likewise.
24540 * tree-ssa-sccvn.c: Likewise.
24541 * tree-ssa-scopedtables.c: Likewise.
24542 * tree-ssa-sink.c: Likewise.
24543 * tree-ssa-strlen.c: Likewise.
24544 * tree-ssa-structalias.c: Likewise.
24545 * tree-ssa-tail-merge.c: Likewise.
24546 * tree-ssa-ter.c: Likewise.
24547 * tree-ssa-threadedge.c: Likewise.
24548 * tree-ssa-threadupdate.c: Likewise.
24549 * tree-ssa-uncprop.c: Likewise.
24550 * tree-ssa-uninit.c: Likewise.
24551 * tree-ssa.c: Likewise.
24552 * tree-ssanames.c: Likewise.
24553 * tree-stdarg.c: Likewise.
24554 * tree-streamer-in.c: Likewise.
24555 * tree-streamer-out.c: Likewise.
24556 * tree-streamer.c: Likewise.
24557 * tree-switch-conversion.c: Likewise.
24558 * tree-tailcall.c: Likewise.
24559 * tree-vect-data-refs.c: Likewise.
24560 * tree-vect-generic.c: Likewise.
24561 * tree-vect-loop-manip.c: Likewise.
24562 * tree-vect-loop.c: Likewise.
24563 * tree-vect-patterns.c: Likewise.
24564 * tree-vect-slp.c: Likewise.
24565 * tree-vect-stmts.c: Likewise.
24566 * tree-vectorizer.c: Likewise.
24567 * tree-vrp.c: Likewise.
24568 * tree.c: Likewise.
24569 * tsan.c: Likewise.
24570 * ubsan.c: Likewise.
24571 * valtrack.c: Likewise.
24572 * value-prof.c: Likewise.
24573 * var-tracking.c: Likewise.
24574 * varasm.c: Likewise.
24575 * varpool.c: Likewise.
24576 * vmsdbgout.c: Likewise.
24577 * vtable-verify.c: Likewise.
24578 * web.c: Likewise.
24579 * wide-int.cc: Likewise.
24580 * xcoffout.c: Likewise.
24581 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24582 * common/common-targhooks.c: Likewise.
24583 * config/aarch64/aarch64-builtins.c: Likewise.
24584 * config/aarch64/aarch64.c: Likewise.
24585 * config/alpha/alpha.c: Likewise.
24586 * config/arc/arc.c: Likewise.
24587 * config/arm/aarch-common.c: Likewise.
24588 * config/arm/arm-builtins.c: Likewise.
24589 * config/arm/arm-c.c: Likewise.
24590 * config/arm/arm.c: Likewise.
24591 * config/avr/avr-c.c: Likewise.
24592 * config/avr/avr-log.c: Likewise.
24593 * config/avr/avr.c: Likewise.
24594 * config/bfin/bfin.c: Likewise.
24595 * config/c6x/c6x.c: Likewise.
24596 * config/cr16/cr16.c: Likewise.
24597 * config/cris/cris.c: Likewise.
24598 * config/darwin-c.c: Likewise.
24599 * config/darwin.c: Likewise.
24600 * config/default-c.c: Likewise.
24601 * config/epiphany/epiphany.c: Likewise.
24602 * config/epiphany/mode-switch-use.c: Likewise.
24603 * config/epiphany/resolve-sw-modes.c: Likewise.
24604 * config/fr30/fr30.c: Likewise.
24605 * config/frv/frv.c: Likewise.
24606 * config/ft32/ft32.c: Likewise.
24607 * config/glibc-c.c: Likewise.
24608 * config/h8300/h8300.c: Likewise.
24609 * config/i386/i386-c.c: Likewise.
24610 * config/i386/i386.c: Likewise.
24611 * config/i386/msformat-c.c: Likewise.
24612 * config/i386/winnt-cxx.c: Likewise.
24613 * config/i386/winnt-stubs.c: Likewise.
24614 * config/i386/winnt.c: Likewise.
24615 * config/ia64/ia64-c.c: Likewise.
24616 * config/ia64/ia64.c: Likewise.
24617 * config/iq2000/iq2000.c: Likewise.
24618 * config/lm32/lm32.c: Likewise.
24619 * config/m32c/m32c-pragma.c: Likewise.
24620 * config/m32c/m32c.c: Likewise.
24621 * config/m32r/m32r.c: Likewise.
24622 * config/m68k/m68k.c: Likewise.
24623 * config/mcore/mcore.c: Likewise.
24624 * config/mep/mep-pragma.c: Likewise.
24625 * config/mep/mep.c: Likewise.
24626 * config/microblaze/microblaze-c.c: Likewise.
24627 * config/microblaze/microblaze.c: Likewise.
24628 * config/mips/mips.c: Likewise.
24629 * config/mmix/mmix.c: Likewise.
24630 * config/mn10300/mn10300.c: Likewise.
24631 * config/moxie/moxie.c: Likewise.
24632 * config/msp430/msp430-c.c: Likewise.
24633 * config/msp430/msp430.c: Likewise.
24634 * config/nds32/nds32-cost.c: Likewise.
24635 * config/nds32/nds32-fp-as-gp.c: Likewise.
24636 * config/nds32/nds32-intrinsic.c: Likewise.
24637 * config/nds32/nds32-isr.c: Likewise.
24638 * config/nds32/nds32-md-auxiliary.c: Likewise.
24639 * config/nds32/nds32-memory-manipulation.c: Likewise.
24640 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24641 * config/nds32/nds32-predicates.c: Likewise.
24642 * config/nds32/nds32.c: Likewise.
24643 * config/nios2/nios2.c: Likewise.
24644 * config/nvptx/nvptx.c: Likewise.
24645 * config/pa/pa.c: Likewise.
24646 * config/pdp11/pdp11.c: Likewise.
24647 * config/rl78/rl78-c.c: Likewise.
24648 * config/rl78/rl78.c: Likewise.
24649 * config/rs6000/rs6000-c.c: Likewise.
24650 * config/rs6000/rs6000.c: Likewise.
24651 * config/rx/rx.c: Likewise.
24652 * config/s390/s390-c.c: Likewise.
24653 * config/s390/s390.c: Likewise.
24654 * config/sh/sh-c.c: Likewise.
24655 * config/sh/sh-mem.cc: Likewise.
24656 * config/sh/sh.c: Likewise.
24657 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24658 * config/sh/sh_treg_combine.cc: Likewise.
24659 * config/sol2-c.c: Likewise.
24660 * config/sol2-cxx.c: Likewise.
24661 * config/sol2-stubs.c: Likewise.
24662 * config/sol2.c: Likewise.
24663 * config/sparc/sparc-c.c: Likewise.
24664 * config/sparc/sparc.c: Likewise.
24665 * config/spu/spu-c.c: Likewise.
24666 * config/spu/spu.c: Likewise.
24667 * config/stormy16/stormy16.c: Likewise.
24668 * config/tilegx/mul-tables.c: Likewise.
24669 * config/tilegx/tilegx-c.c: Likewise.
24670 * config/tilegx/tilegx.c: Likewise.
24671 * config/tilepro/mul-tables.c: Likewise.
24672 * config/tilepro/tilepro-c.c: Likewise.
24673 * config/tilepro/tilepro.c: Likewise.
24674 * config/v850/v850-c.c: Likewise.
24675 * config/v850/v850.c: Likewise.
24676 * config/vax/vax.c: Likewise.
24677 * config/visium/visium.c: Likewise.
24678 * config/vms/vms-c.c: Likewise.
24679 * config/vms/vms.c: Likewise.
24680 * config/vxworks.c: Likewise.
24681 * config/winnt-c.c: Likewise.
24682 * config/xtensa/xtensa.c: Likewise.
24683
24684 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24685
24686 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24687 function.
24688 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24689
24690 2015-06-17 Richard Biener <rguenther@suse.de>
24691
24692 PR tree-optimization/66251
24693 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24694 stmts for SLP strided stores.
24695
24696 Revert
24697 2015-05-22 Richard Biener <rguenther@suse.de>
24698
24699 PR tree-optimization/66251
24700 * tree-vect-stmts.c (vectorizable_conversion): Properly
24701 set STMT_VINFO_VEC_STMT even for the SLP case.
24702
24703 2015-05-26 Michael Matz <matz@suse.de>
24704
24705 PR middle-end/66251
24706 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24707 STMT_VINFO_VEC_STMT, also with SLP.
24708
24709 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24710
24711 PR target/56766
24712 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24713 (*avx_addsubv4df3_1s): Ditto.
24714 (*sse3_addsubv2df3_1): Ditto.
24715 (*sse3_addsubv2df3_1s): Ditto.
24716 (*avx_addsubv8sf3_1): Ditto.
24717 (*avx_addsubv8sf3_1s): Ditto.
24718 (*sse3_addsubv4sf3_1): Ditto.
24719 (*sse3_addsubv4sf3_1s): Ditto.
24720
24721 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24722
24723 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24724 (SYSROOT_SUFFIX_SPEC): Update.
24725 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24726 (STARTFILE_PREFIX_SPEC): Update.
24727 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24728 (MULTILIB_REQUIRED): New.
24729 (MULTILIB_OSDIRNAMES): New.
24730 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24731 (MULTILIB_REQUIRED): New.
24732 (MULTILIB_OSDIRNAMES): New.
24733
24734 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24735
24736 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24737 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24738 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24739 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24740 (AARCH64_FL_PAN): New.
24741 (AARCH64_FL_LOR): New.
24742 (AARCH64_FL_RDMA): New.
24743 (AARCH64_FL_FOR_ARCH8_1): New.
24744 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24745 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24746
24747 2015-06-16 Martin Liska <mliska@suse.cz>
24748
24749 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24750 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24751 guard.
24752
24753 2015-06-16 Richard Biener <rguenther@suse.de>
24754
24755 * tree-vect-stmts.c (vectorizable_store): Adjust.
24756 (vectorizable_load): Likewise.
24757 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24758 Simplify.
24759 (vect_create_data_ref_ptr): Likewise.
24760 (bump_vector_ptr): Adjust.
24761
24762 2015-06-16 Richard Biener <rguenther@suse.de>
24763
24764 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24765 with the first element if this is grouped loads.
24766
24767 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24768
24769 * config/arm/arm-protos.h (struct tune_params): Rename
24770 log_op_non_sc to log_op_non_short_circuit, and rename enum
24771 values to expand SC to SHORT_CIRCUIT.
24772 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24773 to LOG_OP_NON_SHORT_CIRCUIT.
24774 (arm_fastmul_tune):Likewise
24775 (arm_strongarm_tune): Likewise.
24776 (arm_xscale_tune): Likewise.
24777 (arm_9e_tune): Likewise.
24778 (arm_marvell_pj4_tune): Likewise.
24779 (arm_v6t2_tune): Likewise.
24780 (arm_cortex_tune): Likewise.
24781 (arm_cortex_a8_tune): Likewise.
24782 (arm_cortex_a7_tune): Likewise.
24783 (arm_cortex_a15_tune): Likewise.
24784 (arm_cortex_a53_tune): Likewise.
24785 (arm_cortex_a57_tune): Likewise.
24786 (arm_xgene1_tune): Likewise.
24787 (arm_cortex_a5_tune): Likewise.
24788 (arm_cortex_a9_tune): Likewise.
24789 (arm_cortex_a12_tune): Likewise.
24790 (arm_v7m_tune): Likewise.
24791 (arm_cortex_m7_tune): Likewise.
24792 (arm_v6m_tune): Likewise.
24793 (arm_fa726te_tune): Likewise.
24794
24795 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24796
24797 * altivec.md: Delete UNSPEC_VMLADDUHM.
24798 (mulv4si3_p8): New pattern.
24799 (mulv4si3): Use it for POWER8.
24800 (mulv8hi3): Use vmladduhm with zero addend.
24801 (altivec_vmladduhm): Descriptive RTL.
24802
24803 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24804
24805 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24806 to use neon_move instead of mov_imm.
24807 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24808 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24809
24810 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24811 aarch64_float_const_zero_rtx_p check before TFmode check.
24812 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24813 an fp zero.
24814 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24815 code and attributes to match. Change condition from register_operand
24816 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24817 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24818 to store2.
24819
24820 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24821
24822 PR debug/66535
24823 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24824 there is no parent.
24825
24826 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24827
24828 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24829 HOST_WIDE_INT parameter.
24830
24831 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24832
24833 PR ipa/66181
24834 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24835 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24836 TYPE_NO_FORCE_BLK.
24837 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24838
24839 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24840
24841 * rtl.h (classify_insn): Declare.
24842 * emit-rtl.c (classify_insn): Move to...
24843 * rtl.c: ...here and add generator support.
24844 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24845 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24846 * genemit.c (gen_emit_seq): New function.
24847 (gen_expand, gen_split): Use it.
24848
24849 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24850
24851 * tree.c (make_vector_stat): Fix comment to state that the
24852 function returns a VECTOR_CST.
24853
24854 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24855
24856 * gensupport.h (add_implicit_parallel): Declare.
24857 * genrecog.c (add_implicit_parallel): Move to...
24858 * gensupport.c (add_implicit_parallel): ...here.
24859 (process_one_cond_exec): Use it.
24860 * genemit.c (gen_insn): Likewise.
24861
24862 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24863
24864 PR bootstrap/66448
24865 * passes.c (rest_of_decl_compilation): Do not register globals for
24866 early debug if they are declared in built-ins.
24867
24868 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24869
24870 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24871
24872 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24873
24874 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24875 manually swapping.
24876 (noce_try_cmove_arith): Likewise.
24877 (noce_get_alt_condition): Likewise.
24878
24879 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24880
24881 * common/config/i386/i386-common.c
24882 (OPTION_MASK_ISA_MWAITX_SET): New.
24883 (ix86_handle_option): Handle mwaitx.
24884 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24885 (x86_64-*-*): Likewise.
24886 * config/i386/mwaitxintrin.h: New header.
24887 * config/i386/cpuid.h (bit_MWAITX): Define.
24888 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24889 MWAITX support.
24890 * config/i386/i386.opt (mwaitx): New.
24891 * config/i386/i386-builtin-types.def
24892 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24893 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24894 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24895 (PTA_MWAITX): New.
24896 (ix86_option_override_internal): Handle new option.
24897 (processor_alias_table): Added PTA_MWAITX.
24898 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24899 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24900 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24901 IX86_BUILTIN_MONITORX built-ins.
24902 * config/i386/i386.h (TARGET_MWAITX): New.
24903 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24904 UNSPEC_MONITORX.
24905 (mwaitx): New pattern.
24906 (monitorx_<mode>): New pattern.
24907 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24908 * doc/extend.texi: Document monitorx and mwaitx builtins.
24909 * doc/invoke.texi: Document -mmwaitx option.
24910
24911 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24912
24913 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24914 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24915
24916 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24917
24918 * dbxout.c (xcoff_debug_hooks): Provide a function for
24919 register_main_translation_unit hook.
24920
24921 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24922
24923 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24924 variants cases from switch.
24925 (rs6000_post_atomic_barrier): Same.
24926 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24927 (rs6000_expand_atomic_exchange): Same.
24928 (rs6000_expand_atomic_op): Same.
24929 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24930 SYNC variants cases from switch.
24931 (atomic_load): Same.
24932 (atomic_store): Same.
24933
24934 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24935
24936 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24937 CONST_INT for goto.
24938
24939 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24940
24941 PR bootstrap/66448
24942 * dwarf2out.c (check_die): Check for common duplicate attributes.
24943 (add_location_or_const_value_attribute): Do not add duplicate
24944 attributes.
24945 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24946 time around.
24947 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24948 (gen_type_die_with_usage): Call check_die.
24949 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24950
24951 2015-06-11 Jason Merrill <jason@redhat.com>
24952
24953 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24954 dies.
24955
24956 2015-06-11 Marek Polacek <polacek@redhat.com>
24957
24958 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24959
24960 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24961
24962 PR bootstrap/66252
24963 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24964 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24965 (*addx_extend_sp32): Fix pasto.
24966 (*subx_extend): Rename into...
24967 (*subx_extend_sp32): ...this.
24968 (*adddi3_extend_sp32): Add earlyclobber.
24969 (*subdi3_insn_sp32): Likewise.
24970 (*subdi3_extend_sp32): Likewise.
24971 (*and_not_di_sp32): Likewise.
24972 (*or_not_di_sp32): Likewise.
24973 (*xor_not_di_sp32): Likewise.
24974 (*negdi2_sp32): Likewise.
24975 (*one_cmpldi2_sp32): Likewise.
24976
24977 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24978
24979 * debug.h (struct gcc_debug_hooks): Add a
24980 register_main_translation_unit hook.
24981 * debug.c (do_nothing_debug_hooks): Provide a function for this
24982 new hook.
24983 * dbxout.c (dbx_debug_hooks): Likewise.
24984 * sdbout.c (sdb_debug_hooks): Likewise.
24985 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24986 * dwarf2out.c (main_translation_unit): New global variable.
24987 (dwarf2out_register_main_translation_unit): New function
24988 implementing the new hook.
24989 (dwarf2_debug_hooks): Assign
24990 dwarf2out_register_main_translation_unit to this new hook.
24991 (dwarf2out_init): Associate any main translation unit to
24992 comp_unit_die ().
24993
24994 2015-06-11 Marek Polacek <polacek@redhat.com>
24995
24996 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24997
24998 2015-06-11 Marek Polacek <polacek@redhat.com>
24999
25000 * match.pd: Use single_use throughout.
25001
25002 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25003
25004 * config/arm/arm.c (arm_option_params_internal): When optimising
25005 for speed set max_insns_skipped when arm_restrict_it.
25006
25007 2015-06-11 Christian Bruel <christian.bruel@st.com>
25008
25009 PR target/52144
25010 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25011 macros in ...
25012 (arm_cpu_builtins): New function.
25013 (arm_pragma_target_parse): Call arm_cpu_builtins.
25014 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25015 (arm_register_target_pragmas): Likewise.
25016 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25017 Call arm_register_target_pragmas.
25018 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25019 (arm_pragma_target_parse): Likewise.
25020
25021 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25022
25023 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25024 of the second operand.
25025
25026 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25027
25028 PR target/66473
25029 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25030 to prepare mask operand for AVX512 modes.
25031
25032 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25033
25034 PR target/66474
25035 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25036 if you use a constraint that targets a VSX register, you must use
25037 %x<n> in the template.
25038
25039 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25040
25041 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25042 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25043 (define_insn "trap"): New definition.
25044
25045 2015-06-10 Richard Biener <rguenther@suse.de>
25046
25047 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25048 out from ...
25049 (vect_supported_load_permutation_p): ... here. Handle
25050 supportable permutations in reductions.
25051 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25052 for vectorizing strided group loads.
25053
25054 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25055
25056 PR target/66470
25057 * config/i386/i386.c (ix86_split_long_move): For collisions
25058 involving direct tls segment refs, move the UNSPEC_TP possibly
25059 wrapped in ZERO_EXTEND out of the address for lea, to each of
25060 the memory loads.
25061
25062 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25063
25064 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25065 dmb sy. Adjust tabs.
25066
25067 2015-06-10 Tom de Vries <tom@codesourcery.com>
25068
25069 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25070
25071 2015-06-10 Martin Liska <mliska@suse.cz>
25072
25073 PR bootstrap/66471
25074 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25075 all enum values in mem_alloc_origin.
25076 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25077 name.
25078 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25079 * bitmap.c (bitmap_register): Likewise.
25080 (dump_bitmap_statistics): Likewise.
25081 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25082 (ggc_record_overhead): Likewise.
25083 * hash-map.h: Likewise.
25084 * hash-set.h: Likewise.
25085 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25086 * hash-table.h: Likewise.
25087 * vec.c (vec_prefix::register_overhead): Likewise.
25088 (vec_prefix::release_overhead): Likewise.
25089 (dump_vec_loc_statistics): Likewise.
25090
25091 2015-06-09 Christian Bruel <christian.bruel@st.com>
25092
25093 PR target/52144
25094 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25095 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25096 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25097 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25098 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25099 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25100 (arm_valid_target_attribute_p): Likewise.
25101 (arm_set_current_function, arm_can_inline_p): Likewise.
25102 (arm_valid_target_attribute_rec): Likewise.
25103 (arm_previous_fndecl): New variable.
25104 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25105 (TARGET_CAN_INLINE_P): Define.
25106 (arm_asm_trampoline_template): Emit mode.
25107 (arm_file_start): Don't set unified syntax.
25108 (arm_declare_function_name): Set unified syntax and mode.
25109 (arm_option_override): Init target_option_default_node.
25110 and target_option_current_node.
25111 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25112 (*call_symbol): Likewise.
25113 * doc/extend.texi: Document ARM/Thumb target attribute.
25114 * doc/invoke.texi: Likewise.
25115
25116 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25117
25118 Revert:
25119 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25120 PR rtl-optimization/64164
25121 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25122 * tree-ssa-copyrename.c: Removed.
25123 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25124 -ftree-coalesce-vars.
25125 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25126 * common.opt (ftree-copyrename): Ignore.
25127 (ftree-coalesce-inlined-vars): Likewise.
25128 * doc/invoke.texi: Remove the ignored options above.
25129 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25130 * tree-ssa-coalesce.h: ... here.
25131 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25132 headers required by it.
25133 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25134 across variables when flag_tree_coalesce_vars. Check register
25135 use and promoted modes to allow coalescing. Moved to
25136 tree-ssa-coalesce.c.
25137 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25138 with its member functions to tree-ssa-coalesce.c.
25139 (var_map_base_init): Likewise. Renamed to
25140 compute_samebase_partition_bases.
25141 (partition_view_normal): Drop want_bases parameter.
25142 (partition_view_bitmap): Likewise.
25143 * tree-ssa-live.h: Adjust declarations.
25144 * tree-ssa-coalesce.c: Include explow.h.
25145 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25146 default defs at the entry point.
25147 (dump_part_var_map): New.
25148 (compute_optimized_partition_bases): New, called by...
25149 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25150 of compute_samebase_partition_bases. Adjust.
25151 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25152 * cfgexpand.c (leader_merge): New.
25153 (get_rtl_for_parm_ssa_default_def): New.
25154 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25155 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25156 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25157 redundant MEM attr setting.
25158 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25159 from...
25160 (expand_one_stack_var): ... this. New wrapper to check and
25161 skip already expanded SSA partitions.
25162 (record_alignment_for_reg_var): New, factored out of...
25163 (expand_one_var): ... this.
25164 (expand_one_ssa_partition): New.
25165 (adjust_one_expanded_partition_var): New.
25166 (expand_one_register_var): Check and skip already expanded SSA
25167 partitions.
25168 (expand_used_vars): Don't create DECLs for anonymous SSA
25169 names. Expand all SSA partitions, then adjust all SSA names.
25170 (pass::execute): Replace the loops that set
25171 SA.partition_to_pseudo from partition leaders and cleared
25172 DECL_RTL for multi-location variables, and that which used to
25173 rename vars and set attrs, with one that clears DECL_RTL and
25174 checks that PARMs and RESULTs default_defs match DECL_RTL.
25175 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25176 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25177 * explow.c (promote_ssa_mode): New.
25178 * explow.h (promote_ssa_mode): Declare.
25179 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25180 * function.c: Include cfgexpand.h.
25181 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25182 (use_register_for_parm_decl): Wrapper for the above to
25183 special-case the result_ptr.
25184 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25185 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25186 multiple locations.
25187 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25188 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25189 (assign_parm_setup_block): Prefer SSA-assigned location.
25190 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25191 if stack_parm is NULL.
25192 (assign_parm_setup_stack): Prefer SSA-assigned location.
25193 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25194 rtl before testing for pointer bounds. Special-case result_ptr.
25195 (expand_function_start): Maybe reset DECL_RTL of result.
25196 Prefer SSA-assigned location for result and static chain.
25197 Factor out DECL_RESULT and SET_DECL_RTL.
25198 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25199 anonymous SSA names. Use promote_ssa_mode.
25200 (get_temp_reg): Likewise.
25201 (remove_ssa_form): Adjust.
25202 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25203 and get its reg_usage for reg invalidation.
25204 (compute_bb_dataflow): Pass it insn.
25205 (emit_notes_in_bb): Likewise.
25206 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25207 fail assert on conversion between unsigned types.
25208
25209 2015-06-09 Tom de Vries <tom@codesourcery.com>
25210
25211 PR tree-optimization/65460
25212 * omp-low.c (expand_omp_target): Set parallelized_function on
25213 cgraph_node for child_fn.
25214
25215 2015-06-09 Tom de Vries <tom@codesourcery.com>
25216
25217 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25218 parallelized_function before add_new_function.
25219
25220 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25221
25222 * gcc-plugin.h: Move decls to plugin.h and include it.
25223 * plugin.h: Relocate decls from gcc-plugin.h
25224 * ggc-page.c: Include required header files.
25225 * passes.c: Likewise.
25226 * cgraphunit.c: Likewise.
25227
25228 2015-06-09 Tom de Vries <tom@codesourcery.com>
25229
25230 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25231
25232 2015-06-09 Jason Merrill <jason@redhat.com>
25233
25234 PR bootstrap/66448
25235 * toplev.c (check_global_declaration): Don't warn about a clone.
25236
25237 2015-06-09 Marek Polacek <polacek@redhat.com>
25238
25239 PR tree-optimization/66299
25240 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25241 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25242 patterns.
25243
25244 2015-06-09 Richard Biener <rguenther@suse.de>
25245
25246 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25247 (vect_analyze_slp_instance): Instead do not falsely drop
25248 load permutations.
25249
25250 2015-06-09 Richard Biener <rguenther@suse.de>
25251
25252 PR middle-end/66423
25253 * match.pd: Handle A % (unsigned)(1 << B).
25254
25255 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25256
25257 * varasm.c (output_object_block_htab): Remove.
25258 (output_object_block_compare): New.
25259 (output_object_blocks): Sort named object_blocks before outputting
25260 them.
25261
25262 2015-06-09 Richard Biener <rguenther@suse.de>
25263
25264 PR tree-optimization/66419
25265 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25266 consider GROUP_GAP when detecting a perfect subchain.
25267
25268 2015-06-09 Nick Clifton <nickc@redhat.com>
25269
25270 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25271 place read only data in the .frodata section.
25272
25273 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25274
25275 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25276 (atomic_store<mode>): Likewise.
25277
25278 2015-06-09 Richard Biener <rguenther@suse.de>
25279
25280 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25281
25282 2015-06-09 Richard Biener <rguenther@suse.de>
25283
25284 PR middle-end/66413
25285 * tree-inline.c (insert_init_debug_bind): Unshare value.
25286
25287 2015-06-09 Richard Biener <rguenther@suse.de>
25288
25289 PR tree-optimization/66396
25290 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25291 Rename virtual operands.
25292
25293 2015-06-09 Tom de Vries <tom@codesourcery.com>
25294
25295 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25296 always return false.
25297
25298 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25299
25300 PR rtl-optimization/64164
25301 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25302 * tree-ssa-copyrename.c: Removed.
25303 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25304 -ftree-coalesce-vars.
25305 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25306 * common.opt (ftree-copyrename): Ignore.
25307 (ftree-coalesce-inlined-vars): Likewise.
25308 * doc/invoke.texi: Remove the ignored options above.
25309 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25310 * tree-ssa-coalesce.h: ... here.
25311 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25312 headers required by it.
25313 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25314 across variables when flag_tree_coalesce_vars. Check register
25315 use and promoted modes to allow coalescing. Moved to
25316 tree-ssa-coalesce.c.
25317 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25318 with its member functions to tree-ssa-coalesce.c.
25319 (var_map_base_init): Likewise. Renamed to
25320 compute_samebase_partition_bases.
25321 (partition_view_normal): Drop want_bases parameter.
25322 (partition_view_bitmap): Likewise.
25323 * tree-ssa-live.h: Adjust declarations.
25324 * tree-ssa-coalesce.c: Include explow.h.
25325 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25326 default defs at the entry point.
25327 (dump_part_var_map): New.
25328 (compute_optimized_partition_bases): New, called by...
25329 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25330 of compute_samebase_partition_bases. Adjust.
25331 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25332 * cfgexpand.c (leader_merge): New.
25333 (get_rtl_for_parm_ssa_default_def): New.
25334 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25335 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25336 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25337 redundant MEM attr setting.
25338 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25339 from...
25340 (expand_one_stack_var): ... this. New wrapper to check and
25341 skip already expanded SSA partitions.
25342 (record_alignment_for_reg_var): New, factored out of...
25343 (expand_one_var): ... this.
25344 (expand_one_ssa_partition): New.
25345 (adjust_one_expanded_partition_var): New.
25346 (expand_one_register_var): Check and skip already expanded SSA
25347 partitions.
25348 (expand_used_vars): Don't create DECLs for anonymous SSA
25349 names. Expand all SSA partitions, then adjust all SSA names.
25350 (pass::execute): Replace the loops that set
25351 SA.partition_to_pseudo from partition leaders and cleared
25352 DECL_RTL for multi-location variables, and that which used to
25353 rename vars and set attrs, with one that clears DECL_RTL and
25354 checks that PARMs and RESULTs default_defs match DECL_RTL.
25355 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25356 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25357 * explow.c (promote_ssa_mode): New.
25358 * explow.h (promote_ssa_mode): Declare.
25359 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25360 * function.c: Include cfgexpand.h.
25361 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25362 (use_register_for_parm_decl): Wrapper for the above to
25363 special-case the result_ptr.
25364 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25365 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25366 multiple locations.
25367 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25368 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25369 (assign_parm_setup_block): Prefer SSA-assigned location.
25370 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25371 if stack_parm is NULL.
25372 (assign_parm_setup_stack): Prefer SSA-assigned location.
25373 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25374 rtl before testing for pointer bounds. Special-case result_ptr.
25375 (expand_function_start): Maybe reset DECL_RTL of result.
25376 Prefer SSA-assigned location for result and static chain.
25377 Factor out DECL_RESULT and SET_DECL_RTL.
25378 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25379 anonymous SSA names. Use promote_ssa_mode.
25380 (get_temp_reg): Likewise.
25381 (remove_ssa_form): Adjust.
25382 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25383 and get its reg_usage for reg invalidation.
25384 (compute_bb_dataflow): Pass it insn.
25385 (emit_notes_in_bb): Likewise.
25386 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25387 fail assert on conversion between unsigned types.
25388
25389 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25390
25391 PR debug/58315
25392 * tree-inline.c (reset_debug_binding): New.
25393 (reset_debug_bindings): Likewise.
25394 (expand_call_inline): Call it.
25395
25396 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25397
25398 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25399 TYPE_STRING_FLAG.
25400
25401 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25402
25403 * lto-streamer-out.c (lto_output_location): Stream
25404 reserved locations correctly.
25405 * lto-streamer-in.c (lto_output_location): Likewise.
25406
25407 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
25408
25409 * coretypes.h: Include hash-table.h and hash-set.h for host files.
25410 * ggc.h: Don't include statistics.h>
25411 * hash-map.h: Remove all includes.
25412 * hash-set.h: Likewise.
25413 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25414 the include list. Remove <new>.
25415 * inchash.h: Remove all includes.
25416 * mem-stats.h: Likewise.
25417 * vec.h: No special processing for generators or ggc.
25418 * alias.c : Adjust include files.
25419 * alloc-pool.c : Likewise.
25420 * alloc-pool.h : Likewise.
25421 * asan.c : Likewise.
25422 * attribs.c : Likewise.
25423 * auto-inc-dec.c : Likewise.
25424 * auto-profile.c : Likewise.
25425 * bb-reorder.c : Likewise.
25426 * bitmap.c : Likewise.
25427 * bitmap.h : Likewise.
25428 * bt-load.c : Likewise.
25429 * builtins.c : Likewise.
25430 * caller-save.c : Likewise.
25431 * calls.c : Likewise.
25432 * ccmp.c : Likewise.
25433 * cfg.c : Likewise.
25434 * cfganal.c : Likewise.
25435 * cfgbuild.c : Likewise.
25436 * cfgcleanup.c : Likewise.
25437 * cfgexpand.c : Likewise.
25438 * cfghooks.c : Likewise.
25439 * cfgloop.c : Likewise.
25440 * cfgloop.h : Likewise.
25441 * cfgloopanal.c : Likewise.
25442 * cfgloopmanip.c : Likewise.
25443 * cfgrtl.c : Likewise.
25444 * cgraph.c : Likewise.
25445 * cgraphbuild.c : Likewise.
25446 * cgraphclones.c : Likewise.
25447 * cgraphunit.c : Likewise.
25448 * cilk-common.c : Likewise.
25449 * combine-stack-adj.c : Likewise.
25450 * combine.c : Likewise.
25451 * compare-elim.c : Likewise.
25452 * context.c : Likewise.
25453 * convert.c : Likewise.
25454 * coverage.c : Likewise.
25455 * cppbuiltin.c : Likewise.
25456 * cprop.c : Likewise.
25457 * cse.c : Likewise.
25458 * cselib.c : Likewise.
25459 * data-streamer-in.c : Likewise.
25460 * data-streamer-out.c : Likewise.
25461 * data-streamer.c : Likewise.
25462 * data-streamer.h : Likewise.
25463 * dbxout.c : Likewise.
25464 * dce.c : Likewise.
25465 * ddg.c : Likewise.
25466 * debug.c : Likewise.
25467 * df-core.c : Likewise.
25468 * df-problems.c : Likewise.
25469 * df-scan.c : Likewise.
25470 * df.h : Likewise.
25471 * dfp.c : Likewise.
25472 * dojump.c : Likewise.
25473 * dominance.c : Likewise.
25474 * domwalk.c : Likewise.
25475 * double-int.c : Likewise.
25476 * dse.c : Likewise.
25477 * dumpfile.c : Likewise.
25478 * dwarf2asm.c : Likewise.
25479 * dwarf2cfi.c : Likewise.
25480 * dwarf2out.c : Likewise.
25481 * emit-rtl.c : Likewise.
25482 * et-forest.c : Likewise.
25483 * except.c : Likewise.
25484 * except.h : Likewise.
25485 * explow.c : Likewise.
25486 * expmed.c : Likewise.
25487 * expr.c : Likewise.
25488 * final.c : Likewise.
25489 * fixed-value.c : Likewise.
25490 * fold-const.c : Likewise.
25491 * function.c : Likewise.
25492 * fwprop.c : Likewise.
25493 * gcc-plugin.h : Likewise.
25494 * gcc.c : Likewise.
25495 * gcse-common.c : Likewise.
25496 * gcse.c : Likewise.
25497 * genattrtab.c : Likewise.
25498 * genautomata.c : Likewise.
25499 * genconditions.c : Likewise.
25500 * genemit.c : Likewise.
25501 * generic-match-head.c : Likewise.
25502 * genextract.c : Likewise.
25503 * gengtype-state.c : Likewise.
25504 * gengtype.c : Likewise.
25505 * genhooks.c : Likewise.
25506 * genmatch.c : Likewise.
25507 * genmodes.c : Likewise.
25508 * genrecog.c : Likewise.
25509 * gensupport.c : Likewise.
25510 * ggc-common.c : Likewise.
25511 * ggc-internal.h : Likewise.
25512 * ggc-none.c : Likewise.
25513 * ggc-page.c : Likewise.
25514 * gimple-builder.c : Likewise.
25515 * gimple-expr.c : Likewise.
25516 * gimple-fold.c : Likewise.
25517 * gimple-iterator.c : Likewise.
25518 * gimple-low.c : Likewise.
25519 * gimple-match-head.c : Likewise.
25520 * gimple-pretty-print.c : Likewise.
25521 * gimple-ssa-isolate-paths.c : Likewise.
25522 * gimple-ssa-strength-reduction.c : Likewise.
25523 * gimple-ssa.h : Likewise.
25524 * gimple-streamer-in.c : Likewise.
25525 * gimple-streamer-out.c : Likewise.
25526 * gimple-streamer.h : Likewise.
25527 * gimple-walk.c : Likewise.
25528 * gimple.c : Likewise.
25529 * gimplify-me.c : Likewise.
25530 * gimplify.c : Likewise.
25531 * godump.c : Likewise.
25532 * graph.c : Likewise.
25533 * graphds.c : Likewise.
25534 * graphite-blocking.c : Likewise.
25535 * graphite-dependences.c : Likewise.
25536 * graphite-interchange.c : Likewise.
25537 * graphite-isl-ast-to-gimple.c : Likewise.
25538 * graphite-optimize-isl.c : Likewise.
25539 * graphite-poly.c : Likewise.
25540 * graphite-scop-detection.c : Likewise.
25541 * graphite-sese-to-poly.c : Likewise.
25542 * graphite.c : Likewise.
25543 * haifa-sched.c : Likewise.
25544 * hard-reg-set.h : Likewise.
25545 * hw-doloop.c : Likewise.
25546 * ifcvt.c : Likewise.
25547 * inchash.c : Likewise.
25548 * incpath.c : Likewise.
25549 * init-regs.c : Likewise.
25550 * input.c : Likewise.
25551 * internal-fn.c : Likewise.
25552 * ipa-chkp.c : Likewise.
25553 * ipa-comdats.c : Likewise.
25554 * ipa-cp.c : Likewise.
25555 * ipa-devirt.c : Likewise.
25556 * ipa-icf-gimple.c : Likewise.
25557 * ipa-icf.c : Likewise.
25558 * ipa-inline-analysis.c : Likewise.
25559 * ipa-inline-transform.c : Likewise.
25560 * ipa-inline.c : Likewise.
25561 * ipa-polymorphic-call.c : Likewise.
25562 * ipa-profile.c : Likewise.
25563 * ipa-prop.c : Likewise.
25564 * ipa-pure-const.c : Likewise.
25565 * ipa-ref.c : Likewise.
25566 * ipa-reference.c : Likewise.
25567 * ipa-split.c : Likewise.
25568 * ipa-utils.c : Likewise.
25569 * ipa-visibility.c : Likewise.
25570 * ipa.c : Likewise.
25571 * ira-build.c : Likewise.
25572 * ira-color.c : Likewise.
25573 * ira-conflicts.c : Likewise.
25574 * ira-costs.c : Likewise.
25575 * ira-emit.c : Likewise.
25576 * ira-lives.c : Likewise.
25577 * ira.c : Likewise.
25578 * jump.c : Likewise.
25579 * langhooks.c : Likewise.
25580 * lcm.c : Likewise.
25581 * libfuncs.h : Likewise.
25582 * lists.c : Likewise.
25583 * loop-doloop.c : Likewise.
25584 * loop-init.c : Likewise.
25585 * loop-invariant.c : Likewise.
25586 * loop-iv.c : Likewise.
25587 * loop-unroll.c : Likewise.
25588 * lower-subreg.c : Likewise.
25589 * lra-assigns.c : Likewise.
25590 * lra-coalesce.c : Likewise.
25591 * lra-constraints.c : Likewise.
25592 * lra-eliminations.c : Likewise.
25593 * lra-lives.c : Likewise.
25594 * lra-remat.c : Likewise.
25595 * lra-spills.c : Likewise.
25596 * lra.c : Likewise.
25597 * lto-cgraph.c : Likewise.
25598 * lto-compress.c : Likewise.
25599 * lto-opts.c : Likewise.
25600 * lto-section-in.c : Likewise.
25601 * lto-section-out.c : Likewise.
25602 * lto-streamer-in.c : Likewise.
25603 * lto-streamer-out.c : Likewise.
25604 * lto-streamer.c : Likewise.
25605 * lto-streamer.h : Likewise.
25606 * mcf.c : Likewise.
25607 * mode-switching.c : Likewise.
25608 * modulo-sched.c : Likewise.
25609 * omega.c : Likewise.
25610 * omp-low.c : Likewise.
25611 * optabs.c : Likewise.
25612 * opts-global.c : Likewise.
25613 * opts.h : Likewise.
25614 * passes.c : Likewise.
25615 * plugin.c : Likewise.
25616 * postreload-gcse.c : Likewise.
25617 * postreload.c : Likewise.
25618 * predict.c : Likewise.
25619 * print-rtl.c : Likewise.
25620 * print-tree.c : Likewise.
25621 * profile.c : Likewise.
25622 * read-md.c : Likewise.
25623 * read-md.h : Likewise.
25624 * read-rtl.c : Likewise.
25625 * real.c : Likewise.
25626 * realmpfr.c : Likewise.
25627 * recog.c : Likewise.
25628 * ree.c : Likewise.
25629 * reg-stack.c : Likewise.
25630 * regcprop.c : Likewise.
25631 * reginfo.c : Likewise.
25632 * regrename.c : Likewise.
25633 * regstat.c : Likewise.
25634 * reload.c : Likewise.
25635 * reload1.c : Likewise.
25636 * reorg.c : Likewise.
25637 * resource.c : Likewise.
25638 * rtl-chkp.c : Likewise.
25639 * rtl.c : Likewise.
25640 * rtl.h : Likewise.
25641 * rtlanal.c : Likewise.
25642 * rtlhash.c : Likewise.
25643 * rtlhash.h : Likewise.
25644 * rtlhooks.c : Likewise.
25645 * sanopt.c : Likewise.
25646 * sched-deps.c : Likewise.
25647 * sched-ebb.c : Likewise.
25648 * sched-rgn.c : Likewise.
25649 * sched-vis.c : Likewise.
25650 * sdbout.c : Likewise.
25651 * sel-sched-dump.c : Likewise.
25652 * sel-sched-ir.c : Likewise.
25653 * sel-sched-ir.h : Likewise.
25654 * sel-sched.c : Likewise.
25655 * sese.c : Likewise.
25656 * shrink-wrap.c : Likewise.
25657 * shrink-wrap.h : Likewise.
25658 * simplify-rtx.c : Likewise.
25659 * stack-ptr-mod.c : Likewise.
25660 * statistics.c : Likewise.
25661 * stmt.c : Likewise.
25662 * stor-layout.c : Likewise.
25663 * store-motion.c : Likewise.
25664 * stringpool.c : Likewise.
25665 * symtab.c : Likewise.
25666 * target-globals.c : Likewise.
25667 * targhooks.c : Likewise.
25668 * tlink.c : Likewise.
25669 * toplev.c : Likewise.
25670 * tracer.c : Likewise.
25671 * trans-mem.c : Likewise.
25672 * tree-affine.c : Likewise.
25673 * tree-affine.h : Likewise.
25674 * tree-browser.c : Likewise.
25675 * tree-call-cdce.c : Likewise.
25676 * tree-cfg.c : Likewise.
25677 * tree-cfgcleanup.c : Likewise.
25678 * tree-chkp-opt.c : Likewise.
25679 * tree-chkp.c : Likewise.
25680 * tree-chrec.c : Likewise.
25681 * tree-complex.c : Likewise.
25682 * tree-data-ref.c : Likewise.
25683 * tree-dfa.c : Likewise.
25684 * tree-diagnostic.c : Likewise.
25685 * tree-dump.c : Likewise.
25686 * tree-eh.c : Likewise.
25687 * tree-eh.h : Likewise.
25688 * tree-emutls.c : Likewise.
25689 * tree-hasher.h : Likewise.
25690 * tree-if-conv.c : Likewise.
25691 * tree-inline.c : Likewise.
25692 * tree-inline.h : Likewise.
25693 * tree-into-ssa.c : Likewise.
25694 * tree-iterator.c : Likewise.
25695 * tree-loop-distribution.c : Likewise.
25696 * tree-nested.c : Likewise.
25697 * tree-nrv.c : Likewise.
25698 * tree-object-size.c : Likewise.
25699 * tree-outof-ssa.c : Likewise.
25700 * tree-parloops.c : Likewise.
25701 * tree-phinodes.c : Likewise.
25702 * tree-predcom.c : Likewise.
25703 * tree-pretty-print.c : Likewise.
25704 * tree-profile.c : Likewise.
25705 * tree-scalar-evolution.c : Likewise.
25706 * tree-sra.c : Likewise.
25707 * tree-ssa-address.c : Likewise.
25708 * tree-ssa-alias.c : Likewise.
25709 * tree-ssa-ccp.c : Likewise.
25710 * tree-ssa-coalesce.c : Likewise.
25711 * tree-ssa-copy.c : Likewise.
25712 * tree-ssa-copyrename.c : Likewise.
25713 * tree-ssa-dce.c : Likewise.
25714 * tree-ssa-dom.c : Likewise.
25715 * tree-ssa-dse.c : Likewise.
25716 * tree-ssa-forwprop.c : Likewise.
25717 * tree-ssa-ifcombine.c : Likewise.
25718 * tree-ssa-live.c : Likewise.
25719 * tree-ssa-loop-ch.c : Likewise.
25720 * tree-ssa-loop-im.c : Likewise.
25721 * tree-ssa-loop-ivcanon.c : Likewise.
25722 * tree-ssa-loop-ivopts.c : Likewise.
25723 * tree-ssa-loop-manip.c : Likewise.
25724 * tree-ssa-loop-niter.c : Likewise.
25725 * tree-ssa-loop-prefetch.c : Likewise.
25726 * tree-ssa-loop-unswitch.c : Likewise.
25727 * tree-ssa-loop.c : Likewise.
25728 * tree-ssa-math-opts.c : Likewise.
25729 * tree-ssa-operands.c : Likewise.
25730 * tree-ssa-phiopt.c : Likewise.
25731 * tree-ssa-phiprop.c : Likewise.
25732 * tree-ssa-pre.c : Likewise.
25733 * tree-ssa-propagate.c : Likewise.
25734 * tree-ssa-reassoc.c : Likewise.
25735 * tree-ssa-sccvn.c : Likewise.
25736 * tree-ssa-scopedtables.c : Likewise.
25737 * tree-ssa-sink.c : Likewise.
25738 * tree-ssa-strlen.c : Likewise.
25739 * tree-ssa-structalias.c : Likewise.
25740 * tree-ssa-tail-merge.c : Likewise.
25741 * tree-ssa-ter.c : Likewise.
25742 * tree-ssa-threadedge.c : Likewise.
25743 * tree-ssa-threadupdate.c : Likewise.
25744 * tree-ssa-uncprop.c : Likewise.
25745 * tree-ssa-uninit.c : Likewise.
25746 * tree-ssa.c : Likewise.
25747 * tree-ssanames.c : Likewise.
25748 * tree-stdarg.c : Likewise.
25749 * tree-streamer-in.c : Likewise.
25750 * tree-streamer-out.c : Likewise.
25751 * tree-streamer.c : Likewise.
25752 * tree-streamer.h : Likewise.
25753 * tree-switch-conversion.c : Likewise.
25754 * tree-tailcall.c : Likewise.
25755 * tree-vect-data-refs.c : Likewise.
25756 * tree-vect-generic.c : Likewise.
25757 * tree-vect-loop-manip.c : Likewise.
25758 * tree-vect-loop.c : Likewise.
25759 * tree-vect-patterns.c : Likewise.
25760 * tree-vect-slp.c : Likewise.
25761 * tree-vect-stmts.c : Likewise.
25762 * tree-vectorizer.c : Likewise.
25763 * tree-vectorizer.h : Likewise.
25764 * tree-vrp.c : Likewise.
25765 * tree.c : Likewise.
25766 * tsan.c : Likewise.
25767 * ubsan.c : Likewise.
25768 * valtrack.c : Likewise.
25769 * valtrack.h : Likewise.
25770 * value-prof.c : Likewise.
25771 * var-tracking.c : Likewise.
25772 * varasm.c : Likewise.
25773 * varpool.c : Likewise.
25774 * vec.c: Likewise.
25775 * vmsdbgout.c : Likewise.
25776 * vtable-verify.c : Likewise.
25777 * vtable-verify.h : Likewise.
25778 * web.c : Likewise.
25779 * wide-int.cc : Likewise.
25780 * xcoffout.c : Likewise.
25781 * config/aarch64/aarch64-builtins.c : Likewise.
25782 * config/aarch64/aarch64.c : Likewise.
25783 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25784 * config/alpha/alpha.c : Likewise.
25785 * config/arc/arc.c : Likewise.
25786 * config/arm/aarch-common.c : Likewise.
25787 * config/arm/arm-builtins.c : Likewise.
25788 * config/arm/arm-c.c : Likewise.
25789 * config/arm/arm.c : Likewise.
25790 * config/avr/avr-c.c : Likewise.
25791 * config/avr/avr-log.c : Likewise.
25792 * config/avr/avr.c : Likewise.
25793 * config/bfin/bfin.c : Likewise.
25794 * config/c6x/c6x.c : Likewise.
25795 * config/cr16/cr16.c : Likewise.
25796 * config/cris/cris.c : Likewise.
25797 * config/darwin-c.c : Likewise.
25798 * config/darwin.c : Likewise.
25799 * config/default-c.c : Likewise.
25800 * config/epiphany/epiphany.c : Likewise.
25801 * config/epiphany/mode-switch-use.c : Likewise.
25802 * config/epiphany/resolve-sw-modes.c : Likewise.
25803 * config/fr30/fr30.c : Likewise.
25804 * config/frv/frv.c : Likewise.
25805 * config/ft32/ft32.c : Likewise.
25806 * config/glibc-c.c : Likewise.
25807 * config/h8300/h8300.c : Likewise.
25808 * config/i386/i386-c.c : Likewise.
25809 * config/i386/i386.c : Likewise.
25810 * config/i386/msformat-c.c : Likewise.
25811 * config/i386/winnt-cxx.c : Likewise.
25812 * config/i386/winnt-stubs.c : Likewise.
25813 * config/i386/winnt.c : Likewise.
25814 * config/ia64/ia64-c.c : Likewise.
25815 * config/ia64/ia64.c : Likewise.
25816 * config/iq2000/iq2000.c : Likewise.
25817 * config/lm32/lm32.c : Likewise.
25818 * config/m32c/m32c-pragma.c : Likewise.
25819 * config/m32c/m32c.c : Likewise.
25820 * config/m32r/m32r.c : Likewise.
25821 * config/m68k/m68k.c : Likewise.
25822 * config/mcore/mcore.c : Likewise.
25823 * config/mep/mep-pragma.c : Likewise.
25824 * config/mep/mep.c : Likewise.
25825 * config/microblaze/microblaze-c.c : Likewise.
25826 * config/microblaze/microblaze.c : Likewise.
25827 * config/mips/mips.c : Likewise.
25828 * config/mmix/mmix.c : Likewise.
25829 * config/mn10300/mn10300.c : Likewise.
25830 * config/moxie/moxie.c : Likewise.
25831 * config/msp430/msp430-c.c : Likewise.
25832 * config/msp430/msp430.c : Likewise.
25833 * config/nds32/nds32-cost.c : Likewise.
25834 * config/nds32/nds32-fp-as-gp.c : Likewise.
25835 * config/nds32/nds32-intrinsic.c : Likewise.
25836 * config/nds32/nds32-isr.c : Likewise.
25837 * config/nds32/nds32-md-auxiliary.c : Likewise.
25838 * config/nds32/nds32-memory-manipulation.c : Likewise.
25839 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25840 * config/nds32/nds32-predicates.c : Likewise.
25841 * config/nds32/nds32.c : Likewise.
25842 * config/nios2/nios2.c : Likewise.
25843 * config/nvptx/nvptx.c : Likewise.
25844 * config/pa/pa.c : Likewise.
25845 * config/pdp11/pdp11.c : Likewise.
25846 * config/rl78/rl78-c.c : Likewise.
25847 * config/rl78/rl78.c : Likewise.
25848 * config/rs6000/rs6000-c.c : Likewise.
25849 * config/rs6000/rs6000.c : Likewise.
25850 * config/rx/rx.c : Likewise.
25851 * config/s390/s390-c.c : Likewise.
25852 * config/s390/s390.c : Likewise.
25853 * config/sh/sh-c.c : Likewise.
25854 * config/sh/sh-mem.cc : Likewise.
25855 * config/sh/sh.c : Likewise.
25856 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25857 * config/sh/sh_treg_combine.cc : Likewise.
25858 * config/sol2-c.c : Likewise.
25859 * config/sol2-cxx.c : Likewise.
25860 * config/sol2-stubs.c : Likewise.
25861 * config/sol2.c : Likewise.
25862 * config/sparc/sparc-c.c : Likewise.
25863 * config/sparc/sparc.c : Likewise.
25864 * config/spu/spu-c.c : Likewise.
25865 * config/spu/spu.c : Likewise.
25866 * config/stormy16/stormy16.c : Likewise.
25867 * config/tilegx/mul-tables.c : Likewise.
25868 * config/tilegx/tilegx-c.c : Likewise.
25869 * config/tilegx/tilegx.c : Likewise.
25870 * config/tilepro/mul-tables.c : Likewise.
25871 * config/tilepro/tilepro-c.c : Likewise.
25872 * config/tilepro/tilepro.c : Likewise.
25873 * config/v850/v850-c.c : Likewise.
25874 * config/v850/v850.c : Likewise.
25875 * config/vax/vax.c : Likewise.
25876 * config/visium/visium.c : Likewise.
25877 * config/vms/vms-c.c : Likewise.
25878 * config/vms/vms.c : Likewise.
25879 * config/vxworks.c : Likewise.
25880 * config/winnt-c.c : Likewise.
25881 * config/xtensa/xtensa.c : Likewise.
25882
25883 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25884
25885 PR lto/65378
25886 * ipa-utils.h (warn_types_mismatch): Update prototype.
25887 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25888 parameters.
25889 (type_mismatch_p): New function.
25890 (warn_types_mismatch): Reorg to work better on non-C++ types.
25891 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25892 (add_type_duplicate): Update.
25893
25894 2015-06-08 Tom de Vries <tom@codesourcery.com>
25895
25896 PR rtl-optimization/66444
25897 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25898 call_used_regs.
25899
25900 2015-06-08 Richard Biener <rguenther@suse.de>
25901
25902 PR tree-optimization/66422
25903 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25904 block after inserted gcc_unreachable.
25905
25906 2015-06-08 Nick Clifton <nickc@redhat.com>
25907
25908 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25909 (rx_promote_function_mode): Likewise.
25910 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25911
25912 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25913
25914 * genattrtab.c (insn_alternatives): Change type from int *
25915 to uint64_t *.
25916 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25917 (get_attr_value): Change type of num_alt to uint64_t.
25918 (compute_alternative_mask): Change return type from
25919 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25920 (make_alternative_compare, mk_attr_alt): Change argument type
25921 from int to uint64_t.
25922 (simplify_test_exp): Change type of i from int to uint64_t.
25923 Shift ((uint64_t) 1) instead of 1 up.
25924 (main): Adjust oballocvec first argument from int to uint64_t.
25925 Shift ((uint64_t) 1) instead of 1 up.
25926
25927 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25928
25929 PR other/65366
25930 * gdbhooks.py: Import sys.
25931 (intptr): New function. Replace int(...) by intptr(...).
25932
25933 2015-06-08 Richard Biener <rguenther@suse.de>
25934
25935 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25936 adjustment for gaps at the end of a SLP load group properly.
25937 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25938 all permutations we can generate.
25939 (vect_transform_slp_perm_load): Use the correct group-size.
25940
25941 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25942
25943 * genmatch.c (expr::gen_transform): For conditions, guess the type
25944 from the second operand.
25945
25946 2015-06-08 Tom de Vries <tom@codesourcery.com>
25947
25948 PR tree-optimization/66442
25949 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25950 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25951 if the loop latch is not a singleton. Use
25952 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25953
25954 2015-06-08 Marek Polacek <polacek@redhat.com>
25955
25956 PR sanitizer/66452
25957 * toplev.c (check_global_declaration): Don't warn about artificial
25958 decls.
25959
25960 2015-06-08 Tom de Vries <tom@codesourcery.com>
25961
25962 PR tree-optimization/66436
25963 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25964 dump file.
25965 * gimplify.c: Add tree-dump.h include.
25966 (gimplify_function_tree): Dump function to gimple dump file.
25967 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25968 dump file.
25969
25970 2015-06-08 Tom de Vries <tom@codesourcery.com>
25971
25972 PR tree-optimization/66435
25973 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25974 function.
25975
25976 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25977
25978 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25979 of ptr_type_node to not be ptr_to_node.
25980 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25981 TREE_TYPE of pointers.
25982 * gimple-expr.c (useless_type_conversion): Reorder the check for
25983 function pointers and TYPE_CANONICAL.
25984
25985 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25986
25987 PR bootstrap/66319
25988 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25989 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25990 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25991 later.
25992 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25993 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25994 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25995 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25996 and non iso if unix2003.
25997
25998 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25999
26000 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26001
26002 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26003
26004 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26005 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26006 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26007 except.c, final.c, function.c, gcse-common.c, genemit.c,
26008 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26009 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26010 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26011 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26012 more derived ones.
26013
26014 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26015
26016 * combine.c (combine_split_insns): Remove cast.
26017 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26018 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26019 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26020 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26021 * genemit.c (gen_split): Change return type of generated functions to
26022 rtx_insn.
26023 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26024 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26025 gen_peephole2_* functions.
26026 (print_subroutine, main): Likewise.
26027 * recog.c (peephole2_optimize): Remove cast.
26028 (peep2_next_insn): Promote return type to rtx_insn.
26029 * recog.h (peep2_next_insn): Fix prototype.
26030 * rtl.h (try_split, split_insns): Likewise.
26031
26032 2015-06-06 DJ Delorie <dj@redhat.com>
26033
26034 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26035 and subtraction too.
26036
26037 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26038
26039 PR target/66410
26040 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26041 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26042 instead of Snd. Disparage Sid/z alternative with '^'.
26043
26044 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26045
26046 * dwarf2out.c: Remove deferred_locations*.
26047 (dwarf2_debug_hooks): Add early_finish hook.
26048 Remove global_decl hook.
26049 Add early_global_decl and late_global_decl hook.
26050 New global early_dwarf.
26051 New structure set_early_dwarf.
26052 (output_die): Indicate whether a DIE was generated early
26053 when generating assembly with -dA.
26054 (struct limbo_die_struct): Document created_for field.
26055 Remove file_table_last_lookup.
26056 (remove_AT): Return TRUE if successful.
26057 (remove_child_TAG): Clear die_parent.
26058 (reparent_child): New function abstracted from...
26059 (splice_child_die): ...here.
26060 (new_die): ICE if a DIE ends up in limbo too late.
26061 (check_die): New.
26062 (defer_location): Remove.
26063 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26064 (fill_variable_array_bounds): New.
26065 (decl_start_label): Call fill_variable_array_bounds.
26066 (gen_formal_parameter_die): Rewrite to reuse previously generated
26067 DIEs.
26068 (gen_subprogram_die): Same.
26069 (gen_variable_die): Same.
26070 (gen_const_die): Same.
26071 (gen_label_die): Same.
26072 (gen_lexical_block_die): Same.
26073 (decl_will_get_specification_p): New.
26074 (local_function_static): New.
26075 (gen_struct_or_union_type_die): Fill in variable-length fields.
26076 (gen_typedef_die): Fill in variable-length typedefs.
26077 (gen_tagged_type_die): Gracefully return on error_mark_node.
26078 Handle re-entrancy.
26079 (gen_type_die_with_usage): Handle variable-length types.
26080 Remove duplicate code for ARRAY_TYPE case.
26081 (process_scope_var): Only process imported modules during early
26082 dwarf.
26083 (dwarf2out_early_global_decl): New.
26084 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26085 (dwarf2out_type_decl): Set early_dwarf while calling
26086 dwarf2out_decl.
26087 (dwarf2out_decl): Verify that we did not recreate a previously
26088 generated DIE.
26089 Do not return on DECL_EXTERNALs in VAR_DECLs.
26090 Abstract some code to local_function_static.
26091 (lookup_filename): Remove use of file_table_last_lookup.
26092 Gracefully exit on missing file_name.
26093 (dwarf2out_finish): Verify limbo list.
26094 Remove deferred_locations_list use.
26095 Move deferred_asm_name and limbo flushing to...
26096 (dwarf2out_early_finish): ...here. New.
26097 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26098 deferred_asm_name, and file_table_last_lookup.
26099 * cgraph.h (referred_to_p): Add default argument.
26100 * cgraphunit.c (referred_to_p): Add and handle include_self
26101 argument.
26102 (analyze_functions): Add first_time argument.
26103 Call check_global_declaration for all symbols.
26104 Call late_global_decl for nodes for moribund nodes.
26105 (finalize_compilation_unit): Add new argument to
26106 analyze_functions.
26107 Call early_global_decl for functions.
26108 Call early_finish debug hook.
26109 * dbxout.c (dbxout_early_global_decl): New.
26110 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26111 (dbx_debug_hooks): Add new hooks.
26112 (xcoff_debug_hooks): Same.
26113 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26114 Add early and late debug hooks.
26115 Remove global_decl hook.
26116 * debug.h (struct gcc_debug_hooks): Add early_finish,
26117 early_global_decl, and late_global_decl fields.
26118 Remove global_decl field.
26119 Document gcc_debug_hooks.
26120 * gengtype.c (output_typename): Remove.
26121 * godump.c (go_early_global_decl): New.
26122 (go_late_global_decl): New.
26123 (go_global_decl): Remove.
26124 (dump_go_spec_init): Remove global_decl. Add
26125 {early,late}_global_decl.
26126 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26127 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26128 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26129 (write_global_declarations): Remove.
26130 (global_decl_processing): New.
26131 * langhooks.h (struct lang_hooks_for_decls): Remove
26132 final_write_globals field.
26133 Add post_compilation_parsing_cleanups field.
26134 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26135 * sdbout.c: Add early and late_global_decl hooks. Remove
26136 sdbout_global_decl hook.
26137 Add early_finish field for sdb_debug_hooks.
26138 (sdbout_global_decl): Remove.
26139 (sdbout_early_global_decl): New.
26140 (sdbout_late_global_decl): New.
26141 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26142 * toplev.c (check_global_declaration): Rename from
26143 check_global_declaration_1.
26144 Adapt to use symtab infrastructure.
26145 (check_global_declarations): Remove.
26146 (emit_debug_global_declarations): Remove.
26147 (compile_file): Remove call to final_write_globals langhook.
26148 Run the actual compilation process.
26149 Perform any post compilation parser cleanups.
26150 Generate late debug info.
26151 * toplev.h (check_global_declaration): New.
26152 (check_global_declaration_1): Remove.
26153 (check_global_declarations): Remove.
26154 (write_global_declarations): Remove.
26155 (emit_debug_global_declarations): Remove.
26156 (global_decl_processing): New.
26157 * tree-core.h (struct tree_block): Add DIE field.
26158 * tree.h (BLOCK_DIE): New.
26159 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26160 throughout.
26161 (vmsdbgout_early_global_decl): New.
26162 (vmsdbgout_late_global_decl): New.
26163 Add early_finish debug hook field to vmsdbg_debug_hooks.
26164 Remove vmsdbgout_decl to vmsdbgout_function_decl.
26165 Add early and late_global_decl debug hooks.
26166
26167 2015-06-05 Julian Brown <julian@codesourcery.com>
26168 Sandra Loosemore <sandra@codesourcery.com>
26169
26170 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26171 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26172 to print-sysroot-suffix.sh script.
26173
26174 2015-06-05 Tom de Vries <tom@codesourcery.com>
26175
26176 merge from gomp4 branch:
26177 2015-05-28 Tom de Vries <tom@codesourcery.com>
26178
26179 PR tree-optimization/65443
26180 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26181 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26182 (try_transform_to_exit_first_loop_alt): New function.
26183 (transform_to_exit_first_loop): Use
26184 try_transform_to_exit_first_loop_alt.
26185
26186 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26187
26188 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26189 emit_cmp_and_jump_insns with the mode of target.
26190
26191 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26192
26193 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26194
26195 2015-06-04 DJ Delorie <dj@redhat.com>
26196
26197 * config/msp430/msp430.md (movsi_s): New. Special case for
26198 storing a 20-bit symbol into a 32-bit register.
26199 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26200 * config/msp430/predicates.md (msp430_symbol_operand): New.
26201
26202 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26203
26204 * c-family/c-common.c (noplt): New attribute.
26205 (handle_noplt_attribute): New handler.
26206 * calls.c (prepare_call_address): Check for noplt
26207 attribute.
26208 * config/i386/i386.c (ix86_expand_call): Check
26209 for noplt attribute.
26210 (ix86_nopic_noplt_attribute_p): New function.
26211 (ix86_output_call_insn): Output indirect call for non-pic
26212 no plt calls.
26213 * doc/extend.texi (noplt): Document new attribute.
26214 * doc/invoke.texi: Document new attribute.
26215
26216 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26217
26218 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26219 real.h, and fixed-value.h when included in host source files.
26220 * double-int.h: Remove redundant #includes listed above.
26221 * fixed-value.h: Likewise.
26222 * real.h: Likewise.
26223 * wide-int.h: Likewise.
26224 * inchash.h: Likewise.
26225 * rtl.h: Add some include files When included from a generator file.
26226 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26227 * internal-fn.h: Don't include coretypes.h.
26228 * alias.c: Adjust includes for restructured coretypes.h.
26229 * asan.c: Likewise.
26230 * attribs.c: Likewise.
26231 * auto-inc-dec.c: Likewise.
26232 * auto-profile.c: Likewise.
26233 * bb-reorder.c: Likewise.
26234 * bt-load.c: Likewise.
26235 * builtins.c: Likewise.
26236 * caller-save.c: Likewise.
26237 * calls.c: Likewise.
26238 * ccmp.c: Likewise.
26239 * cfg.c: Likewise.
26240 * cfganal.c: Likewise.
26241 * cfgbuild.c: Likewise.
26242 * cfgcleanup.c: Likewise.
26243 * cfgexpand.c: Likewise.
26244 * cfghooks.c: Likewise.
26245 * cfgloop.c: Likewise.
26246 * cfgloop.h: Likewise.
26247 * cfgloopanal.c: Likewise.
26248 * cfgloopmanip.c: Likewise.
26249 * cfgrtl.c: Likewise.
26250 * cgraph.c: Likewise.
26251 * cgraphbuild.c: Likewise.
26252 * cgraphclones.c: Likewise.
26253 * cgraphunit.c: Likewise.
26254 * cilk-common.c: Likewise.
26255 * combine-stack-adj.c: Likewise.
26256 * combine.c: Likewise.
26257 * compare-elim.c: Likewise.
26258 * convert.c: Likewise.
26259 * coverage.c: Likewise.
26260 * cppbuiltin.c: Likewise.
26261 * cprop.c: Likewise.
26262 * cse.c: Likewise.
26263 * cselib.c: Likewise.
26264 * data-streamer-in.c: Likewise.
26265 * data-streamer-out.c: Likewise.
26266 * data-streamer.c: Likewise.
26267 * dbxout.c: Likewise.
26268 * dce.c: Likewise.
26269 * ddg.c: Likewise.
26270 * debug.c: Likewise.
26271 * df-core.c: Likewise.
26272 * df-problems.c: Likewise.
26273 * df-scan.c: Likewise.
26274 * df.h: Likewise.
26275 * dfp.c: Likewise.
26276 * dojump.c: Likewise.
26277 * dominance.c: Likewise.
26278 * domwalk.c: Likewise.
26279 * double-int.c: Likewise.
26280 * dse.c: Likewise.
26281 * dumpfile.c: Likewise.
26282 * dwarf2asm.c: Likewise.
26283 * dwarf2cfi.c: Likewise.
26284 * dwarf2out.c: Likewise.
26285 * dwarf2out.h: Likewise.
26286 * emit-rtl.c: Likewise.
26287 * et-forest.c: Likewise.
26288 * except.c: Likewise.
26289 * explow.c: Likewise.
26290 * expmed.c: Likewise.
26291 * expr.c: Likewise.
26292 * final.c: Likewise.
26293 * fixed-value.c: Likewise.
26294 * fold-const.c: Likewise.
26295 * function.c: Likewise.
26296 * fwprop.c: Likewise.
26297 * gcc-plugin.h: Likewise.
26298 * gcse.c: Likewise.
26299 * generic-match-head.c: Likewise.
26300 * ggc-page.c: Likewise.
26301 * gimple-builder.c: Likewise.
26302 * gimple-expr.c: Likewise.
26303 * gimple-fold.c: Likewise.
26304 * gimple-iterator.c: Likewise.
26305 * gimple-low.c: Likewise.
26306 * gimple-match-head.c: Likewise.
26307 * gimple-pretty-print.c: Likewise.
26308 * gimple-ssa-isolate-paths.c: Likewise.
26309 * gimple-ssa-strength-reduction.c: Likewise.
26310 * gimple-streamer-in.c: Likewise.
26311 * gimple-streamer-out.c: Likewise.
26312 * gimple-streamer.h: Likewise.
26313 * gimple-walk.c: Likewise.
26314 * gimple.c: Likewise.
26315 * gimplify-me.c: Likewise.
26316 * gimplify.c: Likewise.
26317 * godump.c: Likewise.
26318 * graph.c: Likewise.
26319 * graphite-blocking.c: Likewise.
26320 * graphite-dependences.c: Likewise.
26321 * graphite-interchange.c: Likewise.
26322 * graphite-isl-ast-to-gimple.c: Likewise.
26323 * graphite-optimize-isl.c: Likewise.
26324 * graphite-poly.c: Likewise.
26325 * graphite-scop-detection.c: Likewise.
26326 * graphite-sese-to-poly.c: Likewise.
26327 * graphite.c: Likewise.
26328 * haifa-sched.c: Likewise.
26329 * hooks.h: Likewise.
26330 * hw-doloop.c: Likewise.
26331 * ifcvt.c: Likewise.
26332 * incpath.c: Likewise.
26333 * init-regs.c: Likewise.
26334 * internal-fn.c: Likewise.
26335 * ipa-chkp.c: Likewise.
26336 * ipa-comdats.c: Likewise.
26337 * ipa-cp.c: Likewise.
26338 * ipa-devirt.c: Likewise.
26339 * ipa-icf-gimple.c: Likewise.
26340 * ipa-icf.c: Likewise.
26341 * ipa-inline-analysis.c: Likewise.
26342 * ipa-inline-transform.c: Likewise.
26343 * ipa-inline.c: Likewise.
26344 * ipa-polymorphic-call.c: Likewise.
26345 * ipa-profile.c: Likewise.
26346 * ipa-prop.c: Likewise.
26347 * ipa-pure-const.c: Likewise.
26348 * ipa-ref.c: Likewise.
26349 * ipa-reference.c: Likewise.
26350 * ipa-split.c: Likewise.
26351 * ipa-utils.c: Likewise.
26352 * ipa-visibility.c: Likewise.
26353 * ipa.c: Likewise.
26354 * ira-build.c: Likewise.
26355 * ira-color.c: Likewise.
26356 * ira-conflicts.c: Likewise.
26357 * ira-costs.c: Likewise.
26358 * ira-emit.c: Likewise.
26359 * ira-lives.c: Likewise.
26360 * ira.c: Likewise.
26361 * jump.c: Likewise.
26362 * langhooks.c: Likewise.
26363 * lcm.c: Likewise.
26364 * loop-doloop.c: Likewise.
26365 * loop-init.c: Likewise.
26366 * loop-invariant.c: Likewise.
26367 * loop-iv.c: Likewise.
26368 * loop-unroll.c: Likewise.
26369 * lower-subreg.c: Likewise.
26370 * lra-assigns.c: Likewise.
26371 * lra-coalesce.c: Likewise.
26372 * lra-constraints.c: Likewise.
26373 * lra-eliminations.c: Likewise.
26374 * lra-lives.c: Likewise.
26375 * lra-remat.c: Likewise.
26376 * lra-spills.c: Likewise.
26377 * lra.c: Likewise.
26378 * lto-cgraph.c: Likewise.
26379 * lto-compress.c: Likewise.
26380 * lto-opts.c: Likewise.
26381 * lto-section-in.c: Likewise.
26382 * lto-section-out.c: Likewise.
26383 * lto-streamer-in.c: Likewise.
26384 * lto-streamer-out.c: Likewise.
26385 * lto-streamer.c: Likewise.
26386 * mcf.c: Likewise.
26387 * mode-switching.c: Likewise.
26388 * modulo-sched.c: Likewise.
26389 * omega.c: Likewise.
26390 * omp-low.c: Likewise.
26391 * optabs.c: Likewise.
26392 * opts-global.c: Likewise.
26393 * passes.c: Likewise.
26394 * plugin.c: Likewise.
26395 * postreload-gcse.c: Likewise.
26396 * postreload.c: Likewise.
26397 * predict.c: Likewise.
26398 * print-rtl.c: Likewise.
26399 * print-tree.c: Likewise.
26400 * profile.c: Likewise.
26401 * real.c: Likewise.
26402 * realmpfr.c: Likewise.
26403 * realmpfr.h: Likewise.
26404 * recog.c: Likewise.
26405 * ree.c: Likewise.
26406 * reg-stack.c: Likewise.
26407 * regcprop.c: Likewise.
26408 * reginfo.c: Likewise.
26409 * regrename.c: Likewise.
26410 * regs.h: Likewise.
26411 * regstat.c: Likewise.
26412 * reload.c: Likewise.
26413 * reload1.c: Likewise.
26414 * reorg.c: Likewise.
26415 * resource.c: Likewise.
26416 * rtl-chkp.c: Likewise.
26417 * rtlanal.c: Likewise.
26418 * rtlhooks.c: Likewise.
26419 * sanopt.c: Likewise.
26420 * sched-deps.c: Likewise.
26421 * sched-ebb.c: Likewise.
26422 * sched-rgn.c: Likewise.
26423 * sched-vis.c: Likewise.
26424 * sdbout.c: Likewise.
26425 * sel-sched-dump.c: Likewise.
26426 * sel-sched-ir.c: Likewise.
26427 * sel-sched.c: Likewise.
26428 * sese.c: Likewise.
26429 * shrink-wrap.c: Likewise.
26430 * shrink-wrap.h: Likewise.
26431 * simplify-rtx.c: Likewise.
26432 * stack-ptr-mod.c: Likewise.
26433 * statistics.c: Likewise.
26434 * stmt.c: Likewise.
26435 * stor-layout.c: Likewise.
26436 * store-motion.c: Likewise.
26437 * stringpool.c: Likewise.
26438 * symtab.c: Likewise.
26439 * target-globals.c: Likewise.
26440 * targhooks.c: Likewise.
26441 * toplev.c: Likewise.
26442 * tracer.c: Likewise.
26443 * trans-mem.c: Likewise.
26444 * tree-affine.c: Likewise.
26445 * tree-affine.h: Likewise.
26446 * tree-browser.c: Likewise.
26447 * tree-call-cdce.c: Likewise.
26448 * tree-cfg.c: Likewise.
26449 * tree-cfgcleanup.c: Likewise.
26450 * tree-chkp-opt.c: Likewise.
26451 * tree-chkp.c: Likewise.
26452 * tree-chrec.c: Likewise.
26453 * tree-complex.c: Likewise.
26454 * tree-data-ref.c: Likewise.
26455 * tree-dfa.c: Likewise.
26456 * tree-diagnostic.c: Likewise.
26457 * tree-dump.c: Likewise.
26458 * tree-eh.c: Likewise.
26459 * tree-emutls.c: Likewise.
26460 * tree-if-conv.c: Likewise.
26461 * tree-inline.c: Likewise.
26462 * tree-into-ssa.c: Likewise.
26463 * tree-iterator.c: Likewise.
26464 * tree-loop-distribution.c: Likewise.
26465 * tree-nested.c: Likewise.
26466 * tree-nrv.c: Likewise.
26467 * tree-object-size.c: Likewise.
26468 * tree-outof-ssa.c: Likewise.
26469 * tree-parloops.c: Likewise.
26470 * tree-phinodes.c: Likewise.
26471 * tree-predcom.c: Likewise.
26472 * tree-pretty-print.c: Likewise.
26473 * tree-pretty-print.h: Likewise.
26474 * tree-profile.c: Likewise.
26475 * tree-scalar-evolution.c: Likewise.
26476 * tree-sra.c: Likewise.
26477 * tree-ssa-address.c: Likewise.
26478 * tree-ssa-alias.c: Likewise.
26479 * tree-ssa-ccp.c: Likewise.
26480 * tree-ssa-coalesce.c: Likewise.
26481 * tree-ssa-copy.c: Likewise.
26482 * tree-ssa-copyrename.c: Likewise.
26483 * tree-ssa-dce.c: Likewise.
26484 * tree-ssa-dom.c: Likewise.
26485 * tree-ssa-dse.c: Likewise.
26486 * tree-ssa-forwprop.c: Likewise.
26487 * tree-ssa-ifcombine.c: Likewise.
26488 * tree-ssa-live.c: Likewise.
26489 * tree-ssa-loop-ch.c: Likewise.
26490 * tree-ssa-loop-im.c: Likewise.
26491 * tree-ssa-loop-ivcanon.c: Likewise.
26492 * tree-ssa-loop-ivopts.c: Likewise.
26493 * tree-ssa-loop-manip.c: Likewise.
26494 * tree-ssa-loop-niter.c: Likewise.
26495 * tree-ssa-loop-prefetch.c: Likewise.
26496 * tree-ssa-loop-unswitch.c: Likewise.
26497 * tree-ssa-loop.c: Likewise.
26498 * tree-ssa-loop.h: Likewise.
26499 * tree-ssa-math-opts.c: Likewise.
26500 * tree-ssa-operands.c: Likewise.
26501 * tree-ssa-phiopt.c: Likewise.
26502 * tree-ssa-phiprop.c: Likewise.
26503 * tree-ssa-pre.c: Likewise.
26504 * tree-ssa-propagate.c: Likewise.
26505 * tree-ssa-reassoc.c: Likewise.
26506 * tree-ssa-sccvn.c: Likewise.
26507 * tree-ssa-scopedtables.c: Likewise.
26508 * tree-ssa-sink.c: Likewise.
26509 * tree-ssa-strlen.c: Likewise.
26510 * tree-ssa-structalias.c: Likewise.
26511 * tree-ssa-tail-merge.c: Likewise.
26512 * tree-ssa-ter.c: Likewise.
26513 * tree-ssa-threadedge.c: Likewise.
26514 * tree-ssa-threadupdate.c: Likewise.
26515 * tree-ssa-uncprop.c: Likewise.
26516 * tree-ssa-uninit.c: Likewise.
26517 * tree-ssa.c: Likewise.
26518 * tree-ssanames.c: Likewise.
26519 * tree-stdarg.c: Likewise.
26520 * tree-streamer-in.c: Likewise.
26521 * tree-streamer-out.c: Likewise.
26522 * tree-streamer.c: Likewise.
26523 * tree-switch-conversion.c: Likewise.
26524 * tree-tailcall.c: Likewise.
26525 * tree-vect-data-refs.c: Likewise.
26526 * tree-vect-generic.c: Likewise.
26527 * tree-vect-loop-manip.c: Likewise.
26528 * tree-vect-loop.c: Likewise.
26529 * tree-vect-patterns.c: Likewise.
26530 * tree-vect-slp.c: Likewise.
26531 * tree-vect-stmts.c: Likewise.
26532 * tree-vectorizer.c: Likewise.
26533 * tree-vrp.c: Likewise.
26534 * tree.c: Likewise.
26535 * tsan.c: Likewise.
26536 * ubsan.c: Likewise.
26537 * valtrack.c: Likewise.
26538 * value-prof.c: Likewise.
26539 * var-tracking.c: Likewise.
26540 * varasm.c: Likewise.
26541 * varpool.c: Likewise.
26542 * vmsdbgout.c: Likewise.
26543 * vtable-verify.c: Likewise.
26544 * web.c: Likewise.
26545 * wide-int-print.cc: Likewise.
26546 * wide-int-print.h: Likewise.
26547 * wide-int.cc: Likewise.
26548 * xcoffout.c: Likewise.
26549 * config/aarch64/aarch64-builtins.c: Likewise.
26550 * config/aarch64/aarch64.c: Likewise.
26551 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26552 * config/alpha/alpha.c: Likewise.
26553 * config/arc/arc.c: Likewise.
26554 * config/arm/aarch-common.c: Likewise.
26555 * config/arm/arm-builtins.c: Likewise.
26556 * config/arm/arm-c.c: Likewise.
26557 * config/arm/arm.c: Likewise.
26558 * config/avr/avr-c.c: Likewise.
26559 * config/avr/avr-log.c: Likewise.
26560 * config/avr/avr.c: Likewise.
26561 * config/bfin/bfin.c: Likewise.
26562 * config/c6x/c6x.c: Likewise.
26563 * config/cr16/cr16.c: Likewise.
26564 * config/cris/cris.c: Likewise.
26565 * config/darwin-c.c: Likewise.
26566 * config/darwin.c: Likewise.
26567 * config/default-c.c: Likewise.
26568 * config/epiphany/epiphany.c: Likewise.
26569 * config/epiphany/mode-switch-use.c: Likewise.
26570 * config/epiphany/resolve-sw-modes.c: Likewise.
26571 * config/fr30/fr30.c: Likewise.
26572 * config/frv/frv.c: Likewise.
26573 * config/ft32/ft32.c: Likewise.
26574 * config/glibc-c.c: Likewise.
26575 * config/h8300/h8300.c: Likewise.
26576 * config/i386/i386-c.c: Likewise.
26577 * config/i386/i386.c: Likewise.
26578 * config/i386/msformat-c.c: Likewise.
26579 * config/i386/winnt-cxx.c: Likewise.
26580 * config/i386/winnt-stubs.c: Likewise.
26581 * config/i386/winnt.c: Likewise.
26582 * config/ia64/ia64-c.c: Likewise.
26583 * config/ia64/ia64.c: Likewise.
26584 * config/iq2000/iq2000.c: Likewise.
26585 * config/lm32/lm32.c: Likewise.
26586 * config/m32c/m32c-pragma.c: Likewise.
26587 * config/m32c/m32c.c: Likewise.
26588 * config/m32r/m32r.c: Likewise.
26589 * config/m68k/m68k.c: Likewise.
26590 * config/mcore/mcore.c: Likewise.
26591 * config/mep/mep-pragma.c: Likewise.
26592 * config/mep/mep.c: Likewise.
26593 * config/microblaze/microblaze-c.c: Likewise.
26594 * config/microblaze/microblaze.c: Likewise.
26595 * config/mips/mips.c: Likewise.
26596 * config/mmix/mmix.c: Likewise.
26597 * config/mn10300/mn10300.c: Likewise.
26598 * config/moxie/moxie.c: Likewise.
26599 * config/msp430/msp430-c.c: Likewise.
26600 * config/msp430/msp430.c: Likewise.
26601 * config/nds32/nds32-cost.c: Likewise.
26602 * config/nds32/nds32-fp-as-gp.c: Likewise.
26603 * config/nds32/nds32-intrinsic.c: Likewise.
26604 * config/nds32/nds32-isr.c: Likewise.
26605 * config/nds32/nds32-md-auxiliary.c: Likewise.
26606 * config/nds32/nds32-memory-manipulation.c: Likewise.
26607 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26608 * config/nds32/nds32-predicates.c: Likewise.
26609 * config/nds32/nds32.c: Likewise.
26610 * config/nios2/nios2.c: Likewise.
26611 * config/nvptx/nvptx.c: Likewise.
26612 * config/pa/pa.c: Likewise.
26613 * config/pdp11/pdp11.c: Likewise.
26614 * config/rl78/rl78-c.c: Likewise.
26615 * config/rl78/rl78.c: Likewise.
26616 * config/rs6000/rs6000-c.c: Likewise.
26617 * config/rs6000/rs6000.c: Likewise.
26618 * config/rx/rx.c: Likewise.
26619 * config/s390/s390-c.c: Likewise.
26620 * config/s390/s390.c: Likewise.
26621 * config/sh/sh-c.c: Likewise.
26622 * config/sh/sh-mem.cc: Likewise.
26623 * config/sh/sh.c: Likewise.
26624 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26625 * config/sh/sh_treg_combine.cc: Likewise.
26626 * config/sol2-c.c: Likewise.
26627 * config/sol2-cxx.c: Likewise.
26628 * config/sol2-stubs.c: Likewise.
26629 * config/sol2.c: Likewise.
26630 * config/sparc/sparc-c.c: Likewise.
26631 * config/sparc/sparc.c: Likewise.
26632 * config/spu/spu-c.c: Likewise.
26633 * config/spu/spu.c: Likewise.
26634 * config/stormy16/stormy16.c: Likewise.
26635 * config/tilegx/mul-tables.c: Likewise.
26636 * config/tilegx/tilegx-c.c: Likewise.
26637 * config/tilegx/tilegx.c: Likewise.
26638 * config/tilepro/mul-tables.c: Likewise.
26639 * config/tilepro/tilepro-c.c: Likewise.
26640 * config/tilepro/tilepro.c: Likewise.
26641 * config/v850/v850-c.c: Likewise.
26642 * config/v850/v850.c: Likewise.
26643 * config/vax/vax.c: Likewise.
26644 * config/visium/visium.c: Likewise.
26645 * config/vms/vms-c.c: Likewise.
26646 * config/vms/vms.c: Likewise.
26647 * config/vxworks.c: Likewise.
26648 * config/winnt-c.c: Likewise.
26649 * config/xtensa/xtensa.c: Likewise.
26650 * common/config/bfin/bfin-common.c: Likewise.
26651
26652 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26653
26654 * tree.h (tree_code_for_canonical_type_merging): New function.
26655 * tree.c (gimple_canonical_types_compatible_p): Use
26656 tree_code_for_canonical_type_merging..
26657
26658 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26659
26660 PR c++/66192
26661 PR target/66200
26662 * doc/tm.texi: Regenerate.
26663 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26664 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26665 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26666 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26667 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26668 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26669 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26670 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26671 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26672
26673 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26674
26675 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26676 register fma steering pass.
26677 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26678 AARCH64_TUNE_FMA_STEERING.
26679
26680 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26681
26682 * tree.c (verify_type_variant): Verify that type and variant is
26683 compatible.
26684 (gimple_canonical_types_compatible_p): Look for main variants.
26685
26686 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26687
26688 * config.gcc (powerpc*-*-*): Add support for a new configure
26689 option --with-advance-toolchain=<xxx> which overrides using the
26690 default header files, libraries and dynamic linker.
26691
26692 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26693 specs to support the configure --with-advance-toolchain=<xxx>
26694 option.
26695 (INCLUDE_EXTRA_SPEC): Likewise.
26696 (LINK_OS_EXTRA_SPEC32): Likewise.
26697 (LINK_OK_EXTRA_SPEC64): Likewise.
26698 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26699 (DYNAMIC_LINKER_PREFIX): Likewise.
26700 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26701 toolchain support.
26702 (GLIBC_DYNAMIC_LINKER32): Likewise.
26703 (GLIBC_DYNAMIC_LINKER64): Likewise.
26704 (LINK_OS_LINUX_SPEC32): Likewise.
26705 (LINK_OS_LINUX_SPEC64): Likewise.
26706
26707 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26708 configuration option.
26709
26710 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26711
26712 PR target/66275
26713 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26714 to determine current function ABI.
26715 (ix86_function_value_regno_p): Ditto.
26716
26717 2015-06-03 Martin Liska <mliska@suse.cz>
26718
26719 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26720 * bitmap.h (struct bitmap_usage): Likewise.
26721 * ggc-common.c (struct ggc_usage): Likewise.
26722 * mem-stats.h (struct mem_location): Likewise.
26723 (struct mem_usage): Likewise.
26724 * vec.c (struct vec_usage): Likewise.
26725
26726 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26727
26728 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26729 -Bsymbolic.
26730
26731 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26732
26733 * doc/plugins.texi (enum plugin_event): New event.
26734 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26735 and PLUGIN_FINISH_FUNCTION.
26736 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26737 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26738
26739 2015-06-03 Richard Biener <rguenther@suse.de>
26740
26741 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26742 compute GROUP_GAP for the first element.
26743 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26744 on in-group gaps.
26745
26746 2015-06-03 Nick Clifton <nickc@redhat.com>
26747
26748 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26749 copy when calling a function.
26750 * config/rl78/rl78.c (need_to_save): Do not push the frame
26751 pointer in an interrupt handler prologue if it is never used.
26752
26753 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26754
26755 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26756
26757 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26758
26759 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26760 reference when cloning alias node.
26761
26762 2015-06-03 Martin Liska <mliska@suse.cz>
26763
26764 * alloc-pool.h (struct pool_usage): Correct space padding.
26765 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26766 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26767 * tree.c (dump_tree_statistics): Align columns in a report.
26768
26769 2015-06-03 Martin Liska <mliska@suse.cz>
26770
26771 * alloc-pool.c (allocate_pool_descriptor): Remove.
26772 (struct pool_output_info): Likewise.
26773 (print_alloc_pool_statistics): Likewise.
26774 (dump_alloc_pool_statistics): Likewise.
26775 * alloc-pool.h (struct pool_usage): New struct.
26776 (pool_allocator::initialize): Change usage of memory statistics
26777 to a new interface.
26778 (pool_allocator::release): Likewise.
26779 (pool_allocator::allocate): Likewise.
26780 (pool_allocator::remove): Likewise.
26781 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26782 for a pool allocator.
26783 * mem-stats.h (struct mem_location): Add new ctor.
26784 (struct mem_usage): Add counter for number of
26785 instances.
26786 (mem_alloc_description::register_descriptor): New overload of
26787 * mem-stats.h (mem_location::to_string): New function.
26788 * bitmap.h (struct bitmap_usage): Use this new function.
26789 * ggc-common.c (struct ggc_usage): Likewise.
26790 the function.
26791
26792 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26793
26794 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26795 of GCC_INSN_FLAGS_H block.
26796
26797 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26798
26799 * explow.c (plus_constant): Update check after force_const_mem call
26800 to see if the value returned is not a NULL_RTX.
26801
26802 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26803
26804 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26805 remove instumentation thunks calling reachable functions.
26806 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26807 * lto/lto-partition.c (privatize_symbol_name_1): New.
26808 (privatize_symbol_name): Privatize both decl and orig_decl
26809 names for instrumented functions.
26810 * cgraph.c (cgraph_node::verify_node): Add transparent
26811 alias chain check for instrumented node.
26812
26813 2015-06-03 Marek Polacek <polacek@redhat.com>
26814
26815 PR c/64223
26816 PR c/29358
26817 * tree.c (attribute_value_equal): Handle attribute format.
26818 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26819
26820 2015-06-03 Richard Biener <rguenther@suse.de>
26821
26822 PR tree-optimization/63916
26823 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26824 Forward-propagate non-invariant addresses by splicing their
26825 reference ops if the result isn't going to be used by PRE.
26826 (vn_reference_lookup_3): Remove pointless assert.
26827
26828 2015-06-03 Richard Biener <rguenther@suse.de>
26829
26830 PR tree-optimization/66375
26831 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26832 add to the evolution before following SSA edges.
26833
26834 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26835
26836 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26837 (dump_use, dump_cand, find_induction_variables): Pass new argument
26838 to dump_iv.
26839 (record_use): Preserve the ssa name information in IV.
26840
26841 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26842
26843 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26844 NO_MODE_TEST.
26845 (add_mode_tests): Don't add mode tests if the predicate only
26846 accepts scalar constant integers. Otherwise, allow the mode
26847 of "op" to be VOIDmode if the predicate does accept such integers.
26848
26849 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26850
26851 PR target/66258
26852 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26853 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26854 (aarch64_secondary_reload): Likewise
26855 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26856 to !TARGET_FLOAT.
26857 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26858 Likewise.
26859
26860 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26861 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26862
26863 PR target/65768
26864 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26865
26866 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26867
26868 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26869 provide access to the IBM extended double floating point mode if
26870 long double is IEEE 128-bit floating point.
26871 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26872 point if long double is the IBM extended double type.
26873
26874 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26875 enable adding IEEE 128-bit floating point support.
26876 (-mfloat128-software): Likewise.
26877 (-mfloat128-sw): Likewise.
26878
26879 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26880 128-bit floating point types to occupy any register if
26881 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26882 -mfloat128-software is enabled.
26883 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26884 support.
26885 (rs6000_option_override_internal): Add -mfloat128-* support.
26886 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26887
26888 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26889 and float128 type nodes.
26890 (ieee128_float_type_node): Likewise.
26891 (ibm128_float_type_node): Likewise.
26892
26893 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26894
26895 PR target/66136
26896 * config/aarch64/geniterators.sh: Rewrite in awk.
26897
26898 2015-06-02 Martin Liska <mliska@suse.cz>
26899
26900 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26901 values to avoid -Wmaybe-uninitialized errors.
26902
26903 2015-06-02 Richard Biener <rguenther@suse.de>
26904
26905 PR debug/65549
26906 * dwarf2out.c (lookup_context_die): New function.
26907 (resolve_addr): Avoid forcing a full DIE for the
26908 target of a DW_TAG_GNU_call_site during late compilation.
26909 Instead create a stub DIE without a type if we have a
26910 context DIE present.
26911
26912 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26913
26914 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26915
26916 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26917
26918 PR tree-optimization/48052
26919 * cfgloop.h (struct control_iv): New.
26920 (struct loop): New field control_ivs.
26921 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26922 (number_of_iterations_lt): Set no_overflow information.
26923 (number_of_iterations_exit): Init control iv in niter struct.
26924 (record_control_iv): New.
26925 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26926 (loop_exits_before_overflow): New. Interface factored out of
26927 scev_probably_wraps_p.
26928 (scev_probably_wraps_p): Factor loop niter related code into
26929 loop_exits_before_overflow.
26930 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26931 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26932
26933 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26934
26935 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26936 the target doesn't belong to the current function.
26937
26938 2015-06-02 Marek Polacek <polacek@redhat.com>
26939
26940 PR middle-end/66345
26941 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26942 get_maxval_strlen does not produce an INTEGER_CST.
26943
26944 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26945
26946 * config/arc/constraints.md: Use lower-case names in match_code.
26947 * config/mmix/constraints.md: Likewise.
26948
26949 2015-06-02 Richard Biener <rguenther@suse.de>
26950
26951 PR tree-optimization/65961
26952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26953 check and clarify dump message.
26954 (vect_build_slp_tree): If all children are built up from scalars
26955 build up the parent from scalars instead.
26956 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26957
26958 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26959
26960 PR other/65366
26961 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26962 instead of print ... .
26963
26964 2015-06-02 Alan Modra <amodra@gmail.com>
26965
26966 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26967 2014-08-11 change.
26968
26969 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26970
26971 PR tree-optimization/52563
26972 PR tree-optimization/62173
26973 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26974 (alloc_iv, set_iv): New parameter.
26975 (determine_biv_step): Delete.
26976 (find_bivs): Inline original determine_biv_step. Pass new
26977 argument to set_iv.
26978 (idx_find_step): Use no_overflow information for conversion.
26979 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26980 resolve_mixers handle folded_casts.
26981 (instantiate_scev_name): Change bool parameter to bool pointer.
26982 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26983 (instantiate_array_ref, instantiate_scev_not): Ditto.
26984 (instantiate_scev_3, instantiate_scev_2): Ditto.
26985 (instantiate_scev_1, instantiate_scev_r): Ditto.
26986 (instantiate_scev_convert, ): Change parameter. Pass argument
26987 to chrec_convert_aggressive.
26988 (instantiate_scev): Change argument.
26989 (resolve_mixers): New parameter and set it.
26990 (scev_const_prop): New argument.
26991 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26992 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26993 of chrec_conert_1.
26994 (chrec_convert): New parameter. Move definition below.
26995 (chrec_convert_aggressive): New parameter and set it. Call
26996 convert_affine_scev.
26997 * tree-chrec.h (chrec_convert): New parameter.
26998 (chrec_convert_aggressive): Ditto.
26999
27000 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27001
27002 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27003 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27004 the LHS of a no-return call if its type has variable size.
27005 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27006 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27007
27008 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27009
27010 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27011 * config.in: Regenerate.
27012
27013 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27014
27015 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27016 consecutive accesses within outer-loop with force_vectorize
27017 for references with zero step in inner-loop.
27018
27019 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27020
27021 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27022 rather than from gcc/build directory.
27023
27024 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27025
27026 PR target/65697
27027 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27028 for __sync memory models, emit initial loads and final barriers as
27029 appropriate.
27030
27031 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27032
27033 PR target/65697
27034 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27035 (aarch64_split_atomic_op): Check for __sync memory models, emit
27036 appropriate initial loads and final barriers.
27037
27038 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27039
27040 * Makefile.in: Fix gcov dependencies that should
27041 not point to a build folder.
27042
27043 2015-06-01 Richard Biener <rguenther@suse.de>
27044
27045 Revert
27046 2015-05-29 Richard Biener <rguenther@suse.de>
27047
27048 PR tree-optimization/66314
27049 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27050 parameter that says which loop the new block belongs to.
27051 (ssa_create_duplicates): Blocks duplicated for the threaded
27052 path belong to the loop of the thread destination.
27053
27054 2015-06-01 Martin Liska <mliska@suse.cz>
27055
27056 * sched-deps.c: Include pool-alloc.h before
27057 cselib.h header file is included.
27058
27059 2015-06-01 Richard Biener <rguenther@suse.de>
27060
27061 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27062 functions.
27063
27064 2015-06-01 Martin Liska <mliska@suse.cz>
27065
27066 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27067 a function local variable.
27068
27069 2015-06-01 Martin Liska <mliska@suse.cz>
27070
27071 * alloc-pool.c (create_alloc_pool): Remove.
27072 (empty_alloc_pool): Likewise.
27073 (free_alloc_pool): Likewise.
27074 (free_alloc_pool_if_empty): Likewise.
27075 (pool_alloc): Likewise.
27076 (pool_free): Likewise.
27077 * alloc-pool.h: Remove old declarations.
27078
27079 2015-06-01 Martin Liska <mliska@suse.cz>
27080
27081 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27082 (ira_create_object): Likewise.
27083 (ira_create_allocno): Likewise.
27084 (ira_create_live_range): Likewise.
27085 (copy_live_range): Likewise.
27086 (ira_finish_live_range): Likewise.
27087 (ira_free_allocno_costs): Likewise.
27088 (finish_allocno): Likewise.
27089 (finish_allocnos): Likewise.
27090 (initiate_prefs): Likewise.
27091 (ira_create_pref): Likewise.
27092 (finish_pref): Likewise.
27093 (finish_prefs): Likewise.
27094 (initiate_copies): Likewise.
27095 (ira_create_copy): Likewise.
27096 (finish_copy): Likewise.
27097 (finish_copies): Likewise.
27098 (finish_prefs): Likewise.
27099
27100 2015-06-01 Martin Liska <mliska@suse.cz>
27101
27102 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27103 (allocate_and_init_ipcp_value): Likewise.
27104 (ipcp_lattice::add_value): Likewise.
27105 (merge_agg_lats_step): Likewise.
27106 (ipcp_driver): Likewise.
27107 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27108 (ipa_free_all_structures_after_iinln): Likewise.
27109 * ipa-prop.h: Likewise.
27110
27111 2015-06-01 Martin Liska <mliska@suse.cz>
27112
27113 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27114 pool allocator.
27115 (set_hint_predicate): Likewise.
27116 (inline_summary_alloc): Likewise.
27117 (reset_inline_edge_summary): Likewise.
27118 (reset_inline_summary): Likewise.
27119 (set_cond_stmt_execution_predicate): Likewise.
27120 (set_switch_stmt_execution_predicate): Likewise.
27121 (compute_bb_predicates): Likewise.
27122 (estimate_function_body_sizes): Likewise.
27123 (inline_free_summary): Likewise.
27124
27125 2015-06-01 Martin Liska <mliska@suse.cz>
27126
27127 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27128 (ipa_edge_duplication_hook): Likewise.
27129 (ipa_free_all_structures_after_ipa_cp): Likewise.
27130 (ipa_free_all_structures_after_iinln): Likewise.
27131
27132 2015-06-01 Martin Liska <mliska@suse.cz>
27133
27134 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27135 (ipa_profile_generate_summary): Likewise.
27136 (ipa_profile_read_summary): Likewise.
27137 (ipa_profile): Likewise.
27138
27139 2015-06-01 Martin Liska <mliska@suse.cz>
27140
27141 * tree-ssa-structalias.c (new_var_info): Use new type-based
27142 pool allocator.
27143 (new_constraint): Likewise.
27144 (init_alias_vars): Likewise.
27145 (delete_points_to_sets): Likewise.
27146
27147 2015-06-01 Martin Liska <mliska@suse.cz>
27148
27149 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27150 (free_strinfo): Likewise.
27151 (pass_strlen::execute): Likewise.
27152
27153 2015-06-01 Martin Liska <mliska@suse.cz>
27154
27155 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27156 pool allocator.
27157 (vn_reference_insert_pieces): Likewise.
27158 (vn_phi_insert): Likewise.
27159 (visit_reference_op_call): Likewise.
27160 (copy_phi): Likewise.
27161 (copy_reference): Likewise.
27162 (process_scc): Likewise.
27163 (allocate_vn_table): Likewise.
27164 (free_vn_table): Likewise.
27165
27166 2015-06-01 Martin Liska <mliska@suse.cz>
27167
27168 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27169 pool allocator.
27170 (add_repeat_to_ops_vec): Likewise.
27171 (get_ops): Likewise.
27172 (maybe_optimize_range_tests): Likewise.
27173 (init_reassoc): Likewise.
27174 (fini_reassoc): Likewise.
27175
27176 2015-06-01 Martin Liska <mliska@suse.cz>
27177
27178 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27179 pool allocator.
27180 (bitmap_set_new): Likewise.
27181 (get_or_alloc_expr_for_constant): Likewise.
27182 (get_or_alloc_expr_for): Likewise.
27183 (phi_translate_1): Likewise.
27184 (compute_avail): Likewise.
27185 (init_pre): Likewise.
27186 (fini_pre): Likewise.
27187
27188 2015-06-01 Martin Liska <mliska@suse.cz>
27189
27190 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27191 (delete_dep_node): Likewise.
27192 (create_deps_list): Likewise.
27193 (free_deps_list): Likewise.
27194 (sched_deps_init): Likewise.
27195 (sched_deps_finish): Likewise.
27196
27197 2015-06-01 Martin Liska <mliska@suse.cz>
27198
27199 * regcprop.c (free_debug_insn_changes): Use new type-based
27200 pool allocator.
27201 (replace_oldest_value_reg): Likewise.
27202 (pass_cprop_hardreg::execute): Likewise.
27203
27204 2015-06-01 Martin Liska <mliska@suse.cz>
27205
27206 * ira-build.c (initiate_cost_vectors): Use new type-based
27207 pool allocator.
27208 (ira_allocate_cost_vector): Likewise.
27209 (ira_free_cost_vector): Likewise.
27210 (finish_cost_vectors): Likewise.
27211
27212 2015-06-01 Martin Liska <mliska@suse.cz>
27213
27214 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27215 pool allocator.
27216 (free_sched_pools): Likewise.
27217 * sel-sched-ir.h (_list_alloc): Likewise.
27218 (_list_remove): Likewise.
27219
27220 2015-06-01 Martin Liska <mliska@suse.cz>
27221
27222 * stmt.c (add_case_node): Use new type-based pool allocator.
27223 (expand_case): Likewise.
27224 (expand_sjlj_dispatch_table): Likewise.
27225
27226 2015-06-01 Martin Liska <mliska@suse.cz>
27227
27228 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27229 (free_bb): Likewise.
27230 (pass_cse_reciprocals::execute): Likewise.
27231
27232 2015-06-01 Martin Liska <mliska@suse.cz>
27233
27234 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27235 (sra_deinitialize) Likewise.
27236 (create_access_1) Likewise.
27237 (build_accesses_from_assign) Likewise.
27238 (create_artificial_child_access) Likewise.
27239
27240 2015-06-01 Martin Liska <mliska@suse.cz>
27241
27242 * dse.c (get_group_info):Use new type-based pool allocator.
27243 (dse_step0) Likewise.
27244 (free_store_info) Likewise.
27245 (delete_dead_store_insn) Likewise.
27246 (free_read_records) Likewise.
27247 (record_store) Likewise.
27248 (replace_read) Likewise.
27249 (check_mem_read_rtx) Likewise.
27250 (scan_insn) Likewise.
27251 (dse_step1) Likewise.
27252 (dse_step7) Likewise.
27253
27254 2015-06-01 Martin Liska <mliska@suse.cz>
27255
27256 * df-scan.c (struct df_scan_problem_data):Use new type-based
27257 pool allocator.
27258 (df_scan_free_internal) Likewise.
27259 (df_scan_alloc) Likewise.
27260 (df_grow_reg_info) Likewise.
27261 (df_free_ref) Likewise.
27262 (df_insn_create_insn_record) Likewise.
27263 (df_mw_hardreg_chain_delete) Likewise.
27264 (df_insn_info_delete) Likewise.
27265 (df_free_collection_rec) Likewise.
27266 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27267 (df_sort_and_compress_mws) Likewise.
27268 (df_ref_create_structure) Likewise.
27269 (df_ref_record) Likewise.
27270
27271 2015-06-01 Martin Liska <mliska@suse.cz>
27272
27273 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27274 (df_chain_unlink_1) Likewise.
27275 (df_chain_unlink) Likewise.
27276 (df_chain_remove_problem) Likewise.
27277 (df_chain_alloc) Likewise.
27278 (df_chain_free) Likewise.
27279 * df.h (struct dataflow) Likewise.
27280
27281 2015-06-01 Martin Liska <mliska@suse.cz>
27282
27283 * cselib.c (new_elt_list):Use new type-based pool allocator.
27284 (new_elt_loc_list) Likewise.
27285 (unchain_one_elt_list) Likewise.
27286 (unchain_one_elt_loc_list) Likewise.
27287 (unchain_one_value) Likewise.
27288 (new_cselib_val) Likewise.
27289 (cselib_init) Likewise.
27290 (cselib_finish) Likewise.
27291
27292 2015-06-01 Martin Liska <mliska@suse.cz>
27293
27294 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27295 (sh_reorg) Likewise.
27296
27297 2015-06-01 Martin Liska <mliska@suse.cz>
27298
27299 * cfg.c (initialize_original_copy_tables):Use new type-based
27300 pool allocator.
27301 (free_original_copy_tables) Likewise.
27302 (copy_original_table_clear) Likewise.
27303 (copy_original_table_set) Likewise.
27304
27305 2015-06-01 Martin Liska <mliska@suse.cz>
27306
27307 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27308 pool allocator.
27309 (asan_mem_ref_new) Likewise.
27310 (free_mem_ref_resources) Likewise.
27311
27312 2015-06-01 Martin Liska <mliska@suse.cz>
27313
27314 * var-tracking.c (variable_htab_free):Use new type-based
27315 pool allocator.
27316 (attrs_list_clear) Likewise.
27317 (attrs_list_insert) Likewise.
27318 (attrs_list_copy) Likewise.
27319 (shared_hash_unshare) Likewise.
27320 (shared_hash_destroy) Likewise.
27321 (unshare_variable) Likewise.
27322 (var_reg_delete_and_set) Likewise.
27323 (var_reg_delete) Likewise.
27324 (var_regno_delete) Likewise.
27325 (drop_overlapping_mem_locs) Likewise.
27326 (variable_union) Likewise.
27327 (insert_into_intersection) Likewise.
27328 (canonicalize_values_star) Likewise.
27329 (variable_merge_over_cur) Likewise.
27330 (dataflow_set_merge) Likewise.
27331 (remove_duplicate_values) Likewise.
27332 (variable_post_merge_new_vals) Likewise.
27333 (dataflow_set_preserve_mem_locs) Likewise.
27334 (dataflow_set_remove_mem_locs) Likewise.
27335 (variable_from_dropped) Likewise.
27336 (variable_was_changed) Likewise.
27337 (set_slot_part) Likewise.
27338 (clobber_slot_part) Likewise.
27339 (delete_slot_part) Likewise.
27340 (loc_exp_insert_dep) Likewise.
27341 (notify_dependents_of_changed_value) Likewise.
27342 (emit_notes_for_differences_1) Likewise.
27343 (vt_emit_notes) Likewise.
27344 (vt_initialize) Likewise.
27345 (vt_finalize) Likewise.
27346
27347 2015-06-01 Martin Liska <mliska@suse.cz>
27348
27349 * ira-color.c (init_update_cost_records):Use new type-based
27350 pool allocator.
27351 (get_update_cost_record) Likewise.
27352 (free_update_cost_record_list) Likewise.
27353 (finish_update_cost_records) Likewise.
27354 (initiate_cost_update) Likewise.
27355
27356 2015-06-01 Martin Liska <mliska@suse.cz>
27357
27358 * lra.c (init_insn_regs): Use new type-based pool allocator.
27359 (new_insn_reg) Likewise.
27360 (free_insn_reg) Likewise.
27361 (free_insn_regs) Likewise.
27362 (finish_insn_regs) Likewise.
27363 (init_insn_recog_data) Likewise.
27364 (init_reg_info) Likewise.
27365 (finish_reg_info) Likewise.
27366 (lra_free_copies) Likewise.
27367 (lra_create_copy) Likewise.
27368 (invalidate_insn_data_regno_info) Likewise.
27369
27370 2015-06-01 Martin Liska <mliska@suse.cz>
27371
27372 * lra-lives.c (free_live_range): Use new type-based pool allocator.
27373 (free_live_range_list) Likewise.
27374 (create_live_range) Likewise.
27375 (copy_live_range) Likewise.
27376 (lra_merge_live_ranges) Likewise.
27377 (remove_some_program_points_and_update_live_ranges) Likewise.
27378 (lra_live_ranges_init) Likewise.
27379 (lra_live_ranges_finish) Likewise.
27380
27381 2015-06-01 Martin Liska <mliska@suse.cz>
27382
27383 * et-forest.c (et_new_occ): Use new type-based pool allocator.
27384 (et_new_tree): Likewise.
27385 (et_free_tree): Likewise.
27386 (et_free_tree_force): Likewise.
27387 (et_free_pools): Likewise.
27388 (et_split): Likewise.
27389
27390 2015-06-01 Martin Liska <mliska@suse.cz>
27391
27392 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27393 to header file.
27394 * alloc-pool.h (pool_allocator::pool_allocator): New function.
27395 (pool_allocator::release): Likewise.
27396 (inline pool_allocator::release_if_empty): Likewise.
27397 (inline pool_allocator::~pool_allocator): Likewise.
27398 (pool_allocator::allocate): Likewise.
27399 (pool_allocator::remove): Likewise.
27400
27401 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27402
27403 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27404 in comment.
27405
27406 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27407
27408 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27409 to fusible_ops.
27410 * config/arm/arm.c (arm_print_tune_info): Likewise.
27411 (arm_macro_fusion_p): Likewise.
27412 (arm_macro_fusion_pair_p): Likewise.
27413
27414 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27415
27416 * config/aarch64/aarch64-protos.h (tune_params): Rename
27417 fuseable_ops to fusible_ops.
27418 * config/aarch64/aarch64.c (generic_tunings): Rename
27419 fuseable_ops to fusible_ops.
27420 (cortexa53_tunings): Likewise.
27421 (cortexa57_tunings): Likewise.
27422 (thunderx_tunings): Likewise.
27423 (xgene1_tunings): Likewise.
27424 (aarch64_macro_fusion_p): Likewise.
27425 (aarch64_macro_fusion_pair_p): Likewise.
27426
27427 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
27428
27429 * config/s390/driver-native.c: New file.
27430 * config/s390/x-native: New file.
27431 * config.host: Add new files for s390.
27432 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27433 and -march=native
27434 * config.gcc: Likewise.
27435 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27436 * config/s390/s390-opts.h (enum processor_type): Ditto.
27437 * config/s390/s390.c (s390_option_override): Catch unhandled
27438 PROCESSOR_NATIVE
27439
27440 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
27441
27442 PR target/65527
27443 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27444 redirection for instrumented calls.
27445 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27446 (append_compiler_options): Append -fcheck-pointer-bounds.
27447 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27448 (chkp_redirect_edge): New.
27449 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27450 (chkp_redirect_edge): New.
27451
27452 2015-06-01 Richard Biener <rguenther@suse.de>
27453
27454 PR tree-optimization/66280
27455 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27456 def-use walking.
27457
27458 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27459
27460 * config/aarch64/aarch64.md
27461 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27462 logic_shift_imm.
27463
27464 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27465
27466 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27467 Remove obsolete kludge.
27468
27469 2015-06-01 Richard Biener <rguenther@suse.de>
27470
27471 * tree-ssa-reassoc.c (get_rank): Simplify.
27472
27473 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
27474
27475 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27476 * configure: Regenerated.
27477
27478 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
27479
27480 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27481 issue (add space between string literal and macro).
27482 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27483
27484 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
27485
27486 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27487 implict or explicit -fPIE or -fpie.
27488
27489 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27490
27491 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27492
27493 2015-05-28 DJ Delorie <dj@redhat.com>
27494
27495 * expmed.c (extract_bit_field_1): Avoid clobbering a
27496 yet-to-be-used base/index register.
27497
27498 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27499
27500 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27501 (alias_stats): Add num_universal.
27502 (alias_set_subset_of): Special case pointers; be ready for NULL
27503 children.
27504 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27505 children.
27506 (init_alias_set_entry): Break out from ...
27507 (record_alias_subset): ... here; propagate new fields;
27508 allocate children only when really needed.
27509 (get_alias_set): Do less generous pointer globbing.
27510 (dump_alias_stats_in_alias_c): Update statistics.
27511
27512 2015-05-30 Alan Modra <amodra@gmail.com>
27513
27514 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27515 correct block for use of r12.
27516 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27517
27518 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27519
27520 PR target/66215
27521 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27522 with -mhotpatch=.
27523
27524 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27525
27526 PR tree-optimization/66142
27527 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27528 virtual phis that feed themselves.
27529
27530 2015-05-29 Richard Biener <rguenther@suse.de>
27531
27532 PR tree-optimization/66314
27533 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27534 parameter that says which loop the new block belongs to.
27535 (ssa_create_duplicates): Blocks duplicated for the threaded
27536 path belong to the loop of the thread destination.
27537
27538 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27539
27540 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27541 to cleanup-saved-temps.
27542 * doc/sourcebuild.texi (Clean up generated test files): Expand
27543 introduction.
27544 (dg-keep-saved-temps): Document new proc.
27545 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27546 cleanup-saved-temps): Remove.
27547
27548 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27549
27550 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27551 gcc_AC_CHECK_DECLS.
27552 * configure: Regenerate.
27553
27554 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27555
27556 * config/nios2/linux.h (CPP_SPEC): Define.
27557
27558 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27559
27560 * config/microblaze/linux.h (CPP_SPEC): Define.
27561
27562 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27563
27564 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27565 -pthread is specified.
27566
27567 2015-05-28 Richard Biener <rguenther@suse.de>
27568
27569 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27570 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27571 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27572 after pattern recog.
27573 (vect_create_epilog_for_reduction): Properly handle reductions
27574 with patterns.
27575 (vectorizable_reduction): Likewise.
27576 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27577 reduction chains.
27578 (vect_get_constant_vectors): Create the correct number of
27579 initial values for reductions.
27580 (vect_schedule_slp_instance): Handle reduction chains that are
27581 type changing properly.
27582 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27583
27584 2015-05-28 Richard Biener <rguenther@suse.de>
27585
27586 PR tree-optimization/66142
27587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27588 values better in memcpy destination handling. Handle non-aliasing
27589 we discover here.
27590
27591 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27592
27593 PR target/63810
27594 * config/darwin-c.c (version_components): New global enum.
27595 (parse_version, version_as_legacy_macro)
27596 (version_as_modern_macro, macosx_version_as_macro): New functions.
27597 (version_as_macro): Remove.
27598 (darwin_cpp_builtins): Use new function.
27599
27600 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27601
27602 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27603 with ATTRIBUTE_UNUSED.
27604
27605 2015-05-28 Julian Brown <julian@codesourcery.com>
27606
27607 PR libgomp/65742
27608
27609 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27610 sequence for !ACCEL_COMPILER.
27611
27612 2015-05-28 Nick Clifton <nickc@redhat.com>
27613
27614 * config/rx/rx.c (push_regs): New function. Extracts code from...
27615 (rx_expand_prologue): ... here. Use push_regs to push even small
27616 spans of registers.
27617 (pop_regs): New function.
27618 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27619 registers.
27620
27621 2015-05-28 Richard Biener <rguenther@suse.de>
27622
27623 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27624 member.
27625 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27626 (vect_update_slp_costs_according_to_vf): Likewise.
27627 (vect_slp_analyze_operations): Update prototype.
27628 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27629 vect_update_slp_costs_according_to_vf, adjust.
27630 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27631 (vect_analyze_slp_cost_1): Likewise.
27632 (vect_analyze_slp_cost): Likewise. Properly deal with
27633 widening reduction ops. Commit body costs.
27634 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27635 cost for loops from here.
27636 (vect_slp_analyze_operations): But do it from here when
27637 the vectorization factor is known and stmts are analyzed.
27638 (vect_bb_vectorization_profitable_p): Simplify.
27639 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27640 (vect_update_slp_costs_according_to_vf): Remove.
27641
27642 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27643 H.J. Lu <hongjiu.lu@intel.com>
27644
27645 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27646 (BUILD_CFLAGS): Likewise.
27647 (BUILD_CXXFLAGS): Likewise.
27648 (LINKER): Add @NO_PIE_FLAG@.
27649 (BUILD_LDFLAGS): Likewise.
27650 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27651 --enable-default-pie.
27652 * common.opt (fPIE): Initialize to -1.
27653 (fpie): Likewise.
27654 (no-pie): New option.
27655 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27656 * configure.ac: Add --enable-default-pie.
27657 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27658 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27659 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27660 * gcc.c (NO_PIE_SPEC): New.
27661 (PIE_SPEC): Likewise.
27662 (NO_FPIE1_SPEC): Likewise.
27663 (FPIE1_SPEC): Likewise.
27664 (NO_FPIE2_SPEC): Likewise.
27665 (FPIE2_SPEC): Likewise.
27666 (NO_FPIE2_SPEC): Likewise.
27667 (FPIE_SPEC): Likewise.
27668 (NO_FPIE_SPEC): Likewise.
27669 (NO_FPIC1_SPEC): Likewise.
27670 (FPIC1_SPEC): Likewise.
27671 (NO_FPIC2_SPEC): Likewise.
27672 (FPIC2_SPEC): Likewise.
27673 (NO_FPIC2_SPEC): Likewise.
27674 (FPIC_SPEC): Likewise.
27675 (NO_FPIC_SPEC): Likewise.
27676 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27677 (FPIE1_OR_FPIC1_SPEC): Likewise.
27678 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27679 (FPIE2_OR_FPIC2_SPEC): Likewise.
27680 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27681 (FPIE_OR_FPIC_SPEC): Likewise.
27682 (LD_PIE_SPEC): Likewise.
27683 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27684 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27685 * config/darwin.h (PIE_SPEC): Renamed to ...
27686 (DARWIN_PIE_SPEC): This.
27687 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27688 * config/darwin9.h (PIE_SPEC): Renamed to ...
27689 (DARWIN_PIE_SPEC): This.
27690 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27691 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27692 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27693 FPIE2_OR_FPIC2_SPEC.
27694 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27695 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27696 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27697 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27698 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27699 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27700 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27701 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27702 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27703 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27704 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27705 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27706 * config/sparc/linux.h (ASM_SPEC): Likewise.
27707 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27708 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27709 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27710 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27711 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27712 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27713 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27714 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27715 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27716 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27717 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27718 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27719 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27720 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27721 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27722 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27723 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27724 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27725 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27726 * config/vax/linux.h (ASM_SPEC): Likewise.
27727 * doc/install.texi: Document --enable-default-pie.
27728 * doc/invoke.texi: Document -no-pie.
27729 * config.in: Regenerated.
27730 * configure: Likewise.
27731
27732 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27733
27734 PR rtl-optimization/66168
27735 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27736 can_move_invariant_reg.
27737
27738 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27739
27740 PR target/66148
27741 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27742 REG_EQUAL note when doing insert.
27743
27744 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27745 instead of "%d" for 'o' operand.
27746
27747 2015-05-27 Nathan Sidwell <nathan@acm.org>
27748
27749 PR c++/66270
27750 * tree.c (build_pointer_type_for_mode): Canonical type does not
27751 inherit can_alias_all.
27752 (build_reference_type_for_mode): Likewise.
27753
27754 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27755
27756 * expr.h (array_at_struct_end_p): Move to...
27757 (array_ref_element_size): Likewise.
27758 (component_ref_field_offset): Likewise.
27759 * tree.h (array_ref_element_size): ...here.
27760 (array_at_struct_end_p): Likewise.
27761 (component_ref_field_offset): Likewise.
27762 * expr.c (array_ref_element_size): Move to...
27763 (array_ref_low_bound): Likewise.
27764 (array_at_struct_end_p): Likewise.
27765 (array_ref_up_bound): Likewise.
27766 (component_ref_field_offset): Likewise.
27767 * tree.c (array_ref_element_size): ...here.
27768 (array_ref_low_bound): Likewise.
27769 (array_ref_up_bound): Likewise.
27770 (array_at_struct_end_p): Likewise.
27771 (component_ref_field_offset): Likewise.
27772
27773 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27774 Szabolcs Nagy <szabolcs.nagy@arm.com>
27775
27776 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27777
27778 2015-05-27 Jason Merrill <jason@redhat.com>
27779
27780 PR bootstrap/66304
27781 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27782 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27783 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27784
27785 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27786
27787 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27788 is true.
27789
27790 * statistics.c (statistics_fini_pass): Print pass name.
27791
27792 2015-05-27 Richard Biener <rguenther@suse.de>
27793
27794 PR tree-optimization/66272
27795 Revert parts of
27796 2014-08-15 Richard Biener <rguenther@suse.de>
27797
27798 PR tree-optimization/62031
27799 * tree-data-ref.c (dr_analyze_indices): Do not set
27800 DR_UNCONSTRAINED_BASE.
27801 (dr_may_alias_p): All indirect accesses have to go the
27802 formerly DR_UNCONSTRAINED_BASE path.
27803 * tree-data-ref.h (struct indices): Remove
27804 unconstrained_base member.
27805 (DR_UNCONSTRAINED_BASE): Remove.
27806
27807 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27808
27809 * dwarf2out.c: Remove block_map.
27810 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27811 (gen_lexical_block_die): Same.
27812 (dwarf2out_function_decl): Remove block_map use.
27813 (dwarf2out_c_finalize): Same.
27814 * tree-core.h (struct tree_block): Add die field.
27815 * tree.h (BLOCK_DIE): New.
27816
27817 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27818
27819 PR target/65358
27820 * expr.c (memory_load_overlap): New function.
27821 (emit_push_insn): When pushing partial args to the stack would
27822 clobber the register part load the overlapping part into a pseudo
27823 and put it into the hard reg after pushing. Change return type
27824 to bool. Add bool argument.
27825 * expr.h (emit_push_insn): Change return type to bool.
27826 Add bool argument.
27827 * calls.c (expand_call): Cancel sibcall optimization when encountering
27828 partial argument on targets with ARGS_GROW_DOWNWARD and
27829 !STACK_GROWS_DOWNWARD.
27830 (emit_library_call_value_1): Update callsite of emit_push_insn.
27831 (store_one_arg): Likewise.
27832
27833 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27834
27835 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27836
27837 2015-05-27 Martin Liska <mliska@suse.cz>
27838
27839 * Makefile.in: Add additional dependencies related to memory report
27840 enhancement.
27841 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27842 * bitmap.c (struct bitmap_descriptor_d): Remove.
27843 (struct loc): Likewise.
27844 (struct bitmap_desc_hasher): Likewise.
27845 (bitmap_desc_hasher::hash): Likewise.
27846 (bitmap_desc_hasher::equal): Likewise.
27847 (get_bitmap_descriptor): Likewise.
27848 (bitmap_register): User new memory descriptor API.
27849 (register_overhead): Likewise.
27850 (bitmap_find_bit): Register nsearches and search_iter statistics.
27851 (struct bitmap_output_info): Remove.
27852 (print_statistics): Likewise.
27853 (dump_bitmap_statistics): Use new memory descriptor.
27854 * bitmap.h (struct bitmap_usage): New class.
27855 * genmatch.c: Extend header file inclusion.
27856 * genpreds.c: Likewise.
27857 * ggc-common.c (struct ggc_usage): New class.
27858 (struct ggc_loc_desc_hasher): Remove.
27859 (ggc_loc_desc_hasher::hash): Likewise.
27860 (ggc_loc_desc_hasher::equal): Likewise.
27861 (struct ggc_ptr_hash_entry): Likewise.
27862 (struct ptr_hash_hasher): Likewise.
27863 (ptr_hash_hasher::hash): Likewise.
27864 (ptr_hash_hasher::equal): Likewise.
27865 (make_loc_descriptor): Likewise.
27866 (ggc_prune_ptr): Likewise.
27867 (dump_ggc_loc_statistics): Use new memory descriptor.
27868 (ggc_record_overhead): Likewise.
27869 (ggc_free_overhead): Likewise.
27870 (final_cmp_statistic): Remove.
27871 (cmp_statistic): Likewise.
27872 (ggc_add_statistics): Liekwise.
27873 (ggc_prune_overhead_list): Likewise.
27874 * hash-map-traits.h: New file.
27875 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27876 separate header file.
27877 * hash-set.h: Pass memory statistics info to ctor.
27878 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27879 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27880 (hash_table::~hash_table): Register memory release operation.
27881 (hash_table::alloc_entries): Handle memory allocation operation.
27882 (hash_table::expand): Likewise.
27883 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27884 file.
27885 (iterative_hash_host_wide_int): Likewise.
27886 * inchash.h (class hash): Likewise.
27887 * mem-stats-traits.h: New file.
27888 * mem-stats.h: New file.
27889 (mem_location): Add new class.
27890 (mem_usage): Likewise.
27891 (mem_alloc_description): Likewise.
27892 * sese.c: Add new header file inclusision.
27893 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27894 and hash_set.
27895 * tree-sra.c: Add new header file inclusision.
27896 * vec.c (struct vec_descriptor): Remove.
27897 (hash_descriptor): Likewise.
27898 (struct vec_usage): Likewise.
27899 (struct ptr_hash_entry): Likewise.
27900 (hash_ptr): Likewise.
27901 (eq_ptr): Likewise.
27902 (vec_prefix::register_overhead): Use new memory descriptor API.
27903 (vec_prefix::release_overhead): Likewise.
27904 (add_statistics): Remove.
27905 (dump_vec_loc_statistics): Use new memory descriptor API.
27906 * vec.h (struct vec_prefix): Likewise.
27907 (va_heap::reserve): Likewise.
27908 (va_heap::release): Likewise.
27909 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27910
27911 2015-05-27 Richard Biener <rguenther@suse.de>
27912
27913 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27914 earlier and remove ??? comment.
27915 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27916 and got called from loop analysis bail out. Always pass the SLP
27917 node to the vectorizable_* functions.
27918 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27919 the premature SLP check here.
27920 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27921 detected SLP stmts.
27922 (vect_detect_hybrid_slp_1): Likewise.
27923
27924 2015-05-26 Jeff Law <law@redhat.com>
27925
27926 * combine.c (find_split_point): Verify that the shift count is a
27927 constant when choosing (plus (ashift ...)) as a split point.
27928
27929 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27930 No functional changes.
27931
27932 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27933
27934 * ipa-polymorphic-call.c
27935 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27936 case when call target is already known.
27937
27938 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27939
27940 PR target/65979
27941 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27942 take into account the case that operands[1] and operands[2]
27943 are the same register.
27944
27945 2015-05-26 Michael Matz <matz@suse.de>
27946
27947 PR middle-end/66251
27948
27949 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27950 stores.
27951 (vect_create_vectorized_demotion_stmts): Always set
27952 STMT_VINFO_VEC_STMT, also with SLP.
27953 (vectorizable_store): Handle strided group stores.
27954
27955 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27956
27957 PR target/66049
27958 * config/aarch64/aarch64.md
27959 (*adds_shift_imm_<mode>): New pattern.
27960 (*subs_shift_imm_<mode>): Likewise.
27961 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27962 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27963 (*add_uxt<mode>_shift2): Likewise.
27964 (*add_uxtsi_shift2_uxtw): Likewise.
27965 (*sub_uxt<mode>_shift2): Likewise.
27966 (*sub_uxtsi_shift2_uxtw): Likewise.
27967
27968 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27969
27970 * config/rs6000/constraints.md (Y, U): Use match_test.
27971
27972 2015-05-26 Christian Bruel <christian.bruel@st.com>
27973
27974 PR target/52144
27975 * config/arm/arm.c (arm_option_check_internal)
27976 (arm_option_params_internal): Check opts->target_flags to set macros.
27977 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27978 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27979 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27980 (builtin_define): Replaced with def_or_undef_macro.
27981 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27982 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27983 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27984 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27985 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27986 (TARGET_ARM_FEATURE_LDREX_P)
27987 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27988 * config/arm/arm-c.c (def_or_undef_macro): New function.
27989 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27990
27991 2015-05-26 Christian Bruel <christian.bruel@st.com>
27992
27993 * c-common.h (builtin_define_with_int_value)
27994 (builtin_define_type_sizeof): Declare.
27995 * c-cppbuiltin.c (builtin_define_with_int_value)
27996 (builtin_define_type_sizeof): Externalize.
27997 (builtin_define_std): Cleanup declaration.
27998 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27999 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28000 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28001 (builtin_define, builtin_assert): New macros.
28002
28003 2015-05-26 Richard Biener <rguenther@suse.de>
28004
28005 PR tree-optimization/66142
28006 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28007 MEM_REFs for the same base address.
28008
28009 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28010
28011 PR ipa/66181
28012 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28013
28014 2015-05-26 Jason Merrill <jason@redhat.com>
28015
28016 * configure.ac: Set CXXFLAGS for ISL test.
28017 * configure: Regenerate.
28018
28019 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28020 strstr and basename.
28021 * configure: Regenerate.
28022
28023 2015-05-26 Richard Biener <rguenther@suse.de>
28024
28025 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28026 X % C -> X & (C - 1) for C being a power-of two to ...
28027 * match.pd: ... patterns.
28028
28029 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28030
28031 * match.pd (swapped_tcc_comparison): New operator list.
28032 (-A CMP -B): New simplification.
28033 * fold-const.c (fold_comparison): Remove corresponding code.
28034
28035 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28036
28037 * caller-save.c (init_caller_save): Base temporary register numbers
28038 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28039 * cfgloopanal.c (init_set_costs): Likewise.
28040 * dojump.c (prefer_and_bit_test): Likewise.
28041 * expr.c (init_expr_target): Likewise.
28042 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28043 * lower-subreg.c (init_lower_subreg): Likewise.
28044 * postreload.c (reload_cse_regs_1): Likewise.
28045
28046 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28047
28048 * gensupport.h (compute_test_codes): Declare.
28049 * gensupport.c (compute_predicate_codes): Rename to...
28050 (compute_test_codes): ...this. Generalize error message.
28051 (process_define_predicate): Update accordingly.
28052 * genpreds.c (compute_maybe_allows): Delete.
28053 (add_constraint): Use compute_test_codes to determine whether
28054 something can accept a SUBREG, REG or MEM.
28055
28056 2015-05-26 Torvald Riegel <triegel@redhat.com>
28057
28058 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28059 'memory model' to align with C++11; fix description of memory orders;
28060 fix a few typos.
28061
28062 2015-05-26 Richard Biener <rguenther@suse.de>
28063
28064 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28065 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28066 detect whether we apply SLP. Remove call to
28067 vect_update_slp_costs_according_to_vf.
28068 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28069 vect_update_slp_costs_according_to_vf from here. Dispatch
28070 to vect_slp_analyze_operations to analyze SLP stmts.
28071 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28072 unused bb_vec_info parameter, adjust assert.
28073 (vect_slp_analyze_operations): Pass in the slp instance tree
28074 instead of bb_vec_info.
28075 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28076 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28077
28078 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28079
28080 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28081 Q_REGS. Expand comment.
28082 (REG_CLASS_NAMES): Ditto.
28083 (REG_CLASS_CONTENTS): Ditto.
28084
28085 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28086
28087 PR target/66274
28088 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28089 when LEGACY_INT_REGNO_P is processed.
28090
28091 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28092
28093 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28094
28095 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28096
28097 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28098 register if not marked dead/unused, before return.
28099
28100 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28101
28102 PR lto/66180
28103 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28104 is set; check for assembler name at LTO time.
28105 (type_in_anonymous_namespace): Remove hacks, check that all
28106 anonymous types are called "<anon>"
28107 (odr_type_p): Simplify; add check for "<anon>"
28108 (odr_subtypes_equivalent): Add odr_type_p check.
28109 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28110 assembler name.
28111
28112 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28113
28114 * ipa-utils.h (method_class_type): Remove.
28115 * cgraphunit.c (walk_polymorphic_call_targets): Use
28116 TYPE_METHOD_BASETYPE.
28117 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28118 on main variants only.
28119 (method_class_type): Remove.
28120 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28121 (build_type_inheritance_graph): Likewise.
28122 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28123 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28124 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28125
28126 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28127
28128 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28129 is_typedef_decl, typedef_variant_p): Constify.
28130 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28131 is_typedef_decl, typedef_variant_p): Constify.
28132
28133 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28134
28135 * defaults.h (gen_tablejump): New function.
28136 (HAVE_tablejump): Add default value.
28137 * expr.c: Adjust.
28138 * stmt.c: Likewise.
28139
28140 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28141
28142 * defaults.h (gen_store_multiple): New function.
28143 (HAVE_store_multiple): Add default value.
28144 * expr.c (move_block_from_reg): Adjust.
28145
28146 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28147
28148 * defaults.h (gen_load_multiple): New function.
28149 (HAVE_load_multiple): Add default value.
28150 * expr.c (move_block_to_reg): Adjust.
28151
28152 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28153
28154 * defaults.h (gen_mem_signal_fence): New function.
28155 (HAVE_mem_signal_fence): Add default value.
28156 * optabs.c: Adjust.
28157
28158 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28159
28160 * defaults.h (gen_memory_barrier): New function.
28161 (HAVE_memory_barrier): Add default value.
28162 * optabs.c: Adjust.
28163
28164 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28165
28166 * defaults.h (gen_mem_thread_fence): New function.
28167 (HAVE_mem_thread_fence): Add default definition.
28168 * optabs.c: Adjust.
28169
28170 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28171
28172 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28173 instead of if it is defined.
28174 (combine_simplify_rtx): Likewise.
28175 * lra-constraints.c (process_address_1): Likewise.
28176 * config/darwin.c: Adjust.
28177 * genconfig.c (main): Always define HAVE_lo_sum.
28178
28179 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28180
28181 * genmatch.c (parser::parse_operation): Reject expanding
28182 operator-list inside 'for'.
28183
28184 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28185
28186 * genmatch.c (parser::parse_for): Reject iterator if used as
28187 operator-list.
28188
28189 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28190
28191 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28192 after end of id-list.
28193
28194 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28195
28196 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28197 we do not try to compute canonical type for type that does not need
28198 alias set.
28199 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28200 FUNCITON_TYPE.
28201 * tree.h (type_with_alias_set_p): New.
28202
28203 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28204
28205 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28206 function attributes.
28207 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28208
28209 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28210
28211 * Makefile.in (check_gcc_parallelize): Delete.
28212 (lang_checks_parallelized): Update comment.
28213
28214 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28215
28216 PR rtl-optimization/66237
28217 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28218 location of an "as_a" cast.
28219
28220 2015-05-22 Jeff Law <law@redhat.com>
28221
28222 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28223 (peepholes with non-canonical RTL sources): Remove.
28224 (peepholes for indexed stores of FP regs in integer modes): Match and
28225 generate canonical RTL.
28226
28227 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28228
28229 PR tree-optimization/63387
28230 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28231 ((x ord x) & (y ord y) -> (x ord y),
28232 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28233 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28234 vectors like scalars.
28235
28236 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28237
28238 * convert.c (convert_to_integer, convert_to_vector): Include the
28239 types in the error message.
28240
28241 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28242
28243 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28244 simplifications.
28245
28246 2015-05-22 Jeff Law <law@redhat.com>
28247
28248 * config/pa/pa.md (integer_indexed_store splitters): Use
28249 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28250 insns -- adjusting the constant 2nd operand accordingly.
28251
28252 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28253 (plus (ashift X log2) Y) if it is a split point.
28254
28255 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28256 out of hppa_legitimize_address to handle both forms of a multiply
28257 by 2, 4 or 8.
28258 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28259 Always generate the ASHIFT variant as the result is not directly
28260 used in a MEM. Update comments and refactor slightly to improve
28261 readability.
28262
28263 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28264
28265 PR target/65491
28266 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28267 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28268 (aarch64_composite_type_p): Return false if given type and mode are
28269 for a short vector.
28270
28271 2015-05-22 Richard Biener <rguenther@suse.de>
28272
28273 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28274 member.
28275 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28276 patterns when determining whether SLP is pure.
28277 (vect_is_slp_reduction): Remove check for pattern stmts.
28278 (vect_is_simple_reduction_1): Remove dead code.
28279 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28280 (vect_get_and_check_slp_defs): Pass in the stmt number.
28281 Allow the first def in a reduction to be not a pattern stmt when
28282 the rest of the stmts def are patterns.
28283 (vect_build_slp_tree_1): Allow tcc_expression codes like
28284 SAD_EXPR and DOT_PROD_EXPR.
28285 (vect_build_slp_tree): Adjust.
28286 (vect_analyze_slp): Refactor and move BB vect error message ...
28287 (vect_slp_analyze_bb_1): ... here.
28288
28289 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28290
28291 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28292 for CSWTCH temporary.
28293
28294 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28295
28296 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28297 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28298 unknown unspecs.
28299
28300 2015-05-22 Richard Biener <rguenther@suse.de>
28301
28302 PR tree-optimization/66251
28303 * tree-vect-stmts.c (vectorizable_conversion): Properly
28304 set STMT_VINFO_VEC_STMT even for the SLP case.
28305
28306 2015-05-22 Marek Polacek <polacek@redhat.com>
28307
28308 * doc/extend.texi: Use @pxref instead of @xref.
28309
28310 2015-05-22 hiraditya <hiraditya@msn.com>
28311
28312 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28313 redundant if.
28314
28315 2015-05-22 Richard Biener <rguenther@suse.de>
28316
28317 PR tree-optimization/65701
28318 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28319 Move peeling cost models into one place. Peel for alignment
28320 for single loads only if an aligned load is cheaper than
28321 an unaligned load.
28322
28323 2015-05-22 Marek Polacek <polacek@redhat.com>
28324
28325 PR c/47043
28326 * doc/extend.texi (Enumerator Attributes): New section.
28327 Document syntax of enumerator attributes.
28328
28329 2015-05-22 Richard Biener <rguenther@suse.de>
28330
28331 * tree-vect-loop.c (get_reduction_op): New function.
28332 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28333 Make ready for BB reductions.
28334 (vect_create_epilog_for_reduction): Use get_reduction_op.
28335 (vectorizable_reduction): Init reduc_index to a valid value.
28336 Adjust vect_model_reduction_cost call.
28337 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28338 operand for reduction defaults. Add SAD_EXPR support.
28339 Assert we have a neutral op for SLP reductions.
28340 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28341 walking pattern stmt ops only recurse to SSA names.
28342
28343 2015-05-22 Richard Biener <rguenther@suse.de>
28344
28345 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28346 assert with guard, remove check on detected reduction.
28347 (vect_recog_sad_pattern): Likewise.
28348 (vect_recog_widen_sum_pattern): Likewise.
28349
28350 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28351
28352 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28353 __always_inline__ attribute.
28354 (vaesdq_u8): Likewise.
28355 (vaesmcq_u8): Likewise.
28356 (vaesimcq_u8): Likewise.
28357 (vsha1cq_u32): Likewise.
28358 (vsha1mq_u32): Likewise.
28359 (vsha1pq_u32): Likewise.
28360 (vsha1h_u32): Likewise.
28361 (vsha1su0q_u32): Likewise.
28362 (vsha1su1q_u32): Likewise.
28363 (vsha256hq_u32): Likewise.
28364 (vsha256h2q_u32): Likewise.
28365 (vsha256su0q_u32): Likewise.
28366 (vsha256su1q_u32): Likewise.
28367 (vmull_p64): Likewise.
28368 (vmull_high_p64): Likewise.
28369
28370 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28371
28372 * final.c (final_scan_insn): Don't check HAVE_peephole with the
28373 preprocessor.
28374 * output.h: Likewise.
28375 * genconfig.c (main): Alwways define HAVE_peephole.
28376 * genpeep.c: Don't emit checks of HAVE_peephole.
28377
28378 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28379
28380 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28381 check HAVE_conditional_move with the preprocessor.
28382
28383 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28384
28385 * genconfig.c (main): Always define HAVE_conditional_move.
28386 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28387 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28388 is defined.
28389
28390 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28391
28392 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28393 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28394 and FRAME_POINTER_REGNUM with the preprocessor.
28395
28396 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28397
28398 * defaults.h: Add default for STACK_PUSH_CODE.
28399 * expr.c: Don't redefine STACK_PUSH_CODE.
28400 * recog.c: Likewise.
28401
28402 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28403
28404 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28405 sched-deps.c: Use if instead of preprocessor checks with
28406 STACK_GROWS_DOWNWARD.
28407
28408 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28409
28410 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28411 is defined.
28412 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28413 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28414 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28415 * doc/tm.texi: Regenerate.
28416
28417 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
28418
28419 PR target/66232
28420 * config/i386/constraints.md (Bg): New constraint for GOT memory
28421 operand.
28422 * config/i386/i386.md (*call_got_x32): New pattern.
28423 (*call_value_got_x32): Likewise.
28424 * config/i386/predicates.md (GOT_memory_operand): New predicate.
28425
28426 2015-05-21 Jakub Jelinek <jakub@redhat.com>
28427
28428 PR tree-optimization/66233
28429 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28430 Simplify.
28431
28432 2015-05-21 Jeff Law <law@redhat.com>
28433
28434 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28435 than MULT for shadd sequences.
28436
28437 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
28438
28439 * alias.c (alias_stats): New static var.
28440 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28441 (dump_alias_stats_in_alias_c): New function.
28442 * alias.h (dump_alias_stats_in_alias_c): Declare.
28443 * tree-ssa-alias.c (dump_alias_stats): Call it.
28444
28445 2015-05-08 Michael Matz <matz@suse.de>
28446
28447 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28448 to strided_p.
28449 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28450 (STMT_VINFO_STRIDED_P): ... this.
28451 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28452 (vect_verify_datarefs_alignment): Likewise.
28453 (vect_enhance_data_refs_alignment): Likewise.
28454 (vect_analyze_data_ref_access): Likewise.
28455 (vect_analyze_data_refs): Accept strided stores.
28456 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28457 (vect_model_load_cost): Adjust for macro rename.
28458 (vectorizable_mask_load_store): Likewise.
28459 (vectorizable_load): Likewise.
28460 (vectorizable_store): Open code strided stores.
28461
28462 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28463
28464 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28465 Document sqrt_insn.
28466
28467 2015-05-21 Richard Biener <rguenther@suse.de>
28468
28469 PR c++/66211
28470 * match.pd: Guard pattern optimzing (int)(float)int
28471 conversions to apply only on GIMPLE.
28472
28473 2015-05-21 Jeff Law <law@redhat.com>
28474
28475 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28476 multiply-accumulate/shift-add insn generation.
28477
28478 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28479
28480 PR target/54236
28481 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28482 operands[1] are the same.
28483
28484 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
28485
28486 PR middle-end/66221
28487 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28488 build_distinct_type_copy to copy bounds.
28489
28490 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28491
28492 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28493 Change to unsigned int.
28494
28495 2015-05-20 Jeff Law <law@redhat.com>
28496
28497 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28498 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28499 (pa_shadd_constant_p): Allow constants for shadd insns rather
28500 than valid scaling constants for memory addresses.
28501 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28502 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28503 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28504 (shift-add insns using ASHIFT): New patterns.
28505
28506 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28507
28508 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28509 feasible.
28510 (fix_up_fall_thru_edges): Likewise.
28511 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28512 from to rtx_insn to rtx_code_label where feasible.
28513 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28514 gen_move_insn (returned type changed to rtx_insn).
28515 * builtins.c (expand_errno_check): Fix arguments of
28516 do_compare_rtx_and_jump (now expects rtx_code_label).
28517 (expand_builtin_acc_on_device): Likewise.
28518 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28519 invert_jump (now exprects rtx_jump_insn).
28520 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28521 (construct_init_block): Use rtx_code_label.
28522 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28523 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28524 calling redirect_jump.
28525 (patch_jump_insn): Likewise.
28526 (redirect_branch_edge): Likewise.
28527 (force_nonfallthru_and_redirect): Likewise.
28528 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28529 when suitable.
28530 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28531 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28532 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28533 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28534 to store the value retured by gen_label_rtx.
28535 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28536 rtx_jump_insn.
28537 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28538 (split_branches): Fix calls of redirect_jump.
28539 * dojump.c (jumpifnot): Promote argument type from rtx to
28540 rtx_code_label.
28541 (jumpifnot_1): Likewise.
28542 (jumpif): Likewise.
28543 (jumpif_1): Likewise.
28544 (do_jump_1): Likewise.
28545 (do_jump): Likewise. Use rtx_code_label when feasible.
28546 (do_jump_by_parts_greater_rtx): Likewise.
28547 (do_jump_by_parts_zero_rtx): Likewise.
28548 (do_jump_by_parts_equality_rtx): Likewise.
28549 (do_compare_rtx_and_jump): Likewise.
28550 * dojump.h: Update function prototypes.
28551 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28552 returns rtx_insn).
28553 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28554 rtx_jump_insn.
28555 (emit_label_before): Likewise.
28556 (emit_jump_insn_after_noloc): Likewise.
28557 (emit_jump_insn_after_setloc): Likewise.
28558 (emit_jump_insn_after): Likewise
28559 (emit_jump_insn_before_setloc): Likewise.
28560 (emit_jump_insn_before): Likewise.
28561 (emit_label_before): Promote return type to rtx_code_label.
28562 (emit_label): Likewise.
28563 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28564 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28565 gen_move_insn.
28566 (emit_stack_restore): Likewise.
28567 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28568 (do_cmp_and_jump): Likewise.
28569 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28570 from rtx to rtx_code_label.
28571 (gen_move_insn_uncast): New function.
28572 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28573 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28574 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28575 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28576 invert_jump_1 and redirect_jump_1.
28577 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28578 do_compare_rtx_and_jump.
28579 (expand_addsub_overflow): Likewise.
28580 (expand_neg_overflow): Likewise.
28581 (expand_mul_overflow): Likewise.
28582 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28583 return value of gen_move_insn.
28584 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28585 * loop-doloop.c (add_test): Use rtx_code_label.
28586 (doloop_modify): Likewise.
28587 (doloop_optimize): Likewise.
28588 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28589 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28590 by gen_move_insn.
28591 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28592 (split_reg): Likewise.
28593 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28594 gen_move_insn.
28595 * optabs.c (expand_binop_directly): Remove casts of values returned by
28596 maybe_gen_insn.
28597 (expand_unop_direct): Likewise.
28598 (expand_abs): Likewise.
28599 (maybe_emit_unop_insn): Likewise.
28600 (maybe_gen_insn): Promote return type to rtx_insn.
28601 * optabs.h: Update prototype of maybe_gen_insn.
28602 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28603 redundant cast.
28604 * recog.c (struct peep2_insn_data): Promote type of insn field to
28605 rtx_insn.
28606 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28607 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28608 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28609 * recog.h (struct insn_gen_fn): Promote return types of function
28610 pointers and operator ().from rtx to rtx_insn.
28611 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28612 (fill_eager_delay_slots): Likewise.
28613 (relax_delay_slots): Likewise.
28614 (make_return_insns): Likewise.
28615 (dbr_schedule): Likewise.
28616 (optimize_skips): Likewise.
28617 (reorg_redirect_jump): Likewise.
28618 (fill_slots_from_thread): Likewise.
28619 * reorg.h: Update prototypes.
28620 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28621 rtx_jump_insn instead of check. Use it's jump_target method.
28622 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28623 (rtx_jump_insn::jump_target): Define new method.
28624 (rtx_jump_insn::set_jump_target): Define new method.
28625 * rtlanal.c (tablejump_p): Promote type of one local variable.
28626 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28627 (sched_analyze_insn): Likewise.
28628 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28629 (print_insn): Likewise.
28630 * stmt.c (label_rtx): Promote return type to rtx_insn.
28631 (force_label_rtx): Likewise.
28632 (jump_target_rtx): Define new function.
28633 (expand_label): Use it, get rid of one cast.
28634 (expand_naked_return): Promote rtx to rtx_code_label.
28635 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28636 (expand_case): Use rtx_code_label instread of rtx where feasible.
28637 (expand_sjlj_dispatch_table): Likewise.
28638 (emit_case_nodes): Likewise.
28639 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28640 * store-motion.c (insert_store): Make use of new return type of
28641 gen_move_insn and remove a cast.
28642 (replace_store_insn): Likewise.
28643
28644 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28645
28646 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28647 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28648
28649 2015-05-20 Jeff Law <law@redhat.com>
28650
28651 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28652 dispose of the jump thread path when the jump threading
28653 opportunity is cancelled.
28654
28655 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28656
28657 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28658 when printing the caret character.
28659
28660 2015-05-20 Marek Polacek <polacek@redhat.com>
28661
28662 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28663
28664 2015-05-20 Marek Polacek <polacek@redhat.com>
28665
28666 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28667 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28668 * gimple-fold.c (canonicalize_bool): Likewise.
28669 (same_bool_result_p): Likewise.
28670 * tree-if-conv.c (parse_predicate): Likewise.
28671
28672 2015-05-20 Marek Polacek <polacek@redhat.com>
28673
28674 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28675 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28676
28677 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28678
28679 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28680 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28681 values.
28682
28683 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28684
28685 * config/mips/mips.h (micromips_globals): Declare.
28686
28687 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28688
28689 * timevar.def (TV_INITIALIZE_RTL): New.
28690 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28691 function's time to TV_INITIALIZE_RTL.
28692
28693 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28694
28695 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28696 gimple_build_nop calls.
28697 (chkp_find_bounds_for_elem): Likewise.
28698 (chkp_get_zero_bounds): Likewise.
28699 (chkp_get_none_bounds): Likewise.
28700 (chkp_get_bounds_by_definition): Likewise.
28701 (chkp_generate_extern_var_bounds): Likewise.
28702 (chkp_get_bounds_for_decl_addr): Likewise.
28703 (chkp_get_bounds_for_string_cst): Likewise.
28704
28705 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28706
28707 PR tree-optimization/65447
28708 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28709 (dump_use, dump_uses): Support to dump sub use.
28710 (record_use): New parameters to support sub use. Remove call to
28711 dump_use.
28712 (record_sub_use, record_group_use): New functions.
28713 (compute_max_addr_offset, split_all_small_groups): New functions.
28714 (group_address_uses, rewrite_use_address): New functions.
28715 (strip_offset): New declaration.
28716 (find_interesting_uses_address): Call record_group_use.
28717 (add_candidate): New assertion.
28718 (infinite_cost_p): Move definition forward.
28719 (add_costs): Check INFTY cost and return immediately.
28720 (get_computation_cost_at): Clear setup cost and dependent bitmap
28721 for sub uses.
28722 (determine_use_iv_cost_address): Compute cost for sub uses.
28723 (rewrite_use_address_1): Rename from old rewrite_use_address.
28724 (free_loop_data): Free sub uses.
28725 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28726
28727 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28728 Jim Wilson <jim.wilson@linaro.org>
28729
28730 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28731 new fields loadv and storev.
28732 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28733 Initialize loadv and storev.
28734 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28735 (cortexa53_extra_costs): Likewise.
28736 (cortexa57_extra_costs): Likewise.
28737 (xgene1_extra_costs): Likewise.
28738 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28739 rtx_costs.
28740
28741 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28742
28743 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28744 storev.
28745 (cortexa8_extra_costs): Likewise.
28746 (cortexa5_extra_costs): Likewise.
28747 (cortexa7_extra_costs): Likewise.
28748 (cortexa12_extra_costs): Likewise.
28749 (cortexa15_extra_costs): Likewise.
28750 (v7m_extra_costs): Likewise.
28751
28752 2015-05-20 Jeff Law <law@redhat.com>
28753
28754 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28755 instead of open-coded version. Also delete the jump thread created
28756 within this function.
28757
28758 2015-05-20 Alan Modra <amodra@gmail.com>
28759
28760 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28761 stack adjusting insn. Formatting.
28762 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28763 r12. If possible, emit first -fsplit-stack arg pointer insn
28764 before stack adjust. Don't use r12 to save cr if split-stack.
28765
28766 2015-05-20 Alan Modra <amodra@gmail.com>
28767
28768 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28769 Define.
28770 (rs6000_supports_split_stack): New function.
28771 * config/rs6000/rs6000.c (machine_function): Add
28772 split_stack_arg_pointer.
28773 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28774 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28775 rather than virtual_incoming_args_rtx.
28776 (rs6000_va_start): Likewise.
28777 (split_stack_arg_pointer_used_p): New function.
28778 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28779 (morestack_ref): New var.
28780 (gen_add3_const, rs6000_expand_split_stack_prologue,
28781 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28782 rs6000_split_stack_space_check): New functions.
28783 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28784 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28785 (UNSPECV_SPLIT_STACK_RETURN): Define.
28786 (split_stack_prologue, load_split_stack_limit,
28787 load_split_stack_limit_di, load_split_stack_limit_si,
28788 split_stack_return, split_stack_space_check): New expands and insns.
28789 * config/rs6000/rs6000-protos.h
28790 (rs6000_expand_split_stack_prologue): Declare.
28791 (rs6000_split_stack_space_check): Declare.
28792
28793 2015-05-20 Alan Modra <amodra@gmail.com>
28794
28795 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28796 (direct_return): Test vrsave_size rather than vrsave_mask.
28797 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28798 (rs6000_emit_epilogue): Likewise.
28799
28800 2015-05-20 Alan Modra <amodra@gmail.com>
28801
28802 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28803 when not saving registers.
28804 (debug_stack_info): Adjust to omit printing unused offsets,
28805 as before.
28806 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28807 expression.
28808
28809 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28810
28811 PR c++/65835
28812 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28813 value_type to const char *.
28814
28815 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28816
28817 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28818 to build a biarch toolchain again.
28819
28820 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28821
28822 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28823 or implicit declarations.
28824 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28825 into it.
28826 (get_odr_type): Check type has linkage before adding bases.
28827 (register_odr_type): Check that type has linkage before adding it.
28828 (type_known_to_have_no_deriavations_p): Rename to ..
28829 (type_known_to_have_no_derivations_p): This one.
28830 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28831 (type_known_to_have_no_derivations_p): This one.
28832 * ipa-polymorphic-call.c
28833 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28834 type has linkage.
28835
28836 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28837
28838 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28839 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28840
28841 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28842
28843 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28844 (s390_invalid_binary_op): New function.
28845 (TARGET_INVALID_BINARY_OP): Define macro.
28846
28847 2015-05-19 David Sherwood <david.sherwood@arm.com>
28848
28849 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28850 if mode is not a scalar integer.
28851 (get_inv_cost): Increase computational cost for unused invariants.
28852
28853 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28854
28855 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28856 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28857 * config/s390/s390-builtin-types.def: New file.
28858 * config/s390/s390-builtins.def: New file.
28859 * config/s390/s390-builtins.h: New file.
28860 * config/s390/s390-c.c: New file.
28861 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28862 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28863 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28864 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28865 prototypes.
28866 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28867 Include.
28868 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28869 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28870 variable definitions.
28871 (s390_const_operand_ok): New function.
28872 (s390_expand_builtin): Rewrite.
28873 (s390_init_builtins): New function.
28874 (s390_handle_vectorbool_attribute): New function.
28875 (s390_attribute_table): Add s390_vector_bool attribute.
28876 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28877 (s390_branch_condition_mask): Generate masks for new modes.
28878 (s390_expand_vec_compare_cc): New function.
28879 (s390_mangle_type): Add mangling for vector bool types.
28880 (enum s390_builtin): Remove.
28881 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28882 efpc builtins.
28883 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28884 s390_cpu_cpp_builtins.
28885 (REGISTER_TARGET_PRAGMAS): New macro.
28886 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28887 (insn_cmp mode attribute): Add new CC modes.
28888 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28889 (lcbb): New pattern definition.
28890 * config/s390/s390intrin.h: Include vecintrin.h.
28891 * config/s390/t-s390: New file.
28892 * config/s390/vecintrin.h: New file.
28893 * config/s390/vector.md: Include vx-builtins.md.
28894 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28895 support.
28896
28897 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28898
28899 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28900 CCVFHE.
28901 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28902 (s390_select_ccmode): Likewise.
28903 (s390_canonicalize_comparison): Swap operands if necessary.
28904 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28905 single element vector instructions.
28906 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28907 (s390_branch_condition_mask): Generate CC masks for the new modes.
28908 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28909 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28910 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28911 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28912 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28913 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28914 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28915 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28916 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28917 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28918 (sqrt<mode>2): Add vector instruction.
28919
28920 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28921
28922 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28923 constraints.
28924 * config/s390/predicates.md (const0_operand, constm1_operand)
28925 (constable_operand): Accept vector operands.
28926 * config/s390/s390-modes.def: Add supported vector modes.
28927 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28928 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28929 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28930 (s390_expand_vec_compare, s390_expand_vcond)
28931 (s390_expand_vec_init): Add prototypes.
28932 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28933 (s390_vector_mode_supported_p): New function.
28934 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28935 (s390_contiguous_bitmask_vector_p): New function.
28936 (s390_bytemask_vector_p): New function.
28937 (s390_split_ok_p): Vector regs don't work either.
28938 (regclass_map): Add VEC_REGS.
28939 (s390_legitimate_constant_p): Handle vector constants.
28940 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28941 (legitimate_reload_vector_constant_p): New function.
28942 (s390_preferred_reload_class): Handle CONST_VECTOR.
28943 (s390_reload_symref_address): Likewise.
28944 (s390_secondary_reload): Vector memory instructions only support
28945 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28946 (s390_emit_ccraw_jump): New function.
28947 (s390_expand_vec_strlen): New function.
28948 (s390_expand_vec_compare): New function.
28949 (s390_expand_vcond): New function.
28950 (s390_expand_vec_init): New function.
28951 (s390_dwarf_frame_reg_mode): New function.
28952 (print_operand): Handle addresses with 'O' and 'R' constraints.
28953 (NR_C_MODES, constant_modes): Add vector modes.
28954 (s390_output_pool_entry): Handle vector constants.
28955 (s390_hard_regno_mode_ok): Handle vector registers.
28956 (s390_class_max_nregs): Likewise.
28957 (s390_cannot_change_mode_class): New function.
28958 (s390_invalid_arg_for_unprototyped_fn): New function.
28959 (s390_function_arg_vector): New function.
28960 (s390_function_arg_float): Remove size variable.
28961 (s390_pass_by_reference): Handle vector arguments.
28962 (s390_function_arg_advance): Likewise.
28963 (s390_function_arg): Likewise.
28964 (s390_return_in_memory): Vector values are returned in a VR if
28965 possible.
28966 (s390_function_and_libcall_value): Handle vector arguments.
28967 (s390_gimplify_va_arg): Likewise.
28968 (s390_call_saved_register_used): Consider the arguments named.
28969 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28970 targets.
28971 (s390_preferred_simd_mode): New function.
28972 (s390_support_vector_misalignment): New function.
28973 (s390_vector_alignment): New function.
28974 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28975 (TARGET_VECTOR_MODE_SUPPORTED_P)
28976 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28977 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28978 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28979 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28980 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28981 (FIRST_PSEUDO_REGISTER): Increase value.
28982 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28983 (VECTOR_REG_P): Define macros.
28984 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28985 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28986 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28987 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28988 Add vector registers.
28989 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28990 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28991 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28992 memory.
28993 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28994 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28995 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28996 (VR*_REGNUM): New constants.
28997 (ALL): New mode iterator.
28998 (INTALL): Remove mode iterator.
28999 Include vector.md.
29000 (movti): Implement TImode moves for VRs.
29001 Disable TImode splitter for VR targets.
29002 Implement splitting TImode GPR<->VR moves.
29003 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29004 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29005 reload<mode>_la_in, reload<mode>_la_out.
29006 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29007 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29008 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29009 (mov<mode> SF SD): Prefer lder, lde for loading.
29010 Add lrl and strl instructions.
29011 Add vector instructions.
29012 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29013 Call s390_expand_vec_strlen on z13.
29014 (*cc_to_int): Change predicate to nonimmediate_operand.
29015 (addti3): Rename to *addti3. New expander.
29016 (subti3): Rename to *subti3. New expander.
29017 * config/s390/vector.md: New file.
29018
29019 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29020
29021 * common/config/s390/s390-common.c (processor_flags_table): Add
29022 z13.
29023 * config.gcc: Add z13.
29024 * config/s390/s390-opts.h (enum processor_type): Add
29025 PROCESSOR_2964_Z13.
29026 * config/s390/s390.c (s390_adjust_priority): Check for
29027 PROCESSOR_2964_Z13.
29028 (s390_reorg): Likewise.
29029 (s390_sched_reorder): Likewise.
29030 (s390_sched_variable_issue): Likewise.
29031 (s390_loop_unroll_adjust): Likewise.
29032 (s390_option_override): Likewise. Default to -mvx when available.
29033 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29034 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29035 (TARGET_VX_ABI): Define macros.
29036 macros.
29037 (TARGET_DEFAULT): Add MASK_OPT_VX.
29038 * config/s390/s390.md ("cpu" attribute): Add z13.
29039 ("cpu_facility" attribute): Add vec.
29040 * config/s390/s390.opt (processor_type): Add z13.
29041 (mvx): New options.
29042 * doc/invoke.texi: Add z13 option for -march.
29043
29044 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29045
29046 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29047 mode check to make sure that only scalar integer values are
29048 accepted.
29049
29050 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29051
29052 * tree.c (verify_type_variant): Fix #undef.
29053 (gimple_canonical_types_compatible_p): Move here from lto.c
29054 (verify_type): Verify TYPE_CANONICAL compatibility.
29055 * tree.h (gimple_canonical_types_compatible_p): Declare.
29056
29057 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29058
29059 PR middle-end/66199
29060 * tree.h (OMP_TEAMS_COMBINED): Define.
29061 * gimplify.c (enum gimplify_omp_var_data): Add
29062 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29063 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29064 (omp_notice_variable): Accept both ORT_TEAMS
29065 and ORT_COMBINED_TEAMS. Don't recurse if
29066 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29067 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29068 GOVD_FIRSTPRIVATE.
29069 (omp_no_lastprivate): New function.
29070 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29071 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29072 notice_outer and set appropriate bits, otherwise make
29073 sure default(none) combined constructs won't complain.
29074 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29075 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29076 omp_no_lastprivate either remove the clause or turn it
29077 into OMP_CLAUSE_PRIVATE.
29078 (gimplify_omp_for): Fix up handling of implicit
29079 lastprivate or linear iterators.
29080 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29081 ORT_COMBINED_TEAMS.
29082 * omp-low.c (lower_omp_for_lastprivate): For combined
29083 for simd use fd.loop.n2 from the for rather than simd.
29084
29085 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29086
29087 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29088 instead of gen_rtx_raw_REG.
29089 (cris_expand_epilogue): Likewise.
29090 * config/microblaze/microblaze.c (microblaze_classify_address):
29091 Likewise.
29092 * config/sparc/sparc.md: Likewise.
29093
29094 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29095
29096 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29097 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29098 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29099 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29100 Use CASE_CONST_SCALAR_INT.
29101 (print_operand) <case 'M'>: Use mode_width_operand to check the
29102 value of the constant.
29103 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29104 * config/alpha/predicates.md (input_operand): Use general_operand
29105 instead of match_code as operand check.
29106 (symbolic_operand): Use match_code with subexpression digits.
29107 * config/alpha/constraints.md (Q): Ditto.
29108
29109 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29110
29111 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29112
29113 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29114
29115 * config/s390/s390.c (s390_secondary_reload): Fix check for
29116 load/store relative.
29117
29118 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29119
29120 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29121 alternative_mask to uint64_t.
29122
29123 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29124
29125 PR tree-optimization/66187
29126 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29127 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29128 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29129
29130 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29131
29132 * diagnostic.c (diagnostic_report_current_module): Strengthen
29133 local "new_map" from const line_map * to
29134 const line_map_ordinary *.
29135 * genmatch.c (error_cb): Likewise for local "map".
29136 (output_line_directive): Likewise for local "map".
29137 * input.c (expand_location_1): Likewise for local "map".
29138 Pass NULL rather than &map to
29139 linemap_unwind_to_first_non_reserved_loc, since the value is never
29140 read from there, and the value written back not read from here.
29141 (is_location_from_builtin_token): Strengthen local "map" from
29142 const line_map * to const line_map_ordinary *.
29143 (dump_location_info): Strengthen locals "map" from
29144 line_map *, one to const line_map_ordinary *, the other
29145 to const line_map_macro *.
29146 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29147 const line_map * to const line_map_macro *.
29148 (maybe_unwind_expanded_macro_loc): Add a call to
29149 linemap_check_macro when writing to the "map" field of the
29150 loc_map_pair.
29151 Introduce local const line_map_ordinary * "ord_map", using it in
29152 place of "map" in the part of the function where we know we have
29153 an ordinary map. Strengthen local "m" from const line_map * to
29154 const line_map_ordinary *.
29155
29156 2015-05-19 Nick Clifton <nickc@redhat.com>
29157
29158 PR target/66156
29159 * config/msp430/msp430.md (zero_extendhisi2): Add support for
29160 separate source and destination registers.
29161
29162 2015-05-19 Richard Biener <rguenther@suse.de>
29163
29164 PR tree-optimization/66165
29165 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29166 for no load permutation.
29167
29168 PR tree-optimization/66185
29169 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29170 when building the SLP node from scalars.
29171
29172 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29173 Tristan Gingold <gingold@adacore.com>
29174
29175 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29176 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29177 (expand_stack_restore): Call record_new_stack_level.
29178 (expand_stack_save): Do not call do_pending_stack_adjust.
29179 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29180 * calls.c (expand_call): Call record_new_stack_level for alloca.
29181 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29182 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29183 (update_sjlj_context): New global function.
29184 * except.h (update_sjlj_context): Declare.
29185 * explow.c (record_new_stack_level): New global function.
29186 (allocate_dynamic_stack_space): Call record_new_stack_level.
29187 * explow.h (record_new_stack_level): Declare.
29188 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29189 * cfgrtl.c (duplicate_insn_chain): Likewise.
29190
29191 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29192
29193 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29194 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29195 STACK_GROWS_DOWNWARD as normal if.
29196 (expand_call): Likewise.
29197
29198 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29199
29200 PR target/54236
29201 * config/sh/sh.md (*round_int_even): New insn_and_split and
29202 accompanying new unnamed split.
29203
29204 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29205
29206 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29207 (bitmap_clear_range): Likewise.
29208 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29209 bitmap_set_range unconditionally.
29210 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29211 * df-scan.c (df_mark_reg): Likewise.
29212 * haifa-sched.c (setup_ref_regs): Likewise.
29213 * sched-rgn.c (update_live_1): Likewise.
29214
29215 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29216
29217 * regs.h (END_HARD_REGNO): Delete.
29218 (END_REGNO): Move to...
29219 * rtl.h: ...here.
29220 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29221 * caller-save.c (mark_set_regs): Likewise.
29222 * combine.c (move_deaths, distribute_notes): Likewise.
29223 * cse.c (invalidate, invalidate_for_call): Likewise.
29224 * df-scan.c (df_ref_record): Likewise.
29225 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29226 (record_last_reg_set_info): Likewise.
29227 * reg-stack.c (convert_regs_exit): Likewise.
29228 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29229 * resource.c (update_live_status): Likewise.
29230 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29231
29232 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29233
29234 * rtl.h (reg_info): Add an nregs field.
29235 (REG_NREGS): Use it.
29236 (SET_REGNO_RAW): Delete.
29237 (set_regno_raw): New function.
29238 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29239 (END_REGNO): Redefine in terms of REG_NREGS.
29240 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29241 SET_REGNO_RAW.
29242 * emit-rtl.c (set_mode_and_regno): Likewise.
29243 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29244 instead of SET_REGNO_RAW.
29245
29246 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29247
29248 * rtl.h (PUT_MODE_RAW): New macro.
29249 (PUT_REG_NOTE_KIND): Use it.
29250 (set_mode_and_regno): Declare.
29251 (gen_raw_REG): Change regno to "unsigned int".
29252 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29253 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29254 use set_mode_and_regno to change the mode of registers.
29255 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29256 * emit-rtl.c (set_mode_and_regno): New function.
29257 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29258 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29259 * expr.c (init_expr_target): Likewise.
29260 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29261 * postreload.c (reload_cse_simplify_operands): Likewise.
29262
29263 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29264
29265 * caller-save.c (init_caller_save): Use word_mode and
29266 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29267 * expr.c (init_expr_target): Likewise.
29268 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29269 * postreload.c (reload_cse_regs_1): Likewise.
29270
29271 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29272
29273 * rtl.def (REG): Change format to "r".
29274 * rtl.h (rtunion): Remove rt_reg.
29275 (reg_info): New structure.
29276 (rtx_def): Add reg field to main union.
29277 (X0REGATTR): Delete.
29278 (REG_CHECK): New macro.
29279 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29280 * rtl.c (rtx_format): Document "r".
29281 (rtx_code_size): Handle REG specially.
29282 * gengenrtl.c (special_format): Return true for formats
29283 that include 'r'.
29284 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29285 Deal with REG_ATTRS after the field loop.
29286 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29287 * expmed.c (init_expmed): Call gen_raw_REG instead of
29288 gen_rtx_raw_REG.
29289 * expr.c (init_expr_target): Likewise.
29290 * regcprop.c (maybe_mode_change): Likewise.
29291 * varasm.c (make_decl_rtl): Likewise.
29292 * final.c (leaf_renumber_regs_insn): Return early after
29293 handling REGs.
29294 * genemit.c (gen_exp): Handle 'r' fields.
29295 * genpeep.c (match_rtx): Likewise.
29296 * gensupport.c (subst_pattern_match): Likewise.
29297 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29298 (alter_constraints, subst_dup): Likewise.
29299 * read-rtl.c (read_rtx_code): Likewise.
29300 * print-rtl.c (print_rtx): Likewise.
29301 * genrecog.c (find_operand, find_matching_operand): Likewise.
29302 (validate_pattern, match_pattern_2): Likewise.
29303 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29304 (rtx_test::regno_field): New function.
29305 (operator ==, safe_to_hoist_p, transition_parameter_type)
29306 (parameter_type_string, print_parameter_value)
29307 (print_nonbool_test, print_test): Handle new enum values.
29308 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29309 * lra-constraints.c (operands_match_p): Likewise.
29310
29311 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29312
29313 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29314 Change type of new_regno to unsigned int.
29315 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29316 new_regno to unsigned int.
29317 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29318 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29319 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29320 (SET_REGNO_RAW): Add space after ",".
29321
29322 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29323
29324 * rtl.h (REG_NREGS): New macro
29325 * alias.c (record_set): Use it.
29326 * cfgcleanup.c (mark_effect): Likewise.
29327 * combine.c (likely_spilled_retval_1): Likewise.
29328 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29329 (move_deaths, distribute_notes): Likewise.
29330 * cselib.c (cselib_record_set): Likewise.
29331 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29332 * df-scan.c (df_mark_reg): Likewise.
29333 * dse.c (look_for_hardregs): Likewise.
29334 * dwarf2out.c (reg_loc_descriptor): Likewise.
29335 (multiple_reg_loc_descriptor): Likewise.
29336 * expr.c (write_complex_part, read_complex_part): Likewise.
29337 (emit_move_complex): Likewise.
29338 * haifa-sched.c (setup_ref_regs): Likewise.
29339 * ira-lives.c (mark_hard_reg_live): Likewise.
29340 * lra.c (lra_set_insn_recog_data): Likewise.
29341 * mode-switching.c (create_pre_exit): Likewise.
29342 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29343 (reload_combine_recognize_pattern): Likewise.
29344 (reload_combine_note_use, move2add_record_mode): Likewise.
29345 (reload_cse_move2add): Likewise.
29346 * reg-stack.c (subst_stack_regs_pat): Likewise.
29347 * regcprop.c (kill_value, copy_value): Likewise.
29348 (copyprop_hardreg_forward_1): Likewise.
29349 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29350 (build_def_use): Likewise.
29351 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29352 (deps_analyze_insn): Likewise.
29353 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29354 * sel-sched.c (count_occurrences_equiv): Likewise.
29355 * valtrack.c (dead_debug_insert_temp): Likewise.
29356
29357 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29358
29359 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29360 * dse.c (note_add_store): Likewise.
29361 * ira-lives.c (mark_hard_reg_dead): Likewise.
29362 * loop-invariant.c (mark_reg_store): Likewise.
29363 (mark_reg_death): Likewise.
29364 * postreload.c (reload_combine): Likewise.
29365 (reload_combine_note_store): Likewise.
29366 (reload_combine_note_use): Likewise.
29367 * recog.c (peep2_reg_dead_p): Likewise.
29368
29369 2015-05-19 Alan Modra <amodra@gmail.com>
29370
29371 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29372 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29373 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29374 unused predicates.
29375 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29376 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
29377 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29378 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29379
29380 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
29381
29382 * config/mips/mips.md (JOIN_MODE): New mode iterator.
29383 (join2_load_Store<JOIN_MODE:mode>): New pattern.
29384 (join2_loadhi): Likewise.
29385 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29386 load-load and store-stores.
29387 * config/mips/mips.opt (mload-store-pairs): New option.
29388 (TARGET_LOAD_STORE_PAIRS): New macro.
29389 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29390 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29391 * config/mips/mips.c (mips_load_store_bonding_p): New function.
29392
29393 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
29394
29395 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29396 explicit swaps.
29397 * dojump.c (do_compare_rtx_and_jump): Likewise.
29398 * expmed.c (emit_store_flag_1): Likewise.
29399 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29400 * final.c (sprint_ul): Use std::reverse for reversing a string.
29401 * fold-const.c (extract_muldiv_1): Use std::swap.
29402 * genmodes.c (emit_mode_int_n): Likewise.
29403 * ifcvt.c (dead_or_predicable): Likewise.
29404 * ira-build.c (ira_merge_live_ranges): Likewise.
29405 (swap_allocno_copy_ends_if_necessary): Likewise.
29406 * ira.c (ira_setup_alts): Likewise.
29407 * loop-iv.c (iv_analyze_expr): Likewise.
29408 (implies_p): Likewise.
29409 (canon_condition): Likewise.
29410 * lra-constraints.c (swap_operands): Likewise.
29411 * lra-lives.c (lra_merge_live_ranges): Likewise.
29412 * omega.c (swap): Remove.
29413 (bswap): Remove.
29414 (omega_unprotect_1): Use std::swap.
29415 (omega_solve_geq): Likewise.
29416 * optabs.c (expand_binop_directly): Likewise.
29417 (expand_binop): Likewise.
29418 (emit_conditional_move): Likewise.
29419 (emit_conditional_add): Likewise.
29420 * postreload.c (reload_cse_simplify_operands): Likewise.
29421 * reg-stack.c (emit_swap_insn): Likewise.
29422 (swap_to_top): Likewise.
29423 (compare_for_stack_reg): Likewise.
29424 (subst_asm_stack_regs): Likewise.
29425 * reload.c (find_reloads): Likewise.
29426 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29427 * sel-sched.c (invoke_reorder_hooks): Likewise.
29428 (create_block_for_bookkeeping): Likewise.
29429 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29430 (lambda_matrix_right_hermite): Use std::swap.
29431 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29432 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29433 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29434 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29435 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29436 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29437 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29438 * tree-vrp.c (compare_ranges): Likewise.
29439 * var-tracking.c (add_with_sets): Likewise.
29440 (vt_find_locations): Likewise.
29441
29442 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
29443
29444 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29445 pie executables.
29446 (FBSD_ENDFILE_SPEC): Likewise.
29447 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29448 config/freebsd-spec.h.
29449 (ENDFILE_SPEC): Likewise.
29450
29451 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
29452 Richard Henderson <rth@redhat.com>
29453
29454 PR target/57032
29455 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29456 Check for a memory location that is not a reference (using an AND)
29457 to an unaligned location here.
29458 * config/alpha/predicates.md (normal_memory_operand): Remove.
29459
29460 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
29461
29462 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29463 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29464
29465 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
29466
29467 * config/mips/mips.c (micromips_globals): New variable.
29468 (mips_set_compression_mode): Save and reinitialize target-dependent
29469 state for microMIPS.
29470
29471 2015-05-18 Martin Liska <mliska@suse.cz>
29472
29473 * dbgcnt.def: Add new counter.
29474 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29475
29476 2015-05-18 Martin Liska <mliska@suse.cz>
29477
29478 * dbgcnt.def: Sort counters.
29479 * opts.c (common_handle_option): Do not compile if
29480 -fdbg-cnt-list is enabled.
29481
29482 2015-05-18 Tom de Vries <tom@codesourcery.com>
29483
29484 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29485 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
29486 address operator to va_list operand.
29487 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29488 unconditionally.
29489 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29490 operand.
29491 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29492 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29493 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29494
29495 2015-05-18 Tom de Vries <tom@codesourcery.com>
29496
29497 * tree-ssa-tail-merge.c: Fix whitespace.
29498
29499 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29500
29501 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29502 cortex-a17, and cortex-a17.cortex-a7.
29503
29504 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29505
29506 PR target/54236
29507 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29508
29509 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29510
29511 PR target/66174
29512 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29513 QImode inner modes for TARGET_AVX512BW. Force mask operand
29514 to a register for AVX512F modes.
29515
29516 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29517
29518 * toplev.c (emit_debug_global_declarations): Do not output debug info
29519 when doing slim LTO objects.
29520
29521 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29522
29523 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29524 odr_types_equivalent_p): Declare.
29525 (odr_type_p): Use gcc_checking_assert.
29526 (type_in_anonymous_namespace_p) Declare.
29527 (type_with_linkage_p): Declare.
29528 * common.opt (Wlto-type-mismatch): New warning.
29529 * ipa-devirt.c (compound_type_base): New function.
29530 (odr_or_derived_type_p): New function.
29531 (odr_types_equivalent_p): New function.
29532 (add_type_duplicate): Simplify.
29533 (type_with_linkage_p): Add hack to prevent false positives on C types
29534 (type_in_anonymous_namespace_p): Likewise.
29535 * tree.c (need_assembler_name_p): Use type_with_linkage.
29536 * tree.h (type_in_anonymous_namespace_p): Remove.
29537 * doc/invoke.texi (-Wlto-type-mismatch): Document
29538
29539 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29540
29541 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29542 (verify_type): Verify STRING_FLAG.
29543
29544 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29545
29546 PR fortran/44054
29547 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29548 with accessor function.
29549 * tree-diagnostic.c (diagnostic_report_current_function): Use
29550 diagnostic_location function.
29551 (maybe_unwind_expanded_macro_loc): Likewise.
29552 (virt_loc_aware_diagnostic_finalizer): Likewise.
29553 (default_tree_printer): Replace locus pointer with accessor function.
29554 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29555 (diagnostic_set_info_translated): Initialize second location.
29556 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29557 (diagnostic_show_locus): Handle two locations. Call
29558 diagnostic_print_caret_line.
29559 (diagnostic_print_caret_line): New.
29560 (default_diagnostic_starter): Use diagnostic_location function.
29561 (diagnostic_report_diagnostic): Use diagnostic_location function.
29562 (verbatim): Do not set text.locus.
29563 * diagnostic.h (struct diagnostic_info): Remove location field.
29564 (struct diagnostic_context): Make caret_chars an array of two.
29565 (diagnostic_location): New inline.
29566 (diagnostic_expand_location): Handle two locations.
29567 (diagnostic_same_line): New inline.
29568 (diagnostic_print_caret_line): Declare.
29569 (CARET_LINE_MARGIN): New constant.
29570 * pretty-print.c (pp_printf): Do not set text.locus.
29571 (pp_verbatim): Do not set text.locus.
29572 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29573 (struct text_info): Replace locus pointer with locations
29574 array. Add accessor functions.
29575
29576 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29577 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29578
29579 PR target/65768
29580 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29581 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29582 large constants in register instead of splitting them.
29583
29584 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29585
29586 PR target/66140
29587 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29588 replacements in memory addresses.
29589 (get_unaligned_address): Ditto.
29590
29591 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29592
29593 * config/ft32/*: New files for FT32 port.
29594 * doc/install.texi: Add FT32 information.
29595 * doc/invoke.texi: Add FT32 information.
29596 * doc/md.texi: Add FT32 information.
29597 * doc/contrib.texi: Self added.
29598
29599 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29600
29601 PR tree-optimization/64454
29602 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29603 (-1 - A -> ~A): Remove unnecessary condition.
29604
29605 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29606
29607 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29608 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29609 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29610
29611 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29612
29613 * ipa-chkp.h (chkp_wrap_function): New.
29614 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29615 (chkp_wrap_function_name): New.
29616 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29617 to get wrapper name.
29618 * lto-cgraph.c: Include ipa-chkp.h.
29619 (input_cgraph_1): Avoid alias chain for wrappers.
29620
29621 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29622
29623 PR middle-end/66134
29624 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29625 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29626
29627 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29628
29629 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29630 (AARCH64_FL_SLOWMUL): Delete.
29631 (AARCH64_FL_CRC): Redefine to 1<<3.
29632 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29633
29634 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29635
29636 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29637 casting.
29638
29639 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29640
29641 * config/alpha/alpha.md (extendqidi2): Use general_operand
29642 instead of some_operand for operand[1] predicate.
29643 (extendhidi2): Ditto.
29644 (cbranchdi4): Use general_operand instead of some_operand
29645 for operand[1] and operands[2] predicates.
29646 (cstoredi4): Ditto.
29647 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29648 (some_ni_operand): Ditto.
29649
29650 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29651
29652 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29653 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29654 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29655 low part of the constant using alpha_emit_set_const_1.
29656 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29657
29658 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29659
29660 * varasm.c (output_constant_pool_1): Pass down alignment from
29661 constant pool entry's descriptor to output_constant_pool_2.
29662 (output_object_block): Add comment prior to call to
29663 output_constant_pool_1.
29664
29665 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29666
29667 PR rtl-optimization/65862
29668 * target.def (ira_change_pseudo_allocno_class): New hook.
29669 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29670 value of the hook.
29671 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29672 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29673 hook.
29674 * ira-costs.c (find_costs_and_classes): Call the hook and change
29675 classes when it is necessary.
29676 * doc/tm.texi: Update.
29677
29678 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29679
29680 * config/i386/i386.md (sibcall_memory): Check that register with
29681 callee address is not also used as one of the arguments, instead
29682 of checking that it is not live after the sibcall.
29683 (sibcall_pop_memory): Ditto.
29684 (sibcall_value_memory): Ditto.
29685 (sibcall_value_pop_memory): Ditto.
29686
29687 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29688
29689 * generic-match-head.c (types_match): Handle non-types.
29690 * gimple-match-head.c (types_match): Likewise.
29691 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29692
29693 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29694
29695 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29696 (csneg3<mode>_insn): Enable expansion of pattern.
29697
29698 2015-05-14 Nick Clifton <nickc@redhat.com>
29699
29700 * config/rl78/rl78.c (rl78_select_section): Select the correct
29701 default section based upon the category of the decl.
29702
29703 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29704
29705 PR rtl-optimization/30967
29706 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29707 destination mode for the cost of scc patterns.
29708
29709 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29710
29711 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29712 using SWIM248 mode iterator.
29713 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29714 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29715 for operand[2] constraint.
29716 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29717
29718 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29719
29720 PR middle-end/66133
29721 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29722 make sure it is never noreturn, even when the task body does not
29723 return.
29724 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29725 right before GIMPLE_OMP_RETURN.
29726 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29727 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29728 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29729
29730 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29731
29732 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29733 * tree-ssa-math-opts.c: Include params.h
29734 (pow_synth_sqrt_info): New struct.
29735 (representable_as_half_series_p): New function.
29736 (get_fn_chain): Likewise.
29737 (print_nested_fn): Likewise.
29738 (dump_fractional_sqrt_sequence): Likewise.
29739 (dump_integer_part): Likewise.
29740 (expand_pow_as_sqrts): Likewise.
29741 (gimple_expand_builtin_pow): Use above to attempt to expand
29742 pow as series of square roots. Removed now unused variables.
29743
29744 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29745
29746 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29747 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29748 Remove *p0 and *p1 arguments. Rewrite function.
29749 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29750 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29751 alpha_emit_set_long_const.
29752 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29753 (alpha_output_mi_thunk_osf): Ditto.
29754 * config/alpha/alpha.md (movti): Do not check operands[1]
29755 for CONST_DOUBLE.
29756
29757 2015-05-13 Richard Biener <rguenther@suse.de>
29758
29759 PR tree-optimization/66129
29760 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29761 commutative.
29762 (vect_schedule_slp_instance): Fix typo.
29763
29764 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29765
29766 * common.opt (fdump-internal-locations): New option.
29767 * input.c: Include diagnostic-core.h.
29768 (get_end_location): New function.
29769 (write_digit): New function.
29770 (write_digit_row): New function.
29771 (dump_location_range): New function.
29772 (dump_labelled_location_range): New function.
29773 (dump_location_info): New function.
29774 * input.h (dump_location_info): New prototype.
29775 * toplev.c (compile_file): Handle flag_dump_locations.
29776
29777 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29778
29779 * gimple-expr.h (is_gimple_constant): Reorder.
29780 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29781
29782 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29783
29784 * combine.c (simplify_set): When generating a CC set, if the
29785 source already is in the correct mode, do not wrap it in a
29786 compare. Simplify the rest of that code.
29787
29788 2015-05-13 Richard Biener <rguenther@suse.de>
29789
29790 PR tree-optimization/66123
29791 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29792 a taken edge.
29793
29794 2015-05-13 Richard Biener <rguenther@suse.de>
29795
29796 PR middle-end/66110
29797 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29798 specially.
29799 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29800
29801 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29802
29803 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29804 * aclocal.m4: Regenerated with automake-1.11.6.
29805
29806 2015-05-13 Tom de Vries <tom@codesourcery.com>
29807
29808 PR tree-optimization/66010
29809 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29810 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29811 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29812 and rval based on do_deref.
29813
29814 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29815
29816 PR target/65103
29817 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29818 link time constants into adress expressions and therefore set
29819 their cost to 0.
29820
29821 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29822
29823 PR target/66112
29824 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29825 Use SWI248 iterator instead of SWI.
29826 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29827 Use eq_attr "alternative" "0" instead of match_test in
29828 length_immediate attribute computation.
29829 (*mulvhi4, *mulvhi4_1): New define_insns.
29830
29831 PR target/66112
29832 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29833 SIGNED to get precision of non-negative value.
29834
29835 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29836
29837 PR target/66048
29838 * function.c (diddle_return_value_1): Process bounds first.
29839 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29840 register.
29841
29842 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29843
29844 PR rtl-optimization/64616
29845 * loop-invariant.c (can_move_invariant_reg): New.
29846 (move_invariant_reg): Call above new function to decide whether
29847 instruction can just be moved, skipping creation of temporary
29848 register.
29849
29850 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29851
29852 PR target/pr66047.c
29853 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29854 with implied regparm is called from -mno-sse function.
29855 (init_cumulative_args): Output error if ix86_function_sseregparm
29856 return -1 and SSE register would be needed.
29857 (function_arg_advance_32): Likewise.
29858 (function_arg_32): Likewise.
29859 * i386.h (ix86_args): Add decl field.
29860
29861 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29862
29863 PR ipa/65873
29864 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29865 inlines across optimization boundary.
29866
29867 2015-05-12 Jason Merrill <jason@redhat.com>
29868
29869 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29870 string literal and macro name.
29871
29872 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29873
29874 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29875 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29876 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29877
29878 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29879
29880 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29881 (-Wmisleading-indentation): New option.
29882 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29883
29884 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29885
29886 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29887 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29888 (alpha_extract_integer): Ditto.
29889 (alpha_legitimate_constant_p): Ditto.
29890 (alpha_split_tmode_pair): Ditto.
29891 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29892 (alpha_expand_mov): Ditto.
29893 (print_operand): Remove handling of 'H' modifier.
29894 <case 'm'>: Remove CONST_DOUBLE handling.
29895 (summarize_insn): Handle CONST_WIDE_INT.
29896 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29897 (anddi3): Ditto.
29898 (movti): Handle CONST_WIDE_INT.
29899 * config/alpha/constraints.md ('H'): Remove constraint definition.
29900 ('G'): Do not match MODE_FLOAT class.
29901 * config/alpha/predicates.md (const0_operand): Also match
29902 const_wide_int.
29903 (non_add_const_operand): Ditto.
29904 (non_zero_const_operand): Ditto.
29905 (some_operand): Ditto.
29906 (input_operand): Ditto. Handle CONST_WIDE_INT.
29907 (and_operand): Do not match const_double.
29908 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29909
29910 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29911
29912 PR target/65697
29913 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29914 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29915 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29916 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29917 is_mm_seq_cst, is_mm_sync): New accessor functions.
29918 * builtins.c (expand_builtin_sync_operation,
29919 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29920 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29921 (get_memmodel, expand_builtin_atomic_compare_exchange,
29922 expand_builtin_atomic_load, expand_builtin_atomic_store,
29923 expand_builtin_atomic_clear): Use new accessor routines.
29924 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29925 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29926 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29927 MEMMODEL_SYNC_ACQUIRE.
29928 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29929 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29930 expand_atomic_store): Use new accessors.
29931 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29932 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29933 final enum to use MEMMODEL_LAST.
29934 * c-family/c-common.c: Use new accessor for memmodel_base.
29935 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29936 accessors.
29937 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29938 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29939 mem_thread_fence, *dmb): Likewise.
29940 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29941 alpha_split_compare_and_swap_12): Likewise.
29942 * config/arm/arm.c (arm_expand_compare_and_swap,
29943 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29944 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29945 atomic_loaddi): Likewise.
29946 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29947 Likewise.
29948 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29949 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29950 use new accessors.
29951 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29952 atomic_store<mode>, atomic_compare_and_swap<mode>,
29953 atomic_exchange<mode>): Use new accessors.
29954 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29955 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29956 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29957 rs6000_post_atomic_barrier): Add new cases.
29958 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29959 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29960 (atomic_load<mode>): Add new cases and use new accessors.
29961 (store_quadpti): Add new cases.
29962 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29963 accessors.
29964 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29965 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29966 model, not 8.
29967
29968 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29969
29970 * ipa-devirt.c (type_with_linkage_p): New function.
29971 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29972 type has linkage.
29973 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29974 (can_be_name_hashed_p): Simplify.
29975 (hash_odr_name): Check that type has linkage before checking if it is
29976 anonymous.
29977 (types_same_for_odr): Likewise.
29978 (odr_name_hasher::equal): Likewise.
29979 (odr_subtypes_equivalent_p): Likewise.
29980 (warn_types_mismatch): Likewise.
29981 (get_odr_type): Likewise.
29982 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29983 * ipa-utils.h (odr_type_p): Move offline.
29984 * tree.c (need_assembler_name_p): Fix handling of types
29985 without linkages.
29986 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29987
29988 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29989
29990 * timevar.c (timevar_enable): Delete in favor of...
29991 (g_timer): New global.
29992 (struct timevar_def): Move to timevar.h inside class timer.
29993 (struct timevar_stack_def): Likewise.
29994 (timevars): Delete global in favor of field "m_timevars" within
29995 class timer in timevar.h
29996 (stack): Likewise, in favor of field "m_stack".
29997 (unused_stack_instances): Likewise, in favor of field
29998 "m_unused_stack_instances".
29999 (start_time): Likewise, in favor of field "m_start_time".
30000 (get_time): Eliminate check for timevar_enable.
30001 (timer::timer): New function, built from part of timevar_init.
30002 (timevar_init): Rewrite idempotency test from using
30003 "timevar_enable" bool to using dynamic allocation of "g_timer".
30004 Move rest of implementation into timer's constructor.
30005 (timevar_push_1): Rename to...
30006 (timer::push): ...this, adding "m_" prefixes to variables that
30007 are now fields of timer.
30008 (timevar_pop_1): Likewise, rename to...
30009 (timer::pop): ...this, and add "m_" prefixes.
30010 (timevar_start): Replace test for "timevar_enable" with one for
30011 "g_timer", and move bulk of implementation to...
30012 (timer::start): ...here, adding "m_" prefixes.
30013 (timevar_stop): Likewise, from here...
30014 (timer::stop): ...to here.
30015 (timevar_cond_start): Likewise, from here...
30016 (timer::cond_start): ...to here.
30017 (timevar_cond_stop): Likewise, from here...
30018 (timer::cond_stop): ...to here.
30019 (validate_phases): Rename to...
30020 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30021 locals "total" and "tv" const.
30022 (timevar_print): Rename to...
30023 (timer::print): ...this, and add "m_" prefixes. Make locals
30024 "total" and "tv" const. Eliminate test for timevar_enable.
30025 * timevar.h (timevar_enable): Eliminate.
30026 (g_timer): New declaration.
30027 (timevar_push_1): Eliminate.
30028 (timevar_pop_1): Eliminate.
30029 (timevar_print): Eliminate.
30030 (class timer): New class.
30031 (timevar_push): Rewrite to use g_timer.
30032 (timevar_pop): Likewise.
30033 * toplev.c (toplev::~toplev): Likewise.
30034
30035 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30036
30037 * arm-protos.h (arm_sched_autopref): Delete.
30038 (tune_params): Re-organize, use enums for flag values.
30039 (FUSE_OPS): New macro.
30040 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30041 (ARM_PREFETCH_BENEFICIAL): Likewise.
30042 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30043 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30044 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30045 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30046 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30047 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30048 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30049 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30050 format.
30051 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30052 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30053 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30054
30055 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30056
30057 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30058 "break".
30059
30060 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30061 Sandra Loosemore <sandra@codesourcery.com>
30062
30063 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30064 value.
30065 (REG_CLASS_NAMES): Add "IJMP_REGS".
30066 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30067 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30068 use new "c" register constraint.
30069 * config/nios2/constraint.md (c): New register constraint
30070 corresponding to IJMP_REGS.
30071
30072 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30073
30074 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30075 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30076 define_splits): Delete, revamp, transmogrify into ...
30077 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30078 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30079 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30080 New.
30081
30082 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30083
30084 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30085 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30086
30087 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30088
30089 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30090 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30091 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30092 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30093 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30094 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30095 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30096 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30097 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30098 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30099 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30100 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30101 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30102 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30103 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30104 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30105 and 30 corresponding splitters): Delete.
30106
30107 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30108
30109 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30110 zero_extract.
30111
30112 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30113
30114 * combine.c (recog_for_combine_1): New function, factored out
30115 from recog_for_combine.
30116 (change_zero_ext): New function.
30117 (recog_for_combine): If recog fails, try again with the pattern
30118 modified by change_zero_ext; if that still fails, restore the
30119 pattern.
30120
30121 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30122
30123 * combine.c (get_undo_marker): New function.
30124 (undo_to_marker): New function, largely factored out from ...
30125 (undo_all): ... this. Adjust.
30126
30127 2015-05-12 Richard Biener <rguenther@suse.de>
30128
30129 PR tree-optimization/66101
30130 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30131 fixup if we turn a loop exit edge to a fallthru edge.
30132
30133 2015-05-12 Richard Biener <rguenther@suse.de>
30134
30135 PR tree-optimization/37021
30136 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30137 (SLP_TREE_TWO_OPERATORS): New define.
30138 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30139 SLP_TREE_TWO_OPERATORS.
30140 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30141 SLP node.
30142 (vect_build_slp_tree): Adjust.
30143 (vect_analyze_slp_cost_1): Likewise.
30144 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30145 emitting two vector stmts and mixing the results.
30146
30147 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30148
30149 * call.c (print_z_candidates): Remove dead code.
30150
30151 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30152
30153 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30154 and zEC12_simple_fp.
30155 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30156 to 1.
30157
30158 2015-05-12 Tom de Vries <tom@codesourcery.com>
30159
30160 PR tree-optimization/66010
30161 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30162 ifn_va_arg.
30163 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30164 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
30165 va_lists are passed, and remove corresponding handling.
30166 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
30167 do_deref argument to ifn_va_arg.
30168 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30169 ifn_va_arg.
30170
30171 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30172
30173 PR target/65955
30174 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30175 REG before taking its REGNO.
30176
30177 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30178
30179 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30180 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30181 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30182 present to get more accurate information about the number of sign bit
30183 copies and non zero bits.
30184
30185 2015-05-12 Richard Biener <rguenther@suse.de>
30186
30187 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30188 do not allow unrolling.
30189
30190 2015-05-11 Richard Henderson <rth@redhat.com>
30191
30192 * config/i386/i386-modes.def (CCP): New.
30193 * config/i386/i386.c (put_condition_code): Handle it.
30194 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30195
30196 2015-05-11 Richard Henderson <rth@redhat.com>
30197
30198 * target.def (md_asm_clobbers): Replace with...
30199 (md_asm_adjust): this.
30200 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30201 (TARGET_MD_ASM_ADJUST): New.
30202 * tm.texi: Rebuild.
30203 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30204 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30205 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30206
30207 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30208 constraints instead of lists of outputs and inputs.
30209 (expand_asm_stmt): Save and restore input_location around the
30210 body of the function. Move asm data into vectors instead of
30211 building tree lists. Generate cleanup sequences as needed,
30212 rather than waiting til the end. Use new md_asm_adjust hook.
30213
30214 * config/vxworks.c: Include vec.h before target.h.
30215 * gimple.c: Likewise.
30216 * incpath.c: Likewise.
30217 * mode-switching.c: Likewise.
30218
30219 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30220 (cris_md_asm_adjust): this.
30221 (TARGET_MD_ASM_CLOBBERS): Remove.
30222 (TARGET_MD_ASM_ADJUST): New.
30223 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30224 (ix86_md_asm_adjust): this.
30225 (TARGET_MD_ASM_CLOBBERS): Remove.
30226 (TARGET_MD_ASM_ADJUST): New.
30227 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30228 (mn10300_md_asm_adjust): this.
30229 (TARGET_MD_ASM_CLOBBERS): Remove.
30230 (TARGET_MD_ASM_ADJUST): New.
30231 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30232 (rs6000_md_asm_adjust): this.
30233 (TARGET_MD_ASM_CLOBBERS): Remove.
30234 (TARGET_MD_ASM_ADJUST): New.
30235 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30236 (visium_md_asm_adjust): this.
30237 (TARGET_MD_ASM_CLOBBERS): Remove.
30238 (TARGET_MD_ASM_ADJUST): New.
30239
30240 2015-05-11 Richard Henderson <rth@redhat.com>
30241
30242 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30243 if noutputs is zero.
30244 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30245
30246 * cfgexpand.c (expand_asm_operands): Merge into...
30247 (expand_asm_stmt): ... here.
30248
30249 * cfgexpand.c (expand_asm_operands): Don't call
30250 resolve_asm_operand_names.
30251 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30252
30253 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30254
30255 * dwarf2out.c (gen_member_die): Sanity check that we access
30256 TYPE_MAIN_VARIANT for TYPE_METHODS.
30257 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30258 checking TYPE_METHODS.
30259 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30260 if non-null.
30261 (build_distinct_type_copy): Clear TYPE_METHODS.
30262 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30263 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30264 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30265
30266 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30267
30268 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30269 (emit_pattern_before_setloc): Likewise.
30270
30271 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30272
30273 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30274 for define_peephole2s.
30275 (get_peephole2_pattern): New function.
30276 (main): Use it. Call validate_pattern.
30277
30278 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30279
30280 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30281 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30282 (Last callee saved reg is different for AVR_TINY architecture)
30283
30284 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30285
30286 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30287 when looking for memory references.
30288
30289 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30290
30291 PR target/65753
30292 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30293 via function pointers.
30294
30295 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30296
30297 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30298 indirect call by forcing address into a pseudo with -fno-plt.
30299 * common.opt (flag_plt): New option.
30300 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30301 ([-fno-plt]): Document.
30302
30303 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30304
30305 PR bootstrap/66105
30306 * config/rs6000/option-defaults.h: Add space between string literal
30307 and macro name.
30308
30309 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30310
30311 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30312 accross ARM targets.
30313
30314 2015-05-11 Christian Bruel <christian.bruel@st.com>
30315
30316 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30317 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30318
30319 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30320
30321 PR rtl-optimization/66076
30322 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30323 Don't grow the heap array if it is already big enough from a
30324 previous iteration.
30325
30326 2015-05-11 Christian Bruel <christian.bruel@st.com>
30327
30328 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30329 (is_called_in_ARM_mode): Remove.
30330 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30331 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30332 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30333 arm_declare_function_name.
30334
30335 2015-05-11 Christian Bruel <christian.bruel@st.com>
30336
30337 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30338 (arm_option_params_internal); New function.
30339 (arm_option_check_internal): New function.
30340 (arm_option_override_internal): New function.
30341 (thumb_code, thumb1_code): Remove.
30342 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30343 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30344 (thumb_code, thumb1_code): Remove.
30345 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30346
30347 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30348
30349 * config/alpha/alpha.c (alpha_emit_set_const_1)
30350 (alpha_emit_set_long_const, alpha_extract_integer)
30351 (alpha_legitimate_constant_p, alpha_split_const_mov)
30352 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30353 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30354 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30355 HOST_WIDE_INT_1U.
30356 * config/alpha/predicates.md (mode_mask_operand): Do not match
30357 const_double RTX.
30358 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30359 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30360 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30361 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30362 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30363
30364 2015-05-11 Jakub Jelinek <jakub@redhat.com>
30365
30366 PR target/65780
30367 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30368 default_binds_local_p_2.
30369 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30370 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30371
30372 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30373
30374 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30375
30376 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30377
30378 Patch by Richard Biener
30379 * coverage.c (coverage_obj_init): Delay building of type variant
30380 until the type is finished.
30381
30382 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30383
30384 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30385 mismatch between C and C++ type; compoare correctly ARG_TYPES
30386 for non-prototypes and output correctly parameter index for METHOD_TYPE.
30387 (odr_types_equivalent_p): Fix wording of warning about attributes;
30388 it is OK to match prototype and non-prototype.
30389
30390 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30391
30392 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30393 TYPE_ARG_TYPES list.
30394 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30395 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30396
30397 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30398
30399 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30400 * tree.h (is_lang_specific): Constify.
30401
30402 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
30403
30404 PR tree-optimization/64454
30405 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30406 Rewrite.
30407
30408 2015-05-08 Jason Merrill <jason@redhat.com>
30409
30410 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30411 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30412 config/darwin.h, config/darwin9.h, config/elfos.h,
30413 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30414 config/microblaze/microblaze.h, config/mips/mips.h,
30415 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30416 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30417 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30418 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30419 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30420 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30421 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30422 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30423 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30424 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30425 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30426 between string literal and macro name.
30427
30428 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30429
30430 * jump.c: Change argument types to rtx_insn *.
30431 * rtl.h: Adjust.
30432
30433 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30434
30435 * lra-constraints.c: Change argument type to rtx_insn *.
30436
30437 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30438
30439 * df-problems.c: Change argument type to rtx_insn *.
30440
30441 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30442
30443 * combine.c: Change argument type to rtx_insn *.
30444
30445 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30446
30447 * rtl.h: Adjust.
30448 * rtlanal.c: Change argument type to rtx_insn *.
30449
30450 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30451
30452 * sched-deps.c: Change argument types to rtx_insn *.
30453 * sched-int.h: Adjust.
30454
30455 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30456
30457 * dwarf2cfi.c: Change argument type to rtx_insn *.
30458
30459 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30460
30461 * ira.c (decrease_live_ranges_number): Changetype of local
30462 variable to rtx_insn *.
30463 * recog.c: Change argument types to rtx_insn *.
30464 * recog.h: Adjust.
30465
30466 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30467
30468 * reorg.c: Change argument types to rtx_insn *.
30469
30470 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30471
30472 * ira-color.c: Change argument types to rtx_insn *.
30473 * lra-eliminations.c: Likewise.
30474 * ira.h: Adjust.
30475
30476 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30477
30478 * gcse.c: Change argument types to rtx_insn *.
30479
30480 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30481
30482 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30483
30484 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30485
30486 * emit-rtl.c (emit_debug_insn_before): Change argument type to
30487 rtx_insn *.
30488 * rtl.h: Adjust.
30489
30490 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30491
30492 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30493 * rtl.h: Adjust.
30494
30495 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30496
30497 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30498 * rtl.h: Adjust.
30499
30500 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30501
30502 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30503 * rtl.h: Adjust.
30504
30505 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30506
30507 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30508 * rtl.h: Adjust.
30509
30510 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30511
30512 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30513 to rtx_insn *.
30514 * rtl.h: Adjust.
30515
30516 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30517
30518 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30519 to rtx_insn *.
30520 * rtl.h: Likewise.
30521
30522 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30523
30524 * except.c (can_nonlocal_goto): Change type of argument to
30525 rtx_insn *.
30526 * rtl.h: Adjust.
30527
30528 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30529
30530 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30531 * rtl.h: Adjust.
30532
30533 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30534
30535 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30536 * cfgrtl.c (can_delete_label_p): Adjust.
30537 * rtl.h: likewise.
30538
30539 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30540
30541 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30542
30543 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30544
30545 * except.c (make_reg_eh_region_note): Change argument to
30546 rtx_insn *.
30547 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30548 * except.h: Adjust.
30549
30550 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30551
30552 * mode-switching.c (commit_mode_sets): Change type of local
30553 variable from rtx to rtx_insn *.
30554
30555 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30556
30557 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30558 Add ^ to grep command.
30559 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30560 arg to last gimple_simplify declaration. Add missing gimple_build
30561 declaration for built-in function case with four tree args.
30562
30563 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30564 Szabolcs Nagy <szabolcs.nagy@arm.com>
30565
30566 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30567 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30568 (GNU_USER_DYNAMIC_LINKERN32): Update.
30569
30570 2015-05-08 Richard Biener <rguenther@suse.de>
30571
30572 PR tree-optimization/66036
30573 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30574 Handle strided group loads.
30575 (vect_verify_datarefs_alignment): Likewise.
30576 (vect_enhance_data_refs_alignment): Likewise.
30577 (vect_analyze_group_access): Likewise.
30578 (vect_analyze_data_ref_access): Likewise.
30579 (vect_analyze_data_ref_accesses): Likewise.
30580 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30581 (vectorizable_load): Likewise.
30582
30583 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30584
30585 * config/rs6000/rs6000.md: Require operand inequality in one
30586 of the peepholes.
30587
30588 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30589 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30590
30591 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30592 from (set ...).
30593 * config/rx/rx.md (movdi, movdf): Likewise.
30594 Likewise for define_peephole2s.
30595
30596 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30597
30598 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30599 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30600 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30601 vtst_u64): Rewrite using gcc vector extensions.
30602
30603 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30604
30605 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30606 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30607
30608 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30609
30610 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30611
30612 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30613
30614 * config/glibc-stdint.h (OPTION_MUSL): Define.
30615 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30616 Change the definition based on OPTION_MUSL for 64 bit targets.
30617 * config/linux.h (OPTION_MUSL): Redefine.
30618 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30619 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30620 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30621
30622 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30623 Szabolcs Nagy <szabolcs.nagy@arm.com>
30624
30625 * config.gcc (LIBC_MUSL): New tm_defines macro.
30626 * config/linux.h (OPTION_MUSL): Define.
30627 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30628 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30629 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30630 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30631 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30632 * config/linux.opt (mmusl): New option.
30633 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30634 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30635 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30636 * configure: Regenerate.
30637
30638 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30639 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30640
30641 PR target/48904
30642 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30643 * config/i386/knetbsd-gnu64.h: New file.
30644
30645 2015-05-08 Marek Polacek <polacek@redhat.com>
30646
30647 PR c/64918
30648 * doc/invoke.texi: Document -Woverride-init-side-effects.
30649
30650 2015-05-07 Marek Polacek <polacek@redhat.com>
30651
30652 PR c/65179
30653 * doc/invoke.texi: Document -Wshift-negative-value.
30654
30655 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30656
30657 * gcov-tool.c (do_merge): Refactore to remove int ret.
30658 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30659 !type == FUNC to type != FUNC.
30660 * reload.h (struct target_reload): Changee to type of
30661 x_spill_indirect_levels from bool to unsigned char.
30662
30663 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30664
30665 * rtl.h (always_void_p): New function.
30666 * gengenrtl.c (always_void_p): Likewise.
30667 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30668 with code foo are always VOIDmode.
30669 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30670 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30671 compare-elim.c, config/aarch64/aarch64.c,
30672 config/aarch64/aarch64.md, config/alpha/alpha.c,
30673 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30674 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30675 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30676 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30677 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30678 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30679 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30680 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30681 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30682 config/ia64/vect.md, config/iq2000/iq2000.c,
30683 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30684 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30685 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30686 config/mep/mep.c, config/microblaze/microblaze.c,
30687 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30688 config/mn10300/mn10300.c, config/msp430/msp430.c,
30689 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30690 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30691 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30692 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30693 config/rs6000/rs6000.md, config/rs6000/vector.md,
30694 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30695 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30696 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30697 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30698 config/spu/spu.md, config/stormy16/stormy16.c,
30699 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30700 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30701 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30702 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30703 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30704 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30705 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30706 var-tracking.c: Update calls accordingly.
30707
30708 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30709
30710 PR middle-end/192
30711 PR middle-end/54303
30712 * varasm.c (function_mergeable_rodata_prefix): New function.
30713 (mergeable_string_section): Use it.
30714 (mergeable_constant_section): Use it.
30715
30716 2015-05-07 Jeff Law <law@redhat.com>
30717
30718 PR target/39726
30719 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30720 simplifier to narrow arithmetic.
30721 * generic-match-head.c: (types_match, single_use): New functions.
30722 * gimple-match-head.c: (types_match, single_use): New functions.
30723
30724 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30725
30726 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30727 rtx type.
30728
30729 2015-05-07 Richard Biener <rguenther@suse.de>
30730
30731 PR tree-optimization/66002
30732 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30733 before phiopt.
30734
30735 2015-05-07 Marek Polacek <polacek@redhat.com>
30736 Martin Uecker <uecker@eecs.berkeley.edu>
30737
30738 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30739 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30740 into SANITIZE_NONDEFAULT.
30741 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30742
30743 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30744
30745 PR target/66015
30746 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30747 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30748 (alpha_override_options): Move align_loops, align_jumps and
30749 align_functions handling into alpha_override_options_after_change.
30750
30751 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30752 Chris Jones <chrisj@nvidia.com>
30753 Joshua Conner <jconner@nvidia.com>
30754
30755 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30756 linking of crtfastmath.o.
30757 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30758
30759 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30760
30761 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30762 (cstore<mode>4_unsigned_imm): New expander.
30763 (cstore<mode>4): Remove empty constraint strings. Use the new
30764 expanders.
30765
30766 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30767
30768 PR target/64208
30769 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30770 alternatives.
30771
30772 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30773
30774 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30775
30776 2015-05-06 Alan Modra <amodra@gmail.com>
30777
30778 PR target/66033
30779 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30780 (UNSPEC_NOP): Define.
30781 (reload_vsx_from_gpr<mode>): Add missing DONE.
30782 (reload_gpr_from_vsx<mode>): Likewise.
30783 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30784 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30785
30786 2015-05-06 Christian Bruel <christian.bruel@st.com>
30787
30788 PR target/66015
30789 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30790 align_jumps, align_functions into aarch64_override_options_after_change.
30791
30792 2015-05-06 Richard Biener <rguenther@suse.de>
30793
30794 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30795 vect_transform_slp_perm_load to check if we support a permutation
30796 for basic-block vectorization.
30797
30798 2015-05-06 Nick Clifton <nickc@redhat.com>
30799
30800 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30801 used, even if it is not being used as a frame pointer.
30802
30803 2015-05-05 Jason Merrill <jason@redhat.com>
30804
30805 * dwarf2out.c (gen_member_die): Don't emit anything for an
30806 anonymous class constructor.
30807
30808 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30809
30810 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30811 that it reflects the block structure.
30812 (afdo_propagate_edge): Likewise.
30813 (afdo_calculate_branch_prob): Likewise.
30814 (afdo_annotate_cfg): Likewise.
30815 * cfgcleanup.c (equal_different_set_p): Likewise.
30816 (try_crossjump_to_edge): Likewise.
30817 * cgraph.c (cgraph_node::verify_node): Likewise.
30818 * cgraphunit.c (expand_all_functions): Likewise.
30819 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30820 (exact_dependency_1): Likewise.
30821 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30822 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30823 * gensupport.c (process_define_subst): Likewise.
30824 * lto-wrapper.c (merge_and_complain): Likewise.
30825 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30826 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30827 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30828 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30829 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30830 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30831 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30832 * tree-vrp.c (vrp_finalize): Likewise.
30833 * tree.c (variably_modified_type_p): Likewise.
30834
30835 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30836
30837 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30838 on darwin12 and later.
30839 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30840 file to pass -rdynamic on darwin12 and later.
30841 * config/darwin.opt (rdynamic): Add.
30842
30843 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30844
30845 * doc/extend.texi (C Extensions): Update menu for moved Variable
30846 Attributes and Type Attributes sections.
30847
30848 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30849
30850 PR target/65990
30851 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30852 if rep_8byte stringop strategy was specified for 32-bit target.
30853
30854 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30855
30856 PR target/65915
30857 * config/i386/i386.md (vector convert to float spltiter): Check for
30858 xmm16+, when splitting scalar float conversion.
30859 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30860
30861 2015-05-05 Nick Clifton <nickc@redhat.com>
30862
30863 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30864 * config/msp430/msp430.c (msp430_override_options): Complain if
30865 -mcode-region or -mdata-region is used on a non MSP430X.
30866 (msp430_section_attr): New function. Checks lower, upper and
30867 either attributes.
30868 (msp430_attribute_table): Add lower, upper and either.
30869 (gen_prefix): New function. Generates a prefix for a section
30870 name.
30871 (msp430_select_section): New function - handles the choice of
30872 section for an object. Takes into account memory region
30873 attributes and options.
30874 (msp430_function_section): Use gen_prefix.
30875 (TARGET_SECTION_TYPE_FLAGS): Define.
30876 (msp430_section_type_flags): New function.
30877 (TARGET_ASM_UNIQUE_SECTION): Define.
30878 (msp430_unique_section): New function.
30879 (msp430_output_aligned_decl_common): New function.
30880 (msp430_do_not_relax_short_jumps): New function.
30881 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30882 Define.
30883 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30884 * config/msp430/msp430-protos.h
30885 (msp430_do_not_relax_short_jumps): New prototype.
30886 (msp430_output_aligned_decl_common): New prototype.
30887 * config/msp430/msp430.md (length): New attribute.
30888 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30889 then use a long code sequence for short jumps.
30890 * config/msp430/msp430.opt (mcode-region): New.
30891 (mdata-region): New.
30892 * doc/invoke.texi: Document new options.
30893 * doc/extend.texi: Document new attributes.
30894
30895 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30896
30897 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30898 (tune_params): Add field branch_costs.
30899 (aarch64_branch_cost): Declare.
30900 * config/aarch64.c (generic_branch_cost): New.
30901 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30902 (cortexa53_tunings): Likewise.
30903 (cortexa57_tunings): Likewise.
30904 (thunderx_tunings): Likewise.
30905 (xgene1_tunings): Likewise.
30906 (aarch64_branch_cost): Define.
30907 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30908
30909 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30910
30911 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30912 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30913 * config/i386/i386.md: Ditto.
30914 * config/i386/winnt.c: Ditto.
30915
30916 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30917
30918 * doc/extend.texi (__atomic Builtins): Move implementation details
30919 to the end of the description, rewrite opening paragraphs, state
30920 difference with __sync builtins, state C11/C++11 assumptions,
30921 weaken itemized descriptions, add explanation of memory model
30922 behaviour, expand description of compare-exchange, simplify text.
30923
30924 2015-05-05 Renlin Li <renlin.li@arm.com>
30925
30926 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30927
30928 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30929
30930 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30931 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30932 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30933 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30934 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30935 * configure: Regenerate.
30936 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30937 * doc/install.texi (aarch64*-*-*): Document new
30938 --enable-fix-cortex-a53-843419 option.
30939 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30940 and -mno-fix-cortex-a53-843419 options.
30941
30942 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30943
30944 PR target/65871
30945 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30946
30947 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30948
30949 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30950 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30951 compatibility problems.
30952
30953 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30954
30955 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30956 constraints.
30957 (cbranchsi4_reg): New.
30958 * config/microblaze/microblaze.c
30959 (microblaze_expand_conditional_branch_reg): New.
30960 * config/microblaze/microblaze-protos.h
30961 (microblaze_expand_conditional_branch_reg): New prototype.
30962
30963 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30964
30965 * config/microblaze/microblaze.md (peephole2): New.
30966
30967 2015-05-04 Jeff Law <law@redhat.com>
30968
30969 Revert:
30970 2015-05-04 Jeff Law <law@redhat.com>
30971
30972 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30973 simplifier to narrow arithmetic.
30974 * generic-match-head.c: (types_match, single_use): New functions.
30975 * gimple-match-head.c: (types_match, single_use): New functions.
30976
30977 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30978
30979 PR target/65987
30980 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30981 (split_branches): Likewise.
30982
30983 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30984
30985 * common.opt (fdelete-null-pointer-checks): Init to -1.
30986 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30987 override flag_delete_null_pointer_checks default.
30988 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30989 behavior re address zero. Better document target-specific behavior.
30990 (-fisolate-errneous-paths-dereference): Mention relationship to
30991 -fdelete-null-pointer-checks.
30992
30993 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30994
30995 PR tree-optimization/65984
30996 * ubsan.c: Include tree-cfg.h.
30997 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30998 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30999
31000 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31001
31002 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31003 to CONST_DOUBLE_P predicate.
31004 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31005 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31006 allow only operands that satisfy standard_sse_constant_p predicate.
31007 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31008 to CONST_DOUBLE_P predicate.
31009
31010 2015-05-04 Jeff Law <law@redhat.com>
31011
31012 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31013 simplifier to narrow arithmetic.
31014 * generic-match-head.c: (types_match, single_use): New functions.
31015 * gimple-match-head.c: (types_match, single_use): New functions.
31016
31017 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31018
31019 * config/arm/arm.c: Restore bootstrap.
31020
31021 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31022
31023 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31024 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31025 as CONST_WIDE_INT, not CONST_DOUBLE.
31026 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31027 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31028 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31029 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31030 (ix86_build_signbit_mask): Rewrite using wide ints.
31031 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31032 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31033 (find_constant): Ditto.
31034 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31035 using gen_int_mode.
31036 * config/i386/predicates.md (x86_64_immediate_operand)
31037 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31038 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31039 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31040 (const0_operand): Also match const_wide_int.
31041 (constm1_operand): Ditto.
31042 (const1_operand): Ditto.
31043
31044 2015-05-04 Richard Biener <rguenther@suse.de>
31045
31046 PR tree-optimization/65965
31047 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31048 store groups at gaps.
31049
31050 2015-05-04 Richard Biener <rguenther@suse.de>
31051
31052 PR tree-optimization/65935
31053 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31054 then make sure to apply that swapping to the IL.
31055
31056 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31057
31058 * Makefile.in (PATCHLEVEL_c): New variable.
31059 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31060 expand the same way as if DEVPHASE_c was non-empty.
31061
31062 2015-05-04 Kai Tietz <ktietz@redhat.com>
31063
31064 PR target/65559
31065 * lto-wrapper.c (run_gcc): Open filename
31066 in binary-mode.
31067
31068 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31069
31070 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31071 sections up in file, to immediately after the Function Attributes
31072 section.
31073
31074 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31075
31076 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31077
31078 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31079
31080 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31081 (insert_partition_copy_on_edge): Adjust.
31082 (insert_rtx_to_part_on_edge): Likewise.
31083 (insert_part_to_rtx_on_edge): Likewise.
31084
31085 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31086
31087 * function.c (set_return_jump_label): Change type of argument to
31088 rtx_insn *.
31089 * function.h (set_return_jump_label): Adjust.
31090
31091 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31092
31093 * reload.h (struct reg_equivs_t): Change type of init to
31094 rtx_insn *.
31095 * ira.c (fix_reg_equiv_init): Adjust.
31096 * reload1.c (eliminate_regs_1): Likewise.
31097 (init_eliminable_invariants): Likewise.
31098
31099 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31100
31101 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31102 * cselib.h (fp_setter_insn): Adjust.
31103
31104 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31105
31106 * recog.c (struct validate_replace_src_data): Change type of
31107 insn field to rtx_insn *.
31108 (validate_replace_src_group): Change type of argument to rtx_insn *.
31109 * recog.h (validate_replace_src_group): Adjust.
31110
31111 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31112
31113 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31114 * sched-deps.c: Likewise.
31115 * sched-int.h: Likewise.
31116 * sched-rgn.c: Likewise.
31117 * sel-sched.c: Likewise.
31118
31119 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31120
31121 to rtx_insn *.
31122 * config/i386/i386.c: Change the type of some arguments to
31123 rtx_insn *.
31124 * config/arm/arm.c: Likewise.
31125
31126 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31127
31128 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31129
31130 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31131
31132 * regcprop.c (kill_autoinc_value): Change type of argument to
31133 rtx_insn *.
31134
31135 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31136
31137 * genrecog.c (print_subroutine): Adjust.
31138 * recog.c (get_bool_attr_mask_uncached): Likewise.
31139 * recog.h (struct recog_data_d): Change the type of insn to
31140 rtx_insn *.
31141
31142 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31143
31144 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31145
31146 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31147
31148 * df-problems.c (df_set_note): Change type of argument to
31149 rtx_insn *.
31150
31151 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31152
31153 * builtins.c (expand_builtin_trap): Change type of local
31154 variable to rtx_insn *.
31155 (add_sched_insns_for_speculation): Likewise.
31156 (ix86_emit_save_regs): Likewise.
31157 (get_scratch_register_on_entry): Likewise.
31158 (ix86_emit_restore_reg_using_pop): Likewise.
31159 (ix86_emit_leave): Likewise.
31160 (ix86_emit_restore_regs_using_mov): Likewise.
31161 (ix86_expand_epilogue): Likewise.
31162 Likewise.
31163 (rl78_alloc_physical_registers_umul): Likewise.
31164 * cselib.c (discard_useless_locs): Likewise.
31165 (cselib_invalidate_regno): Likewise.
31166 (cselib_invalidate_mem): Likewise.
31167 * function.c (expand_function_start): Likewise.
31168 (emit_use_return_register_into_block): Likewise.
31169 * gcse.c: Likewise.
31170 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31171 * ifcvt.c (noce_get_alt_condition): Likewise.
31172 * loop-doloop.c (doloop_condition_get): Likewise.
31173 * lra-constraints.c (inherit_in_ebb): Likewise.
31174 * modulo-sched.c (sms_schedule_by_order): Likewise.
31175 * recog.c (next_insn_tests_no_inequality): Likewise.
31176 * reorg.c (emit_delay_sequence): Likewise.
31177 (update_reg_dead_notes): Likewise.
31178 (fix_reg_dead_note): Likewise.
31179 (fill_slots_from_thread): Likewise.
31180 (delete_computation): Likewise.
31181
31182 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31183
31184 * doc/extend.texi (Variable Attributes): Add menu and proper
31185 @nodes to subsections. Move Microsoft Windows attributes to
31186 their own subsection.
31187 (Type Attributes): Reorganize introduction to remove duplicate
31188 list of attributes. Add menu and proper @nodes to subsections.
31189 Alphabetize the main table of common attributes.
31190
31191 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31192
31193 * match.pd: New simplification patterns.
31194 (x + (x & 1)) -> ((x + 1) & ~1)
31195 (x & ~(x & y)) -> ((x & ~y))
31196 (x | ~(x | y)) -> ((x | ~y))
31197
31198 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31199
31200 * target.def (attribute_table): Mention that struct attribute_spec
31201 is defined in tree-core.h rather than tree.h
31202 * doc/tm.texi: Regenerate.
31203
31204 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31205
31206 * genrecog.c (test): Rename to rtx_test. Update rest of file
31207 accordingly.
31208
31209 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31210
31211 PR translation/65959
31212 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31213
31214 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31215
31216 * config/aarch64/aarch64-protos.h (tune_params):
31217 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31218 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31219 Return value depending on target.
31220 (generic_tunings): Initialize new target settings.
31221 (cortexa53_tunings): Likewise.
31222 (cortexa57_tunings): Likewise.
31223 (thunderx_tunings): Likewise.
31224 (xgene1_tunings): Likewise.
31225
31226 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31227
31228 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31229 Make Cortex-A53 shift costs more accurate.
31230
31231 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31232
31233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31234 UNSIGNED_FLOAT.
31235
31236 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31237
31238 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31239 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31240
31241 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31242
31243 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31244 Add cost of op0 in the compare-with-fpzero case.
31245
31246 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31247
31248 * builtins.c (fold_builtin_1): Remove spurious second
31249 semicolon.
31250 * cgraph.h (symtab_node::get_availability): Likewise.
31251 * opts.c (common_handle_option): Remove spurious second semicolon.
31252 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31253 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31254
31255 2015-04-30 Caroline Tice <cmtice@google.com>
31256
31257 PR gcov-profile/65929
31258 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31259 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31260 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31261 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31262 * doc/tm.texi: Regenerate.
31263 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31264 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31265 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31266 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31267
31268 2015-04-30 Marek Polacek <polacek@redhat.com>
31269
31270 * varasm.c (handle_cache_entry): Fix logic.
31271
31272 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31273
31274 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31275 (*extrsi5_insn_uxtw_alt): Likewise.
31276 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31277 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31278 operations.
31279
31280 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31281
31282 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31283 fabd in ABS case.
31284
31285 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31286
31287 * config/aarch64/aarch64.md
31288 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31289 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31290 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31291 appropriately. Handle alternative EON form.
31292
31293 2015-04-30 Renlin Li <renlin.li@arm.com>
31294
31295 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31296 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31297
31298 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31299
31300 PR ipa/65873
31301 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31302 -fstrict-aliasing boundaries.
31303
31304 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31305
31306 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31307 and [SU]MNEGL patterns.
31308
31309 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31310
31311 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31312 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31313 combined arithmetic-shift ops. Properly handle all shift and extend
31314 operations that can occur in combination with PLUS/MINUS.
31315 Rename maybe_fma to compound_p.
31316 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31317 arithmetic and shift operations.
31318
31319 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31320
31321 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31322 rather than arith_shift cost when costing ADD/MINUS of an
31323 extended value.
31324
31325 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31326
31327 PR lto/65948
31328 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31329 to itself.
31330
31331 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31332
31333 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31334 are for the same position.
31335
31336 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31337
31338 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31339 vectorize_loops.
31340 (vectorize_loops): Use it.
31341
31342 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31343
31344 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31345 for aggregate types.
31346 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31347 type to be non_ODR.
31348 * tree.c (need_assembler_name_p): Compute mangled name for
31349 non-fundamental types and integer types.
31350
31351 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31352
31353 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31354 manual swaps.
31355 * expr.c (expand_expr_real_2): Likewise.
31356
31357 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31358
31359 * tree.c (build_common_builtin_nodes): Do not build
31360 __builtin_alloca_with_align as equivalent of library alloca.
31361
31362 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31363
31364 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31365 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31366 bugus variants.
31367 * tree.c: Include print-tree.h and ipa-utils.h
31368 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31369 (free_lang_data_in_cgraph): Call verify_type.
31370 (verify_type_variant): New function.
31371 (verify_type): New function.
31372 * tree.h (verify_type): Declare.
31373
31374 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
31375
31376 * config/mips/mips-cpus.def: (mips4): Change default processor
31377 from PROCESSOR_R8000 to PROCESSOR_R10000.
31378
31379 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
31380
31381 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31382 la/jalr instead of jal.
31383
31384 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
31385
31386 PR target/65871
31387 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31388 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31389 (setcc+movzbl peephole2): Check also clobbered reg.
31390 (setcc+andl peephole2): Ditto.
31391
31392 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31393
31394 PR libgomp/65099
31395 * config/nvptx/mkoffload.c (target_ilp32): New variable.
31396 (main): Set it depending on "-foffload-abi=[...]".
31397 (compile_native, main): Use it to pass "-m32" or "-m64" to the
31398 compiler.
31399
31400 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31401
31402 PR target/65770
31403 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31404 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31405 Flip lane index back at assembly time for bigendian.
31406
31407 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31408
31409 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31410 * gimplify.c (gimplify_omp_workshare): Use it.
31411
31412 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31413
31414 * Makefile.in (build/genrecog.o): Depend on inchash.h.
31415 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31416 build/inchash.o
31417 * genrecog.c: Rewrite most of the code except for the third page.
31418
31419 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31420
31421 * inchash.h, inchash.c: Include bconfig.h for build objects.
31422 * Makefile.in (build/inchash.o): New rule.
31423
31424 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
31425
31426 PR target/65924
31427 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31428 number in type attribute expression.
31429
31430 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31431
31432 * loop-iv.c (canon_condition): Generalize to all types of integer
31433 constant.
31434
31435 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
31436
31437 * gimple-walk.c: Prune duplicate or unneeded includes.
31438 (walk_gimple_asm): Only call parse_input_constraint or
31439 parse_output_constraint if their findings are used.
31440 Honour parse_input_constraint and parse_output_constraint
31441 result.
31442
31443 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31444
31445 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31446
31447 2015-04-29 Tom de Vries <tom@codesourcery.com>
31448
31449 PR tree-optimization/65893
31450 * passes.def (pass_all_optimizations): Move pass_stdarg to after
31451 pass_dce.
31452
31453 2015-04-29 Richard Biener <rguenther@suse.de>
31454
31455 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31456 compute GROUP_SIZE for basic-block SLP.
31457 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31458 take into account gaps.
31459 (vect_get_mask_element): Properly reject references to previous
31460 vectors.
31461 (vect_transform_slp_perm_load): Likewise.
31462
31463 2015-04-29 Christian Bruel <christian.bruel@st.com>
31464
31465 PR target/64835
31466 * config/i386/i386.c (ix86_default_align): New function.
31467 (ix86_override_options_after_change): Call ix86_default_align.
31468 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31469 (ix86_override_options_after_change): New function.
31470
31471 2015-04-28 Jeff Law <law@redhat.com>
31472
31473 * tree-ssa-dom.c (record_equality); Fix comment typos.
31474
31475 2015-04-28 Tom de Vries <tom@codesourcery.com>
31476
31477 PR tree-optimization/65887
31478 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31479
31480 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
31481
31482 * doc/extend.texi (Declaring Attributes of Functions): Split into
31483 subsections by target. Alphabetize the table of common attributes.
31484 Rewrite some of the introductory text to reflect the new structure.
31485 Update some cross-references to point to the new subsections.
31486 (Attribute Syntax): Put paragraph about "__" naming here. Remove
31487 duplicate copies in the discussion of function, label, and type
31488 attributes.
31489
31490 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31491
31492 PR bootstrap/65910
31493 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31494
31495 2015-04-28 Jason Merrill <jason@redhat.com>
31496
31497 PR c++/65734
31498 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31499 (finalize_type_size): Respect TYPE_USER_ALIGN.
31500 (layout_type) [ARRAY_TYPE]: Likewise.
31501
31502 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31503
31504 * config/arm/arm.md (*arm_movt): Fix type attribute.
31505 (*cmpsi_shiftsi): Likewise.
31506 (*cmpsi_shiftsi_swp): Likewise.
31507 (*movsicc_insn): Likewise.
31508 (*cond_move): Likewise.
31509 (*if_plus_move): Likewise.
31510 (*if_move_plus): Likewise.
31511 (*if_arith_move): Likewise.
31512 (*if_move_arith): Likewise.
31513 (*if_shift_move): Likewise.
31514 (*if_move_shift): Likewise.
31515 (*arm_movtas_ze): Likewise.
31516 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31517 redundancy and type attribute.
31518 (*thumb2_movsi_insn): Fix type attribute.
31519 (*thumb2_addsi_short): Likewise.
31520 (thumb2_addsi3_compare0): Likewise.
31521 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31522 attributes accordingly.
31523
31524 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31525
31526 PR other/65911
31527 * function.c (pad_to_arg_alignment): Add parentheses.
31528
31529 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31530
31531 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31532 libgcc/config/frv/elf-lib.h.
31533
31534 2015-04-28 Tom de Vries <tom@codesourcery.com>
31535
31536 * tree-call-cdce.c: Fix example in header comment.
31537
31538 2015-04-28 Richard Biener <rguenther@suse.de>
31539
31540 PR tree-optimization/62283
31541 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31542 fails fatally and we are vectorizing a basic-block simply
31543 cause the child to be constructed piecewise.
31544 (vect_analyze_slp_cost_1): Adjust.
31545 (vect_detect_hybrid_slp_stmts): Likewise.
31546 (vect_bb_slp_scalar_cost): Likewise.
31547 (vect_get_constant_vectors): For piecewise constructed
31548 constants place them after the last def.
31549 (vect_get_slp_defs): Adjust.
31550 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31551 externals for basic-block vectorization.
31552
31553 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31554
31555 PR target/63503
31556 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31557 aarch64-*-*.
31558 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31559 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31560 (AARCH64_TUNE_FMA_STEERING): Likewise.
31561 * config/aarch64/aarch64-cores.def: Set
31562 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31563 FMUL/FMADD instructions.
31564 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31565 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31566 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31567 * config/aarch64/cortex-a57-fma-steering.h: New file.
31568 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31569
31570 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31571
31572 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31573
31574 2015-04-28 Richard Biener <rguenther@suse.de>
31575
31576 PR tree-optimization/65851
31577 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31578 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31579 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31580 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31581 (ccp_visit_phi_node): Adjust.
31582 (evaluate_stmt): For simplifications to SSA names return its
31583 lattice value if that isn't VARYING. Return immediately when
31584 simplified to a constant.
31585 (visit_assignment): Adjust.
31586 (ccp_visit_stmt): Likewise.
31587
31588 2015-04-28 Tom de Vries <tom@codesourcery.com>
31589
31590 PR tree-optimization/65818
31591 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31592 evaluated.
31593
31594 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31595
31596 * calls.c (save_fixed_argument_area): Don't check
31597 ARGS_GROW_DOWNWARD with the preprocessor.
31598 (restore_fixed_argument_area): Likewise.
31599 (mem_overlaps_already_clobbered_arg_p): Likewise.
31600 (check_sibcall_argument_overlap): Likewise.
31601 (expand_call): Likewise.
31602 (emit_library_call_value_1): Likewise.
31603 (store_one_arg): Likewise.
31604 * function.c (assign_parms): Likewise.
31605 (locate_and_pad_parm): Likewise.
31606 (pad_to_arg_alignment): Likewise.
31607 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31608
31609 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31610
31611 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31612 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31613 * calls.c (save_fixed_argument_area): Don't chekc if
31614 ARGS_GROW_DOWNWARD is defined.
31615 (restore_fixed_argument_area): Likewise.
31616 (mem_overlaps_already_clobbered_arg_p): Likewise.
31617 (check_sibcall_argument_overlap): Likewise.
31618 (expand_call): Likewise.
31619 (emit_library_call_value_1): Likewise.
31620 (store_one_arg): Likewise.
31621 * function.c (assign_parms): Likewise.
31622 (locate_and_pad_parm): Likewise.
31623 (pad_to_arg_alignment): Likewise.
31624 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31625
31626 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31627
31628 * defaults.h (gen_epilogue): New function.
31629 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31630 defined.
31631 * cfgrtl.c (cfg_layout_finalize): Likewise.
31632 * df-scan.c: Likewise.
31633 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31634 (reposition_prologue_and_epilogue_notes): Likewise.
31635 * reorg.c (find_end_label): Likewise.
31636 * toplev.c: Likewise.
31637
31638 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31639
31640 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31641 * defaults.h (gen_simple_return): New function.
31642 (gen_simple_return): Likewise.
31643 (HAVE_return): Add default definition to false.
31644 (HAVE_simple_return): Likewise.
31645 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31646 HAVE_return and HAVE_simple_return are defined.
31647 * function.c (gen_return_pattern): Likewise.
31648 (convert_jumps_to_returns): Likewise.
31649 (thread_prologue_and_epilogue_insns): Likewise.
31650 * reorg.c (find_end_label): Likewise.
31651 (dbr_schedule): Likewise.
31652 * shrink-wrap.c: Likewise.
31653 * shrink-wrap.h: Likewise.
31654
31655 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31656
31657 * defaults.h (EPILOGUE_USES): Add default definition of false.
31658 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31659 * resource.c (init_resource_info): Likewise.
31660
31661 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31662
31663 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31664 to false.
31665 * dwarf2out.c (field_byte_offset): REmove check if
31666 PCC_BITFIELD_TYPE_MATTERS is defined.
31667 * stor-layout.c (layout_decl): Likewise.
31668 (update_alignment_for_field): Likewise.
31669 (place_field): Likewise.
31670
31671 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31672
31673 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31674 true.
31675 * regrename.c (check_new_reg_p): Remove check if
31676 HARD_REGNO_RENAME_OK is defined.
31677 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31678
31679 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31680
31681 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31682 * cse.c (fold_rtx): Likewise.
31683 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31684 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31685 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31686 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31687 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31688 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31689 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31690 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31691 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31692 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31693 * Likewise.
31694 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31695 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31696 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31697 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31698 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31699 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31700 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31701 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31702 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31703 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31704 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31705 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31706 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31707 * doc/tm.texi: Regenerate.
31708 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31709 either true or false.
31710
31711 2015-04-27 Jeff Law <law@redhat.com>
31712
31713 PR tree-optimization/65217
31714 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31715 of them has a single use, make sure it is the LHS of the implied
31716 copy.
31717
31718 2015-04-28 Alan Modra <amodra@gmail.com>
31719
31720 PR target/65810
31721 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31722 (offsettable_ok_by_alignment): Use minimum of decl and toc
31723 pointer alignment. Replace dead code with assertion.
31724 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31725 case if size exceeds toc pointer alignment.
31726 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31727 (rs6000_emit_move): Likewise.
31728 * configure.ac: Add linker toc pointer alignment check.
31729 * configure: Regenerate.
31730 * config.in: Regenerate.
31731
31732 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31733
31734 * config.gcc: Add h8300-*-linux.
31735 * config/h8300/linux.h: New.
31736 * config/h8300/t-linux: New.
31737 * config/h8300/h8300.c (h8300_option_override): Normal mode
31738 is not supported for h8300-*-linux.
31739 (h8300_file_start): Target priority change.
31740 (get_shift_alg): Likewise.
31741 (h8300_shift_need_scratch_p): Likewise.
31742 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31743 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31744
31745 2015-04-27 Caroline Tice <cmtice@google.com>
31746
31747 * final.c (final_scan_insn): Output cold_function_name as function
31748 type.
31749 * varasm.c (cold_function_name): Make global.
31750 (assemble_start_function): Re-set cold_function_name.
31751 (assemble_end_function): Output cold partition size.
31752 * varasm.h (cold_function_name): Declare global.
31753
31754 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31755
31756 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31757 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31758 constraint.
31759 (*movxi_internal_avx512f): Ditto.
31760 (define_split): Check for xmm16+, when splitting scalar float_extend.
31761 (*extendsfdf2_mixed): Use "v" constraint.
31762 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31763 (*truncdfsf_fast_sse): Use "v" constraint.
31764 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31765 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31766 (define_peephole2): Check for xmm16+, when converting scalar
31767 float_truncate.
31768 (define_peephole2): Check for xmm16+, when converting scalar
31769 float_extend.
31770 (*fop_<mode>_comm_mixed): Use "v" constraint.
31771 (*fop_<mode>_comm_sse): Ditto.
31772 (*fop_<mode>_1_mixed): Ditto.
31773 (*sqrt<mode>2_sse): Ditto.
31774 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31775
31776 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31777
31778 * combine.c (simplify_if_then_else): Use std::swap instead
31779 of manually swapping.
31780 (known_cond): Likewise.
31781 (simplify_comparison): Likewise.
31782
31783 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31784
31785 PR target/64579
31786 * config/rs6000/htm.md: Remove all define_expands.
31787 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31788 UNSPECV_HTM_TABORTWCI): Remove.
31789 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31790 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31791 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31792 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31793 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31794 tabortwci_internal): Remove define_insns.
31795 (tabort<wd>c, tabort<wd>ci): New define_insns.
31796 (tabort): Use gpc_reg_operand.
31797 (tcheck): Remove operand.
31798 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31799 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31800 expected value.
31801 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31802 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31803 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31804 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31805 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31806 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31807 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31808 (tcheck): Remove builtin argument.
31809 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31810 not TARGET_64BIT.
31811 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31812 tabortdc and tabortdci builtins when not in 64-bit mode.
31813 Modify code to handle the loss of the HTM define_expands.
31814 Emit code to copy the CR register to TARGET.
31815 (htm_init_builtins): Modify code to handle the loss of the HTM
31816 define_expands.
31817 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31818 (RS6000_BTC_64BIT): Likewise.
31819 (RS6000_BTC_CR): New macro.
31820 * doc/extend.texi: Update documentation for htm builtins.
31821
31822 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31823
31824 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31825 of manually swapping.
31826 (simplify_associative_operation): Likewise.
31827 (simplify_binary_operation): Likewise.
31828 (simplify_plus_minus): Likewise.
31829 (simplify_relational_operation): Likewise.
31830 (simplify_ternary_operation): Likewise.
31831
31832 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31833
31834 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31835 (xs_hi_nonmemory_operand): Remove error.
31836 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31837 general_operand rather than xs_hi_general_operand.
31838
31839 2015-04-27 Richard Biener <rguenther@suse.de>
31840
31841 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31842 (record_equivalences_from_stmt): Valueize rhs.
31843 (record_equality): Canonicalize x and y order via
31844 tree_swap_operands_p. Do not swap operands for same loop depth.
31845
31846 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31847
31848 PR target/65296
31849 PR target/65895
31850 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31851 Add hint how to use own spec file.
31852
31853 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31854
31855 PR tree-optimization/65875
31856 * tree-vrp.c (update_value_range): If in is_new case setting
31857 old_vr to VR_VARYING, also set new_vr to it. Remove
31858 old_vr->type == VR_VARYING test.
31859 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31860 SSA_PROP_INTERESTING if update_value_range returned true,
31861 but new range is VR_VARYING.
31862
31863 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31864
31865 * combine.c (sign_extend_short_imm): New.
31866 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31867 extension of src short immediate.
31868 (reg_nonzero_bits_for_combine): Likewise for tem.
31869
31870 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31871
31872 * stor-layout.c (self_referential_component_ref_p): New predicate.
31873 (copy_self_referential_tree_r): Use it.
31874 (self_referential_size): Punt for simple operations directly involving
31875 self-referential component references.
31876 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31877
31878 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31879
31880 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31881
31882 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31883
31884 * vec.h (vec): Make splice arguments const. Update definitions
31885 accordingly.
31886
31887 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31888
31889 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31890 alternatives.
31891
31892 2015-04-26 Tom de Vries <tom@codesourcery.com>
31893
31894 PR tree-optimization/65826
31895 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31896
31897 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31898
31899 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31900 (*madd3<mode>): Ditto.
31901 (*msub4<mode>): Ditto.
31902 (*msub3<mode>): Ditto.
31903 (*nmadd4<mode>): Ditto.
31904 (*nmadd3<mode>): Ditto.
31905 (*nmadd4<mode>_fastmath): Ditto.
31906 (*nmadd3<mode>_fastmath): Ditto.
31907 (*nmsub4<mode>): Ditto.
31908 (*nmsub3<mode>): Ditto.
31909 (*nmsub4<mode>_fastmath): Ditto.
31910 (*nmsub3<mode>_fastmath): Ditto.
31911
31912 2015-04-24 Jason Merrill <jason@redhat.com>
31913
31914 PR c++/50800
31915 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31916 down when building TYPE_CANONICAL.
31917 (build_pointer_type_for_mode): Likewise.
31918
31919 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31920
31921 * genrecog.c (validate_pattern): Check matching constraint refers
31922 to a lower numbered operand.
31923
31924 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31925
31926 PR target/65849
31927 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31928 save to independent variables use the Save attribute. This will
31929 allow these options to be modified with the #pragma/attribute
31930 target support.
31931 (-mallow-movmisalign): Likewise.
31932 (-mallow-df-permute): Likewise.
31933 (-msched-groups): Likewise.
31934 (-malways-hint): Likewise.
31935 (-malign-branch-targets): Likewise.
31936 (-mvectorize-builtins): Likewise.
31937 (-msave-toc-indirect): Likewise.
31938
31939 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31940 can be set via the #pragma/attribute target support.
31941 (rs6000_opt_vars): Likewise.
31942 (rs6000_inner_target_options): If VSX was set, also set
31943 -mno-avoid-indexed-addresses.
31944
31945 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31946
31947 * config/arm/iterators.md (shiftable_ops): Rename to...
31948 (SHIFTABLE_OPS): ... This. Update use in comments.
31949 (ior_xor): Rename to...
31950 (IOR_XOR): ... This.
31951 (vqh_ops): Rename to...
31952 (VQH_OPS): ... This.
31953 (vqhs_ops): Rename to...
31954 (VQHS_OPS): ... This.
31955 (rshifts): Rename to...
31956 (RSHIFTS): ... This.
31957 (returns): Rename to...
31958 (RETURNS): ... This.
31959 * config/arm/arm.md: Update uses of the above.
31960 * config/arm/neon.md: Likewise.
31961
31962 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31963
31964 * config.host (case ${host}): Add aarch64*-*-linux case.
31965 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31966 fields to all the cores.
31967 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31968 Add MCPU_MTUNE_NATIVE_SPECS.
31969 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31970 field to all extensions.
31971 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31972 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31973 Adjust definition of AARCH64_OPT_EXTENSION.
31974 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31975 (MCPU_MTUNE_NATIVE_SPECS): Define.
31976 * config/aarch64/driver-aarch64.c: New file.
31977 * config/aarch64/x-arch64: New file.
31978 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31979 -mtune and -march.
31980
31981 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31982 Wei Mi <wmi@google.com>
31983
31984 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31985 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31986 (ix86_operands_ok_for_move_multiple): Ditto.
31987 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31988 (movlpd/movhpd to movupd peephole2): Ditto.
31989
31990 2015-04-24 Marek Polacek <polacek@redhat.com>
31991
31992 PR c/61534
31993 * input.h (from_macro_expansion_at): Define.
31994
31995 PR c/63357
31996 * doc/invoke.texi: Update description of -Wlogical-op.
31997
31998 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31999
32000 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32001 ternary operator in fprintf and harmonize spacing.
32002
32003 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32004
32005 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32006 Mark operand1 commutative.
32007
32008 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32009
32010 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32011 input operands in memory.
32012 (*vec_concatv2si_sse4_1): Ditto.
32013 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32014 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32015 register_operand.
32016 (vec_extract_hi_v32hi): Ditto.
32017 (vec_extract_hi_v64hi): Ditto.
32018 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32019
32020 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32021 Steven Bosscher <steven@gcc.gnu.org>
32022
32023 PR rtl-optimization/34503
32024 * cprop.c (cprop_reg_p): New.
32025 (hash_scan_set): Use above function to check if register can be
32026 propagated.
32027 (find_avail_set): Return up to two sets, one whose source is a
32028 register and one whose source is a constant. Sets are returned in an
32029 array passed as parameter rather than as a return value.
32030 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32031 sets returned by find_avail_set, starting with the one whose source is
32032 a constant. Use cprop_reg_p to check if register can be propagated.
32033 (do_local_cprop): Use cprop_reg_p to check if register can be
32034 propagated.
32035 (implicit_set_cond_p): Likewise.
32036
32037 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32038
32039 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32040 (sem_function::equals): IGNORED_NODES parameter is now unused;
32041 update call of equals_private.
32042 (sem_function::equals_private): Do not call equals_wpa; skip
32043 gimple body matching if there is no body.
32044 (sem_function::init): Add logic to hash tthunk info.
32045 (sem_function::parse): Also parse thunks.
32046 * ipa-icf.h (equals_private): Update declaration.
32047
32048 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32049
32050 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32051 asterisk from name so this can be generated directly.
32052 (*altivec_stvx_<mode>_internal): Likewise.
32053 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32054 that this is never called during or after reload/lra.
32055 (rs6000_frame_related): Remove split_reg
32056 argument and logic that references it.
32057 (emit_frame_save): Remove last parameter from call to
32058 rs6000_frame_related.
32059 (rs6000_emit_prologue): Remove last parameter from eight calls to
32060 rs6000_frame_related. Force generation of stvx instruction for
32061 Altivec register saves. Remove split_reg handling, which is no
32062 longer needed.
32063 (rs6000_emit_epilogue): Force generation of lvx instruction for
32064 Altivec register restores.
32065
32066 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32067
32068 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32069 match category changes in ISA 2.07B.
32070
32071 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32072
32073 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32074 iterators.
32075 (cmp_op, cmp_type): New code attributes.
32076 (NEON_VCMP, NEON_VACMP): New int iterators.
32077 (cmp_op_unsp): New int attribute.
32078 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32079 (neon_vceq<mode>): Delete.
32080 (neon_vc<cmp_op><mode>_insn): New pattern.
32081 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32082 (neon_vcgeu<mode>): Delete.
32083 (neon_vcle<mode>): Likewise.
32084 (neon_vclt<mode>: Likewise.
32085 (neon_vcage<mode>): Likewise.
32086 (neon_vcagt<mode>): Likewise.
32087 (neon_vca<cmp_op><mode>): New define_expand.
32088 (neon_vca<cmp_op><mode>_insn): New pattern.
32089 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32090
32091 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32092
32093 * tree.h (attribute_value_equal): Declare.
32094 * tree.c (attribute_value_equal): Export.
32095
32096 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32097
32098 * ipa-icf.c (sem_item::compare_attributes): New function.
32099 (sem_item::compare_referenced_symbol_properties): Compare variable
32100 attributes.
32101 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32102 (sem_function::param_used_p): New function.
32103 (sem_function::equals_wpa): Fix attribute comparsion; match
32104 parameter type codes; do not compare paremter flags when
32105 they are not used; compare edge flags; compare indirect calls.
32106 (sem_item::update_hash_by_addr_refs): Hash reference type.
32107 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32108 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32109 reference use type.
32110 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32111 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32112
32113 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32114
32115 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32116 cleanup.
32117 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32118 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32119 (sem_item::compare_referenced_symbol_properties): New.
32120 (sem_item::hash_referenced_symbol_properties): New.
32121 (sem_item::compare_cgraph_references): Rename to ...
32122 (sem_item::compare_symbol_references): ... this one; use
32123 compare_referenced_symbol_properties.
32124 (sem_function::equals_wpa): Do not compare
32125 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32126 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32127 (sem_item::update_hash_by_addr_refs): Call
32128 hash_referenced_symbol_properties.
32129 (sem_item::update_hash_by_local_refs): Cleanup.
32130 (sem_function::merge): Do not mix up symbol properties.
32131 (sem_variable::equals_wpa): Use compare_symbol_references.
32132 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32133 (sem_item::hash_referenced_symbol_properties): New.
32134 (sem_item::compare_symbol_references): New.
32135 (sem_item::compare_cgraph_references): Remove.
32136
32137 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32138
32139 PR target/26702
32140 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32141 Emit size of local.
32142
32143 2015-04-23 Nick Clifton <nickc@redhat.com>
32144
32145 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32146 ATTRIBUTE_UNUSED to x parameter.
32147 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32148
32149 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32150
32151 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32152 TARGET_CRYPTO to TARGET_P8_VECTOR>
32153 (crypto_vpermxor_<mode>): Likewise.
32154 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32155 (BU_CRYPTO_3A): Likewise.
32156 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32157 (BU_CRYPTO_OVERLOAD_3A): New #define.
32158 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32159 (VPMSUMH): Likewise.
32160 (VPMSUMW): Likewise.
32161 (VPMSUMD): Likewise.
32162 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32163 (VPERMXOR_V4SI): Likewise.
32164 (VPERMXOR_V8HI): Likewise.
32165 (VPERMXOR_V16QI): Likewise.
32166 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32167 BU_CRYPTO_OVERLOAD_2A.
32168 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32169 BU_CRYPTO_OVERLOAD_3A.
32170 * config/rs6000/rs6000.opt (mcrypto): Change description of
32171 option.
32172
32173 2015-04-23 Richard Biener <rguenther@suse.de>
32174
32175 * passes.def: Remove copy propagation passes run directly after CCP.
32176 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32177 SSA names.
32178 (ccp_visit_phi_node): Rework to handle first executable edge
32179 specially.
32180
32181 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32182
32183 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32184 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32185 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32186 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32187 (thumb_legimitimize_reload_address): Remove.
32188 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32189 Remove.
32190 (thumb_legimitimize_reload_address): Remove.
32191
32192 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32193
32194 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32195
32196 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32197
32198 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32199 MAX_LDM_STM_OPS.
32200 (store_multiple): Likewise.
32201
32202 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32203
32204 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32205 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32206 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32207 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32208 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32209 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32210 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32211 Specify issue_rate value.
32212 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32213 large switch statement.
32214 (arm_marvell_pj4_tune): New struct.
32215 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32216 struct.
32217
32218 2015-04-23 Richard Biener <rguenther@suse.de>
32219
32220 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32221 (vect_find_last_store_in_slp_instance): Rename to ...
32222 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32223 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32224 and vec_construct for external defs when estimating prologue cost.
32225 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32226 Compute costs here only when vectorizing loops.
32227 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32228 have been determined.
32229 (vect_schedule_slp_instance): Simplify vectorized code placement
32230 and prepare for in-BB external defs.
32231 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32232 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32233 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32234 guard.
32235 (vect_model_load_cost): Likewise.
32236 (vectorizable_store): Instead add it here.
32237 (vectorizable_load): Likewise.
32238 (vect_is_simple_use): Dump def type textually.
32239
32240 2015-04-23 Richard Biener <rguenther@suse.de>
32241
32242 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32243 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32244 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32245 instead of get_eh_region_from_lp_number.
32246 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32247 the SCEV cache.
32248
32249 2015-04-23 Anton Blanchard <anton@samba.org>
32250
32251 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32252 need for -mprofile-kernel to save LR to stack.
32253
32254 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32255
32256 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32257 adjustments.
32258 (insn_is_swappable_p): Return 1 for a convert from double to
32259 single precision when all of its uses are splats of BE element
32260 zero.
32261
32262 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32263
32264 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32265
32266 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32267
32268 PR target/65456
32269 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32270 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32271 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32272 option.
32273 (rs6000_builtin_mask_for_load): Return 0 for targets with
32274 efficient unaligned VSX accesses so that the vectorizer will use
32275 direct unaligned loads.
32276 (rs6000_builtin_support_vector_misalignment): Always return true
32277 for targets with efficient unaligned VSX accesses.
32278 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32279 stores on targets with efficient unaligned VSX accesses is almost
32280 always the same as the cost of an aligned load or store, so model
32281 it that way.
32282 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32283 unaligned vectors if we have efficient unaligned VSX accesses.
32284 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32285 undocumented option.
32286
32287 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32288
32289 Revert:
32290 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32291
32292 * config.gcc (LIBC_MUSL): New tm_defines macro.
32293 * config/linux.h (OPTION_MUSL): Define.
32294 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32295 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32296 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32297
32298 * config/linux.opt (mmusl): New option.
32299 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32300 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32301
32302 * configure: Regenerate.
32303
32304 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32305
32306 * config.gcc (LIBC_MUSL): New tm_defines macro.
32307 * config/linux.h (OPTION_MUSL): Define.
32308 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32309 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32310 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32311
32312 * config/linux.opt (mmusl): New option.
32313 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32314 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32315
32316 * configure: Regenerate.
32317
32318 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32319
32320 * doc/invoke.texi (-fsanitize-sections): Update description.
32321 * asan.c (set_sanitized_sections): Parse incoming arg.
32322 (section_sanitized_p): Support wildcards.
32323
32324 2015-04-22 Tom de Vries <tom@codesourcery.com>
32325
32326 PR tree-optimization/65823
32327 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32328 equality between ap_copy and ap.
32329
32330 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32331
32332 PR target/47098
32333 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32334
32335 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32336
32337 PR target/47122
32338 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32339
32340 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32341
32342 PR target/55144
32343 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32344 remove already contained t-files.
32345
32346 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32347
32348 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32349 Remove unneeded forward declarations.
32350 (suitable_for_tail_call_opt_p): Commentary typo fix.
32351
32352 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32353
32354 * varasm.c (emit_bss): Remove redundant guard.
32355
32356 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32357
32358 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32359
32360 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32361
32362 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32363
32364 2015-04-22 Hale Wang <hale.wang@arm.com>
32365 Terry Guo <terry.guo@arm.com>
32366
32367 PR rtl-optimization/64818
32368 * combine.c (can_combine_p): Don't combine user-specified
32369 register if it is in an asm input.
32370
32371 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
32372
32373 PR ipa/65076
32374 * passes.def (early_optimizations): Add pass_dse.
32375
32376 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32377
32378 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32379 * reorg.c (redundant_insn): Remove ifdef
32380 INSN_REFERENCES_ARE_DELAYED.
32381 * resource.c (mark_referenced_resources): Likewise.
32382
32383 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32384
32385 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32386 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32387 * resource.c (mark_set_resources): Likewise.
32388
32389 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32390
32391 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32392 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32393 (flow_find_head_matching_sequence): Likewise.
32394 (try_head_merge_bb): Likewise.
32395 * combine.c (can_combine_p): Likewise.
32396 (try_combine): Likewise.
32397 (distribute_notes): Likewise.
32398 * df-problems.c (can_move_insns_across): Likewise.
32399 * final.c (final): Likewise.
32400 * gcse.c (insert_insn_end_basic_block): Likewise.
32401 * ira.c (find_moveable_pseudos): Likewise.
32402 * reorg.c (try_merge_delay_insns): Likewise.
32403 (fill_simple_delay_slots): Likewise.
32404 (fill_slots_from_thread): Likewise.
32405 * sched-deps.c (sched_analyze_2): Likewise.
32406
32407 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32408
32409 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32410 PIC_OFFSET_TABLE_REGNUM.
32411
32412 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32413
32414 * alias.c (init_alias_target): Remove ifdef
32415 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32416 * df-scan.c (df_insn_refs_collect): Likewise.
32417 (df_get_regular_block_artificial_uses): Likewise.
32418 (df_get_eh_block_artificial_uses): Likewise.
32419 (df_get_entry_block_def_set): Likewise.
32420 (df_get_exit_block_use_set): Likewise.
32421 * emit-rtl.c (gen_rtx_REG): Likewise.
32422 * ira.c (ira_setup_eliminable_regset): Likewise.
32423 * reginfo.c (init_reg_sets_1): Likewise.
32424 * regrename.c (rename_chains): Likewise.
32425 * reload1.c (reload): Likewise.
32426 (eliminate_regs_in_insn): Likewise.
32427 * resource.c (mark_referenced_resources): Likewise.
32428 (init_resource_info): Likewise.
32429
32430 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32431
32432 * defaults.h (MASK_RETURN_ADDR): New definition.
32433 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32434 MASK_RETURN_ADDR.
32435
32436 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32437
32438 * defaults.h (RETURN_ADDR_OFFSET): New definition.
32439 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32440 RETURN_ADDR_OFFSET.
32441 (expand_builtin_frob_return_addr): Likewise.
32442
32443 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32444
32445 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32446 (try_redirect_by_replacing_jump): Likewise.
32447 (rtl_tidy_fallthru_edge): Likewise.
32448 * combine.c (insn_a_feeds_b): Likewise.
32449 (find_split_point): Likewise.
32450 (simplify_set): Likewise.
32451 * cprop.c (cprop_jump): Likewise.
32452 * cse.c (cse_extended_basic_block): Likewise.
32453 * df-problems.c (can_move_insns_across): Likewise.
32454 * function.c (emit_use_return_register_into_block): Likewise.
32455 * haifa-sched.c (sched_init): Likewise.
32456 * ira.c (find_moveable_pseudos): Likewise.
32457 * loop-invariant.c (find_invariant_insn): Likewise.
32458 * lra-constraints.c (curr_insn_transform): Likewise.
32459 * postreload.c (reload_combine_recognize_const_pattern):
32460 * Likewise.
32461 * reload.c (find_reloads): Likewise.
32462 * reorg.c (delete_scheduled_jump): Likewise.
32463 (steal_delay_list_from_target): Likewise.
32464 (steal_delay_list_from_fallthrough): Likewise.
32465 (redundant_insn): Likewise.
32466 (fill_simple_delay_slots): Likewise.
32467 (fill_slots_from_thread): Likewise.
32468 (delete_computation): Likewise.
32469 * sched-rgn.c (add_branch_dependences): Likewise.
32470
32471 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32472
32473 * genconfig.c (main): Always define HAVE_cc0.
32474 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32475 HAVE_cc0.
32476 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32477 (flow_find_head_matching_sequence): Likewise.
32478 (try_head_merge_bb): Likewise.
32479 * cfgrtl.c (rtl_merge_blocks): Likewise.
32480 (try_redirect_by_replacing_jump): Likewise.
32481 (rtl_tidy_fallthru_edge): Likewise.
32482 * combine.c (do_SUBST_MODE): Likewise.
32483 (insn_a_feeds_b): Likewise.
32484 (combine_instructions): Likewise.
32485 (can_combine_p): Likewise.
32486 (try_combine): Likewise.
32487 (find_split_point): Likewise.
32488 (subst): Likewise.
32489 (simplify_set): Likewise.
32490 (distribute_notes): Likewise.
32491 * cprop.c (cprop_jump): Likewise.
32492 * cse.c (cse_extended_basic_block): Likewise.
32493 * df-problems.c (can_move_insns_across): Likewise.
32494 * final.c (final): Likewise.
32495 (final_scan_insn): Likewise.
32496 * function.c (emit_use_return_register_into_block): Likewise.
32497 * gcse.c (insert_insn_end_basic_block): Likewise.
32498 * haifa-sched.c (sched_init): Likewise.
32499 * ira.c (find_moveable_pseudos): Likewise.
32500 * loop-invariant.c (find_invariant_insn): Likewise.
32501 * lra-constraints.c (curr_insn_transform): Likewise.
32502 * optabs.c (prepare_cmp_insn): Likewise.
32503 * postreload.c (reload_combine_recognize_const_pattern):
32504 * Likewise.
32505 * reload.c (find_reloads): Likewise.
32506 (find_reloads_address_1): Likewise.
32507 * reorg.c (delete_scheduled_jump): Likewise.
32508 (steal_delay_list_from_target): Likewise.
32509 (steal_delay_list_from_fallthrough): Likewise.
32510 (try_merge_delay_insns): Likewise.
32511 (redundant_insn): Likewise.
32512 (fill_simple_delay_slots): Likewise.
32513 (fill_slots_from_thread): Likewise.
32514 (delete_computation): Likewise.
32515 (relax_delay_slots): Likewise.
32516 * sched-deps.c (sched_analyze_2): Likewise.
32517 * sched-rgn.c (add_branch_dependences): Likewise.
32518
32519 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32520
32521 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32522 that is trivially ded on non cc0 targets.
32523 (simplify_set): Likewise.
32524 (mark_used_regs_combine): Likewise.
32525 * cse.c (new_basic_block): Likewise.
32526 (fold_rtx): Likewise.
32527 (cse_insn): Likewise.
32528 (cse_extended_basic_block): Likewise.
32529 (set_live_p): Likewise.
32530 * rtlanal.c (canonicalize_condition): Likewise.
32531 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32532
32533 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32534
32535 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32536 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32537 * final.c: Likewise.
32538 * jump.c: Likewise.
32539 * recog.c: Likewise.
32540 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32541 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32542
32543 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32544
32545 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32546 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32547 * builtins.c (expand_builtin): Remove check if
32548 EH_RETURN_DATA_REGNO is defined.
32549 * df-scan.c (df_bb_refs_collect): Likewise.
32550 (df_get_exit_block_use_set): Likewise.
32551 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32552 * ira-lives.c (process_bb_node_lives): Likewise.
32553 * lra-lives.c (process_bb_lives): Likewise.
32554
32555 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32556
32557 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32558 FIRST_PSEUDO_REG): New.
32559 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32560 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32561 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32562 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32563 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32564 (FIRST_INT_REG): New.
32565 (LAST_INT_REG): New.
32566 (FIRST_*_REG): Define using *_REG.
32567 (LAST_*_REG): Ditto.
32568 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32569 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32570 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32571
32572 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32573
32574 * expmed.c: (synth_mult): Only assume overlapping
32575 shift with previous steps in alg_sub_t_m2 case.
32576
32577 2015-04-21 Richard Biener <rguenther@suse.de>
32578
32579 PR tree-optimization/65650
32580 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32581 transitions involving copies.
32582 (set_lattice_value): Adjust for copy lattice state.
32583 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32584 if that doesn't dominate the merge point.
32585 (bit_value_unop): Adjust what we treat as varying mask.
32586 (bit_value_binop): Likewise.
32587 (bit_value_assume_aligned): Likewise.
32588 (evaluate_stmt): When we simplified to a SSA name record a copy
32589 instead of dropping to varying.
32590 (visit_assignment): Simplify.
32591
32592 * gimple-match.h (gimple_simplify): Add another callback.
32593 * gimple-fold.c (fold_stmt_1): Adjust caller.
32594 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32595 for the 2nd callback.
32596 * gimple-match-head.c (gimple_simplify): Add a callback that is
32597 used to valueize the stmt operands and use it that way.
32598
32599 2015-04-21 Richard Biener <rguenther@suse.de>
32600
32601 PR tree-optimization/65788
32602 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32603
32604 2015-04-21 Richard Biener <rguenther@suse.de>
32605
32606 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32607 vec_construct cost by vec_stmt_cost.
32608
32609 2015-04-21 Richard Biener <rguenther@suse.de>
32610
32611 * cfghooks.h (create_basic_block): Replace with two overloads
32612 for RTL and GIMPLE.
32613 (split_block): Likewise.
32614 * cfghooks.c (split_block): Rename to ...
32615 (split_block_1): ... this.
32616 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32617 (split_block_after_labels): Call split_block_1.
32618 (create_basic_block): Rename to ...
32619 (create_basic_block_1): ... this.
32620 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32621 (create_empty_bb): Call create_basic_block_1.
32622 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32623 split_block_after_labels.
32624 * omp-low.c (expand_parallel_call): Likewise.
32625 (expand_omp_target): Likewise.
32626 (simd_clone_adjust): Likewise.
32627 * tree-chkp.c (chkp_get_entry_block): Likewise.
32628 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32629 create_basic_block overload.
32630 (cgraph_node::expand_thunk): Likewise.
32631 * tree-cfg.c (make_blocks): Likewise.
32632 (handle_abnormal_edges): Likewise.
32633 * tree-inline.c (copy_bb): Likewise.
32634
32635 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32636
32637 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32638 New pattern.
32639 (*xor_one_cmplsidi3_ze): Likewise.
32640
32641 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32642
32643 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32644 use df_remove_problem rather than manually removing problems, leaving
32645 holes in df->problems_in_order[].
32646
32647 2015-04-21 Tom de Vries <tom@codesourcery.com>
32648
32649 PR tree-optimization/65802
32650 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32651
32652 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32653
32654 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32655 Increase to 128.
32656 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32657 at '.'. Assert that there's enough space for everything.
32658
32659 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32660
32661 PR tree-optimization/64950
32662 Revert:
32663 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32664
32665 PR target/41089
32666 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32667 as volatile.
32668
32669 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32670
32671 PR rtl-optimization/64916
32672 * cfgcleanup.c (values_equal_p): New function.
32673 (can_replace_by): Use it.
32674
32675 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32676
32677 PR c++/65801
32678 * doc/invoke.texi ([-Wnarrowing]): Update.
32679
32680 2015-04-20 Jeff Law <law@redhat.com>
32681
32682 PR tree-optimization/65658
32683 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32684 redundant test for GIMPLE_ASSIGN in last change.
32685
32686 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32687
32688 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32689 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32690 (legitimize_tls_address): Ditto.
32691 (ix86_expand_move): Ditto.
32692 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32693 (ix86_expand_unary_operator): Ditto.
32694 * config/i386/predicates.md (index_register_operand): Ditto.
32695
32696 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32697
32698 * reorg.c (try_merge_delay_insns): Improve correctness checking
32699 for targets with multiple delay slots.
32700
32701 2015-04-20 Jeff Law <law@redhat.com>
32702
32703 PR tree-optimization/65658
32704 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32705 statements too.
32706
32707 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32708
32709 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32710 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32711 Delete.
32712
32713 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32714
32715 PR debug/65807
32716 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32717
32718 2015-04-20 Richard Biener <rguenther@suse.de>
32719
32720 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32721 * gimple-fold.c (gimple_build_valueize): New function.
32722 (gimple_build): Always use gimple_build_valueize as valueize hook.
32723
32724 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32725
32726 PR target/64134
32727 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32728 and overwrite variable parts if <= 1/2 the elements are variable.
32729
32730 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32731
32732 PR rtl-optimization/65805
32733 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32734 Don't use difference of offset and previous offset if
32735 update_sp_offset is non-zero.
32736 (eliminate_regs_in_insn): Ditto.
32737 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32738 lra_eliminate_regs_1 call.
32739 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32740
32741 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32742
32743 * hash-table.h: Remove version of hash_table that stored value_type *.
32744 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32745 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32746 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32747 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32748 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32749 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32750 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32751 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32752 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32753 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32754 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32755 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32756 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32757 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32758 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32759 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32760
32761 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32762 Jakub Jelinek <jakub@redhat.com>
32763
32764 PR target/65787
32765 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32766 subsequent SH_NONE operand does not overwrite an existing *special
32767 value.
32768 (adjust_extract): Handle case where a vec_extract operation is
32769 wrapped in a PARALLEL.
32770
32771 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32772
32773 PR target/65780
32774 * config/i386/i386.c (ix86_binds_local_p): Define only if
32775 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32776
32777 2015-04-17 Jeff Law <law@redhat.com>
32778
32779 PR tree-optimization/47679
32780 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32781 * tree-ssa-scopedtables.c: New file.
32782 * tree-ssa-scopedtables.h: New file.
32783 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32784 (const_and_copies): Change name/type.
32785 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32786 (record_const_or_copy_1): Similarly.
32787 (restore_vars_to_original_value): Similarly.
32788 (pass_dominator::execute): Create and destroy const_and_copies table.
32789 (thread_across_edge): Update passing of const_and_copies.
32790 (record_temporary_equivalence): Use method calls rather than
32791 manipulating const_and_copies directly.
32792 (record_equality, cprop_into_successor_phis): Similarly.
32793 (dom_opt_dom_walker::before_dom_children): Similarly.
32794 (dom_opt_dom_walker::after_dom_children): Similarly.
32795 (eliminate_redundant_computations): Similarly.
32796 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32797 (record_temporary_equivalence): Likewise.
32798 (invalidate_equivalences): Likewise.
32799 (record_temporary_equivalences_from_phis): Update due to type
32800 change of const_and_copies. Use method calls rather than
32801 manipulating the stack directly.
32802 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32803 (thread_through_normal_block, thread_across_edge): Likewise.
32804 (thread_across_edge): Likewise.
32805 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32806 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32807 of equiv_stack.
32808 (identify_jump_threads): Update due to type change of equiv_stack.
32809 (finalize_jump_threads): Delete the equiv_stack when complete.
32810
32811 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32812
32813 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32814 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32815 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32816
32817 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32818
32819 PR target/65535
32820 * config.gcc: Exit with a comment when we do not have a major version
32821 number for the FreeBSD target.
32822
32823 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32824
32825 PR target/65689
32826 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32827 maybe_allows_mem bitfields.
32828 (maybe_allows_none_start, maybe_allows_none_end,
32829 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32830 maybe_allows_mem_end): New variables.
32831 (compute_maybe_allows): New function.
32832 (add_constraint): Use it to initialize maybe_allows_reg and
32833 maybe_allows_mem fields.
32834 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32835 is_address constraints such that those that allow neither mem nor
32836 reg come first, then those that only allow reg but not mem, then
32837 those that only allow mem but not reg, then the rest.
32838 (write_allows_reg_mem_function): New function.
32839 (write_tm_preds_h): Call it.
32840 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32841 the generated insn_extra_constraint_allows_reg_mem function
32842 instead of always setting *allows_reg = true; *allows_mem = true;
32843 for unknown extra constraints.
32844
32845 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32846
32847 PR target/65780
32848 * output.h (default_binds_local_p_3): New.
32849 * varasm.c (default_binds_local_p_3): Make it public. Take an
32850 argument to indicate if common symbol may be local. If common
32851 symbol may be local, treat non-external variable as defined
32852 locally.
32853 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32854 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32855 * config/i386/i386.c (ix86_binds_local_p): New.
32856 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32857 ix86_binds_local_p.
32858
32859 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32860
32861 PR debug/65771
32862 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32863 trying mem_loc_descriptor on XEXP (rtl, 0).
32864
32865 2015-04-17 Martin Liska <mliska@suse.cz>
32866
32867 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32868 Release symbol_compare_collection.
32869 * ipa-reference.c: Add TODO that a vector should be released.
32870
32871 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32872
32873 PR target/65296
32874 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32875 to new AVR-LibC file layout (bug #44574).
32876 (*avrlibc_devicelib): Same.
32877 * config/avr/avr-mcus.def: Adjust comments.
32878 * config/avr/avr.opt (nodevicelib): Adjust help.
32879
32880 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32881
32882 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32883
32884 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32885
32886 PR c++/64527
32887 * gimplify.c (gimplify_init_constructor): Always emit a
32888 side-effecting constructor.
32889
32890 2015-04-17 Tom de Vries <tom@codesourcery.com>
32891
32892 PR tree-optimization/64950
32893 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32894 in cfun->curr_properties.
32895 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32896 if we generate an IFN_VA_ARG.
32897 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32898 function if PROP_gimple_lva is not set in src function.
32899
32900 2015-04-17 Tom de Vries <tom@codesourcery.com>
32901 Michael Matz <matz@suse.de>
32902
32903 PR tree-optimization/64950
32904 * gimple-iterator.c (update_modified_stmts): Remove static.
32905 * gimple-iterator.h (update_modified_stmts): Declare.
32906 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32907 (gimplify_va_arg_internal): New function.
32908 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32909 * gimplify.h (gimplify_va_arg_internal): Declare.
32910 * internal-fn.c (expand_VA_ARG): New unreachable function.
32911 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32912 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32913 (expand_ifn_va_arg): New function.
32914 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32915 (pass_stdarg::execute): Call expand_ifn_va_arg.
32916 (pass_data_lower_vaarg): New pass_data.
32917 (pass_lower_vaarg): New gimple_opt_pass.
32918 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32919 (make_pass_lower_vaarg): New function.
32920 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32921 properties_required field.
32922 * passes.def (all_passes): Add pass_lower_vaarg.
32923 * tree-pass.h (PROP_gimple_lva): Add define.
32924 (make_pass_lower_vaarg): Declare.
32925
32926 2015-04-17 Tom de Vries <tom@codesourcery.com>
32927
32928 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32929 * calls.c (call_expr_flags): Same.
32930
32931 2015-04-17 Tom de Vries <tom@codesourcery.com>
32932
32933 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32934 (pass_stdarg::execute): ... here.
32935
32936 2015-04-17 Tom de Vries <tom@codesourcery.com>
32937 Michael Matz <matz@suse.de>
32938
32939 * tree-cfg.c (make_blocks_1): Factor out of ...
32940 (make_blocks): ... here.
32941 (make_edges_bb): Factor out of ...
32942 (make_edges): ... here.
32943 (gimple_find_sub_bbs): New function.
32944 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32945
32946 2015-04-17 Tom de Vries <tom@codesourcery.com>
32947
32948 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32949
32950 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32951
32952 * asan.c (set_sanitized_sections): New function.
32953 (section_sanitized_p): Ditto.
32954 (asan_protect_global): Optionally sanitize user-defined
32955 sections.
32956 * asan.h (set_sanitized_sections): Declare new function.
32957 * common.opt (fsanitize-sections): New option.
32958 * doc/invoke.texi (-fsanitize-sections): Document new option.
32959 * opts-global.c (handle_common_deferred_options): Handle new
32960 option.
32961
32962 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32963
32964 PR debug/65771
32965 * dwarf2out.c (loc_list_from_tree): Return NULL
32966 for DEBUG_EXPR_DECL.
32967
32968 2015-04-17 Christian Bruel <christian.bruel@st.com>
32969
32970 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32971 same attributes.
32972
32973 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32974
32975 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32976 node itself when computing left conflict subnode size.
32977
32978 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32979
32980 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32981 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32982 *fop_<mode>_1_sse using enabled attribute. Use
32983 register_mixssei387nonimm_operand operand 1 predicate. Change
32984 alternative 3 constraints from "x" to "v".
32985
32986 2015-04-16 Richard Biener <rguenther@suse.de>
32987
32988 PR tree-optimization/65774
32989 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32990 bit-value tracking on.
32991
32992 2015-04-16 Richard Biener <rguenther@suse.de>
32993
32994 PR tree-optimization/64277
32995 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32996 simplify upper bound handling.
32997 (search_for_addr_array): Simplify.
32998 (check_array_bounds): Handle ADDR_EXPRs here.
32999 (check_all_array_refs): Simplify.
33000
33001 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33002
33003 * config/i386/i386.c (print_reg): Rewrite function.
33004
33005 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33006
33007 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33008 Invert the condition.
33009
33010 2015-04-16 Renlin Li <renlin.li@arm.com>
33011
33012 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33013 simplifications for UNSIGNED_FLOAT.
33014
33015 2015-04-16 Nick Clifton <nickc@redhat.com>
33016
33017 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33018 MUL_UNINIT.
33019 (enum rl78_cpu_type): New.
33020 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33021 (umulhi3_shift_virt): Remove m constraint from operand 1.
33022 (umulqihi3_virt): Likewise.
33023 * config/rl78/rl78.c (rl78_option_override): Add code to process
33024 -mcpu and -mmul options.
33025 (rl78_alloc_physical_registers): Add code to handle divhi and
33026 divsi valloc attributes.
33027 (set_origin): Likewise.
33028 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33029 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33030 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33031 __RL78_Gxx__.
33032 (ASM_SPEC): Pass -mcpu on to assembler.
33033 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33034 (mulqi3_rl78): Likewise.
33035 (mulhi3_g13): Likewise.
33036 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33037 (mulsi3): Likewise.
33038 (mulhi3_g14): Add clobbers of AX and BC.
33039 (mulsi3_g14): Likewise.
33040 (mulsi3_g13): Likewise.
33041 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33042 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33043 * config/rl78/rl78.opt (mmul): Initialise value to
33044 RL78_MUL_UNINIT.
33045 (mcpu): New option.
33046 (m13, m14, mrl78): New option aliases.
33047 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33048 (MULTILIB_DIRNAMES): Add g13 and g14.
33049 * doc/invoke.texi: Document -mcpu and -mmul options.
33050
33051 2015-04-16 Richard Biener <rguenther@suse.de>
33052
33053 * tree-ssa-ccp.c (likely_value): See if we have operands that
33054 are marked as never simulate again and return CONSTANT in this
33055 case.
33056 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33057 not have any operands that will be simulated again as
33058 not being simulated again.
33059
33060 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33061
33062 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33063 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33064 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33065 attribute.
33066 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33067 enabled attribute.
33068 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33069 *float<SWI48:mode><MODEF:mode>2_sse.
33070 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33071 enabled attribute.
33072 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33073 enabled attribute.
33074
33075 2015-04-15 Tom de Vries <tom@codesourcery.com>
33076
33077 PR other/65487
33078 * function.c (push_dummy_function): New function.
33079 (init_dummy_function_start): Use push_dummy_function.
33080 (pop_dummy_function): New function. Factored out of ...
33081 (expand_dummy_function_end): ... here.
33082 * function.h (push_dummy_function, pop_dummy_function): Declare.
33083 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33084 pop_dummy_function.
33085 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33086
33087 2015-04-15 Jeff Law <law@redhat.com>
33088
33089 PR tree-optimization/47679
33090 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33091 need for forward declaration in upcoming changes.
33092 (record_conditions, record_edge_info): Likewise.
33093
33094 PR rtl-optimization/42522
33095 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33096 SIGN_EXTRACT as a whole object rather than simplifying
33097 its operand.
33098
33099 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33100
33101 PR ipa/65765
33102 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33103 and GIMPLE_PREDICT use break instead of return true. For
33104 GIMPLE_EH_DISPATCH, compare dispatch region.
33105
33106 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33107
33108 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33109 details about the implementation. Make clear preference for
33110 __atomic builtins. Reduce possibility of future change.
33111
33112 2015-04-15 Nick Clifton <nickc@redhat.com>
33113
33114 * config/rx/rx.opt (mallow-string-insns): New option.
33115 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33116 builtin if string instructions are denied.
33117 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33118 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33119 appropriate.
33120 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33121 * config/rx/rx.md (movstr): Enable pattern only if string
33122 instructions are allowed.
33123 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33124 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33125 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33126 (MULTILIB_DIRNAMES): Add no-strings.
33127 * doc/invoke.texi: Document -mno-allow-string-insns.
33128
33129 2015-04-15 Alan Modra <amodra@gmail.com>
33130
33131 PR target/65408
33132 PR target/58744
33133 PR middle-end/36043
33134 * calls.c (load_register_parameters): Don't load past end of
33135 mem unless suitably aligned.
33136
33137 2015-04-15 Nick Clifton <nickc@redhat.com>
33138
33139 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33140 decrement instruction as being frame related.
33141 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33142 based addresses.
33143 If zero extending a function address enclose the operation in
33144 %code(...).
33145 (rl78_preferred_reload_class): New function.
33146 (TARGET_PREFERRED_RELOAD_CLASS): Define.
33147 * config/rl78/rl78.md: Remove useless constraints in expanders.
33148 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33149 (mulhi3_rl78): Likewise.
33150 (mulhi3_g13): Likewise.
33151 (mulsi3_rl78): Likewise.
33152 (es_addr): Move to before the multiply patterns.
33153
33154 2015-04-15 Alan Modra <amodra@gmail.com>
33155
33156 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33157 and sequence_stack. Add seq.
33158 (seq_stack): Delete.
33159 * function.c (prepare_function_start): Don't access x_last_insn.
33160 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33161 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33162 * emit_rtl.c (start_sequence, push_topmost_sequence,
33163 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33164 sequence accessors.
33165 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33166 remove_insn): Likewise. Simplify.
33167 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33168 and pop_topmost_sequence.
33169 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
33170 debug insns.
33171 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33172
33173 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33174
33175 PR target/65729
33176 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33177 the assertiion.
33178
33179 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33180
33181 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33182 (LEGACY_INT_REGNO_P): Ditto.
33183 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33184 (ANY_MASK_REG_P): Remove.
33185 (BND_REG_P): Rename from ANY_BND_REG_P.
33186 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33187 legacy integer registers. Do not handle MMX_REG_P in a special way.
33188 Merge 64byte and 32byte SSE handling.
33189
33190 2015-04-14 Nick Clifton <nickc@redhat.com>
33191
33192 * expr.c (expand_assignment): Force an address offset computation
33193 into a register before changing its mode.
33194 (expand_expr_real_1): Likewise.
33195
33196 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33197
33198 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33199 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33200 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33201 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33202 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33203 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33204 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33205 and __aarch64_vget_lane_any.
33206
33207 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33208
33209 PR rtl-optimization/65761
33210 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33211 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33212
33213 2015-04-14 Richard Biener <rguenther@suse.de>
33214
33215 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33216 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33217
33218 2015-04-14 Richard Biener <rguenther@suse.de>
33219
33220 PR tree-optimization/65758
33221 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33222 against -1.
33223 (ccp_lattice_meet): Likewise.
33224 (bit_value_unop): Likewise.
33225 (bit_value_binop): Likewise.
33226 (bit_value_assume_aligned): Likewise.
33227
33228 2015-04-14 Christian Bruel <christian.bruel@st.com>
33229
33230 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33231 function.
33232
33233 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33234
33235 PR tree-optimization/63387
33236 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33237 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33238
33239 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33240
33241 * config/i386/predicates.md (any_QIreg_operand): Rename from
33242 q_regs_operand. Do not process subregs.
33243 (QIreg_operand): Use QI_REGNO_P predicate.
33244 (ext_QIreg_operand): Ditto.
33245 (ext_register_operand): Ditto.
33246 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33247 (AND splitters): Ditto.
33248 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33249 (AND with -256 splitter): Use any_QIreg_operand predicate and
33250 SWI248 mode for operand 0.
33251 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33252 mode for operand 0.
33253 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33254
33255 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33256
33257 * doc/plugins.texi: Rewrite first introductory paragraph.
33258
33259 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33260
33261 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33262 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33263
33264 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33265
33266 * ipa-profie.c (ipa_profile): Check number of parameters
33267 and possible polymorphic call targets before
33268 devirtualizing.
33269
33270 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33271
33272 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33273 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33274
33275 2015-04-13 Richard Biener <rguenther@suse.de>
33276
33277 PR tree-optimization/65204
33278 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33279 takens for bit-CCP.
33280
33281 2015-04-13 Richard Biener <rguenther@suse.de>
33282
33283 PR target/65660
33284 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33285 and cond_not_taken_branch_cost to 4 and 2.
33286 (bdver2_cost): Likewise.
33287 (bdver3_cost): Likewise.
33288 (bdver4_cost): Likewise.
33289
33290 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33291
33292 * hash-table.h (hash_table constructor): Add mem stats.
33293 (alloc_entries): Likewise.
33294
33295 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33296
33297 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33298 * passes.c (execute_one_pass): Only add transform if pass has one.
33299
33300 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33301
33302 * config/i386/i386.c (ix86_option_override_internal): Don't set
33303 -fprefetch-loop-arrays if optimizing for size.
33304
33305 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33306 Gerald Pfeifer <gerald@pfeifer.com>
33307
33308 * doc/contrib.texi (Contributors): Add Martin Jambor and
33309 Michael Matz.
33310
33311 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33312
33313 * BASE-VER: Set to 6.0.0.
33314
33315 PR tree-optimization/65747
33316 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33317 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33318
33319 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33320
33321 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33322 sentence. Improve grammar.
33323
33324 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33325
33326 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33327
33328 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33329
33330 PR ipa/65743
33331 * ipa-inline-transform.c (speculation_removed): Remove static var.
33332 (check_speculations): New function.
33333 (clone_inlined_nodes): Do not check spculations.
33334 (inline_call): Call check_speculations.
33335 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33336 consider non-invariants.
33337
33338 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33339 Martin Liska <mliska@suse.cz>
33340
33341 PR ipa/65722
33342 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33343 variable can not match.
33344 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33345 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33346
33347 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33348
33349 PR tree-optimization/65735
33350 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33351 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33352 same bb rather than just into the same phi node.
33353 (thread_through_normal_block): Adjust caller.
33354
33355 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33356
33357 * doc/contrib.texi (Contributors): Add Ira Rosen.
33358
33359 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33360
33361 * gcov.c (find_source): Fix miswording in error message.
33362 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33363 (ix86_expand_sse_comi_round): Fix typo in error message.
33364
33365 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33366
33367 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33368
33369 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
33370
33371 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33372
33373 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33374
33375 PR target/65710
33376 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33377 Print bad_spills_num and insn_pseudos_num.
33378
33379 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33380
33381 PR target/65694
33382 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33383 when creating +1 values for SImode.
33384
33385 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33386
33387 PR target/65729
33388 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33389 assert.
33390
33391 2015-04-10 Jakub Jelinek <jakub@redhat.com>
33392 Iain Sandoe <iain@codesourcery.com>
33393
33394 PR target/65351
33395 * configure: Regenerate.
33396
33397 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33398
33399 PR target/65671
33400 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33401
33402 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
33403
33404 * doc/contrib.texi (Contributors): Add John Marino.
33405
33406 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33407
33408 PR tree-optimization/65709
33409 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33410 TREE_TYPE (TREE_TYPE (t)).
33411
33412 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
33413
33414 PR target/65710
33415 * lra-int.h (lra_bad_spill_regno_start): New.
33416 * lra.c (lra_bad_spill_regno_start): New.
33417 (lra): Set up lra_bad_spill_regno_start. Set up
33418 lra_constraint_new_regno_start unconditionally.
33419 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33420 spill preferences.
33421
33422 2015-04-09 Marek Polacek <polacek@redhat.com>
33423 Jakub Jelinek <jakub@redhat.com>
33424
33425 PR middle-end/65554
33426 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33427 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33428 of STRIP_NOPS.
33429
33430 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
33431
33432 PR rtl-optimization/65693
33433 * combine.c (is_parallel_of_n_reg_sets): Move outside of
33434 #ifndef HAVE_cc0.
33435
33436 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
33437
33438 PR target/65296
33439 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33440 device specs file if "device-specs%s" didn't resolve to a path.
33441
33442 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33443
33444 PR target/65676
33445 * config/i386/i386.c (fixup_modeless_constant): New.
33446 (ix86_expand_args_builtin): Fixup modeless constant operand.
33447 (ix86_expand_round_builtin): Ditto.
33448 (ix86_expand_special_args_builtin): Ditto.
33449 (ix86_expand_builtin): Ditto.
33450
33451 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33452
33453 PR target/65693
33454 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33455 any pow2 integer in between 2 and 0x80000000U inclusive.
33456
33457 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
33458
33459 PR rtl-optimization/65693
33460 * combine.c (is_parallel_of_n_reg_sets): Change first argument
33461 from an rtx_insn * to an rtx.
33462 (try_combine): Adjust both callers. Use it once more.
33463
33464 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33465
33466 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33467 (chkp_make_static_const_bounds): Search existing
33468 symbol by assembler name. Use make_decl_one_only.
33469 (chkp_get_zero_bounds_var): Remove node search which
33470 is now performed in chkp_make_static_const_bounds.
33471 (chkp_get_none_bounds_var): Likewise.
33472
33473 2015-04-08 Michael Witten <mfwitten@gmail.com>
33474
33475 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33476 to an example.
33477
33478 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33479
33480 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33481
33482 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33483
33484 * doc/extend.texi (__sync Builtins): Fix grammar.
33485
33486 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33487
33488 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33489
33490 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33491
33492 * varasm.c (emit_local): Move definition of align.
33493
33494 2015-04-08 Julian Brown <julian@codesourcery.com>
33495
33496 * config/nvptx/mkoffload.c (process): Support variable mapping.
33497
33498 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33499
33500 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33501 alpha_links **.
33502 (alpha_write_one_linkage): Correct typo.
33503
33504 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33505
33506 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33507
33508 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33509
33510 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33511
33512 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33513
33514 * tree-chkp.h (chkp_insert_retbnd_call): New.
33515 * tree-chkp.c (chkp_insert_retbnd_call): New.
33516 * ipa-split.c (insert_bndret_call_after): Remove.
33517 (split_function): Use chkp_insert_retbnd_call.
33518 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33519 bounds for instrumented functions.
33520
33521 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33522
33523 PR ipa/65540
33524 * calls.c (initialize_argument_information): When producing tail
33525 call also turn SSA_NAMES passed by references to original PARM_DECLs
33526
33527 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33528
33529 PR target/65648
33530 * lra-remat.c (do_remat): Process input and non-input insn
33531 registers separately.
33532
33533 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33534
33535 PR debug/65678
33536 * valtrack.c (debug_lowpart_subreg): New function.
33537 (dead_debug_insert_temp): Use it.
33538
33539 PR middle-end/65680
33540 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33541 into signed HOST_WIDE_INT the same as negative bit_offset.
33542
33543 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33544
33545 * ipa-comdats.c (ipa_comdats): Visit all thunks
33546 to set proper comdat group.
33547
33548 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33549
33550 PR target/65489
33551 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33552 on constants for NEON VSTRUCT modes.
33553
33554 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33555 Iain Sandoe <iain@codesourcery.com>
33556
33557 PR target/65351
33558 * configure: Regenerate.
33559
33560 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33561
33562 PR target/65614
33563 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33564 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33565 that LFD is used to load double constants instead of LFS. Add
33566 defaults for all costs structures. Add comments for missing
33567 initialization fields.
33568 (size32_cost): Likewise.
33569 (size64_cost): Likewise.
33570 (rs64a_cost): Likewise.
33571 (mpccore_cost): Likewise.
33572 (ppc403_cost): Likewise.
33573 (ppc405_cost): Likewise.
33574 (ppc440_cost): Likewise.
33575 (ppc476_cost): Likewise.
33576 (ppc601_cost): Likewise.
33577 (ppc603_cost): Likewise.
33578 (ppc604_cost): Likewise.
33579 (ppc604e_cost): Likewise.
33580 (ppc620_cost): Likewise.
33581 (ppc630_cost): Likewise.
33582 (ppccell_cost): Likewise.
33583 (ppc750_cost): Likewise.
33584 (ppc7450_cost): Likewise.
33585 (ppc8540_cost): Likewise.
33586 (ppce300c2c3_cost): Likewise.
33587 (ppce500mc_cost): Likewise.
33588 (ppce500mc64_cost): Likewise.
33589 (ppce5500_cost): Likewise.
33590 (ppce6500_cost): Likewise.
33591 (titan_cost): Likewise.
33592 (power4_cost): Likewise.
33593 (power6_cost): Likewise.
33594 (power7_cost): Likewise.
33595 (power8_cost): Likewise.
33596 (ppca2_cost): Likewise.
33597 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33598
33599 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33600 instead of XXLOR to copy SFmode to clear out dirty bits created
33601 when SFmode denormals are generated.
33602 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33603 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33604
33605 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33606
33607 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33608 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33609 * config/aarch64/aarch64-tune.md: Regenerate.
33610
33611 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33612
33613 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33614 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33615 * config/arm/arm-cores.def (exynos-m1): New core.
33616 * config/arm/arm-tune.md: Regenerate.
33617 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33618 * config/arm/bpabi.h: Likewise.
33619
33620 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33621
33622 * ipa-cp (set_single_call_flag): Remove too
33623 restrictive assert.
33624
33625 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33626
33627 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33628 GOMP_offload_unregister from the destructor.
33629
33630 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33631
33632 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33633 flags for instrumentation thunk.
33634 (chkp_produce_thunks): Likewise.
33635
33636 2015-04-05 Martin Liska <mliska@suse.cz>
33637
33638 PR ipa/65665
33639 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33640 has computed data structure.
33641 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33642
33643 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33644
33645 * invoke.texi (inline-unit-growth): Increase growth to 20%
33646 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33647
33648 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33649
33650 PR target/65647
33651 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33652 value checking.
33653 (lra_rematerialization_iter): New.
33654 * lra.c (lra): Initialize lra_rematerialization_iter.
33655 Stop updating lra_constraint_new_regno_start after switching of
33656 inheritance and rematerialization.
33657 * lra-remat.c (lra_rematerialization_iter): New.
33658 (lra_remat): Add printing pass iteration. Do rematerialization
33659 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33660
33661 2015-04-04 Richard Biener <rguenther@suse.de>
33662
33663 PR tree-optimization/64909
33664 PR tree-optimization/65660
33665 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33666 to take a cost vector for scalar iteration cost.
33667 (vect_get_single_scalar_iteration_cost): Likewise.
33668 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33669 Compute the scalar iteration cost into a cost vector.
33670 (vect_get_known_peeling_cost): Use the scalar cost vector to
33671 account for the cost of the peeled iterations.
33672 (vect_estimate_min_profitable_iters): Likewise.
33673 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33674 Likewise.
33675
33676 2015-04-04 Alan Modra <amodra@gmail.com>
33677
33678 PR target/65576
33679 PR target/65240
33680 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33681 0.0 constant unless TARGET_VSX.
33682 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33683 alternative.
33684
33685 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33686
33687 PR ipa/65654
33688 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33689 around the ICE
33690
33691 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33692
33693 PR ipa/65655
33694 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33695 speculative indirect edges to avoid ordering issue.
33696
33697 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33698
33699 PR ipa/65076
33700 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33701
33702 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33703
33704 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33705 TYPE_ARTIFICIAL on the .omp_data* types.
33706
33707 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33708
33709 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33710 instrumentation thunks.
33711
33712 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33713
33714 * config/i386/i386.c (ix86_expand_call): Avoid nested
33715 PARALLEL in returned call value.
33716
33717 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33718
33719 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33720 assembler name with original one.
33721
33722 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33723
33724 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33725
33726 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33727
33728 Revert parts of r216820.
33729 * config/i386/i386.md (movqi_internal): Correct type calculation
33730 for alternatives 3 and 5.
33731
33732 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33733
33734 PR preprocessor/61977
33735 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33736 predefine __vector/__bool/__pixel macros nor context sensitive
33737 macros for CLK_ASM.
33738 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33739
33740 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33741
33742 * config/pa/pa.c (pa_output_move_double): Directly handle register
33743 indexed memory operand. Simplify handling of scaled register indexed
33744 memory operands.
33745
33746 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33747
33748 PR driver/65444
33749 * config/i386/linux-common.h (MPX_SPEC): New.
33750 (CHKP_SPEC): Add MPX_SPEC.
33751 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33752 possible issues with '-z bndplt' support in linker.
33753
33754 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33755
33756 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33757 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33758 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33759 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33760 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33761
33762 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33763
33764 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33765 (atomic_load<mode>): Change operand 0 predicate to
33766 nonimmediate_operand and fix up the destination when needed.
33767 Use UNSPEC_LDA.
33768 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33769 (atomic_store<mode>): Change operand 1 predicate to
33770 nonimmendate_operand and move the source to register when needed.
33771 Use UNSPEC_STA.
33772 (atomic_store<mode>_1): Use UNSPEC_STA.
33773 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33774 Fix moves from memory operand. Use UNSPEC_STA.
33775
33776 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33777
33778 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33779 not cross a MODESIZE boundary.
33780 (store_bit_field, extract_bit_field): Added assertions in the
33781 strict volatile bitfields code path.
33782
33783 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33784
33785 PR target/65624
33786 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33787 Increase args array size by one to avoid buffer overflow.
33788
33789 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33790
33791 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33792 split_part.
33793 * ipa-inline.c (edge_badness): Add wrapper penalty.
33794 (sum_callers): Move up.
33795 (inline_small_functions): Set single_caller.
33796 * ipa-inline.h (inline_summary): Add single_caller.
33797 * ipa-split.c (split_function): Set split_part.
33798 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33799 * cgraph.h (cgraph_node): Add split_part.
33800
33801 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33802
33803 PR target/58945
33804 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33805 Do not split operands 0 and operands 2 to halfmode.
33806 (atomic_compare_and_swap<mode>): Update for
33807 atomic_compare_and_swap<dwi>_doubleword changes.
33808
33809 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33810
33811 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33812 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33813 no caching is done.
33814
33815 2015-03-31 Martin Liska <mliska@suse.cz>
33816
33817 PR ipa/65557
33818 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33819 has already filled up function summary.
33820 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33821
33822 2015-03-31 Richard Biener <rguenther@suse.de>
33823
33824 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33825 of types.
33826
33827 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33828
33829 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33830 nested functions.
33831 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33832 (s390_asm_output_function_label): Adapt to new signature of
33833 s390_function_num_hotpatch_hw
33834 Optimise the code generating assembler output.
33835 Add comments to assembler file.
33836
33837 2015-03-31 Richard Biener <rguenther@suse.de>
33838
33839 PR middle-end/65626
33840 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33841 of the noreturn call so it is last and cleanup_control_flow_bb
33842 can do the CFG part.
33843
33844 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33845
33846 PR target/65531
33847 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33848 same_comdat_group for external symbols.
33849 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33850 infinite same_comdat_group traversal loop.
33851
33852 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33853
33854 PR plugins/61176
33855 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33856 automatically to $headers.
33857
33858 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33859
33860 PR ipa/65610
33861 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33862 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33863 function.
33864 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33865 Use it.
33866 * ipa-prop.c (param_type_may_change_p): Likewise.
33867 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33868 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33869 argument. Before inlining, preserve
33870 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33871 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33872 recursive calls.
33873 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33874
33875 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33876
33877 PR ipa/65076
33878 * ipa-inline.c (edge_badness): Base denominator on callee's
33879 grwoth squared.
33880
33881 2015-03-27 Martin Jambor <mjambor@suse.cz>
33882
33883 PR ipa/65478
33884 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33885 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33886 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33887 node_calling_single_call.
33888 * ipa-cp.c (count_callers): New function.
33889 (set_single_call_flag): Likewise.
33890 (initialize_node_lattices): Count callers and set single_flag_call if
33891 necessary.
33892 (incorporate_penalties): New function.
33893 (good_cloning_opportunity_p): Use it, dump new flags.
33894 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33895 * doc/invoke.texi (ipa-cp-recursion-penalty,
33896 ipa-cp-single-call-pentalty): Document.
33897
33898 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33899
33900 PR ipa/65588
33901 * symtab.c (symtab_node::get_partitioning_class): Register vars
33902 are duplicated.
33903 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33904 decls for non-symbols.
33905
33906 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33907
33908 PR target/65248
33909 * output.h (default_binds_local_p_2): New.
33910 * varasm.c (default_binds_local_p_2): Renamed to ...
33911 (default_binds_local_p_3): This. Don't return true on protected
33912 data symbol if protected data may be external.
33913 (default_binds_local_p): Use default_binds_local_p_3.
33914 (default_binds_local_p_1): Likewise.
33915 (default_binds_local_p_2): New.
33916 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33917 default_binds_local_p_2 if TARGET_MACHO is undefined.
33918
33919 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33920
33921 PR target/65593
33922 * config/i386/i386.c (legitimize_pic_address): If base
33923 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33924 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33925
33926 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33927
33928 PR target/65531
33929 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33930 comdat groups.
33931
33932 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33933
33934 PR ipa/65600
33935 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33936 of optimized out indirect call.
33937 (redirect_to_unreachable): Always build symbol table node for
33938 BUILT_IN_UNREACHABLE
33939
33940 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33941
33942 PR target/65407
33943 * ira-costs.c (record_reg_classes): Process all constraint string
33944 containing 0-9.
33945
33946 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33947
33948 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33949 memory_operand.
33950
33951 PR target/65052
33952 * config/c6x/constraints.md (S3): New constraint.
33953 * config/c6x/c6x.md (real_jump): Use it.
33954
33955 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33956
33957 PR middle-end/65595
33958 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33959 do redirection if the call is not optimized out.
33960
33961 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33962
33963 PR target/65495
33964 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33965 (fchkp-check-incomplete-type): Add LTO.
33966 (fchkp-zero-input-bounds-for-main): Likewise.
33967 (fchkp-first-field-has-own-bounds): Likewise.
33968 (fchkp-narrow-bounds): Likewise.
33969 (fchkp-narrow-to-innermost-array): Likewise.
33970 (fchkp-use-static-bounds): Likewise.
33971 (fchkp-use-static-const-bounds): Likewise.
33972 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33973
33974 2015-03-27 Marek Polacek <polacek@redhat.com>
33975
33976 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33977
33978 2015-03-27 Marek Polacek <polacek@redhat.com>
33979
33980 PR sanitizer/65583
33981 * ubsan.c (ubsan_create_edge): New function.
33982 (instrument_bool_enum_load): Call it.
33983 (instrument_nonnull_arg): Likewise.
33984 (instrument_nonnull_return): Likewise.
33985 (instrument_object_size): Likewise.
33986
33987 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33988
33989 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33990 auto_vec.
33991
33992 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33993
33994 PR lto/65536
33995 * lto-streamer.h (class lto_location_cache): New.
33996 (struct data_in): Add location_cache.
33997 (lto_input_location): Update prototype.
33998 (stream_input_location_now): New.
33999 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34000 pointer to location.
34001 (stream_input_location): Update.
34002 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34003 (warn_odr): Apply location cache before warning.
34004 (lto_input_location): Update prototype.
34005 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34006 Use stream_input_location_now.
34007 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34008 variable.
34009 (lto_location_cache::cmp_loc): New function.
34010 (lto_location_cache::apply_location_cache): New function.
34011 (lto_location_cache::accept_location_cache): New function.
34012 (lto_location_cache::revert_location_cache): New function.
34013 (lto_location_cache::input_location): New function.
34014 (lto_input_location): Do location caching.
34015 (stream_input_location_now): New function.
34016 (input_eh_region, input_struct_function_base): Use
34017 stream_input_location_now.
34018 (lto_data_in_create): use new.
34019 (lto_data_in_delete): Use delete.
34020 * tree-streamer-in.c (unpack_ts_block_value_fields,
34021 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34022 lto_input_ts_exp_tree_pointers): Update for cached location api.
34023
34024 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34025
34026 PR ipa/65076
34027 * passes.def: Add pass_nothrow.
34028 * ipa-pure-const.c: (pass_data_nothrow): New.
34029 (pass_nothrow): New.
34030 (pass_nothrow::execute): New.
34031 (make_pass_nothrow): New.
34032 * tree-pass.h (make_pass_nothrow): Declare.
34033
34034 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34035
34036 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34037 edge to change by speculation resolution or redirection.
34038 (edge_set_predicate): Likewise.
34039 (inline_summary_t::duplicate): Likewise.
34040 (remap_edge_summaries): Likewise.
34041
34042 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34043
34044 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34045 New macros.
34046 (can_inline_edge_p): Relax option matching for always inline functions.
34047
34048 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34049
34050 PR target/65561
34051 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34052 Check operand 4 and operand 0 for equality.
34053 (avx512f_vextract<shuffletype>32x4_1_maskm):
34054 Check operand 6 and operand 0 for equality.
34055 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34056 for equality.
34057 (vec_extract_hi_<mode>_maskm): Ditto.
34058
34059 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34060
34061 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34062 dead calls back to live.
34063 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34064 cross check to ...
34065 (cgraph_node::verify_node): ... here; verify only callee edges,
34066 not caller.
34067 * cif-code.def (CILK_SPAWN): New code.
34068
34069 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34070
34071 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34072 (edge_set_predicate): Use it to mark unreachable edges.
34073 (inline_summary_t::duplicate): Remove unnecesary code.
34074 (remap_edge_summaries): Likewise.
34075 (dump_inline_summary): Report contains_cilk_spawn.
34076 (compute_inline_parameters): Compute contains_cilk_spawn.
34077 (inline_read_section, inline_write_summary): Stream
34078 contains_cilk_spawn.
34079 * ipa-inline.c (can_inline_edge_p): Do not touch
34080 DECL_STRUCT_FUNCTION that may not be available;
34081 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34082 remove check for callee_fun->can_throw_non_call_exceptions and
34083 replace it by optimization attribute check; check for flag_exceptions.
34084 * ipa-inline-transform.c (inline_call): Maintain
34085 DECL_FUNCTION_PERSONALITY
34086 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34087
34088 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34089
34090 PR tree-optimization/65551
34091 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34092 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34093
34094 2015-03-26 Richard Biener <rguenther@suse.de>
34095
34096 PR middle-end/65555
34097 * tree-cfg.c (verify_gimple_call): Do not require a call to
34098 have no LHS if it wasn't recognized as control altering yet.
34099
34100 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34101
34102 PR tree-optimization/64715
34103 * passes.def: Add another instance of pass_object_sizes before ccp1.
34104 * tree-object-size.c (pass_object_sizes::execute): In
34105 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34106 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34107 __bos result and the computed constant. Remove redundant
34108 checks, obsoleted by gimple_call_builtin_p test.
34109
34110 * var-tracking.c (variable_tracking_main_1): Don't track
34111 variables for targetm.no_register_allocation targets.
34112
34113 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34114
34115 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34116 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34117
34118 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34119
34120 PR target/65569
34121 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34122 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34123 0.0 is correctly setup.
34124 (extenddftf2_internal): Likewise.
34125
34126 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34127
34128 PR tree-optimization/65177
34129 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34130 (bb_in_bbs): New.
34131 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34132 edges not adjacent on the path to the original code.
34133
34134 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34135
34136 PR bootstrap/65537
34137 * doc/install.texi (Building a native compiler): Document new
34138 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34139 configuration assumes that the host supports the linker plugin.
34140
34141 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
34142
34143 PR target/65508
34144 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34145 chain for generated call.
34146
34147 2015-03-25 Richard Biener <rguenther@suse.de>
34148
34149 * passes.c (pass_manager::execute_early_local_passes): Guard
34150 execution of pass_chkp_instrumentation_passes with
34151 flag_check_pointer_bounds.
34152 (pass_chkp_instrumentation_passes::gate): Likewise.
34153
34154 2015-03-25 Martin Liska <mliska@suse.cz>
34155
34156 PR tree-optimization/65538
34157 * symbol-summary.h (function_summary::~function_summary):
34158 Relese memory for allocated summaries.
34159 (function_summary::release): New function.
34160
34161 2015-03-25 Jakub Jelinek <jakub@redhat.com>
34162
34163 PR lto/65515
34164 * lto-streamer-out.c (DFS::worklist): New struct.
34165 (DFS::worklist_vec): New data member.
34166 (DFS::next_dfs_num): Remove.
34167 (DFS::DFS): Rewritten using worklist instead of recursion,
34168 using most of code from DFS::DFS_write_tree.
34169 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34170 pass it to DFS_write_tree calls.
34171 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34172 quick initial checks push it into worklist_vec and return.
34173
34174 2015-03-25 Richard Biener <rguenther@suse.de>
34175
34176 PR middle-end/65519
34177 * genmatch.c (expr::gen_transform): Re-write to avoid
34178 using gimple_build.
34179
34180 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34181
34182 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34183
34184 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34185
34186 * config/arm/arm.opt (print_tune_info): New option.
34187 * config/arm/arm.c (arm_print_tune_info): New function.
34188 (arm_file_start): Call arm_print_tune_info.
34189 * config/arm/arm-protos.h (struct tune_params): Add comment.
34190 * doc/invoke.texi (@item -mprint-tune-info): New item.
34191 (-mtune): mention it in ARM Option Summary.
34192
34193 2015-03-25 DJ Delorie <dj@redhat.com>
34194
34195 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34196 correct clause.
34197
34198 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34199 Martin Liska <mliska@suse.cz>
34200
34201 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34202 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34203 (sem_item::add_type): New function.
34204 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34205 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34206 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34207 (sem_function::equals_wpa): Fix typo.
34208 * ipa-icf.h (sem_item::add_type): New function.
34209 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34210 order.
34211
34212 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34213
34214 PR tree-optimization/65533
34215 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34216 with swapped operands, call vect_free_slp_tree on
34217 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34218 vector.
34219
34220 2015-03-24 Richard Biener <rguenther@suse.de>
34221
34222 PR middle-end/65517
34223 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34224 for fixup if necessary.
34225
34226 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34227
34228 * doc/extend.texi (Function Attributes): Add @cindex entries
34229 for all attributes and regularize their format. Delete text
34230 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34231 information about "eightbit_data", "tiny_data", and "model"
34232 variable attributes to the Variable Attributes section. Fix
34233 some obvious typos and copy-editing issues.
34234 (Variable Attributes, Type Attributes): Likewise add/fix
34235 @cindex entries for all attributes.
34236
34237 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34238
34239 PR target/65523
34240 * tree-chkp.c (chkp_build_returned_bound): Ignore
34241 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34242
34243 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34244
34245 PR target/65505
34246 * config/sh/predicates.md (simple_mem_operand,
34247 displacement_mem_operand): Add test for reg.
34248 (short_displacement_mem_operand): Test for displacement_mem_operand
34249 before invoking sh_disp_addr_displacement.
34250 * config/sh/constraints.md (Sdd, Sra): Simplify.
34251 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34252 Remove redundant displacement_mem_operand tests.
34253
34254 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34255
34256 PR target/65296
34257 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34258 the same -mmcu=MCU more than once.
34259
34260 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34261
34262 PR bootstrap/65522
34263 * ipa-devirt.c: Remove duplicate demangle.h include.
34264
34265 PR target/65504
34266 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34267 on the pseudo.
34268 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34269 REG_POINTER on *destptr after adjusting it for prologue size.
34270
34271 PR ipa/65521
34272 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34273 ultimate_alias_target ()->order ints instead of
34274 ultimate_alias_target () pointers.
34275
34276 2015-03-23 Richard Biener <rguenther@suse.de>
34277
34278 PR tree-optimization/65518
34279 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34280 interleaving cases we generate absymal code for.
34281
34282 2015-03-23 Richard Biener <rguenther@suse.de>
34283
34284 PR tree-optimization/65494
34285 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34286 matches here.
34287 (vect_analyze_slp_instance): But do that here, always and once.
34288
34289 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34290
34291 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34292 adding T or multiplying by T+1 and subracting T.
34293
34294 2015-03-22 Jeff Law <law@redhat.com>
34295
34296 PR rtl-optimization/64317
34297 * Makefile.in (OBJS): Add gcse-common.c
34298 * gcse.c: Include gcse-common.h
34299 (struct modify_pair_s): Move structure definition to gcse-common.h
34300 (compute_transp): Move function to gcse-common.c.
34301 (canon_list_insert): Similarly.
34302 (record_last_mem_set_info): Break out some code and put it into
34303 gcse-common.c. Call into the new common code.
34304 (compute_local_properties): Pass additional arguments to compute_transp.
34305 * postreload-gcse.c: Include gcse-common.h and df.h
34306 (modify_mem_list_set, blocks_with_calls): New variables.
34307 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34308 (get_bb_avail_insn): Pass in the expression index too.
34309 (alloc_mem): Allocate memory for the new bitmaps and lists.
34310 (free_mem): Free memory for the new bitmaps and lists.
34311 (insert_expr_in_table): Record a bitmap index for each entry we
34312 add to the table.
34313 (record_last_mem_set_info): Call into common code in gcse-common.c.
34314 (get_bb_avail_insn): If no available insn was found in the requested
34315 BB. If BB has a single predecessor, see if the expression is
34316 transparent in BB and available in that single predecessor.
34317 (compute_expr_transp): New wrapper for compute_transp.
34318 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34319 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34320 (gcse_after_reload_main): If there are elements in the hash table,
34321 then compute transparency for all the elements in the hash table.
34322 * gcse-common.h: New file.
34323 * gcse-common.c: New file.
34324
34325 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34326
34327 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34328 as an adjective.
34329 (System Headers): Likewise.
34330 (Ifdef): Likewise.
34331 (Traditional macros): Likewise.
34332 (Invocation): Likewise.
34333 (Option Index): Likewise.
34334 * doc/cppopts.texi (-M): Likewise.
34335 (-finput-charset): Likewise.
34336 (--help): Likewise.
34337 * doc.invoke.texi (AVR Options): Likewise.
34338 (V850 Options): Likewise.
34339
34340 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34341
34342 PR ipa/65475
34343 * ipa-devirt.c: Include demangle.h
34344 (odr_type_d): Add field rtti_broken.
34345 (odr_subtypes_equivalent_p): Do not require name to match.
34346 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34347 bypass the tests; be ready for function referneces in vtables that are
34348 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34349 (warn_odr): Give up for nameless types.
34350 (warn_types_mismatch): Report mismatch in mangled names;
34351 report mismatch in anonymous namespaces; look into component types to
34352 give useful error; report when mismatch is dragged in from other ODR
34353 type.
34354 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34355 duplicated diagnostics.
34356 (add_type_duplicate): Reorder checks so more informative ones come
34357 first; fix typo; do not output "the extra base is defined here" when
34358 we did not warn.
34359 (BINFO_N_BASE_BINFOS): Relax sanity check.
34360
34361 2015-03-22 Martin Liska <mliska@suse.cz>
34362 Jakub Jelinek <jakub@redhat.com>
34363
34364 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34365 masks that can potentially include a builtin.
34366 (ix86_add_new_builtins): Introduce fast filter for isa values
34367 that cannot trigger builtin inclusion.
34368
34369 2015-03-22 Martin Liska <mliska@suse.cz>
34370
34371 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34372 (sem_item::update_hash_by_local_refs): Likewise.
34373 (sem_variable::get_hash): Empty line is fixed.
34374 (sem_item_optimizer::execute): Include adding of hash references.
34375 (sem_item_optimizer::update_hash_by_addr_refs): New function.
34376 (sem_item_optimizer::build_hash_based_classes): Use local hash.
34377 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34378 (sem_item::update_hash_by_local_refs): Likewise.
34379
34380 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34381
34382 PR ipa/65502
34383 * ipa-comdats.c (enqueue_references): Walk through thunks.
34384 (ipa_comdats): Likewise.
34385 (set_comdat_group_1): New function.
34386
34387 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34388
34389 PR ipa/65475
34390 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34391 non-polymorphic
34392
34393 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
34394 Gerald Pfeifer <gerald@pfeifer.com>
34395
34396 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34397
34398 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34399 Sandra Loosemore <sandra@codesourcery.com>
34400
34401 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34402 function parameter declaration.
34403 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34404 Update arguments to nios2_adjust_call_address().
34405 (sibcall_internal): Rename from *sibcall.
34406 (sibcall_value_internal): Rename from *sibcall_value.
34407 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34408 (nios2_large_got_address): Add target temp reg parameter.
34409 (nios2_got_address): Adjust call to nios2_large_got_address, add
34410 force_reg around it.
34411 (nios2_load_pic_address): Add target temp reg parameter, replace call
34412 to nios2_got_address with corresponding code.
34413 (nios2_legitimize_constant_address): Update call to
34414 nios2_load_pic_address.
34415 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34416 to use temp reg for PIC loading purposes.
34417 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34418 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34419 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34420
34421 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34422
34423 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34424 usage of "the @option{...}".
34425 (-Wopenmp-simd): Likewise.
34426 (-fsanitize-recover): Likewise.
34427 (-fsanitize-undefined-trap-on-error): Likewise.
34428 (-flto): Likewise.
34429 (tracer-dynamic-coverage-feedback): Likewise.
34430 (reorder-block-duplicate-feedback): Likewise.
34431 (loop-unroll-jam-size): Likewise.
34432 (-B): Likewise.
34433 (-I-): Likewise.
34434 (-mabs=legacy): Likewise.
34435 (-mupper-regs-df): Likewise.
34436 (-mupper-regs-sf): Likewise.
34437 (-mpointers-to-nested-functions): Likewise.
34438
34439 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34440
34441 * doc/extend.texi (Cilk Plus Builtins): Add markup.
34442
34443 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34444
34445 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34446 additional index entries and cross-references.
34447 (-fchkp-check-incomplete-type): Likewise.
34448 (-fchkp-first-field-has-own-bounds): Likewise.
34449 (-fchkp-narrow-to-innermost-array): Likewise.
34450 (-fchkp-use-fast-string-functions): Likewise.
34451 (-fchkp-use-nochk-string-functions): Likewise.
34452 (-fchkp-use-static-const-bounds): Likewise.
34453 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34454 (-fchkp-instrument-marked-only): Likewise.
34455 (-fchkp-use-wrappers): Likewise.
34456 (-static-libmpx): Likewise.
34457 (-static-libmpxwrappers): Likewise.
34458 * doc/extend.texi (bnd_legacy): Likewise.
34459 (bnd_instrument): Likewise.
34460 (bnd_variable_size): Likewise.
34461 (Pointer Bounds Checker builtins): Likewise.
34462
34463 2015-03-21 Tom de Vries <tom@codesourcery.com>
34464
34465 PR tree-optimization/65458
34466 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34467 * cgraph.h (cgraph_node): Add parallelized_function field.
34468 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34469 (input_overwrite_node): Read parallelized_function field.
34470 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34471 parallelized_function on cgraph_node for child_fn.
34472 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34473 Remove include of gt-tree-parloops.h.
34474 (parallelized_functions): Remove static variable.
34475 (parallelized_function_p): Rewrite using parallelized_function field of
34476 cgraph_node.
34477 (create_loop_fn): Remove adding to parallelized_functions.
34478 * Makefile.in (GTFILES): Remove tree-parloops.c
34479
34480 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
34481
34482 PR rtl-optimization/64366
34483 * lra.c (lra_update_insn_regno_info): Consider regs in
34484 CALL_INSN_FUNCTION_USAGE memory.
34485
34486 2015-03-20 Richard Biener <rguenther@suse.de>
34487
34488 PR middle-end/64715
34489 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34490 for type comparison and gcc_checking_assert.
34491 (chrec_fold_plus_poly_poly): Likewise.
34492 (chrec_fold_multiply_poly_poly): Likewise.
34493 (chrec_convert_1): Likewise.
34494 * gimplify.c (gimplify_expr): Remove premature folding of
34495 &X + CST to &MEM[&X, CST].
34496
34497 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34498
34499 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34500 already is final.
34501 (ipa_inline): Recompute inline_failed codes.
34502 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34503 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34504 CIF_FINAL_ERROR.
34505
34506 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34507
34508 PR rtl-optimization/60851
34509 * recog.c (constrain_operands): Accept a pseudo register before reload
34510 for LRA enabled targets.
34511
34512 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34513
34514 PR target/65240
34515 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34516 -ffast-math handling that kept non-0 constants live in the RTL
34517 until reload. Remove logic testing the number of instructions it
34518 took to create a constant in a GPR that was never used, due to a
34519 test for soft-float earlier.
34520 (memory_fp_constant): Delete, no longer used.
34521
34522 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34523 alternatives for loading non-0 constants into GPRs for hard
34524 floating point that is no longer needed due to changes in
34525 easy_fp_constant. Add support for loading 0.0 into GPRs.
34526 (mov<mode>_hardfloat32): Likewise.
34527 (mov<mode>_hardfloat64): Likewise.
34528 (mov<mode>_64bit_dm): Likewise.
34529 (movtd_64bit_nodm): Likewise.
34530 (pre-reload move FP constant define_split): Delete define_split,
34531 since it is no longer used.
34532 (extenddftf2_internal): Remove GHF constraints that are not valid
34533 for extenddftf2.
34534
34535 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34536
34537 PR rtl-optimization/63491
34538 * lra-constraints.c (check_and_process_move): Use src instead of
34539 sreg. Remove some dead code.
34540
34541 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34542
34543 PR ipa/65380
34544 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34545 (sem_variable::merge): Likewise.
34546
34547 2015-03-19 Martin Liska <mliska@suse.cz>
34548
34549 PR ipa/65465
34550 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34551 all fields of cgraph_thunk_info.
34552
34553 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34554
34555 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34556 clone instrumented thunks.
34557
34558 2015-03-19 Richard Biener <rguenther@suse.de>
34559
34560 Revert
34561 2015-03-10 Richard Biener <rguenther@suse.de>
34562
34563 PR middle-end/63155
34564 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34565 * tree-ssa-coalesce.c: Include timevar.h.
34566 (attempt_coalesce): Handle graph being NULL.
34567 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34568 Split out abnormal coalescing to ...
34569 (perform_abnormal_coalescing): ... this function.
34570 (coalesce_ssa_name): Perform abnormal coalescing without computing
34571 live/conflict.
34572 (verify_ssa_coalescing_worker): New function.
34573 (verify_ssa_coalescing): Likewise.
34574
34575 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34576 Jakub Jelinek <jakub@redhat.com>
34577
34578 PR sanitizer/65400
34579 * tsan.c (instrument_gimple): Clear tail call flag on
34580 calls.
34581
34582 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34583
34584 PR sanitizer/65400
34585 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34586 call in the return bb.
34587 (find_split_points): Add RETURN_BB argument, don't call
34588 find_return_bb.
34589 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34590 if true append TSAN_FUNC_EXIT internal call after the call to
34591 the split off function.
34592 (execute_split_functions): Call find_return_bb here.
34593 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34594 Adjust find_split_points and split_function calls.
34595
34596 2015-03-18 DJ Delorie <dj@redhat.com>
34597
34598 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34599 (iorqi3_virt): Likewise.
34600
34601 2015-03-18 Tom de Vries <tom@codesourcery.com>
34602
34603 * tree-parloops.c (parallelize_loops): Make static.
34604 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34605
34606 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34607
34608 PR middle-end/64491
34609 Revert:
34610 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34611
34612 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34613 condition would be removed due to undefined behaviour.
34614
34615 2015-03-18 Martin Liska <mliska@suse.cz>
34616
34617 PR ipa/65432
34618 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34619 xstrdup_for_dump wrapper.
34620 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34621 sem_item::name.
34622 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34623 with xstrdup_for_dump.
34624 (sem_variable::equals): Likewise.
34625 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34626 sem_item::name.
34627 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34628 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34629 symtab_node::asm_name with xstrdup_for_dump.
34630 (congruence_class::dump): Use symtab_node::name instead of
34631 sem_item::name.
34632 * ipa-icf.h (symtab_node::name): Remove.
34633 (symtab_node::asm_name): Likewise.
34634
34635 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34636
34637 PR tree-optimization/65450
34638 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34639 function.
34640 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34641 it instead of duplicate_ssa_name_ptr_info.
34642
34643 PR target/65222
34644 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34645
34646 2015-03-18 Richard Biener <rguenther@suse.de>
34647
34648 * tree-data-ref.h (struct access_matrix): Remove.
34649 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34650 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34651 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34652 (am_vector_index_for_loop): Likewise.
34653 (struct data_reference): Remove access_matrix member.
34654 (DR_ACCESS_MATRIX): Remove.
34655 (lambda_vector_new): Add comment.
34656 (lambda_matrix_new): Use XOBNEWVEC.
34657
34658 2015-03-18 Richard Biener <rguenther@suse.de>
34659
34660 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34661 (pass_ch::execute): Cleanup the CFG only if we did sth.
34662 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34663
34664 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34665
34666 * expmed.c (synth_mult): Use std::swap instead of manually
34667 swapping algorithms.
34668
34669 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34670
34671 PR target/65078
34672 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34673
34674 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34675
34676 PR target/65296
34677 * config/avr/avr.opt (-nodevicelib): New option.
34678 * doc/invoke.texi (AVR Options): Document it.
34679 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34680 libgcc.a, libc.a, libm.a.
34681 * config/avr/specs.h: Same.
34682 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34683 which don't (directly) depend on the device. Print more help.
34684 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34685 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34686 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34687 case of an error.
34688 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34689 for specs file name.
34690 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34691 * config/avr/avr-mcus.def: Adjust initializers and comments.
34692
34693 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34694
34695 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34696 DECL_ONE_ONLY to check if decl is one only.
34697 * ipa-split.c (consider_split): Limit splitt of one only functions.
34698
34699 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34700
34701 PR tree-optimization/65427
34702 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34703 functions.
34704 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34705
34706 2015-03-16 Marek Polacek <polacek@redhat.com>
34707
34708 * cgraph.h (add_new_static_var): Remove declaration.
34709 * varpool.c (add_new_static_var): Remove function.
34710
34711 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34712
34713 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34714 instead of vec<tree> * with vec_alloc and release for args.
34715 Adjust all users.
34716
34717 PR middle-end/65431
34718 * omp-low.c (delete_omp_context): Only splay_tree_delete
34719 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34720 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34721
34722 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34723
34724 PR sanitizer/64820
34725 * cfgexpand.c (align_base): New function.
34726 (alloc_stack_frame_space): Call it.
34727 (expand_stack_vars): Align prev_frame to be sure
34728 data->asan_vec elements aligned properly.
34729
34730 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34731
34732 PR middle-end/65409
34733 * expr.c (store_field): Do not do a direct block copy if the source is
34734 a PARALLEL with BLKmode.
34735
34736 2015-03-16 Tom de Vries <tom@codesourcery.com>
34737
34738 PR middle-end/65414
34739 Revert:
34740 2015-03-12 Tom de Vries <tom@codesourcery.com>
34741
34742 PR rtl-optimization/64895
34743 * lra-lives.c (check_pseudos_live_through_calls): Use
34744 actual_call_used_reg_set instead of call_used_reg_set, if available.
34745
34746 2015-03-16 Alan Modra <amodra@gmail.com>
34747
34748 PR target/63150
34749 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34750 Modify Z->r bswapdi splitter to use dest in place of scratch.
34751 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34752 to word1, word2 and rearrange logic to suit.
34753 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34754 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34755 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34756 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34757 early clobber.
34758
34759 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34760
34761 PR tree-optimization/65369
34762 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34763 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34764 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34765
34766 PR tree-optimization/65418
34767 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34768 are casts in the first PLUS_EXPR operand, ensure tbias and
34769 *totallowp are in the inner type.
34770
34771 PR rtl-optimization/65401
34772 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34773 argument. If true, adjust_address_nv of x with big-endian
34774 correction for the mode widening to GET_MODE (y).
34775 (make_field_assignment): Don't do MEM mode widening here.
34776 Use MEM_P instead of GET_CODE == MEM.
34777
34778 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34779
34780 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34781 the external decls.
34782
34783 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34784
34785 PR target/64600
34786 * config/arm/arm.c (arm_gen_constant, AND case): Use
34787 ARM_SIGN_EXTEND when constructing AND mask.
34788
34789 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34790
34791 * graph.c (print_graph_cfg): Make function names visible and append
34792 parenthesis to it. Also make groups of basic blocks belonging to the
34793 same function visible.
34794
34795 2015-03-12 Richard Biener <rguenther@suse.de>
34796
34797 PR middle-end/44563
34798 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34799 to avoid quadratic behavior with inline expansion splitting blocks.
34800 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34801 with the successor if the predecessor will be merged with it.
34802 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34803 entry block with its successor.
34804
34805 2015-03-13 Richard Biener <rguenther@suse.de>
34806
34807 PR middle-end/44563
34808 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34809 (cleanup_tree_cfg_1): Do not call it.
34810 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34811 (fixup_noreturn_call): Mark the stmt as control altering.
34812 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34813 here.
34814 (pass_data_fixup_cfg): Produce a dump file.
34815 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34816 (need_noreturn_fixup): New global.
34817 (pass_dominator::execute): Fixup queued noreturn calls.
34818 (optimize_stmt): Queue calls that became noreturn for fixup.
34819 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34820 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34821 (el_to_fixup): New global.
34822 (eliminate_dom_walker::before_dom_childre): Queue calls that
34823 became noreturn for fixup.
34824 (eliminate): Fixup queued noreturn calls.
34825 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34826 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34827 (substitute_and_fold_dom_walker::before_dom_children): Queue
34828 alls that became noreturn for fixup.
34829 (substitute_and_fold): Fixup queued noreturn calls.
34830
34831 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34832
34833 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34834 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34835 are building; for methods check ODR type of class they belong to if
34836 they may lead to a polymorphic call.
34837 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34838 when function may lead to a polymorphic call.
34839 (sem_function::compare_type_list): Remove.
34840 (sem_variable::equals): Update use of compatible_types_p.
34841 (sem_variable::parse_tree_refs): Remove.
34842 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34843 cdtor.
34844 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34845 matching here.
34846 (func_checker::compatible_polymorphic_types_p): Break out from ...
34847 (unc_checker::compatible_types_p): ... here.
34848 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34849 Declare.
34850 (unc_checker::compatible_types_p): Update.
34851 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34852 Remove.
34853
34854 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34855
34856 PR rtl-optimization/65235
34857 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34858 When first element of vec_concat is const_int, calculate its size
34859 using second element.
34860
34861 2015-03-12 Richard Biener <rguenther@suse.de>
34862
34863 PR middle-end/65270
34864 * fold-const.c (operand_equal_p): Fix ordering of resetting
34865 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34866
34867 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34868
34869 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34870 to s390_reorg ().
34871 (s390_asm_output_function_label): Likewise.
34872 * config/s390/s390.c (s390_asm_output_function_label):
34873 Fix function label alignment with -mhtopatch.
34874 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34875 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34876 ("nop_2_byte"): New define_insn.
34877 ("nop_4_byte"): Likewise.
34878 ("nop_6_byte"): Likewise.
34879 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34880 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34881
34882 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34883
34884 PR target/65103
34885 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34886 register.
34887
34888 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34889
34890 PR target/65044
34891 * toplev.c (process_options): Restrict Pointer Bounds Checker
34892 usage with Address Sanitizer.
34893
34894 2015-03-12 Richard Biener <rguenther@suse.de>
34895
34896 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34897 to split on.
34898 * omp-low.c (expand_omp_taskreg): Split block before removing
34899 the stmt.
34900 (expand_omp_target): Likewise.
34901 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34902 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34903 stmt to split_block.
34904
34905 2015-03-12 Tom de Vries <tom@codesourcery.com>
34906
34907 PR rtl-optimization/64895
34908 * lra-lives.c (check_pseudos_live_through_calls): Use
34909 actual_call_used_reg_set instead of call_used_reg_set, if available.
34910
34911 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34912
34913 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34914 (cgraph_node::remove): Likewise.
34915 (cgraph_node::get_untransformed_body): Likewise.
34916 * varpool.c (varpool_node::remove): Likewise.
34917 (varpool_node::get_constructor): Add sanity check.
34918
34919 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34920
34921 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34922 old GCC versions.
34923 (-fabi-compat-version): Likewise.
34924 (-ffriend-injection): Likewise.
34925 (-Wdeclaration-after-statement): Likewise.
34926 (-fomit-frame-pointer): Likewise.
34927 (-ftree-coalesce-inlined-vars): Likewise.
34928 (-fvisibility=): Likewise.
34929 * doc/extend.texi (Typeof): Likewise.
34930 (Zero Length): Likewise.
34931 (Escaped Newlines): Likewise.
34932 (Compound Literals): Likewise.
34933 (Function Attributes): Likewise.
34934 (Label Attributes): Likewise.
34935 (Type Attributes): Likewise.
34936 (Function Names): Likewise.
34937 (Other Builtins): Likewise.
34938 (Function Specific Option Pragmas): Likewise.
34939 (C++ Interface): Likewise.
34940
34941 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34942
34943 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34944
34945 2015-03-11 Marek Polacek <polacek@redhat.com>
34946
34947 PR tree-optimization/65388
34948 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34949
34950 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34951
34952 PR target/65296
34953 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34954 * configure: Regenerate.
34955 * config.in: Regenerate.
34956 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34957 [-mn-flash]: Document it.
34958 [__AVR_ARCH__]: Document avrtiny.
34959
34960 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34961 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34962 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34963
34964 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34965
34966 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34967
34968 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34969
34970 PR target/65242
34971 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34972 allow reloads of PLUS in floating point/VSX registers.
34973
34974 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34975
34976 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34977 crypto_sha256_fast.
34978 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34979
34980 2015-03-11 Richard Biener <rguenther@suse.de>
34981
34982 PR tree-optimization/65310
34983 * tree-sra.c (build_ref_for_offset): Also preserve larger
34984 alignment.
34985
34986 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34987
34988 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34989
34990 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34991
34992 PR target/65368
34993 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34994 new define_expand.
34995 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34996
34997 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34998
34999 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35000 (sem_function::equals_wpa): ... here.
35001
35002 2015-03-10 Marek Polacek <polacek@redhat.com>
35003 Jakub Jelinek <jakub@redhat.com>
35004
35005 PR sanitizer/65367
35006 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35007 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35008 separately.
35009
35010 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35011
35012 PR target/65286
35013 * config/rs6000/t-linux: For powerpc64* target set
35014 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35015
35016 2015-03-10 Richard Biener <rguenther@suse.de>
35017
35018 PR middle-end/44563
35019 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35020 for redirect_all_calls.
35021
35022 2015-03-10 Marek Polacek <polacek@redhat.com>
35023
35024 * gdbinit.in (pcfun): Define and document.
35025
35026 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35027
35028 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35029 of libgomp-plugin.h.
35030 (find_target_compiler): Support a case when the path to gcc is
35031 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35032 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35033 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35034 libgomp-plugin.h.
35035 (main): Use GCC_INSTALL_NAME as target_driver_name.
35036 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35037 define.
35038 (mkoffload.o): Remove obsolete include path and defines.
35039 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35040
35041 2015-03-10 Richard Biener <rguenther@suse.de>
35042
35043 PR middle-end/63155
35044 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35045 * tree-ssa-coalesce.c: Include timevar.h.
35046 (attempt_coalesce): Handle graph being NULL.
35047 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35048 Split out abnormal coalescing to ...
35049 (perform_abnormal_coalescing): ... this function.
35050 (coalesce_ssa_name): Perform abnormal coalescing without computing
35051 live/conflict.
35052 (verify_ssa_coalescing_worker): New function.
35053 (verify_ssa_coalescing): Likewise.
35054
35055 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35056
35057 PR target/65296
35058 * config.gcc (extra_options) [avr]: Remove.
35059 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35060 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35061 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35062
35063 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35064 (-mmcu=): Add Var and MissingArgError properties.
35065 (-march=): Remove.
35066 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35067 * config/avr/t-multilib: Regenerate.
35068 * config/avr/specs.h: New file.
35069 * config/avr/driver-avr.c: New file.
35070 * config/avr/genopt.sh: Remove file.
35071 * config/avr/avr-tables.opt: Remove file.
35072 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35073 * config/avr/avr-c.c: Same.
35074 * avr-arch.h: Same.
35075 (avr_current_device): Remove proto.
35076 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35077 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35078 (EXTRA_SPEC_FUNCTIONS): Define.
35079 (avr_devicespecs_file): New specs function proto.
35080 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35081 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35082 (avr_current_device): Remove definition and usage.
35083 (avr_set_core_architecture): New static function.
35084 (avr_option_override): Use it.
35085 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35086 (mcu_name): New static array.
35087 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35088 (avr_inform_devices, avr_inform_core_architectures): New functions.
35089 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35090 (avrlibc.h) [WITH_AVRLIBC]: Include.
35091 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35092 (print_mcu): Rewrite from scratch.
35093 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35094 Forward to avr-specific specs defined in device-specs file.
35095 * config/avr/t-avr (driver-avr.o): New rule.
35096 (avr-devices.o): Depend on avr-arch.h.
35097 (avr-mcus): No more depend on avr-tables.opt.
35098 (avr-tables.opt): Remove rule.
35099 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35100
35101 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35102
35103 * c-family/c.opt (fchkp-use-wrappers): New.
35104 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35105 (chkp_wrap_function): New.
35106 (chkp_build_instrumented_fndecl): Support wrapped
35107 functions.
35108 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35109 (-fchkp-check-incomplete-type): New.
35110 (-fchkp-first-field-has-own-bounds): New.
35111 (-fchkp-narrow-bounds): New.
35112 (-fchkp-narrow-to-innermost-array): New.
35113 (-fchkp-optimize): New.
35114 (-fchkp-use-fast-string-functions): New.
35115 (-fchkp-use-nochk-string-functions): New.
35116 (-fchkp-use-static-bounds): New.
35117 (-fchkp-use-static-const-bounds): New.
35118 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35119 (-fchkp-check-read): New.
35120 (-fchkp-check-write): New.
35121 (-fchkp-store-bounds): New.
35122 (-fchkp-instrument-calls): New.
35123 (-fchkp-instrument-marked-only): New.
35124 (-fchkp-use-wrappers): New.
35125 (-static-libmpx): New.
35126 (-static-libmpxwrappers): New.
35127
35128 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35129
35130 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35131 (CHKP_SPEC): Add wrappers library.
35132 * c-family/c.opt (static-libmpxwrappers): New.
35133
35134 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35135
35136 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35137 (LIBMPX_SPEC): New.
35138 (CHKP_SPEC): New.
35139 * gcc.c (CHKP_SPEC): New.
35140 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35141 * c-family/c.opt (static-libmpx): New.
35142
35143 2015-03-10 Richard Biener <rguenther@suse.de>
35144
35145 PR middle-end/44563
35146 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35147 for compare_type.
35148 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35149 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35150 (cgraph_add_edge_to_call_site_hash): Likewise.
35151 (cgraph_node::get_edge): Likewise.
35152 (cgraph_edge::set_call_stmt): Likewise.
35153 (cgraph_edge::remove_caller): Likewise.
35154
35155 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
35156
35157 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35158 (callee_saved_gpr_regs_size): ... this.
35159 (callee_saved_regs_first_regno): Rename to ...
35160 (callee_saved_first_gpr_regno): ... this.
35161 (callee_saved_regs_last_regno) Rename to ...
35162 (callee_saved_last_gpr_regno): ... this.
35163 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35164 variables.
35165 (nds32_initial_elimination_offset): Likewise.
35166 (nds32_expand_prologue): Likewise.
35167 (nds32_expand_epilogue): Likewise.
35168 (nds32_expand_prologue_v3push): Likewise.
35169 (nds32_expand_epilogue_v3pop): Likewise.
35170 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35171 Adjust renamed variables.
35172 (nds32_output_stack_pop): Likewise.
35173
35174 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35175
35176 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35177 code in comment.
35178
35179 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35180
35181 PR rtl-optimization/65321
35182 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35183 than shift mode.
35184 * var-tracking.c (use_narrower_mode): Likewise.
35185
35186 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35187
35188 PR tree-optimization/65355
35189 * varasm.c (notice_global_symbol): Do not produce RTL.
35190 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35191 anchor.
35192 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35193 check for section anchors.
35194
35195 2015-03-10 Alan Modra <amodra@gmail.com>
35196
35197 PR target/65286
35198 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35199 to be single-arch by default. Set cpu_is_64bit for powerpc64
35200 given --with-cpu=native.
35201 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35202 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35203 and powerpc64le.
35204 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35205 rs6000_isa_flags rather than TARGET_64BIT.
35206
35207 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35208 Kaz Kojima <kkojima@gcc.gnu.org>
35209
35210 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35211
35212 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35213
35214 PR lto/65361
35215 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35216 on a TREE_BINFO, instead use BINFO_TYPE.
35217
35218 2015-03-09 Richard Biener <rguenther@suse.de>
35219
35220 PR middle-end/65270
35221 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35222 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35223 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35224 of that. When comparing dereferences compare alignment.
35225 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35226
35227 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35228
35229 * ipa-inline-analysis.c (check_callers): Check
35230 node->can_remove_if_no_direct_calls_and_refs_p.
35231 (growth_likely_positive): Reorganize to call
35232 can_remove_if_no_direct_calls_p later.
35233 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35234 will_be_removed_from_program_if_no_direct_calls_p): Add
35235 will_inline parameter.
35236 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35237 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35238 Handle inliner case correctly.
35239
35240 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35241
35242 PR tree-optimization/63743
35243 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35244 had its definition forwarded by TER.
35245
35246 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35247
35248 PR lto/65316
35249 * ipa-utils.h (types_odr_comparable): Add strict argument.
35250 * ipa-devirt.c: Fix whitespace;
35251 (odr_hasher): Remove.
35252 (odr_name_hasher, odr_vtable_hasher): New hashers.
35253 (can_be_name_hashed_p): New predicate.
35254 (hash_type_name): remove.
35255 (hash_odr_name): New.
35256 (odr_name_hasher::hash): new.
35257 (can_be_vtable_hashed_p): New.
35258 (hash_odr_vtable): New.
35259 (odr_vtable_hasher::hash): New.
35260 (types_same_for_odr): Add strict parameter.
35261 (types_odr_comparable): Likewise.
35262 (odr_name_hasher::equal): New.
35263 (odr_vtable_hasher::equal): New.
35264 (odr_name_hasher::remove): New.
35265 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35266 (odr_vtable_hash_type): New.
35267 (odr_vtable_hash): New.
35268 (odr_subtypes_equivalent_p): Do strict comparsion.
35269 (add_type_duplicate): Merge type names; cleanup; avoid type
35270 duplicates.
35271 (register_odr_type): Initialize vtable hash.
35272 (build_type_inheritance_graph): Likewise
35273 (get_odr_type): Reorg to use two hashes.
35274 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35275 output.
35276 (ipa_devirt): Dump type_inheritance_graph.
35277 (types_same_for_odr): Add strict mode.
35278
35279 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35280
35281 PR ipa/65334
35282 * cgraph.h (symtab_node): Add definition_alignment,
35283 can_increase_alignment_p and increase_alignment.
35284 * symtab.c (symtab_node::can_increase_alignment_p,
35285 increase_alignment_1, symtab_node::increase_alignment,
35286 symtab_node::definition_alignment): New.
35287 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35288 can_increase_alignment_p.
35289 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35290 * tree-vect-stmts.c (ensure_base_align): Likewise.
35291 * varasm.c (function_section_1): Use definition_alignment.
35292 (assemble_start_function): Likewise.
35293 (emit_local): likewise.
35294 (build_constant_desc): Likewsie.
35295 (output_constant_def_contents): Likewise.
35296 (place_block_symbol): Likewise.
35297 (output_object_block): Likewise.
35298
35299 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35300
35301 PR ipa/65316
35302 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35303 when outputting debug.
35304
35305 2015-03-07 Marek Polacek <polacek@redhat.com>
35306 Martin Uecker <uecker@eecs.berkeley.edu>
35307
35308 PR sanitizer/65280
35309 * doc/invoke.texi: Update description of -fsanitize=bounds.
35310
35311 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35312
35313 * tree-ssa-phiopt.c (neg_replacement): Remove.
35314 (tree_ssa_phiopt_worker): Remove negate optimization.
35315
35316 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35317
35318 PR ipa/65302
35319 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35320
35321 2015-03-06 Richard Biener <rguenther@suse.de>
35322
35323 PR middle-end/64928
35324 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35325 and liveout_obstack members.
35326 (calculate_live_on_exit): Remove.
35327 (calculate_live_ranges): Change declaration.
35328 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35329 (new_tree_live_info): Adjust.
35330 (calculate_live_ranges): Delete livein when not wanted.
35331 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35332 Deal with partly deleted live info.
35333 (loe_visit_block): Remove temporary bitmap by using
35334 bitmap_ior_and_compl_into.
35335 (live_worklist): Adjust accordingly.
35336 (calculate_live_on_exit): Make static.
35337 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35338 we do not need livein.
35339
35340 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35341
35342 * real.c (real_from_string): Fix typo in assertion.
35343
35344 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35345
35346 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35347 the patch.
35348
35349 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35350
35351 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35352
35353 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35354
35355 PR target/64342
35356 * lra-assigns.c (find_hard_regno_for): Rename to
35357 find_hard_regno_for_1. Add a new parameter.
35358 (find_hard_regno_for): New function using find_hard_regno_for_1.
35359
35360 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35361
35362 PR rtl-optimization/65067
35363 * expmed.c (store_bit_field, extract_bit_field): Reworked the
35364 strict volatile bitfield handling.
35365
35366 2015-03-05 Martin Liska <mliska@suse.cz>
35367
35368 PR ipa/65318
35369 * ipa-icf.c (sem_variable::equals): Compare variables types.
35370
35371 2015-03-05 Richard Henderson <rth@redhat.com>
35372
35373 PR target/65121
35374 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35375 correctly check weak symbol binding.
35376
35377 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
35378
35379 PR middle-end/65315
35380 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35381 needed alignment.
35382
35383 2015-03-05 Martin Liska <mliska@suse.cz>
35384
35385 * ipa-inline.c (inline_small_functions): Set default value to
35386 prevent warning during bootstrap.
35387 * tree.h: Add pragma guard that ignores false positives during
35388 bootstrap.
35389
35390 2015-03-05 Richard Biener <rguenther@suse.de>
35391
35392 PR tree-optimization/65310
35393 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35394 Properly preserve alignment of the base of the access.
35395
35396 2015-03-05 Richard Biener <rguenther@suse.de>
35397
35398 PR ipa/65270
35399 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35400 Compare dependence info.
35401
35402 2015-03-05 Richard Biener <rguenther@suse.de>
35403
35404 PR middle-end/65233
35405 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35406 tree-into-ssa.h.
35407 (walk_ssa_copies): Revert last chage. Instead do not walk
35408 SSA names registered for SSA update.
35409
35410 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35411
35412 PR ipa/65270
35413 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35414 vtable references for their containing type.
35415 (sem_function::equals_wpa): Compare TYPE_RESTRICT
35416 and type attributes.
35417
35418 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
35419
35420 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35421 before negating it.
35422 * stor-layout.c (finalize_record_size): Revert latest change.
35423
35424 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
35425
35426 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35427
35428 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35429
35430 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35431 for correct comdat handling.
35432 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35433 Likewise.
35434 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35435 (used_from_object_file_p_worker): Remove.
35436 (cgraph_node::only_called_directly_or_alised): Add
35437 used_from_object_file_p.
35438 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35439 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35440 can_remove_if_no_direct_calls_and_refs_p.
35441
35442 2015-03-04 Nick Clifton <nickc@redhat.com>
35443
35444 * config/rl78/rl78.h (enum reg_class): Remove real registers from
35445 General register class.
35446 * config/rl78/rl78-real.md: Replace general register constraints
35447 with real+virtual register constraints.
35448
35449 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35450
35451 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35452 from checking for -mhtm option.
35453
35454 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35455
35456 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35457 (struct ipa_sra_check_caller_data): Add has_thunk field.
35458 (ipa_sra_check_caller): Check for thunk.
35459 (ipa_sra_preliminary_function_checks): Give up on function with
35460 thunks.
35461 (ipa_early_sra): Use call_for_symbol_and_aliases.
35462
35463 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
35464
35465 PR target/65249
35466 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35467 called for __stack_chk_guard symbol.
35468
35469 2015-03-03 DJ Delorie <dj@redhat.com>
35470
35471 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35472 inc/dec.
35473 (*addhi3_real): Likewise.
35474 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35475 pattern to match incrementing memory.
35476 * config/rl78/predicates.md (rl78_1_2_operand): New.
35477 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35478 it's the same and only mem.
35479 (rl78_alloc_physical_registers_op2): If there's effectively only
35480 one MEM, transcode it into HL.
35481 (rl78_far_p): Reject addresses that aren't legitimate.
35482
35483 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35484
35485 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35486 negating it.
35487
35488 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35489
35490 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35491
35492 Implement call0 ABI for xtensa
35493 * config/xtensa/constraints.md ("a" constraint): Include stack
35494 pointer in case of call0 ABI.
35495 ("q" constraint): Make empty in case of call0 ABI.
35496 ("D" constraint): Include stack pointer in case of call0 ABI.
35497 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35498 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35499 prototypes.
35500 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35501 variable.
35502 (xtensa_regno_to_class): Make it a local variable in the
35503 function xtensa_regno_to_class.
35504 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35505 macro, function prototype and implementation.
35506 (reg_nonleaf_alloc_order): Make it a local variable in the
35507 function order_regs_for_local_alloc.
35508 (xtensa_conditional_register_usage): New function.
35509 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35510 (xtensa_valid_move): Allow direct moves to stack pointer
35511 register in call0 ABI.
35512 (xtensa_setup_frame_addresses): Only spill register windows in
35513 windowed ABI.
35514 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35515 call0 ABI respectively.
35516 (xtensa_function_arg_1): Only mark a7 register for copying in
35517 windowed ABI.
35518 (xtensa_call_save_reg): New function.
35519 (compute_frame_size): Add space for callee saved register
35520 storage to the frame size in call0 ABI.
35521 (xtensa_expand_prologue): Generate code to set up stack frame
35522 and save callee-saved registers in call0 ABI.
35523 (xtensa_expand_epilogue): New function.
35524 (xtensa_set_return_address): New function.
35525 (xtensa_return_addr): Calculate return address in call0 ABI.
35526 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35527 emit copying code in windowed ABI.
35528 (order_regs_for_local_alloc): Add preferred register allocation
35529 order for non-leaf function in call0 ABI.
35530 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35531 (xtensa_asm_trampoline_template): Add trampoline generation for
35532 call0 ABI.
35533 (xtensa_trampoline_init): Add trampoline initialization for
35534 call0 ABI.
35535 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35536 functions.
35537 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35538 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35539 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35540 ABI call-used registers.
35541 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35542 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35543 call0 ABI.
35544 (REG_CLASS_CONTENTS): Include all registers into the preferred
35545 reload registers set, adjust the set in the
35546 xtensa_conditional_register_usage.
35547 (xtensa_regno_to_class): Drop variable declaration.
35548 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35549 function.
35550 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35551 respectively.
35552 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35553 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35554 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35555 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35556 location in call0 ABI.
35557 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35558 stack adjustment size when handling exception.
35559 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35560 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35561 definitions.
35562 ("return" pattern): Generate ret.n/ret in call0 ABI.
35563 ("epilogue" pattern): Expand epilogue.
35564 ("nonlocal_goto" pattern): Use default in call0 ABI.
35565 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35566 emit eh_set_a0_* depending on ABI.
35567 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35568 ("eh_set_a0_call0", "blockage"): New patterns.
35569
35570 2015-03-03 Martin Liska <mliska@suse.cz>
35571
35572 PR ipa/65287
35573 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35574
35575 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35576
35577 PR 65138/target
35578 * config/rs6000/rs6000-tables.opt: Regenerate table.
35579
35580 2015-03-03 Renlin Li <renlin.li@arm.com>
35581
35582 * doc/md.texi (@item ^): Change ? into ^.
35583
35584 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35585
35586 * doc/tm.texi: Regenerated.
35587
35588 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35589
35590 * builtins.c (expand_builtin_return_addr): Add
35591 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35592 surrounding #ifdef.
35593 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35594 definition to 1.
35595 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35596 Likewise.
35597 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35598 undefined.
35599 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35600 paragraph.
35601
35602 2015-03-03 Martin Jambor <mjambor@suse.cz>
35603 Eric Botcazou <ebotcazou@adacore.com>
35604
35605 * tree-sra.c (ipa_sra_check_caller_data): New type.
35606 (has_caller_p): Removed.
35607 (ipa_sra_check_caller): New function.
35608 (ipa_sra_preliminary_function_checks): Use it.
35609
35610 2015-03-03 Martin Liska <mliska@suse.cz>
35611
35612 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35613 instead of if branch.
35614
35615 2015-03-03 Martin Liska <mliska@suse.cz>
35616
35617 PR ipa/65282
35618 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35619
35620 2015-03-23 Jeff Law <law@redhat.com>
35621
35622 PR tree-optimization/65241
35623 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35624 hash table if INSERT is true.
35625
35626 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35627
35628 PR target/65296
35629 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35630
35631 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35632
35633 PR target/64331
35634 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35635 (avr_pass_data_recompute_notes): New static variable.
35636 (avr_pass_recompute_notes): New class.
35637 (avr_register_passes): New static function.
35638 (avr_option_override): Call it.
35639
35640 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35641
35642 Fix various problems with specs file generation.
35643
35644 PR target/65296
35645 * config.gcc (extra_gcc_objs) [avr]: Remove.
35646 * config/avr/driver-avr.c: Remove file.
35647 * config/avr/t-avr (driver-avr.o): Remove rule.
35648 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35649 INCLUDES to build. Depend on TM_H.
35650 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35651 build warnings. Fix non-matching types and non-existing %-codes.
35652 (tm.h): Include.
35653 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35654 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35655 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35656 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35657 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35658 (LIBGCC_SPEC): Remove definitions.
35659
35660 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35661
35662 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35663 to create a register in testing mode.
35664
35665 2015-03-03 Martin Liska <mliska@suse.cz>
35666 Jan Hubicka <hubicka@ucw.cz>
35667
35668 PR ipa/65263
35669 * cgraph.c (cgraph_node::has_thunk_p): New function.
35670 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35671 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35672 (sem_function::merge): Assert is changed.
35673
35674 2015-03-03 Martin Liska <mliska@suse.cz>
35675 Martin Jambor <mjambor@suse.cz>
35676
35677 PR ipa/65087
35678 * ipa-icf.c (sem_item_optimizer::execute): Change function
35679 return value to boolean.
35680 (sem_item_optimizer::merge_classes): Likewise.
35681 (ipa_icf_driver): Return TODO_remove_functions in case there's
35682 a merge operation processed.
35683 * ipa-icf.h: Change function return value to boolean.
35684
35685 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35686
35687 PR 65138/target
35688 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35689 processor type for 64-bit little endian PowerPC.
35690
35691 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35692 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35693 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35694 printing built-in mask so it does not pass NULL pointers.
35695
35696 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35697 -mcpu=powerpc64le.
35698
35699 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35700
35701 PR target/58158
35702 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35703 !ISA_HAS_FP_CONDMOVE.
35704
35705 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35706
35707 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35708 reload_completed.
35709
35710 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35711
35712 * doc/invoke.texi (Options for Code Generation Conventions):
35713 Fix URL of DSO paper.
35714
35715 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35716
35717 PR ipa/65130
35718 * ipa-inline.c (check_callers): Looks for recursion.
35719 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35720 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35721 summary of inline clones.
35722 (do_estimate_growth_1): Fix recursion check.
35723
35724 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35725
35726 PR ipa/64988
35727 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35728 comdat groups.
35729
35730 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35731 Aldy Hernandez <aldyh@redhat.com>
35732
35733 PR lto/65276
35734 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35735 when checking TYPE_BINFO.
35736
35737 2015-03-02 Richard Biener <rguenther@suse.de>
35738
35739 PR ipa/65270
35740 * ipa-icf-gimple.c: Include builtins.h.
35741 (func_checker::compare_memory_operand): Compare base alignment.
35742
35743 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35744
35745 PR target/65184
35746 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35747 passed by reference.
35748
35749 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35750
35751 PR target/65183
35752 * tree-chkp.c (chkp_check_lower): Don't check against
35753 zero bounds for already instrumented functions.
35754 (chkp_check_upper): Likewise.
35755 (chkp_fini): Clean pass local data to avoid wrong reusage.
35756
35757 2015-02-28 Martin Liska <mliska@suse.cz>
35758 Jan Hubicka <hubicka@ucw.cz>
35759
35760 * ipa-icf.c (sem_variable::equals): Improve debug output;
35761 get variable constructor.
35762 (sem_variable::parse): Do not filter out too early; give up on
35763 volatile and register vars.
35764 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35765 variables.
35766 * ipa-icf.h (sem_variable::init): Do not set ctor.
35767 (sem_variable::ctor): Remove.
35768
35769 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35770
35771 PR middle-end/65233
35772 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35773
35774 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35775
35776 * ipa-icf.c: Include stor-layout.h
35777 (sem_function::compare_cgraph_references): Rename to ...
35778 (sem_item::compare_cgraph_references): ... this one.
35779 (sem_variable::equals_wpa): New function
35780 (sem_variable::equals): Do not check stuff already verified by
35781 equals_wpa.
35782 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35783 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35784 (sem_function): Remove compare_cgraph_references.
35785 (sem_variable): Turns equals_wpa into non-inline.
35786
35787 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35788
35789 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35790 (sem_item::add_expr): New function.
35791 (sem_function::hash_stmt): Handle operands of most statements.
35792 (sem_variable::get_hash): Hash the actual constructor.
35793 * ipa-icf.h (sem_item): Add add_expr.
35794 (sem_function): Update prototype of hash_stmt
35795
35796 2015-02-28 Martin Liska <mliska@suse.cz>
35797 Jan Hubicka <hubicka@ucw.cz>
35798
35799 PR ipa/65245
35800 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35801 Remove.
35802 (func_checker::compare_variable_decl): Skip symtab vars.
35803 (func_checker::compare_cst_or_decl): Update.
35804 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35805 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35806 use correct symtab predicates.
35807 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35808 (sem_variable::parse): Update comment.
35809 (sem_item_optimizer::build_graph): Consider ultimate aliases
35810 for references.
35811
35812 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35813
35814 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35815 of OBJ_TYPE_REF.
35816
35817 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35818
35819 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35820 (sem_variable::merge) Likewise.
35821
35822 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35823
35824 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35825 target; also match flag_ipa_devirt.
35826
35827 2015-03-01 Martin Liska <mliska@suse.cz>
35828 Jan Hubicka <hubicka@ucw.cz>
35829
35830 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35831 Validate variable alignment.
35832 * ipa-icf.c (sem_function::equals_private): Be more precise
35833 about non-common function attributes.
35834 (sem_variable::equals): Likewise.
35835
35836 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35837
35838 PR ipa/65237
35839 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35840 across COMDAT group boundary.
35841
35842 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35843
35844 PR ipa/65232
35845 * ipa-icf.c (clear_decl_rtl): New function.
35846 (sem_function::merge): Clear RTL before forming alias.
35847 (sem_variable::merge): Clear RTL before forming alias.
35848
35849 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35850
35851 PR ipa/65236
35852 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35853
35854 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35855
35856 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35857 to neon_to_gp<q>.
35858
35859 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35860
35861 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35862 a typo in the description.
35863
35864 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35865
35866 PR target/64317
35867 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35868 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35869 * lra-constraints.c: Include "params.h".
35870 (EBB_PROBABILITY_CUTOFF): Use
35871 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35872 (lra_inheritance): Use '<' instead of '<=' for
35873 EBB_PROBABILITY_CUTOFF.
35874 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35875 Document change.
35876
35877 2015-02-27 Martin Liska <mliska@suse.cz>
35878
35879 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35880 vector length condition.
35881
35882 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35883
35884 * doc/extend.texi (x86 transactional memory intrinsics):
35885 Reorganize discussion of _xbegin. Clarify that the return
35886 value is a bit mask. Expand example and move to end of section.
35887
35888 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35889 Aldy Hernandez <aldyh@redhat.com>
35890
35891 PR rtl-optimization/65220
35892 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35893
35894 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35895
35896 PR target/65032
35897 * lra-remat.c (update_scratch_ops): New.
35898 (do_remat): Call it.
35899 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35900 (remove_scratches): ... here.
35901 * lra-int.h (lra_register_new_scratch_op): New prototype.
35902
35903 2015-02-27 Marek Polacek <polacek@redhat.com>
35904
35905 PR c/65040
35906 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35907 -Wformat-signedness anymore.
35908
35909 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35910
35911 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35912 function.
35913 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35914
35915 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35916
35917 * config/s390/s390.c (enum s390_builtin):
35918 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35919 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35920 (s390_init_builtins): Generate new builtin functions.
35921 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35922 (s390_sfpc, s390_efpc): New pattern definitions.
35923
35924 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35925
35926 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35927 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35928 (s390_builtin_decls): New array.
35929 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35930 (s390_builtin_decl): New function.
35931 (TARGET_BUILTIN_DECL): Define macro.
35932
35933 2015-02-27 Richard Biener <rguenther@suse.de>
35934
35935 PR middle-end/63175
35936 * builtins.c (get_object_alignment_2): Make sure to re-apply
35937 the ANDed mask after recursing to its operand gets us a new
35938 misalignment bit position.
35939
35940 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35941 Martin Liska <mliska@suse.cz>
35942
35943 PR bootstrap/65150
35944 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35945 Use address_matters_p.
35946 (redirect_all_callers, set_addressable): New functions.
35947 (sem_function::merge): Reorganize and fix merging issues.
35948 (sem_variable::merge): Likewise.
35949 (sem_variable::compare_sections): Remove.
35950 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35951 Optimization flag.
35952 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35953 redirect them.
35954 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35955 decl is used.
35956 (address_matters_1): New function.
35957 (symtab_node::address_matters_p): New function.
35958 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35959 check for merged flag.
35960 * cgraph.h (address_matters_p): Declare.
35961 (symtab_node::address_taken_from_non_vtable_p): Remove.
35962 (symtab_node::address_can_be_compared_p): New method.
35963 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35964 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35965 Remove.
35966 (comdat_can_be_unshared_p_1) Use address_matters_p.
35967 (update_vtable_references): Fix formating.
35968 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35969 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35970 * cgraphclones.c: Preserve merged and icf_merged flags.
35971
35972 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35973
35974 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35975 (Label Attributes): Likewise.
35976 (Cilk Plus Builtins): Likewise.
35977 (ARC SIMD Built-in Functions): Likewise.
35978 (ARM C Language Extensions (ACLE)): Likewise.
35979 (PowerPC Built-in Functions): Likewise.
35980 (PowerPC Hardware Transactional Memory Built-in Functions):
35981 Likewise.
35982
35983 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35984
35985 PR tree-optimization/65216
35986 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35987 new stmt and new SSA_NAME for lhs whenever the arguments have
35988 changed and weren't just swapped. Fix comment typo.
35989
35990 PR tree-optimization/65215
35991 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35992 for PDP endian targets.
35993 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35994 Fix up formatting issues.
35995 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35996 size is smaller than the original, adjust MEM_REF offset by the
35997 difference of sizes. Use is_gimple_mem_ref_addr instead of
35998 is_gimple_min_invariant test to avoid adding address temporaries.
35999
36000 2015-02-26 Martin Liska <mliska@suse.cz>
36001 Jan Hubicka <hubicka@ucw.cz>
36002
36003 PR ipa/64693
36004 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36005 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36006 (sem_item_optimizer::process_cong_reduction): Include division by
36007 sensitive references.
36008 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36009 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36010 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36011
36012 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36013
36014 PR target/65192
36015 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36016 Remove.
36017 * config/avr/avr.c: Same.
36018 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36019 Refuse any constant address not in 0..0xbf.
36020 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36021 tiny_valid_direct_memory_access_range from insn conditions.
36022 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36023
36024 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36025
36026 PR target/61142
36027 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36028 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36029 * config/sh/predicates.md (const_logical_operand): New predicate.
36030 * config/sh/sh.md: Add new peephole2 patterns.
36031
36032 2015-02-26 Marek Polacek <polacek@redhat.com>
36033
36034 PR ipa/65008
36035 * ipa-inline.c (early_inliner): Recompute inline parameters.
36036
36037 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36038
36039 PR target/65171
36040 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36041 instructions with TImode operands are included in the analysis.
36042
36043 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36044
36045 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36046 of an EDGE_FSM_THREAD.
36047
36048 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36049
36050 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36051
36052 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36053
36054 PR debug/46102
36055 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36056
36057 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36058
36059 PR tree-optimization/65048
36060 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36061 (thread_through_all_blocks): Call valid_jump_thread_path.
36062 Remove invalid FSM jump-thread paths.
36063
36064 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36065
36066 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36067 (ipa_write_optimization_summaries): Likewise.
36068 * tree-streamer.h: Include data-streamer.h.
36069 (streamer_mode_table): Declare extern variable.
36070 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36071 * lto-streamer-out.c (lto_output_init_mode_table,
36072 lto_write_mode_table): New functions.
36073 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36074 offloading LTO.
36075 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36076 (lto_create_simple_input_block): Add mode_table argument to the
36077 lto_input_block constructors.
36078 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36079 Likewise.
36080 * data-streamer-in.c (string_for_index): Likewise.
36081 * ipa-inline-analysis.c (inline_read_section): Likewise.
36082 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36083 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36084 * lto-streamer-in.c (lto_read_body_or_constructor,
36085 lto_input_toplevel_asms): Likewise.
36086 (lto_input_mode_table): New function.
36087 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36088 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36089 Use bp_pack_machine_mode.
36090 * real.h (struct real_format): Add name field.
36091 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36092 (class lto_input_block): Add mode_table member.
36093 (lto_input_block::lto_input_block): Add mode_table_ argument,
36094 initialize mode_table.
36095 (struct lto_file_decl_data): Add mode_table field.
36096 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36097 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36098 unpack_ts_decl_common_value_fields,
36099 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36100 * tree-streamer.c (streamer_mode_table): New variable.
36101 * real.c (ieee_single_format, mips_single_format,
36102 motorola_single_format, spu_single_format, ieee_double_format,
36103 mips_double_format, motorola_double_format,
36104 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36105 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36106 ibm_extended_format, mips_extended_format, ieee_quad_format,
36107 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36108 decimal_single_format, decimal_double_format, decimal_quad_format,
36109 ieee_half_format, arm_half_format, real_internal_format): Add name
36110 field.
36111 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36112
36113 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36114
36115 PR target/65161
36116 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36117 reordering for selective scheduling.
36118
36119 2015-02-26 Terry Guo <terry.guo@arm.com>
36120
36121 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36122 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36123 (arm_arch_no_volatile_ce): Declare new global variable.
36124 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36125 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36126 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36127 (TARGET_NO_VOLATILE_CE): New macro.
36128 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36129 volatile memory access in IT block
36130
36131 2015-02-25 Kai Tietz <ktietz@redhat.com>
36132
36133 PR tree-optimization/61917
36134 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36135 that reduc_def_stmt is null.
36136
36137 2015-02-25 Martin Liska <mliska@suse.cz>
36138
36139 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36140 hard register variables.
36141
36142 2015-02-25 Kai Tietz <ktietz@redhat.com>
36143
36144 PR target/64212
36145 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36146 (symtab::noninterposable_alias): Likewise.
36147
36148 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
36149
36150 PR target/65167
36151 * config/i386/i386.c (ix86_function_arg_regno_p): Support
36152 bounds registers.
36153 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36154
36155 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
36156
36157 PR target/64997
36158 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36159 as split condition; force split via '#' in output pattern.
36160
36161 2015-02-25 Richard Biener <rguenther@suse.de>
36162 Kai Tietz <ktietz@redhat.com>
36163
36164 PR tree-optimization/61917
36165 * tree-vect-loop.c (vectorizable_reduction): Allow
36166 vect_internal_def without reduction to exit graceful.
36167
36168 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36169
36170 PR target/65196
36171 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36172 only with NONDEBUG_INSN_P.
36173
36174 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36175
36176 Use variadic macros with avr-log.c.
36177
36178 * config/avr/avr-protos.h (avr_vdump): New prototype.
36179 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36180 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36181 * config/avr/avr-log.c: Adjust comments.
36182 (avr_vdump): New function.
36183 (avr_vadump): Pass caller as 2nd argument instead of format string.
36184 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36185 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36186
36187 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36188
36189 PR lto/64374
36190 * target.def (target_option_stream_in): New target hook.
36191 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36192 targetm.target_option.post_stream_in if non-NULL.
36193 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36194 * doc/tm.texi: Updated.
36195 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36196 function.
36197 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36198
36199 2015-02-24 Jeff Law <law@redhat.com>
36200
36201 PR target/65117
36202 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36203 of operand 0 and operand 2.
36204 (zero_cost_loop_end, loop_end): Similarly.
36205
36206 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36207
36208 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36209 CXX_MEM_STAT_INFO.
36210
36211 2015-02-24 DJ Delorie <dj@redhat.com>
36212
36213 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36214 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36215 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36216 instead of hardcoding SImode.
36217
36218 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36219
36220 * omp-low.c (create_omp_child_function): Tag entrypoint
36221 functions with a special attribute.
36222
36223 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36224
36225 PR target/65058
36226 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36227
36228 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36229
36230 PR rtl-optimization/65123
36231 * lra-remat.c (operand_to_remat): Check hard regs in insn
36232 definition too.
36233
36234 2015-02-24 Nick Clifton <nickc@redhat.com>
36235
36236 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36237 to the assembler.
36238
36239 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36240
36241 PR libgomp/64625
36242 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36243 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36244 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36245 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36246 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36247 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36248 (BUILT_IN_GOACC_PARALLEL): Specify as
36249 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36250 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36251 * builtin-types.def
36252 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36253 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36254 Remove function types.
36255 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36256 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36257 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36258 New function types.
36259
36260 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36261
36262 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36263
36264 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36265
36266 PR tree-optimization/65170
36267 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36268 if val[1] < 0, clear also val[2] and return 3.
36269
36270 2015-02-24 Alan Modra <amodra@gmail.com>
36271
36272 PR target/65172
36273 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36274 when *base is a reg. Handle nested plus addresses. Simplify
36275 pre_modify test.
36276
36277 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36278
36279 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36280 use natural alignment when optimizing for size.
36281
36282 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36283
36284 PR target/65153
36285 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36286 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36287 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36288
36289 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36290
36291 PR fortran/63427
36292 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36293 too big for a wide_int. Implement missing wrapping operation.
36294
36295 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36296
36297 PR target/65163
36298 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36299 instead of const_int 4294901760.
36300
36301 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36302
36303 * config/avr/t-avr: Fix typo in comment.
36304
36305 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36306
36307 * doc/rtl.texi (fma): Clarify documentation.
36308
36309 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36310
36311 PR debug/58123
36312 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36313 over input_location.
36314
36315 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36316
36317 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36318 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36319 restrict alignments to absolute_biggest_alignment.
36320 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36321 Define.
36322 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36323 * doc/tm.texi: Regenerate.
36324 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36325
36326 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36327
36328 PR target/64172
36329 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36330
36331 2015-02-20 Richard Biener <rguenther@suse.de>
36332
36333 PR tree-optimization/65136
36334 * tree-ssa-propagate.c: Include cfgloop.h.
36335 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36336 arguments with constants.
36337
36338 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36339 Martin Liska <mliska@suse.cz>
36340
36341 PR target/63892
36342 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36343 don't try to create_thunk if stdarg_p. If
36344 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36345 redirect_callers if possible.
36346 (sem_item_optimizer::execute): Call unregister_hooks here...
36347 (ipa_icf_driver): ... instead of here.
36348
36349 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36350
36351 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36352 Mark operand 0 as earlyclobber in 2nd alternative.
36353 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36354 Write negated shift amount into QI lowpart operand 0 and use it
36355 in the shift step.
36356 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36357
36358 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36359
36360 * cgraph.h (clone_function_name_1): Declare.
36361 * cgraphclones.c (clone_function_name_1): New function.
36362 (clone_function_name): Use it.
36363 * lto-partition.c: Include "stringpool.h".
36364 (must_not_rename, maybe_rewrite_identifier)
36365 (validize_symbol_for_target): New static functions.
36366 (privatize_symbol_name): Use must_not_rename.
36367 (promote_symbol): Call validize_symbol_for_target.
36368 (lto_promote_cross_file_statics): Likewise.
36369 (lto_promote_statics_nonwpa): Likewise.
36370
36371 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
36372
36373 PR target/64452
36374 * config/avr/avr.md (pushhi_insn): New insn.
36375 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36376
36377 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36378 Jakub Jelinek <jakub@redhat.com>
36379
36380 * tree-streamer.c (preload_common_nodes): Don't preload
36381 TI_VA_LIST* for offloading.
36382 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36383 in_lto_p.
36384
36385 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
36386
36387 * config/pa/pa.c (pa_emit_move_sequence): Always force
36388 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
36389 note on insn.
36390
36391 * config/pa/pa.c (pa_reloc_rw_mask): New function.
36392 (TARGET_ASM_RELOC_RW_MASK): Define.
36393 (pa_cannot_force_const_mem): Revert previous change.
36394
36395 2015-02-19 Martin Jambor <mjmabor@suse.cz>
36396 Jan Hubicka <hubicka@ucw.cz>
36397
36398 PR ipa/65028
36399 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36400 across jump functions.
36401
36402 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
36403
36404 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36405
36406 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
36407
36408 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36409
36410 2015-02-19 Richard Henderson <rth@redhat.com>
36411
36412 PR middle-end/65074
36413 * varasm.c (default_binds_local_p_2): Don't test node->definition;
36414 test DECL_EXTERNAL independent of symtab_node.
36415
36416 2015-02-19 Jakub Jelinek <jakub@redhat.com>
36417
36418 PR lto/65012
36419 * varpool.c (varpool_node::get_constructor): Return early
36420 if this->lto_file_data is NULL.
36421
36422 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36423
36424 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36425 (rank_for_schedule_debug): Update.
36426 (ready_sort): Make static. Move sorting logic to ...
36427 (ready_sort_debug, ready_sort_real): New static functions.
36428 (schedule_block): Sort both debug insns and real insns in preparation
36429 for ready list trimming. Improve debug output.
36430 * sched-int.h (ready_sort): Remove global declaration.
36431
36432 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
36433
36434 * ipa-icf.c (sem_function::equals_private): Adjust.
36435 (sem_function::bb_dict_test): Take a vec<int> * instead of
36436 auto_vec<int>.
36437 * ipa-icf.h (bb_dict_test): Likewise.
36438
36439 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36440
36441 PR gcov-profile/64634
36442 * tree-eh.c (frob_into_branch_around): Fix up typos
36443 in function comment.
36444 (lower_catch): Put eh_seq resulting from EH lowering of
36445 the cleanup sequence after the cleanup rather than before it.
36446
36447 2015-02-18 Tom de Vries <tom@codesourcery.com>
36448
36449 * common.opt (fstdarg-opt): New option.
36450 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36451 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36452 (@item -fstdarg-opt): New item.
36453
36454 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
36455
36456 PR target/65064
36457 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36458 for common symbols.
36459
36460 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36461
36462 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36463 insn-modes.h.
36464 (ALL_HOST_OBJS): Add mkoffload.o.
36465 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36466
36467 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
36468
36469 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36470 (compare_virtual_tables): Be smarter about skipping typeinfos;
36471 do sane output on virtual table table mismatch.
36472 (warn_odr): Be ready for forward declarations of enums;
36473 output sane info on base mismatch and virtual table mismatch.
36474 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36475 when only one type is polymorphic.
36476 (get_odr_type): Fix hashtable corruption.
36477 (dump_odr_type): Dump mangled names.
36478
36479 2015-02-18 Richard Biener <rguenther@suse.de>
36480
36481 PR tree-optimization/65063
36482 * tree-predcom.c (determine_unroll_factor): Return 1 if we
36483 have replaced looparound PHIs.
36484
36485 2015-02-18 Martin Liska <mliska@suse.cz>
36486
36487 * lto-streamer.c (lto_streamer_init): Encapsulate
36488 streamer_check_handled_ts_structures with checking macro.
36489
36490 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36491
36492 PR ipa/65087
36493 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36494 section if !implicit_section.
36495 (cgraph_node::create_version_clone_with_body): Likewise.
36496 * trans-mem.c (ipa_tm_create_version): Likewise.
36497
36498 2015-02-18 Richard Biener <rguenther@suse.de>
36499
36500 PR tree-optimization/62217
36501 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36502 into BIVs.
36503
36504 2015-02-18 Marek Polacek <polacek@redhat.com>
36505
36506 PR sanitizer/65081
36507 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36508 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36509 is in range [-16K, -1]. Don't issue run-time error if
36510 (ptr > ptr + offset).
36511
36512 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36513
36514 * doc/install.texi (nvptx-*-none): New section.
36515 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36516 * config/nvptx/nvptx.opt: Update.
36517
36518 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36519 (access_check): New functions, copied from
36520 config/i386/intelmic-mkoffload.c.
36521 (main): For non-installed testing, look in all COMPILER_PATHs for
36522 GCC_INSTALL_NAME.
36523
36524 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36525
36526 2015-02-18 Andrew Pinski <apinski@cavium.com>
36527 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36528
36529 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36530 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36531
36532 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36533
36534 * ipa-visibility.c (function_and_variable_visibility): Only
36535 check locality if node is not already local.
36536 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36537 call_for_symbol_and_aliases instead of
36538 call_for_symbol_thunks_and_aliases.
36539 (ipa_inline): Likewise.
36540 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36541 first walk aliases.
36542 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36543 call_for_symbol_and_aliases.
36544 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36545 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36546 (ipa_propagate_frequency): Update.
36547 (ipa_profile): Add opt_for_fn gueards.
36548
36549 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36550
36551 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36552 * doc/invoke.texi (SH options): Document it.
36553 * config/sh/sh.c (sh_insn_length_adjustment): Check
36554 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36555
36556 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36557
36558 * common.opt (fipa-cp-alignment): New.
36559 * ipa-cp.c (ipcp_store_alignment_results): Check
36560 flag_ipa_cp_alignment.
36561 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36562 -O2.
36563 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36564 * doc/invoke.texi: Document -fipa-cp-alignment.
36565
36566 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36567
36568 PR target/64793
36569 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36570 to nil. Adjust comments.
36571
36572 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36573
36574 * ipa-visibility.c (function_and_variable_visibility): Only
36575 check locality if node is not already local.
36576 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36577 call_for_symbol_and_aliases instead of
36578 call_for_symbol_thunks_and_aliases.
36579 (ipa_inline): Likewise.
36580 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36581 first walk aliases.
36582 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36583 call_for_symbol_and_aliases.
36584 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36585 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36586 (ipa_propagate_frequency): Update.
36587 (ipa_profile): Add opt_for_fn guards.
36588
36589 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36590
36591 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36592 skipping of "strange" tokens.
36593
36594 2015-02-17 Jeff Law <law@redhat.com>
36595
36596 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36597 obsolete comment.
36598
36599 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36600
36601 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36602 as forcing a HARD_DEP between instructions, thereby
36603 disallowing rewriting to break dependencies.
36604
36605 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36606
36607 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36608 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36609 variables in boundary that have no inlitalizer encoded and are
36610 not aliases.
36611 * varasm.c (default_binds_local_p_2): External definitions do not
36612 count as definitions here.
36613
36614 2015-02-16 Jeff Law <law@redhat.com>
36615
36616 PR tree-optimization/64823
36617 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36618 statements.
36619 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36620 threading through blocks with PHIs, but no statements.
36621 (thread_through_normal_block): Distinguish between blocks where
36622 we did not process all the statements and blocks with no statements.
36623
36624 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36625 James Greenhalgh <james.greenhalgh@arm.com>
36626
36627 PR ipa/64963
36628 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36629 section if not linkonce. Fix up formatting.
36630 (cgraph_node::create_version_clone_with_body): Copy section.
36631 * trans-mem.c (ipa_tm_create_version): Likewise.
36632
36633 2015-02-16 Richard Biener <rguenther@suse.de>
36634
36635 PR tree-optimization/65077
36636 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36637 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36638 (find_func_aliases): Allow float values to carry pointers again.
36639
36640 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36641
36642 * doc/install.texi (Specific): Reorder targets list to put
36643 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36644 from the top menu.
36645
36646 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36647 David Edelsohn <dje.gcc@gmail.com>
36648
36649 PR target/65058
36650 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36651 mapping class to external variable or function reference.
36652 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36653 mapping class.
36654
36655 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36656
36657 PR target/53348
36658 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36659 ASM_WEAKEN_DECL if defined.
36660
36661 2015-02-16 Richard Biener <rguenther@suse.de>
36662
36663 PR lto/65015
36664 * varasm.c (default_file_start): For LTO produced units
36665 emit <artificial> as file directive.
36666
36667 2015-02-16 Richard Biener <rguenther@suse.de>
36668
36669 PR tree-optimization/63593
36670 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36671 stmts and releasing SSA names until...
36672 (execute_pred_commoning): ... after processing all chains.
36673
36674 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36675
36676 PR ipa/65059
36677 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36678 external functions.
36679
36680 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36681
36682 * doc/bugreport.texi: Adjust section titles throughout the file
36683 to use "Title Case".
36684 * doc/extend.texi: Likewise.
36685 * doc/gcov.texi: Likewise.
36686 * doc/implement-c.texi: Likewise.
36687 * doc/implement-cxx.texi: Likewise.
36688 * doc/invoke.texi: Likewise.
36689 * doc/objc.texi: Likewise.
36690 * doc/standards.texi: Likewise.
36691 * doc/trouble.texi: Likewise.
36692
36693 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36694
36695 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36696 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36697 * tree.c (lookup_binfo_at_offset): Make static.
36698 (get_binfo_at_offset): Do not shadow offset; add explanatory
36699 comment.
36700
36701 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36702
36703 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36704 for all floading point loads and stores except those using a register
36705 index address.
36706 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36707 to a register.
36708
36709 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36710
36711 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36712 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36713 (estimate_growth): Handle uninlinable edges correctly.
36714 (check_callers): New.
36715 (growth_likely_positive): Handle aliases correctly.
36716
36717 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36718
36719 * ipa-chkp.c: Use iterate_direct_aliases.
36720 * symtab.c (resolution_used_from_other_file_p): Move inline.
36721 (symtab_node::create_reference): Fix formating.
36722 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36723 (symtab_node::iterate_reference): Move inline.
36724 (symtab_node::iterate_referring): Move inline.
36725 (symtab_node::iterate_direct_aliases): Move inline.
36726 (symtab_node::used_from_object_file_p_worker): Inline into ...
36727 (symtab_node::used_from_object_file_p): ... this one; move inline.
36728 (symtab_node::call_for_symbol_and_aliases): Move inline;
36729 use iterate_direct_aliases.
36730 (symtab_node::call_for_symbol_and_aliases_1): New method.
36731 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36732 use iterate_direct_aliases.
36733 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36734 (varpool_node::call_for_node_and_aliases): Rename to ...
36735 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36736 use iterate_direct_aliases.
36737 (varpool_node::call_for_symbol_and_aliases_1): New method.
36738 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36739 (ipa_discover_readonly_nonaddressable_var): Update.
36740 * ipa-devirt.c: Fix formating.
36741 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36742 Move inline.
36743 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36744 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36745 * cgraph.h (used_from_object_file_p_worker): Remove.
36746 (resolution_used_from_other_file_p): Move inline.
36747 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36748 (symtab_node::iterate_reference): Move inline.
36749 (symtab_node::iterate_referring): Move inline.
36750 (symtab_node::iterate_direct_aliases): Move inline.
36751 (symtab_node::used_from_object_file_p_worker): Inline into ...
36752 (symtab_node::used_from_object_file_p): Move inline.
36753 * tree-emutls.c (ipa_lower_emutls): Update.
36754 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36755 (varpool_node::call_for_node_and_aliases): Remove.
36756
36757 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36758
36759 PR tree-optimization/62209
36760 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36761 op == range->exp, insert seq and gimplified code after labels
36762 instead of after the phi.
36763
36764 2015-02-13 Jeff Law <law@redhat.com>
36765
36766 PR bootstrap/65060
36767 Revert my change for tree-optimization/64823.
36768
36769 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36770
36771 PR tree-optimization/65053
36772 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36773 cond, either reset VR on lhs or set it to phi result VR.
36774
36775 2015-02-13 Jeff Law <law@redhat.com>
36776
36777 PR tree-optimization/64823
36778 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36779 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36780 threading through blocks with PHIs, but no statements.
36781 (thread_through_normal_block): Distinguish between blocks where
36782 we did not process all the statements and blocks with no statements.
36783
36784 PR rtl-optimization/47477
36785 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36786 simplifier to narrow arithmetic.
36787
36788 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36789
36790 PR ipa/65028
36791 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36792 polymorphic call info when type is not known to be preserved.
36793
36794 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36795
36796 PR ipa/65028
36797 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36798 (inline_call): Use it.
36799
36800 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36801
36802 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36803 GOMP_DEVICE_NVIDIA_PTX.
36804
36805 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36806
36807 PR ipa/65034
36808 * stmt.c (emit_case_nodes): Use void_type_node instead of
36809 NULL_TREE as LABEL_DECL type.
36810
36811 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36812
36813 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36814 constraints.
36815 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36816 symbolic references to data to be forced to constant memory on the
36817 SOM target.
36818
36819 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36820
36821 PR tree-optimization/65002
36822 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36823 SSA on start.
36824 * tree-sra.c (some_callers_have_no_vuse_p): New.
36825 (ipa_early_sra): Reject functions whose callers
36826 assume function is read only.
36827
36828 2015-02-13 Richard Biener <rguenther@suse.de>
36829
36830 PR lto/65015
36831 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36832 for LTO produced CUs.
36833
36834 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36835
36836 PR tree-optimization/64705
36837 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36838 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36839 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36840 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36841 expand_simple_operations.
36842
36843 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36844 Richard Henderson <rth@redhat.com>
36845
36846 PR rtl/32219
36847 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36848 before notice_global_symbol.
36849 (varpool_node::finalize_decl): Likewise.
36850 * varasm.c (default_binds_local_p_2): Rename from
36851 default_binds_local_p_1, add weak_dominate argument. Use direct
36852 returns instead of assigning to local variable. Unify varpool and
36853 cgraph paths via symtab_node. Reject undef weak variables before
36854 testing visibility. Reorder tests for simplicity.
36855 (default_binds_local_p): Use default_binds_local_p_2.
36856 (default_binds_local_p_1): Likewise.
36857 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36858 via symtab_node.
36859 (default_elf_asm_output_external): Emit visibility when specified.
36860
36861 2015-02-13 Alan Modra <amodra@gmail.com>
36862
36863 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36864 code setting up r11 for out-of-line fp restore.
36865
36866 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36867
36868 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36869 (muser-mode): Likewise.
36870
36871 2015-02-13 Alan Modra <amodra@gmail.com>
36872
36873 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36874 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36875
36876 2015-02-12 David Howells <dhowells@redhat.com>
36877
36878 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36879 warning.
36880 * tree-ssa-uninit.c (dump_predicates): Likewise.
36881 * opts.c (print_filtered_help): Likewise.
36882
36883 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36884
36885 * dwarf2out.c (output_die): Use "%s", name instead of name to
36886 avoid -Wformat-security warning.
36887
36888 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36889 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36890 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36891 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36892
36893 2015-02-12 Jason Merrill <jason@redhat.com>
36894
36895 * common.opt (-flifetime-dse): New.
36896
36897 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36898
36899 PR sanitizer/65019
36900 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36901
36902 PR tree-optimization/65014
36903 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36904 use original second operand of arg0 or arg1 instead of
36905 that adjusted by STRIP_NOPS.
36906
36907 2015-02-11 Jeff Law <law@redhat.com>
36908
36909 PR target/63347
36910 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36911 that needs to be queued, just queue it for a single cycle.
36912
36913 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36914
36915 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36916 bodies of thunks; comment on why.
36917 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36918 symbols are extern.
36919
36920 2015-02-11 Richard Henderson <rth@redhat.com>
36921
36922 PR sanitize/65000
36923 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36924 regions of __builtin_eh_copy_values.
36925
36926 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36927
36928 PR middle-end/65003
36929 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36930 ultimate alias is MEM with SYMBOL_REF satisfying
36931 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36932 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36933
36934 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36935
36936 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36937 "diagnostic-core.h".
36938 (main): Initialize progname, and call diagnostic_initialize.
36939
36940 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36941 instead of __OPENMP_TARGET__.
36942
36943 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36944 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36945 hard-coding PTX_ID.
36946
36947 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36948
36949 * doc/sourcebuild.texi (pie_enabled): Document.
36950
36951 2015-02-11 Martin Liska <mliska@suse.cz>
36952
36953 PR ipa/64813
36954 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36955 a return value for call to a function that is noreturn.
36956
36957 2015-02-11 Richard Biener <rguenther@suse.de>
36958
36959 PR lto/65015
36960 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36961 and -fresolution.
36962
36963 2015-02-11 Andrew Pinski <apinski@cavium.com>
36964
36965 PR target/64893
36966 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36967 Change the first argument type to size_type_node and add another
36968 size_type_node.
36969 (aarch64_simd_expand_builtin): Handle the new argument to
36970 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36971 print an out when the first two arguments are not
36972 nonzero integer constants.
36973 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36974 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36975
36976 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36977
36978 PR target/61925
36979 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36980 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36981 (ix86_set_current_function): Rewritten.
36982 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36983 when creating builtin fndecls.
36984
36985 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36986
36987 PR ipa/65005
36988 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36989 function.
36990 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36991 have no comdat group.
36992 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36993 (lto_output_varpool_node): Always output alias info.
36994 (output_refs): Output refs of boundary aliases, too.
36995 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36996 (output_symtab): Output call eges in thunks in boundary.
36997 (get_alias_symbol): Remove.
36998 (input_node, input_varpool_node): Do not special case weakrefs.
36999 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37000 alias and thunks targets in the boundary; do not take removed symbols
37001 from their comdat groups.
37002 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37003 (cgraph_node::global_info): Remove.
37004 (cgraph_node::rtl_info): Look through aliases and thunks.
37005 * cgrpah.h (global_info): Remove.
37006 (non_local_p): Remove.
37007
37008 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37009 Sandra Loosemore <sandra@codesourcery.com>
37010
37011 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37012 to inline asm. List dialects in proper order.
37013
37014 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37015 Sandra Loosemore <sandra@codesourcery.com>
37016
37017 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37018
37019 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37020
37021 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37022 modified) reference to Solaris.
37023
37024 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37025
37026 * doc/extend.texi (Extended Asm): Fix typos.
37027
37028 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37029
37030 PR sanitizer/65004
37031 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37032
37033 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37034
37035 PR target/64661
37036 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37037 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37038 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37039 * config/sh/constraints.md (Ara, Add): New constraints.
37040 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37041 predicates.
37042 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37043 atomic_mem_operand_0. Don't use force_reg on the memory address.
37044 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37045 Sra constraint. Convert to insn_and_split. Add workaround for
37046 PR 64974.
37047 (atomic_compare_and_swap<mode>_hard): Copy to
37048 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37049 Use atomic_mem_operand_0 predicate.
37050 (atomic_compare_and_swap<mode>_soft_gusa,
37051 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37052 AraAdd constraints.
37053 (atomic_compare_and_swap<mode>_soft_tcb,
37054 atomic_compare_and_swap<mode>_soft_imask,
37055 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37056 atomic_mem_operand_0 predicate and SraSdd constraints.
37057 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37058 constraint.
37059 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37060 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37061 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37062 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37063 force_reg on the memory address.
37064 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37065 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37066 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37067 atomic_mem_operand_1 predicate and Sra constraint.
37068 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37069 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37070 Use atomic_mem_operand_1 predicate.
37071 (atomic_<fetchop_name><mode>_hard): Copy to
37072 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37073 Use atomic_mem_operand_1 predicate.
37074 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37075 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37076 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37077 insn_and_split. Use atomic_mem_operand_1 predicate.
37078 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37079 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37080 Use atomic_mem_operand_1 predicate.
37081 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37082 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37083 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37084 in generated insn with original mem operand before emitting the insn.
37085 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37086 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37087 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37088 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37089 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37090 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37091 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37092 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37093 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37094 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37095 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37096 atomic_not_fetch<mode>_soft_tcb,
37097 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37098 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37099 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37100 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37101
37102 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37103
37104 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37105 and 3 earlyclobber operands.
37106
37107 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37108
37109 * common.opt (fstack-reuse): Mark as optimization.
37110
37111 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37112
37113 PR ipa/64982
37114 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37115
37116 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37117
37118 PR tree-optimization/64326
37119 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37120
37121 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37122
37123 PR gcov-profile/61889
37124 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37125
37126 2015-02-10 Richard Biener <rguenther@suse.de>
37127
37128 PR tree-optimization/64995
37129 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37130 value we use is final.
37131 (visit_reference_op_store): Always valueize op.
37132 (visit_use): Properly valueize vuses.
37133
37134 2015-02-10 Richard Biener <rguenther@suse.de>
37135
37136 PR tree-optimization/64909
37137 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37138 pass a scalar-stmt count estimate to the cost model.
37139 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37140
37141 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37142
37143 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37144 enabled by default together with var-tracking.
37145
37146 2015-02-10 Nick Clifton <nickc@redhat.com>
37147
37148 * config/rl78/rl78.c: Remove DIV attribute code accidentally
37149 included in previous rl78 commit.
37150
37151 2015-02-10 Richard Biener <rguenther@suse.de>
37152
37153 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37154 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37155 return the bitpack.
37156
37157 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37158
37159 PR gcov-profile/61889
37160 * config.in: regenerate.
37161 * configure.in: Likewise.
37162 * configure.ac: Check for ftw.h.
37163 * gcov-tool.c: Check for ftw.h before using nftw.
37164
37165 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37166
37167 PR lto/64076
37168 * ipa-visibility.c (update_visibility_by_resolution_info): Only
37169 assert when not in lto mode.
37170
37171 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37172
37173 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37174 initialization/assignment of conflict_size.
37175
37176 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37177
37178 PR ipa/64978
37179 * ipa-cp.c (gather_caller_stats): Skip thunks.
37180 (propagate_constants_topo): Skip aliases.
37181
37182 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37183
37184 PR target/64761
37185 * config/sh/sh.c (sh_option_override): Don't change
37186 -freorder-blocks-and-partition to -freorder-blocks even when
37187 unwinding is enabled.
37188 (sh_can_follow_jump): Return false if the followee jump is
37189 a crossing jump when -freorder-blocks-and-partition is specified.
37190 * config/sh/sh.md (*jump_compact_crossing): New insn.
37191
37192 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37193 Kaz Kojima <kkojima@gcc.gnu.org>
37194
37195 PR target/64761
37196 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37197 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37198 (sh_can_redirect_branch): Rename to ...
37199 (sh_can_follow_jump): ... this. Constify argument types.
37200 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37201 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37202 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37203 * doc/tm.texi: Regenerate.
37204
37205 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37206
37207 PR sanitizer/64981
37208 * builtins.c (expand_builtin): Call targetm.expand_builtin
37209 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37210
37211 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37212
37213 PR ipa/61548
37214 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37215
37216 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37217
37218 PR ipa/63566
37219 * ipa-icf.c (set_local): New function.
37220 (sem_function::merge): Use it.
37221
37222 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37223
37224 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37225 (add_type_duplicate): Fix comparison of BINFOs.
37226
37227 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37228
37229 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37230 on getting VOID pointer.
37231
37232 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37233
37234 PR target/64979
37235 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37236 va_list escapes.
37237
37238 2015-02-09 Richard Biener <rguenther@suse.de>
37239
37240 * genmatch.c (replace_id): Copy expr_type.
37241
37242 2015-02-09 Richard Biener <rguenther@suse.de>
37243
37244 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37245 (streamer_write_tree_bitfields): Declare.
37246 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37247 properly unpack padding.
37248 (unpack_value_fields): Inline ...
37249 (streamer_read_tree_bitfields): ... here.
37250 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37251 and properly add padding bits.
37252 (streamer_pack_tree_bitfields): Fold into ...
37253 (streamer_write_tree_bitfields): ... this new function,
37254 exposing the bitpack object.
37255 * lto-streamer-out.c (lto_write_tree_1): Call
37256 streamer_write_tree_bitfields.
37257
37258 2015-02-09 Richard Biener <rguenther@suse.de>
37259
37260 PR tree-optimization/54000
37261 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37262 (struct ivopts_data): Add loop_loc member.
37263 (tree_ssa_iv_optimize_loop): Dump loop location.
37264 (create_new_ivs): Likewise, also dump number of IVs generated.
37265
37266 2015-02-09 Martin Liska <mliska@suse.cz>
37267
37268 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37269 just if not yet registered.
37270 (ipa_icf_generate_summary): Register callgraph hooks.
37271
37272 2015-02-08 Andrew Pinski <apinski@cavium.com>
37273
37274 * config/aarch64/aarch64.c (gty_dummy): Delete.
37275
37276 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37277
37278 PR ipa/63566
37279 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37280 (cgraph_node::local_p): Remove thunk related FIXME.
37281
37282 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37283
37284 PR ipa/63566
37285 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37286 is local and optimized.
37287 (ix86_function_sseregparm): Likewise; also use target's SSE math
37288 settings; error out instead of silently generating wrong code
37289 on mismatches.
37290 (init_cumulative_args): Look through aliases.
37291
37292 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37293
37294 PR ipa/63566
37295 * ipa-split.c (execute_split_functions): Split if function has aliases.
37296
37297 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37298
37299 PR ipa/63566
37300 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37301 aliases before trying to expand it.
37302 (cgraph_node::expand_thunk): Fix formating.
37303
37304 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37305
37306 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37307 (Using Assembly Language with C): Expand introduction.
37308 (Basic Asm): Copy-edit. Add more information about uses of
37309 basic asm.
37310 (Extended Asm): Copy-edit. Document new escape syntax and
37311 %l[label] syntax.
37312 (Global Reg Vars): Copy-edit.
37313 (Local Reg Vars): Likewise.
37314
37315 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37316
37317 PR debug/2714
37318 PR bootstrap/64256
37319 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37320 (DBX_CONTIN_CHAR): Define.
37321
37322 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37323 Brian Rzycki <b.rzycki@samsung.com>
37324
37325 PR tree-optimization/64878
37326 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37327 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37328 Stop recursion at loop phi nodes after having visited a loop phi node.
37329
37330 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37331
37332 * toplev.c (process_options): Change flag_ipa_ra before creating
37333 optimization_{default,current}_node.
37334
37335 PR ipa/64896
37336 * cgraphunit.c (cgraph_node::expand_thunk): If
37337 restype is not is_gimple_reg_type nor the thunk_fndecl
37338 returns aggregate_value_p, set restmp to a temporary variable
37339 instead of resdecl.
37340
37341 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37342
37343 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37344
37345 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37346
37347 PR target/64205
37348 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37349 add a general secondary reload handler for SDmode, unless we have
37350 both read/write support for SDmode.
37351
37352 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37353
37354 PR middle-end/64937
37355 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37356 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37357 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37358 1 before, push it to abstract_vec.
37359 (dwarf2out_abstract_function): Adjust caller. Don't call
37360 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37361 DECL_ABSTRACT_P flags for all abstract_vec elts.
37362
37363 2015-02-06 Renlin Li <renlin.li@arm.com>
37364
37365 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37366 complex gimple.
37367 * tree-ssa.c (execute_update_addresses_taken): Likewise.
37368
37369 2015-02-06 Jeff Law <law@redhat.com>
37370
37371 PR target/64889
37372 * config/h8300/h8300.c (push): New argument "in_prologue".
37373 Pass "in_prologue" along to "F".
37374 (h8300_push_pop): Corresponding changes.
37375 (h8300_expand_prologue): Likewise.
37376 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
37377
37378 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37379
37380 PR rtl-optimization/64957
37381 PR debug/64817
37382 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37383 IOR rather than for AND.
37384
37385 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
37386
37387 PR target/62631
37388 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37389 of shift-add and (add + shift) operations. Rename local variable.
37390
37391 2015-02-05 Jeff Law <law@redhat.com>
37392
37393 PR target/17306
37394 * config/h8300/constraints.md (U): Correctly dectect
37395 "eightbit_data" memory addresses.
37396 * config/h8300/h8300.c (eightbit_constant_address_p): Also
37397 handle (const (plus (symbol_ref (x)))) where x is declared
37398 as an 8-bit data memory address.
37399 * config/h8300/h8300.md (call, call_value): Correctly detect
37400 "funcvec" functions.
37401
37402 PR target/43264
37403 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37404 24 to 28 bits for the H8/300.
37405
37406 2015-02-06 Alan Modra <amodra@gmail.com>
37407
37408 PR target/64876
37409 * config/rs6000/rs6000.c (chain_already_loaded): New function.
37410 (rs6000_call_aix): Use it.
37411
37412 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
37413
37414 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37415 check.
37416
37417 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
37418
37419 * config/h8300/constraints.md ("U" constraint): Use strict
37420 variant of REG_OK_FOR_BASE_P after reload has started.
37421
37422 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
37423
37424 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37425 define to zero if !TARGET_NEON.
37426 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37427
37428 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37429 Trevor Saunders <tsaunders@mozilla.com>
37430
37431 PR ipa/61548
37432 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37433
37434 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37435
37436 PR ipa/61548
37437 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37438 when removing varpool nodes.
37439
37440 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37441
37442 PR ipa/61548
37443 * varpool.c (varpool_node::remove): Fix order of variables.
37444
37445 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37446
37447 PR ipa/64686
37448 * ipa-inline.c (inline_small_functions): Fix ordering issue between
37449 speculation resolution and key updates.
37450
37451 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37452
37453 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37454 about not letting any speculative edges unupdated.
37455
37456 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37457
37458 PR gcov/64123
37459 * gcov-io.c (gcov_var): Export.
37460
37461 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37462
37463 PR middle-end/64922
37464 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37465 edges that become speculative.
37466
37467 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37468
37469 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37470 or DW_LANG_Fortran08.
37471 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37472 DW_LANG_Fortran08.
37473 (gen_compile_unit_die): Handle "GNU Fortran2003" and
37474 "GNU Fortran2008" language strings.
37475 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37476 * langhooks.h (lang_GNU_Fortran): New prototype.
37477 * langhooks.c (lang_GNU_Fortran): New function.
37478 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37479 lang_GNU_Fortran.
37480
37481 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37482
37483 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37484 (RTX_OK_FOR_OLO10_P): Likewise.
37485
37486 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37487
37488 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37489
37490 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37491
37492 PR middle-end/64922
37493 * gimple.c: Include gimple-ssa.h.
37494 (maybe_remove_unused_call_args): New function.
37495 * gimple.h (maybe_remove_unused_call_args): Declare.
37496 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37497 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37498 * gimple-fold.c (gimple_fold_call): Likewise.
37499
37500 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37501
37502 PR rtl-optimization/64905
37503 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37504 pointer alignment if it isn't needed.
37505
37506 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37507
37508 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37509 cortex-a72.cortex-a53.
37510 * config/aarch64/aarch64-tune.md: Regenerate.
37511 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37512
37513 2015-02-04 Nick Clifton <nickc@redhat.com>
37514
37515 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37516 inside a MEM.
37517
37518 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37519
37520 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37521 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37522 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37523 of DEF_BUILTIN.
37524 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37525 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37526 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37527 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37528 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37529 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37530 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37531 * tree-core.h (enum built_in_function): In between
37532 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37533 for builtins that use DEF_BUILTIN_CHKP macro.
37534
37535 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37536
37537 PR debug/64817
37538 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37539 operands for tcc_comparison exprs. Fix typos.
37540
37541 PR debug/64817
37542 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37543 of two XORs that have an intervening AND or IOR.
37544
37545 PR debug/64817
37546 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37547 simplification of XOR of AND to not allocate new rtx before
37548 committing to a simplification.
37549
37550 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37551
37552 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37553 manual swaps in all peepholes.
37554
37555 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37556
37557 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37558 of manual swapping implementation.
37559 (aarch64_expand_vec_perm_const_1): Likewise.
37560
37561 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37562
37563 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37564 (generic_addrcost_table): Remove NAMED_PARAM.
37565 (cortexa57_addrcost_table): Likewise.
37566 (xgene1_addrcost_table): Likewise.
37567 (generic_regmove_table): Likewise.
37568 (cortexa53_regmove_table): Likewise.
37569 (xgene1_regmove_table): Likewise.
37570 (generic_vector_table): Likewise.
37571 (cortexa57_vector_table): Likewise.
37572 (xgene1_vector_table): Likewise.
37573 (generic_tunings): Likewise.
37574 (cortexa53_tunings): Likewise.
37575 (cortexa57_tunings): Likewise.
37576 (xgene1_tunings): Likewise.
37577
37578 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37579
37580 * config/arm/arm-cores.def: Add cortex-a72 and
37581 cortex-a72.cortex-a53.
37582 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37583 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37584 * config/arm/arm-tune.md: Regenerate.
37585 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37586 "cortex-a72.cortex-a53".
37587 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37588
37589 2015-02-04 Nick Clifton <nickc@redhat.com>
37590
37591 PR target/64408
37592 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37593 of accepted codes.
37594 (nonimmediate_di_operand): Likewise.
37595
37596 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37597 prefixes of known F5 using MSP430 MCUs.
37598
37599 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37600
37601 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37602 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37603 instead of __builtin_sqrt.
37604
37605 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37606
37607 * varasm.c (do_assemble_alias): Follow transparent alias
37608 chain for target.
37609 (default_assemble_visibility): Follow transparent alias
37610 chain for decl name.
37611
37612 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37613
37614 PR middle-end/62103
37615 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37616 to compute size of referenced value in the constant case.
37617
37618 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37619
37620 PR rtl-optimization/64756
37621 * cse.c (invalidate_dest): New function.
37622 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37623 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37624 invalidate and do not record it.
37625
37626 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37627
37628 PR target/64660
37629 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37630 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37631 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37632 atomic_nand<mode>_soft_tcb): New insns.
37633 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37634 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37635 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37636 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37637 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37638 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37639 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37640 atomic_not<mode>_hard if operands[0] is unused.
37641 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37642 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37643 if operands[0] is unused.
37644 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37645 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37646 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37647 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37648 unused.
37649 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37650 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37651 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37652 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37653 if operands[0] is unused.
37654 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37655 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37656 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37657 atomic_nand_fetchsi_hard if operands[0] is unused.
37658 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37659 atomic_nand<mode>_hard if operands[0] is unused.
37660 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37661 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37662 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37663 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37664 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37665 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37666 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37667 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37668 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37669 atomic_not<mode>_hard if operands[0] is unused.
37670 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37671 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37672 unused.
37673 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37674 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37675 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37676 atomic_nand<mode>_hard if operands[0] is unused.
37677 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37678 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37679
37680 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37681
37682 PR jit/64810
37683 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37684 * gcc-main.c: New file, containing "main" taken from gcc.c.
37685 * gcc.c (do_self_spec): Free decoded_options.
37686 (class driver): Move declaration to gcc.h.
37687 (main): Move declaration and implementation to new file
37688 gcc-main.c.
37689 (driver_get_configure_time_options): New function.
37690 * gcc.h (class driver): Move this declaration here, from
37691 gcc.c.
37692 (driver_get_configure_time_options): New declaration.
37693
37694 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37695
37696 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37697 cross-module inlining.
37698 * cgraph.h (cgraph_node): Add flag merged.
37699 * ipa-icf.c (sem_function::merge): Maintain it.
37700
37701 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37702
37703 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37704 instead of OBJECT_P.
37705
37706 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37707
37708 PR target/62631
37709 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37710 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37711 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37712 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37713
37714 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37715
37716 PR other/63504
37717 * combine.c (reg_n_sets_max): New variable.
37718 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37719 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37720 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37721 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37722 (rest_of_handle_combine): Initialize reg_n_sets_max.
37723
37724 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37725
37726 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37727 if some always_inline was inlined, apply changes before inlining
37728 heuristically.
37729
37730 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37731
37732 PR jit/64810
37733 * config/arm/arm.c (arm_option_override): Set
37734 arm_selected_arch/cpu/tune to NULL on entry.
37735
37736 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37737 Andrew Pinski <pinskia@gcc.gnu.org>
37738 Jakub Jelinek <jakub@gcc.gnu.org>
37739
37740 PR target/64231
37741 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37742 integer typing for small model. Use IN_RANGE.
37743
37744 2015-02-02 Richard Biener <rguenther@suse.de>
37745
37746 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37747 * tree-vrp.c (vrp_valueize_1): Likewise.
37748
37749 2015-02-02 Alan Modra <amodra@gmail.com>
37750
37751 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37752 than mem for toc_restore.
37753 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37754 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37755 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37756
37757 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37758
37759 PR target/64047
37760 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37761 explicit default options.
37762
37763 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37764
37765 PR ipa/64872
37766 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37767 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37768 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37769
37770 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37771
37772 PR debug/64817
37773 * cfgexpand.c (deep_ter_debug_map): New variable.
37774 (avoid_deep_ter_for_debug): New function.
37775 (expand_debug_expr): If TERed SSA_NAME is in
37776 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37777 instead of trying to expand SSA_NAME's def stmt.
37778 (expand_debug_locations): When expanding debug bind
37779 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37780 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37781 value.
37782 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37783 all debug bind stmts. Delete deep_ter_debug_map after
37784 expand_debug_location if non-NULL and clear it.
37785
37786 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37787
37788 PR target/64851
37789 * config/sh/sync.md (atomic_fetch_notsi_hard,
37790 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37791 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37792 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37793 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37794 atomic_not_fetch<mode>_soft_imask): New insns.
37795
37796 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37797
37798 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37799 (rank_for_schedule_debug): Split from ...
37800 (rank_for_schedule): ... this.
37801 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37802 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37803
37804 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37805
37806 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37807 * doc/extend.texi (x86 Variable Attributes): Move section to
37808 correct alphabetization after renaming.
37809 (x86 Type Attributes): Likewise.
37810 (Target Builtins): Re-alphabetize menu.
37811 (x86 Built-in Functions): Move section to correct alphabetization
37812 after renaming.
37813 (x86 transactional memory intrinsics): Likewise.
37814 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37815 and x86 Windows Options in table and menu.
37816 (x86 Options): Move section to correct alphabetization after
37817 renaming.
37818 (x86 Windows Options): Likewise.
37819
37820 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37821
37822 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37823 preferred names of the architecture and its 32- and 64-bit
37824 variants.
37825 * doc/invoke.texi: Likewise.
37826 * doc/md.texi: Likewise.
37827
37828 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37829
37830 PR target/64882
37831 * config/i386/predicates.md (address_no_seg_operand): Reject
37832 non-CONST_INT_P operands in invalid mode.
37833
37834 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37835
37836 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37837 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37838 * config/i386/predicates.md (address_no_seg_operand): Call
37839 address_operand with VOIDmode.
37840 (vsib_address_operand): Ditto.
37841 (address_mpx_no_base_operand): Ditto.
37842 (address_mpx_no_index_operand): Ditto.
37843
37844 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37845
37846 PR target/64688
37847 * lra-constraints.c (original_subreg_reg_mode): New.
37848 (simplify_operand_subreg): Try to simplify subreg of const. Use
37849 original_subreg_reg_mode for it.
37850 (swap_operands): Update original_subreg_reg_mode.
37851 (curr_insn_transform): Set up original_subreg_reg_mode.
37852
37853 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37854
37855 PR target/64617
37856 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37857 function.
37858 (process_alt_operands): Use it.
37859 (curr_insn_transform): Check the optional reload pseudo class is
37860 ok for the mode.
37861
37862 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37863
37864 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37865 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37866 prototype.
37867 * toplev.h (init_asm_output): Update comment on use of
37868 UNKNOWN_LOCATION with fatal_error.
37869 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37870 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37871 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37872 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37873 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37874 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37875 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37876 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37877 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37878 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37879 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37880 fatal_error changed to pass input_location as first argument.
37881
37882 2015-01-30 Martin Liska <mliska@suse.cz>
37883
37884 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37885 in #pragma GCC diagnostic guards.
37886
37887 2015-01-30 Richard Biener <rguenther@suse.de>
37888
37889 PR tree-optimization/64829
37890 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37891 not add a widening conversion pattern but hand off extra
37892 widenings to callers.
37893 (vect_recog_widen_mult_pattern): Handle extra widening produced
37894 by vect_handle_widen_op_by_const.
37895 (vect_recog_widen_shift_pattern): Likewise.
37896 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37897 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37898 (vect_init_vector_1): Likewise.
37899 (vect_get_vec_def_for_operand): Likewise.
37900 (vect_finish_stmt_generation): Likewise.
37901 (vectorizable_load): Likewise.
37902 (vect_analyze_stmt): Likewise.
37903 (vect_is_simple_use): Likewise.
37904
37905 2015-01-29 Jeff Law <law@redhat.com>
37906
37907 * combine.c (try_combine): Fix typo in comment.
37908
37909 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37910
37911 PR target/64580
37912 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37913 (rs6000_stack_info): Add assert.
37914 (rs6000_output_savres_externs): New function, split off from...
37915 (rs6000_output_function_prologue): ... here. Do not call it for
37916 thunks.
37917
37918 2015-01-29 Jeff Law <law@redhat.com>
37919
37920 PR target/15184
37921 * combine.c (try_combine): If I0 is a memory load and I3 a store
37922 to a related address, increase the "goodness" of doing a 4-insn
37923 combination with I0-I3.
37924 (make_field_assignment): Handle SUBREGs in the ior+and case.
37925
37926 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37927
37928 PR tree-optimization/64746
37929 * tree-if-conv.c (mask_exists): New function.
37930 (predicate_mem_writes): Save created mask with given size for further
37931 use.
37932 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37933 (ifcvt_repair_bool_pattern): Collect all statements that are root
37934 of bool pattern and use iterative algorithm to remove multiple uses
37935 of predicates, display number of required iterations.
37936
37937 2015-01-29 Richard Biener <rguenther@suse.de>
37938
37939 PR tree-optimization/64853
37940 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37941 stmt will get simulated again.
37942 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37943
37944 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37945
37946 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37947 return_in_pc. Remove redundant assignments.
37948 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37949 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37950
37951 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37952
37953 * config/i386/i386.c (ix86_mode_after): Make static.
37954
37955 2015-01-29 Richard Biener <rguenther@suse.de>
37956
37957 PR tree-optimization/64844
37958 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37959 dump cost model analysis.
37960 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37961 Do not register adjusted load/store costs here.
37962
37963 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37964 Uros Bizjak <ubizjak@gmail.com>
37965
37966 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37967 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37968 using x86_use_pseudo_pic_reg.
37969 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37970 support for fixed PIC register.
37971 (ix86_use_pseudo_pic_reg): Not static any more.
37972
37973 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37974
37975 PR middle-end/64805
37976 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37977 to avoid error in cgraph node verification.
37978
37979 2015-01-29 Marek Polacek <polacek@redhat.com>
37980
37981 * doc/standards.texi: Reflect that the default for C is gnu11.
37982
37983 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37984
37985 PR target/64761
37986 * reorg.c (switch_text_sections_between_p): New function.
37987 (relax_delay_slots): Call it when testing if the jump insn
37988 is removable. Use targetm.can_follow_jump when testing if
37989 the conditional branch can follow an unconditional jump.
37990
37991 2015-01-27 Caroline Tice <cmtice@google.com>
37992
37993 Committing VTV Cywin/Ming patch for Patrick Wollgast
37994 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37995 if -fvtable-verify=preinit/std is used.
37996 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37997 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37998 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37999 if -fvtable-verify=preinit/std is used.
38000 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38001 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38002 if -fvtable-verify=preinit/std is used.
38003 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38004 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38005 * varasm.c (assemble_variable): Add code to properly set the comdat
38006 section and name for the .vtable_map_vars section in case the
38007 target is PE or COFF.
38008
38009 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38010
38011 PR ipa/64801
38012 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38013 make sane BB profile.
38014 (cgraph_node::expand_thunk): Make sane BB profile.
38015 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38016 * cgraph.h (init_lowered_empty_function): Update prototype.
38017 * config/i386/i386.c (make_resolver_func): Update call.
38018 * predict.c (gate): Disable branch prediction pass if
38019 profile is already there.
38020
38021 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38022
38023 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38024 * opth-gen.awk: Likewise.
38025 * common.opt: Mark flag_fp_contract_mode as Optimization.
38026
38027 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38028
38029 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38030 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38031
38032 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38033
38034 PR target/64659
38035 * config/sh/predicates.md (atomic_arith_operand,
38036 atomic_logical_operand): Remove.
38037 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38038 (atomic_arith_operand_0): New predicate.
38039 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38040 Use atomic_arith_operand_0 for input values.
38041 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38042 atomic_compare_and_swap<mode>_soft_gusa,
38043 atomic_compare_and_swap<mode>_soft_tcb,
38044 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38045 arith_reg_operand instead of register_operand.
38046 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38047 atomic_arith_operand_0 for newval input.
38048 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38049 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38050 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38051 arith_reg_operand instead of register_operand.
38052 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38053 fetchop_predicate_1, fetchop_constraint_1_llcs,
38054 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38055 fetchop_constraint_1_imask): New code iterator attributes.
38056 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38057 register_operand. Use fetchop_predicate_1.
38058 (atomic_fetch_<fetchop_name>si_hard,
38059 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38060 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38061 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38062 and arith_reg_operand instead of register_operand. Use
38063 fetchop_predicate_1, fetchop_constraint_1_gusa.
38064 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38065 and arith_reg_operand instead of register_operand. Use
38066 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38067 to allow R0 usage.
38068 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38069 and arith_reg_operand instead of register_operand. Use
38070 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38071 to allow R0 usage.
38072 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38073 register_operand. Use atomic_logical_operand_1.
38074 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38075 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38076 arith_reg_operand instead of register_operand.
38077 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38078 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38079 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38080 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38081 register_operand. Use fetchop_predicate_1.
38082 (atomic_<fetchop_name>_fetchsi_hard,
38083 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38084 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38085 fetchop_constraint_1_llcs.
38086 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38087 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38088 fetchop_constraint_1_gusa.
38089 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38090 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38091 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38092 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38093 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38094 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38095 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38096 register_operand. Use atomic_logical_operand_1.
38097 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38098 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38099 arith_reg_operand instead of register_operand.
38100 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38101 arith_reg_operand instead of register_operand. Use logical_operand
38102 and K08. Adjust asm sequence to allow R0 usage.
38103 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38104 arith_reg_operand instead of register_operand. Use logical_operand
38105 and K08.
38106
38107 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38108
38109 PR other/63504
38110 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38111 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38112 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38113 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38114 all bits in *val_wide.
38115
38116 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38117
38118 * varpool.c (tls_model_names): Fix names.
38119 (varpool_node::dump): Dump tls- prefix for tls models.
38120
38121 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38122 Bernd Schmidt <bernds@codesourcery.com>
38123 Nathan Sidwell <nathan@codesourcery.com>
38124
38125 * config/nvptx/mkoffload.c: New file.
38126 * config/nvptx/t-nvptx: Add build rules for it.
38127 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38128 (extra_programs): Add mkoffload.
38129 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38130 function.
38131 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38132
38133 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38134
38135 PR middle-end/64809
38136 * cfgexpand.c (reorder_operands): Skip debug gimples.
38137
38138 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38139
38140 PR tree-optimization/64277
38141 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38142 range info when possible to refine estimation.
38143
38144 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
38145
38146 PR tree-optimization/64718
38147 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38148 be a 16bit unsigned integer when n->range is 16.
38149 (bswap_replace): Convert src to that type if necessary for all bswap
38150 sizes. Fix rotation right notation in nearby comment. Use bswap_type
38151 set in pass_optimize_bswap::execute ().
38152
38153 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
38154
38155 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38156 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38157 integer and floating point variants.
38158 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38159
38160 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
38161
38162 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38163 for all vector modes.
38164
38165 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38166
38167 PR bootstrap/64612
38168 * doc/sourcebuild.texi (comdat_group): Document.
38169
38170 2015-01-28 Terry Guo <terry.guo@arm.com>
38171
38172 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38173
38174 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38175
38176 * toplev.c (print_version): Add param "show_global_state", and
38177 only print GGC and plugin information if it is true.
38178 (init_asm_output): Pass in "true" for the new param when calling
38179 print_version.
38180 (process_options): Likewise.
38181 (toplev::main): Likewise.
38182 * toplev.h (print_version): Add new param to decl.
38183
38184 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38185
38186 PR ipa/60871
38187 PR ipa/64139
38188 * tree.c (lookup_binfo_at_offset): New function.
38189 (get_binfo_at_offset): Use it.
38190
38191 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38192
38193 PR ipa/64282
38194 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38195 on vtable being vtable.
38196
38197 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38198
38199 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38200 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38201 -mhotpatch= option.
38202 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38203 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38204 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38205 Renamed.
38206 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38207 (s390_hotpatch_hw_max): New name.
38208 (s390_hotpatch_trampoline_halfwords): Renamed.
38209 (s390_hotpatch_hw_before_label): New name.
38210 (get_hotpatch_attribute): Removed.
38211 (s390_hotpatch_hw_after_label): New name.
38212 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38213 attribute.
38214 (s390_attribute_table): Ditto.
38215 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38216 (s390_function_num_hotpatch_hw): New name.
38217 Remove special handling of inline functions and hotpatching.
38218 Return number of nops before and after the function label.
38219 (s390_can_inline_p): Removed.
38220 (s390_asm_output_function_label): Emit a configurable number of nops
38221 after the function label.
38222 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38223 (TARGET_CAN_INLINE_P) Removed.
38224 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38225
38226 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38227 Jiong Wang <jiong.wang@arm.com>
38228
38229 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38230 of scratch reg.
38231 (cb<optab><mode>1): Likewise.
38232 * config/aarch64/iterators.md (bcond): New define_code_attr.
38233
38234 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38235
38236 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38237 memory accesses.
38238
38239 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38240
38241 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38242 FPR->GPR moves.
38243
38244 2015-01-27 Richard Biener <rguenther@suse.de>
38245
38246 * tree-vrp.c (update_value_range): Intersect the range with
38247 old recorded SSA name range information.
38248
38249 2015-01-27 Nick Clifton <nickc@redhat.com>
38250
38251 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38252 BC, DE and HL registers directly, not via AX.
38253 When decrementing the stack pointer by a large amount, transfer SP
38254 into AX and perform the subtraction there.
38255 (rl78_expand_epilogue): Perform the inverse of the above
38256 enhancements.
38257
38258 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38259
38260 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38261
38262 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38263 Yury Gribov <y.gribov@samsung.com>
38264
38265 PR ubsan/64741
38266 * ubsan.c (ubsan_source_location): Refactor code.
38267 (ubsan_type_descriptor): Update type size. Refactor code.
38268
38269 2015-01-27 Richard Biener <rguenther@suse.de>
38270
38271 PR tree-optimization/56273
38272 PR tree-optimization/59124
38273 PR tree-optimization/64277
38274 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38275 from the first VRP pass.
38276
38277 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38278
38279 PR ipa/64776
38280 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38281 handle the first argument in the same loop as all the other arguments.
38282
38283 PR rtl-optimization/61058
38284 * jump.c (cleanup_barriers): Update basic block boundaries
38285 if BLOCK_FOR_INSN is non-NULL on PREV.
38286
38287 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38288
38289 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38290 bounds narrowing, already instrumented calls and calls to
38291 not instrumentable functions.
38292
38293 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38294
38295 PR tree-optimization/64807
38296 * wide-int.cc (wi::divmod_internal): Clear
38297 b_dividend[dividend_blocks_needed].
38298
38299 2015-01-26 DJ Delorie <dj@redhat.com>
38300
38301 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38302 volatile memory references.
38303
38304 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38305
38306 PR target/49263
38307 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38308 remove_insn.
38309 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38310 shifts if it already fits into K08.
38311
38312 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38313
38314 PR ipa/64730
38315 * ipa-inline.c (inline_small_functions): Print "unknown" even
38316 if edge->call_stmt is non-NULL, but has builtins or unknown
38317 location.
38318
38319 PR middle-end/64421
38320 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38321 with asterisk, skip the first character.
38322
38323 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38324
38325 PR target/64806
38326 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38327 order change.
38328
38329 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38330
38331 PR target/64795
38332 * config/i386/i386.md (*movdi_internal): Also check operand 0
38333 to determine TYPE_LEA operand.
38334 (*movsi_internal): Ditto.
38335
38336 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38337
38338 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38339 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38340
38341 2015-01-26 Renlin Li <renlin.li@arm.com>
38342
38343 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38344 the comment.
38345 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38346 for higher part.
38347
38348 2015-01-26 Richard Biener <rguenther@suse.de>
38349
38350 PR middle-end/64764
38351 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38352 combining two BIT_AND_EXPR predicates.
38353
38354 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38355
38356 PR bootstrap/64754
38357 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38358
38359 2015-01-26 Terry Guo <terry.guo@arm.com>
38360
38361 * config/arm/arm.c (arm_file_start): Update the assignment of
38362 Tag_ABI_HardFP_use.
38363
38364 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
38365
38366 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38367 pipeline model.
38368 config/arm/arm.md: Include the new Cortex-A57 model.
38369 (generic_sched): Don't use generic_sched when tuning for
38370 Cortex-A57.
38371
38372 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
38373 Uros Bizjak <ubizjak@gmail.com>
38374
38375 * config/i386/i386.c (get_builtin_code_for_version): Add
38376 support for BMI and BMI2 multiversion functions.
38377
38378 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38379
38380 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38381 (extract_bit_field): Likewise.
38382 (extract_low_bits): Likewise.
38383 (expand_mult): Likewise.
38384 (expand_mult_highpart_adjust): Likewise.
38385
38386 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
38387
38388 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38389 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38390 * config/i386/i386.c (processor_model): Add
38391 M_INTEL_COREI7_BROADWELL.
38392 (arch_names_table): Add "broadwell".
38393
38394 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
38395
38396 PR target/49263
38397 PR target/53987
38398 PR target/64345
38399 PR target/59533
38400 PR target/52933
38401 PR target/54236
38402 PR target/51244
38403 * config/sh/sh-protos.h
38404 (sh_extending_set_of_reg::can_use_as_unextended_reg,
38405 sh_extending_set_of_reg::use_as_unextended_reg,
38406 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38407 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38408 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38409 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38410 (sh_treg_insns): New class.
38411 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38412 (scope_counter): New class.
38413 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38414 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38415 sh_extending_set_of_reg::can_use_as_unextended_reg,
38416 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38417 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38418 sh_split_treg_set_expr): New functions.
38419 (addsubcosts): Handle treg_set_expr.
38420 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38421 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38422 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38423 (sh_insn_operands_modified_between_p): Make non-static.
38424 * config/sh/predicates.md (zero_extend_movu_operand): Allow
38425 simple_mem_operand in addition to displacement_mem_operand.
38426 (zero_extend_operand): Don't allow zero_extend_movu_operand.
38427 (treg_set_expr, treg_set_expr_not_const01,
38428 arith_reg_or_treg_set_expr): New predicates.
38429 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38430 arith_or_int_operand instead of logical_operand. Convert to
38431 insn_and_split. Try to optimize constant operand in splitter.
38432 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
38433 (*tstqi_t_zero): Delete.
38434 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38435 (tstsi_t_and_not): Delete.
38436 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38437 Convert to insn_and_split.
38438 (unnamed split, tstsi_t_zero_extract_xor,
38439 tstsi_t_zero_extract_subreg_xor_little,
38440 tstsi_t_zero_extract_subreg_xor_big): Delete.
38441 (*tstsi_t_shift_mask): New insn_and_split.
38442 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38443 to recombine with surrounding insns when splitting.
38444 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38445 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38446 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38447 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38448 (*cbranch_div0s: Delete.
38449 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38450 Try to recombine with surrounding insns when splitting. Add operand
38451 order variants.
38452 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38453 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38454 *addc_r_r_msb, *addc_2r_msb): Delete.
38455 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
38456 order variant.
38457 (*addc_negreg_t): New insn_and_split.
38458 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38459 Try to recombine with surrounding insns when splitting.
38460 Add operand order variants.
38461 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38462 insn_and_split patterns.
38463 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
38464 surrounding insns when splitting.
38465 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38466 (*rotcl): Likewise. Add zero_extract variant.
38467 (*ashrsi2_31): New insn_and_split.
38468 (*negc): Convert to insn_and_split. Use treg_set_expr.
38469 (*zero_extend<mode>si2_disp_mem): Update comment.
38470 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38471 condition.
38472 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
38473 with surrounding insns when splitting.
38474 (any_treg_expr_to_reg): New insn_and_split.
38475 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38476 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38477 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38478 *zero_extract_2): New single bit zero extract patterns.
38479 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38480 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38481 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38482 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38483 set destination.
38484 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38485 register_operand for set source.
38486
38487 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
38488
38489 * i386.opt (prefetch_sse): New targetsave.
38490 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38491 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38492 ix86_cost/ix86_tune_cost.
38493
38494 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38495
38496 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38497 Support the JIT by using 0 as the language type.
38498
38499 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38500
38501 PR target/64317
38502 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38503 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38504 (mark_regno_live, process_bb_lives): Pass new parameter value to
38505 make_hard_regno_born.
38506
38507 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38508
38509 PR rtl-optimization/63637
38510 PR rtl-optimization/60663
38511 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38512 if elt->cost is MAX_COST for ASM_OPERANDS.
38513 (find_sets_in_insn): Fix up comment typo.
38514 (cse_insn): Don't set src_volatile for all non-volatile
38515 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38516 or with "memory" clobber. Set elt->cost to MAX_COST
38517 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38518 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38519
38520 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38521
38522 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38523 alternative 1.
38524
38525 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38526
38527 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38528 libgcc/config/i386/elf-lib.h.
38529
38530 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38531
38532 PR driver/64737
38533 * gcc.c (print_configuration): Don't print a blank line at the end
38534 here...
38535 (run_attempt): ... but here unstead.
38536
38537 PR middle-end/64734
38538 * omp-low.c (scan_sharing_clauses): Don't ignore
38539 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38540 on target data/update constructs.
38541
38542 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38543
38544 PR target/50928
38545 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38546 (DEBUG_RELOAD): Removed define.
38547 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38548 (m32c_function_arg): Added a type cast.
38549 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38550 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38551 * config/m32c/bitops.md (andqi3_16): Likewise.
38552 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38553 (push_a01_l): Likewise.
38554
38555 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38556
38557 PR jit/64721
38558 * main.c (main): Construct toplev instances with init_signals=true.
38559 * toplev.c (general_init): Add param "init_signals", and use it to
38560 conditionalize the calls to signal and host_hooks.extra_signals.
38561 (toplev::toplev): Add param "init_signals".
38562 (toplev::main): When invoking general_init, pass m_init_signals
38563 to control whether signal-handlers are installed.
38564 * toplev.h (toplev::toplev): Add param "init_signals".
38565 (toplev::m_init_signals): New field.
38566
38567 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38568
38569 PR jit/64722
38570 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38571 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38572 latter may be affected by the former (e.g. on i686).
38573
38574 2015-01-23 Martin Liska <mliska@suse.cz>
38575
38576 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38577 false positive during profiledbootstrap.
38578
38579 2015-01-23 Tom de Vries <tom@codesourcery.com>
38580
38581 PR libgomp/64672
38582 * lto-opts.c (lto_write_options): Output non-explicit conservative
38583 -fno-openacc.
38584 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38585 (append_compiler_options): Pass -fopenacc through.
38586
38587 2015-01-23 Tom de Vries <tom@codesourcery.com>
38588
38589 PR libgomp/64707
38590 * lto-opts.c (lto_write_options): Output non-explicit conservative
38591 -fno-openmp.
38592 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38593 (append_compiler_options): Pass -fopenmp through.
38594
38595 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38596
38597 PR debug/64511
38598 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38599 GTY markup.
38600
38601 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38602 * diagnostic.def (DK_ICE_NOBT): New kind.
38603 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38604 like DK_ICE, but never print backtrace.
38605 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38606 (internal_error_no_backtrace): New function.
38607 * gcc.c (execute): Use internal_error_no_backtrace instead of
38608 internal_error.
38609
38610 2015-01-22 Jeff Law <law@redhat.com>
38611
38612 PR target/52076
38613 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38614 improve code density for small immediate to memory case.
38615 (insv): Better handle bitfield assignments when the field is
38616 being set to all ones.
38617 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38618 operand predicate.
38619
38620 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38621 Jakub Jelinek <jakub@redhat.com>
38622
38623 PR middle-end/64729
38624 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38625 for !TARGET_LIBC_PROVIDES_SSP version and
38626 -fstack-protector-{all,strong,explicit} otherwise.
38627 * config/freebsd.h (LINK_SSP_SPEC): Handle
38628 -fstack-protector-{strong,explicit}.
38629
38630 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38631 H.J. Lu <hongjiu.lu@intel.com>
38632
38633 PR ipa/64694
38634 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38635 heap.
38636
38637 2015-01-22 Wei Mi <wmi@google.com>
38638
38639 PR rtl-optimization/64557
38640 * dse.c (record_store): Call get_addr for mem_addr.
38641 (check_mem_read_rtx): Likewise.
38642
38643 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38644
38645 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38646
38647 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38648
38649 * toplev.c (init_local_tick): Process the failure when read
38650 fails for random_seed.
38651
38652 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38653 'pretty_name' to avoid memory overflow.
38654
38655 2015-01-22 Richard Biener <rguenther@suse.de>
38656
38657 PR middle-end/64728
38658 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38659 abnormal coalescing on undefined SSA names.
38660
38661 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38662
38663 PR target/64688
38664 PR target/64477
38665 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38666 for alternative 3.
38667 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38668
38669 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38670
38671 PR middle-end/63325
38672 * fold-const.c (fold_checksum_tree): Don't include value of
38673 expr->decl_with_vis.symtab_node in the checksum.
38674
38675 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38676
38677 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38678
38679 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38680
38681 PR driver/64690
38682 * gcc.c (insert_comments): New function.
38683 (try_generate_repro): Call it.
38684 (append_text): Removed.
38685
38686 2015-01-22 Richard Biener <rguenther@suse.de>
38687
38688 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38689 with IL incompatible options. Properly honor user optimize
38690 attributes.
38691
38692 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38693
38694 PR rtl-optimization/64682
38695 * combine.c (distribute_notes): When moving a death note for
38696 a register that is set in the new I2, make sure to put it
38697 before that new I2.
38698
38699 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38700
38701 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38702 not TARGET_DEFAULT.
38703
38704 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38705
38706 PR debug/64511
38707 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38708 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38709 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38710
38711 PR sanitizer/64706
38712 * doc/invoke.texi (-fsanitize=vptr): Document.
38713
38714 PR rtl-optimization/62078
38715 * dse.c: Include cfgcleanup.h.
38716 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38717 anything call purge_all_dead_edges and cleanup_cfg at the end
38718 of the pass.
38719
38720 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38721
38722 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38723 edges.
38724
38725 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38726
38727 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38728 decl attribute.
38729
38730 2015-01-21 David Sherwood <david.sherwood@arm.com>
38731 Tejas Belagod <Tejas.Belagod@arm.com>
38732
38733 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38734 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38735 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38736 Removed.
38737
38738 2015-01-21 David Sherwood <david.sherwood@arm.com>
38739 Tejas Belagod <Tejas.Belagod@arm.com>
38740
38741 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38742 (aarch64_reverse_mask): New decls.
38743 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38744 (insn_count): New mode_attr.
38745 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38746 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38747 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38748 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38749 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38750 (aarch64_simd_st4): New patterns.
38751 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38752 (aarch64_reverse_mask): New functions.
38753
38754 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38755
38756 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38757 Declare.
38758 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38759 addressing modes for BE.
38760 (aarch64_print_operand): Add 'R' specifier.
38761 (aarch64_simd_disambiguate_copy): Delete.
38762 (aarch64_simd_emit_reg_reg_move): New function.
38763 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38764 in define_splits for structural moves.
38765 (mov<mode>): Use less restrictive predicates.
38766 (*aarch64_mov<mode>): Simplify and only allow for LE.
38767 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38768
38769 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38770
38771 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38772
38773 2015-01-21 Richard Henderson <rth@redhat.com>
38774
38775 PR target/64669
38776 * ccmp.c (used_in_cond_stmt_p): Remove.
38777 (expand_ccmp_expr): Don't use it.
38778
38779 2015-01-21 Nick Clifton <nickc@redhat.com>
38780
38781 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38782 PARALLELs.
38783
38784 2015-01-21 Richard Biener <rguenther@suse.de>
38785
38786 PR middle-end/64313
38787 * tree-core.h (builtin_info, builtin_info_type): Turn from
38788 an object with two arrays into an array of an object with
38789 decl and two flags, implicit_p and declared_p.
38790 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38791 set_builtin_decl, set_builtin_decl_implicit_p,
38792 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38793 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38794 * builtins.c (builtin_info): Adjust.
38795 * gimplify.c (gimplify_addr_expr): References to builtins
38796 that have been declared by the user makes them eligible for
38797 use by the compiler. Call set_builtin_decl_implicit_p on them.
38798
38799 2015-01-20 Jeff Law <law@redhat.com>
38800
38801 PR target/59946
38802 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38803 allow pc-relative addresses in operand predicates or constraints.
38804
38805 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38806
38807 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38808 neon on aarch32 processors for stringops.
38809
38810 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38811
38812 PR ipa/63576
38813 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38814
38815 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38816
38817 PR lto/45375
38818 * ipa-inline.c: Include lto-streamer.h
38819 (report_inline_failed_reason): Output source file differences and
38820 flags on optimization/target node mismatch.
38821 (can_inline_edge_p): Consider caller to be the outer inline function;
38822 be less restrictive about matching opimize and optimize_size attributes.
38823 (inline_account_function_p): Break out from ...
38824 (inline_small_functions): ... here.
38825 * ipa-inline-transform.c (clone_inlined_nodes): Use
38826 inline_account_function_p.
38827 (inline_call): Use optimize attribution; use inline_account_function_p.
38828 (inline_transform): Use opt_for_fn.
38829 * ipa-inline.h (inline_account_function_p): Declare.
38830
38831 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38832
38833 PR debug/64663
38834 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38835 mode if bitsize <= 0.
38836 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38837 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38838 sizes and positions.
38839
38840 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38841
38842 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38843 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38844 needed.
38845 (TARGET_ASM_FILE_END): Define.
38846
38847 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38848
38849 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38850 (struct tune_params): Use the enum.
38851 * arm.c (arm_*_tune): Update.
38852 (arm_option_override): Update.
38853
38854 2015-01-20 Richard Biener <rguenther@suse.de>
38855
38856 PR ipa/64684
38857 * ipa-reference.c (add_static_var): Inline ...
38858 (analyze_function): ... here after splitting out from ...
38859 (is_proper_for_analysis): ... this.
38860
38861 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38862
38863 PR target/64149
38864 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38865 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38866 replace the conditional with it's true branch.
38867 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38868 (arm_lra_p): Remove.
38869
38870 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38871
38872 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38873
38874 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38875
38876 * config/tilegx/mul-tables.c: Move symtab.h include after
38877 coretypes.h include.
38878 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38879 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38880 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38881 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38882 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38883
38884 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38885
38886 PR bootstrap/64676
38887 Revert:
38888 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38889
38890 PR rtl-optimization/64081
38891 * loop-iv.c (def_pred_latch_p): New function.
38892 (latch_dominating_def): Allow specific cases with non-single
38893 definitions.
38894 (iv_get_reaching_def): Likewise.
38895 (check_complex_exit_p): New function.
38896 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38897 with exits not executing on any iteration.
38898
38899 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38900
38901 PR lto/45375
38902 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38903 to set branch cost.
38904
38905 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38906
38907 PR lto/45375
38908 * i386.c (gate): Check flag_expensive_optimizations and
38909 optimize_size.
38910 (ix86_option_override_internal): Drop optimize_size condition
38911 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38912 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38913 MASK_PREFER_AVX128.
38914 (ix86_avx256_split_vector_move_misalign,
38915 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38916 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38917 optimize_insn_for_speed_p check.
38918
38919 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38920
38921 * config/mips/mips.h (FP_ASM_SPEC): New define.
38922 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38923 instead.
38924
38925 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38926
38927 PR target/53988
38928 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38929 nullptr for insn when reaching the first insn.
38930 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38931 (sh_insn_operands_modified_between_p): Add nullptr check.
38932 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38933 sign extending mem load if the insn contains any UNSPEC or
38934 UNSPEC_VOLATILE.
38935
38936 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38937
38938 * params.def (inline-unit-growth): Drop to 15%.
38939 * invoke.texi (inline-unit-growth): Document change.
38940
38941 2015-01-19 Martin Liska <mliska@suse.cz>
38942
38943 PR ipa/64668
38944 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38945 function for second argument of OBJ_TYPE_REF.
38946
38947 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38948
38949 PR ipa/64218
38950 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38951 whether function is an alias.
38952
38953 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38954
38955 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38956 cases.
38957
38958 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38959
38960 PR rtl-optimization/64671
38961 * lra-remat.c (operand_to_remat): Don't consider jump and call
38962 insns.
38963
38964 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38965
38966 PR target/59828
38967 * config/rs6000/default64.h: Include rs6000-cpus.def.
38968 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38969 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38970 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38971 and POWER8.
38972 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38973 POWER8.
38974 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38975 pseudo-op to specify assembler dialect.
38976
38977 2015-01-19 Martin Liska <mliska@suse.cz>
38978
38979 PR ipa/64664
38980 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38981 Handle safe potentially removed nodes during filtering.
38982
38983 2015-01-19 Martin Liska <mliska@suse.cz>
38984
38985 * doc/extend.texi (no_icf): Add new attribute description.
38986 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38987 where the pass attempts to merge a function with no_icf attribute.
38988
38989 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38990
38991 PR target/64532
38992 * doc/md.texi (ARM Options): Document register constraints.
38993
38994 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38995 Andrew Pinski <apinski@cavium.com>
38996
38997 PR target/64304
38998 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38999 (ashl<mode>3): Don't expand if operands[2] is not constant.
39000
39001 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39002
39003 PR target/64448
39004 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39005 Match xor-and-xor RTL pattern.
39006
39007 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39008
39009 PR rtl-optimization/64081
39010 * loop-iv.c (def_pred_latch_p): New function.
39011 (latch_dominating_def): Allow specific cases with non-single
39012 definitions.
39013 (iv_get_reaching_def): Likewise.
39014 (check_complex_exit_p): New function.
39015 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39016 with exits not executing on any iteration.
39017
39018 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39019
39020 * common.opt (fgraphite): Fix a typo.
39021
39022 2015-01-19 Felix Yang <felix.yang@huawei.com>
39023
39024 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39025 pattern.
39026 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39027 uminp, smax_nanp, smin_nanp): New builtins.
39028 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39029 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39030 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39031 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39032 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39033 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39034 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39035 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39036 vpminnms_f32): Rewrite using builtin functions.
39037
39038 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39039
39040 PR libgomp/64625
39041 * omp-low.c (offload_symbol_decl): Remove variable.
39042 (get_offload_symbol_decl): Remove function.
39043 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39044 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39045 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39046 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39047 BUILT_IN_GOACC_UPDATE don't pass it at all.
39048
39049 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39050
39051 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39052 callers.
39053
39054 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39055
39056 * ipa-chkp.c (chkp_produce_thunks): Add early param
39057 to split thunks production into two passes. Keep
39058 'always_inline' function bodies after the first pass.
39059 (pass_data_ipa_chkp_early_produce_thunks): New.
39060 (pass_ipa_chkp_early_produce_thunks): New.
39061 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39062 chkp_produce_thunks signature.
39063 (make_pass_ipa_chkp_early_produce_thunks): New.
39064 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39065 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39066 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39067
39068 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39069
39070 * cgraph.c (cgraph_node::dump): Dump profile flags.
39071
39072 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39073
39074 PR target/64652
39075 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39076 reg appear first in the parallel.
39077
39078 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39079
39080 * ipa-reference.c (set_reference_optimization_summary,
39081 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39082 disabled.
39083 (ignore_module_statics): New static var.
39084 (propagate_bits): If ipa-reference is disabled, do not look into local
39085 properties.
39086 (analyze_function): Disable analysis when ipa_reference is disabled.
39087 (generate_summary): Do not dump when reference is disabled;
39088 collect vars accessed from functions with ipa-reference disabled.
39089 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39090 node flags.
39091 (gate): Enable for LTO.
39092 (ignore_edge_p): New function.
39093 (propagate): Skip functions w/o ipa-reference analysis.
39094 * optc-save-gen.awk: Handle optimize_debug correctly.
39095 * opth-gen.awk: Likewise.
39096 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39097 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39098 fira-share-save-slots, fira-share-spill-slots,
39099 fmodulo-sched-allow-regmoves, fpartial-inlining,
39100 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39101 ftracer, ftree-parallelize-loops, fassociative-math,
39102 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39103 Optimization
39104 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39105 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39106 Optimization.
39107 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39108 Fix for IPA.
39109
39110 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39111
39112 PR ipa/64378
39113 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39114 flag correctly.
39115 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39116
39117 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39118
39119 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39120 Remove duplicate option listings.
39121
39122 2015-01-18 Felix Yang <felix.yang@huawei.com>
39123
39124 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39125 (autofdo_source_profile::get_callsite_total_count,
39126 function_instance::get_function_instance_by_decl,
39127 string_table::get_index, string_table::get_index_by_decl,
39128 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39129 Fix comment typos. Reformatting and minor code rearrangement.
39130
39131 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39132
39133 * config/rs6000/rs6000.md (probe_stack): Delete.
39134 (probe_stack_address): New.
39135
39136 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39137
39138 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39139 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39140
39141 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39142
39143 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39144 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
39145 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
39146 snafu.
39147 (rs6000_libcall_value): Use the new function.
39148
39149 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
39150
39151 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39152
39153 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
39154
39155 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39156 implement a more precise life analysis for it during backward scan.
39157
39158 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
39159
39160 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39161
39162 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
39163
39164 PR rtl-optimization/52773
39165 * calls.c (emit_library_call_value): When pushing arguments use
39166 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39167 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
39168 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39169
39170 2015-01-17 Jeff Law <law@redhat.com>
39171
39172 PR rtl-optimization/32790
39173 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39174 not ZERO_EXTEND in SET_DESTs.
39175
39176 2015-01-17 Alan Modra <amodra@gmail.com>
39177
39178 * cprop.c (do_local_cprop): Revert last change.
39179
39180 2015-01-16 DJ Delorie <dj@redhat.com>
39181 Nick Clifton <nickc@redhat.com>
39182
39183 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39184 (addhi3_real): Likewise. Fix [HL+0] syntax.
39185 (subqi3_real): Likewise.
39186 (subhi3_real): Likewise.
39187 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39188 (cbranchhi4_real): Likewise.
39189 (cbranchhi4_real_inverted): Likewise.
39190 (cbranchsi4_real_lt): Likewise.
39191 (cbranchsi4_real_ge): Likewise.
39192 (cbranchsi4_real_ge): Likewise.
39193 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39194 (sub<mode>3_virt): Likewise.
39195 (cbranchqi4_virt): Likewise.
39196 (cbranchhi4_virt): Likewise.
39197 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39198 always use '[reg+imm]' even when imm is zero.
39199 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39200 (rl78_general_operand): New.
39201 (rl78_nonimmediate_operand): New.
39202 (rl78_nonfar_operand): Use them.
39203 (rl78_nonfar_nonimm_operand): Likewise.
39204 (rl78_stack_based_mem): Fix.
39205 * config/rl78/constraints.md (Ibqi): New.
39206 (IBqi): New.
39207 (Wsa): New.
39208 (Wsf): New.
39209 (Cs1): Fix.
39210 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39211 (iorqi3): Likewise.
39212 (xorqi3): Likewise.
39213 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39214
39215 * config/rl78/constrains (Qs8): New constraint.
39216 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39217 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39218 * config/rl78/rl78-real.md (update_Z): New attribute.
39219 Update patterns to set it.
39220 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39221 shorter compare and branch sequence can be used.
39222 (cbranchhi4_real): Likewise.
39223 (cbranchhi4_real_inverted): Likewise.
39224
39225 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39226 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39227 address space.
39228 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39229 (rl78_option_override): Allow -mes0 only if C.
39230 (characterize_address): Support subregs of symbol_refs.
39231 (rl78_addr_space_address_mode): Move. Add __near.
39232 (rl78_far_p): Likewise.
39233 (rl78_addr_space_pointer_mode): Likewise.
39234 (rl78_as_legitimate_address): Likewise.
39235 (rl78_addr_space_subset_p): Likewise.
39236 (rl78_addr_space_convert): Likewise.
39237 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39238 symbols with -mes0.
39239 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39240 addressing.
39241 (rl78_alloc_physical_registers_op1): Change logic to prefer
39242 symbol[BC] addressing.
39243 (frodata_section): New.
39244 (rl78_asm_init_sections): Initialize it.
39245 (rl78_select_section): Put __far readonly symbols in .frodata.
39246 (rl78_make_type_far): New.
39247 (rl78_insert_attributes): Force all readonly symbols to be
39248 __far when -mes0.
39249 (rl78_asm_out_integer): New.
39250 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39251 * config/rl78/rl78.opt (-mes0): New.
39252
39253 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39254 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39255 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39256 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39257 (rl78_saddr_p): New.
39258 (rl78_output_aligned_common): New.
39259 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39260 (rl78_handle_saddr_attribute): New.
39261 (rl78_handle_naked_attribute): New.
39262 (rl78_attribute_table): Add saddr.
39263 (rl78_print_operand_1): Don't print '!' on saddr operands.
39264 (rl78_print_operand_1): Strip encodings.
39265 (rl78_sfr_p): New.
39266 (rl78_strip_name_encoding): New.
39267 (rl78_attrlist_to_encoding): New.
39268 (rl78_encode_section_info): New.
39269 (rl78_asm_init_sections): New.
39270 (rl78_select_section): New.
39271 (rl78_output_labelref): New.
39272 (rl78_output_aligned_common): New.
39273 (rl78_asm_out_integer): New.
39274 (rl78_asm_ctor_dtor): New.
39275 (rl78_asm_constructor): New.
39276 (rl78_asm_destructor): New.
39277
39278 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39279 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39280 (transcode_memory_rtx): Update.
39281 (rl78_expand_epilogue): Use A_REG instead of 0.
39282
39283 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39284
39285 * config/arm/arm-protos.h (struct tune_params): New field
39286 sched_autopref_queue_depth.
39287 * config/arm/arm.c (sched-int.h): Include header.
39288 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39289 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39290 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39291 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39292 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39293 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39294 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39295 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39296 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39297 * config/arm/t-arm (arm.o): Update.
39298 * haifa-sched.c (update_insn_after_change): Update.
39299 (rank_for_schedule): Use auto-prefetcher model, if requested.
39300 (autopref_multipass_init): New static function.
39301 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39302 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39303 variable for debug dumps.
39304 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39305 (autopref_multipass_dfa_lookahead_guard): New global function that
39306 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39307 (init_h_i_d): Update.
39308 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39309 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39310 (autopref_multipass_data_): Structure for auto-prefetcher data.
39311 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39312 (struct _haifa_insn_data:autopref_multipass_data): New field.
39313 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39314 (autopref_multipass_dfa_lookahead_guard): Declare.
39315
39316 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39317
39318 * rtlanal.c (get_base_term): Handle SCRATCH.
39319
39320 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39321
39322 * config/aarch64/aarch64.c
39323 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39324 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39325 * config/arm/arm.c
39326 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39327 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39328
39329 2015-01-17 Alan Modra <amodra@gmail.com>
39330
39331 * cprop.c (do_local_cprop): Disallow replacement of fixed
39332 hard registers.
39333
39334 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39335
39336 PR target/62066
39337 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39338 early return 0.
39339
39340 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39341
39342 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39343 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39344
39345 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39346
39347 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39348 * config/arm/thumb1.md: ... Here.
39349
39350 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39351
39352 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39353 TImode for TARGET_32BIT.
39354
39355 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39356
39357 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39358 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39359 as ...
39360 (rs6000_abi_word_mode): New function.
39361
39362 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39363
39364 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39365 instead of UNITS_PER_WORD to describe the size of stack slots.
39366
39367 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39368
39369 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39370 as rs6000_promote_function_mode. Move comment to there.
39371 (rs6000_promote_function_mode): New function.
39372
39373 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39374
39375 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39376 -mpowerpc64 is active.
39377
39378 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39379
39380 PR middle-end/64353
39381 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39382 virtuals on start.
39383
39384 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39385
39386 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39387 introduced in revision 219724.
39388
39389 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39390 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39391
39392 PR target/64263
39393 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39394 destination is not a GP reg.
39395 (*movdi_aarch64): Likewise.
39396
39397 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
39398
39399 PR target/64623
39400 * config/rs6000/default64.h: Revert ISA change.
39401
39402 2015-01-16 Richard Biener <rguenther@suse.de>
39403
39404 PR middle-end/64614
39405 * tree-ssa-uninit.c: Include tree-cfg.h.
39406 (MAX_SWITCH_CASES): New define.
39407 (convert_control_dep_chain_into_preds): Handle switch statements.
39408 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39409 (normalize_one_pred_1): Do not split bit-manipulations.
39410 Record (x & CST).
39411
39412 2015-01-16 Richard Biener <rguenther@suse.de>
39413
39414 PR tree-optimization/64568
39415 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39416 complex load rewriting for TARGET_MEM_REFs.
39417
39418 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
39419
39420 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39421
39422 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
39423
39424 PR target/64149
39425 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39426 variable.
39427 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39428 (aarch64_lra_p): Remove.
39429
39430 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39431
39432 PR target/64363
39433 * ipa-chkp.h (chkp_instrumentable_p): New.
39434 * ipa-chkp.c: Include tree-inline.h.
39435 (chkp_instrumentable_p): New.
39436 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39437 Fix processing of not instrumentable functions.
39438 (chkp_versioning): Use chkp_instrumentable_p. Warn about
39439 not instrumentable functions.
39440 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39441 chkp_instrumentable_p.
39442 * tree-inline.h (copy_forbidden): New.
39443 * tree-inline.c (copy_forbidden): Not static anymore.
39444
39445 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39446
39447 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39448 ptr1, ptr2 unused.
39449
39450 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39451
39452 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39453 type OP_OUT to OP_INOUT.
39454
39455 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39456
39457 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39458 (high x) y) to y if x and y have the same base.
39459
39460 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39461
39462 * config/arm/cortex-a57.md: New.
39463 * config/aarch64/aarch64.md: Include it.
39464 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39465 * config/aarch64/aarch64-tune.md: Regenerate.
39466
39467 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
39468
39469 PR target/64015
39470 * ccmp.c (expand_ccmp_next): New function.
39471 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39472 and compare insn sequence.
39473 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39474 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39475 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39476 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39477 (*ccmp_ior): Changed to ccmp_ior<mode>.
39478 (cmp<mode>): New pattern.
39479 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39480 parameters.
39481 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39482
39483 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
39484
39485 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39486 _mm256_bsrli_epi128): New.
39487 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39488
39489 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39490
39491 * expmed.c (store_bit_field_using_insv): Improve warning message.
39492 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39493
39494 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39495
39496 PR rtl-optimization/64011
39497 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39498 there is partial overflow.
39499
39500 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39501
39502 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39503 prototype.
39504 (nds32_expand_epilogue_v3pop): Likewise.
39505 * config/nds32/nds32.md (sibcall): Define this for sibling call
39506 optimization.
39507 (sibcall_register): Likewise.
39508 (sibcall_immediate): Likewise.
39509 (sibcall_value): Likewise.
39510 (sibcall_value_register): Likewise.
39511 (sibcall_value_immediate): Likewise.
39512 (sibcall_epilogue): Likewise.
39513 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39514 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39515 (nds32_expand_epilogue_v3pop): Likewise.
39516
39517 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39518
39519 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39520 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39521 (return_internal): New.
39522 (return): Define this named pattern.
39523 (simple_return): Define this named pattern.
39524 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39525 pattern instead of unspec_volatile_func_return.
39526 (nds32_expand_epilogue_v3pop): Likewise.
39527 (nds32_can_use_return_insn): New function.
39528
39529 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39530
39531 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39532 * config/nds32/nds32.md (pop25return): New.
39533 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39534 pop25return pattern.
39535
39536 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39537
39538 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39539 -mforbid-fp-as-gp, and -mex9 options.
39540
39541 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39542
39543 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39544 remove -mgp-direct option.
39545
39546 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39547
39548 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39549 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39550
39551 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39552
39553 * ipa-inline.c (inline_small_functions): Work around hints
39554 cache issue.
39555
39556 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39557
39558 PR target/59710
39559 * doc/invoke.texi (Option Summary): Document new Nios II
39560 -mgpopt= syntax.
39561 (Nios II Options): Likewise.
39562 * config/nios2/nios2.opt: Add -mgpopt= option support.
39563 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39564 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39565 * config/nios2/nios2.c (nios2_option_override): Adjust
39566 -mgpopt defaulting.
39567 (nios2_in_small_data_p): Return true for explicit small data
39568 sections even with -G0.
39569 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39570 option choices.
39571
39572 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39573
39574 PR ipa/64612
39575 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39576 of comdat locals.
39577 (inline_call): Fix removal of aliases.
39578
39579 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39580
39581 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39582 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39583 * opts.c (common_handle_option): Add -fsanitize=vptr.
39584 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39585 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39586 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39587 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39588 (ubsan_expand_vptr_ifn): New prototype.
39589 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39590 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39591 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39592 expand_LOOP_VECTORIZED): Make argument nameless, remove
39593 ATTRIBUTE_UNUSED.
39594 (expand_UBSAN_VPTR): New function.
39595 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39596 in fn spec.
39597 (UBSAN_VPTR): New internal function.
39598 * sanopt.c (tree_map_traits): Renamed to ...
39599 (sanopt_tree_map_traits): ... this.
39600 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39601 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39602 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39603 (maybe_optimize_ubsan_vptr_ifn): New function.
39604 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39605 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39606 -fsanitize=vptr.
39607 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39608 internal calls like pure functions for aliasing, even when they
39609 have other side-effects that prevent making them ECF_PURE.
39610 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39611 (ubsan_expand_vptr_ifn): New function.
39612
39613 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39614
39615 PR rtl-optimization/64110
39616 * stmt.c (parse_output_constraint): Process '^' and '$'.
39617 (parse_input_constraint): Ditto.
39618 * lra-constraints.c (process_alt_operands): Process the new
39619 constraints.
39620 * ira-costs.c (record_reg_classes): Process the new constraint
39621 '^'.
39622 * genoutput.c (indep_constraints): Add '^' and '$'.
39623 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39624 * doc/md.texi: Add description of the new constraints.
39625
39626 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39627 Bernd Schmidt <bernds@codesourcery.com>
39628 Cesar Philippidis <cesar@codesourcery.com>
39629 James Norris <jnorris@codesourcery.com>
39630 Tom de Vries <tom@codesourcery.com>
39631 Ilmir Usmanov <i.usmanov@samsung.com>
39632 Dmitry Bocharnikov <dmitry.b@samsung.com>
39633 Evgeny Gavrin <e.gavrin@samsung.com>
39634 Jakub Jelinek <jakub@redhat.com>
39635
39636 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39637 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39638 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39639 New function types.
39640 * builtins.c: Include "gomp-constants.h".
39641 (expand_builtin_acc_on_device): New function.
39642 (expand_builtin, is_inexpensive_builtin): Handle
39643 BUILT_IN_ACC_ON_DEVICE.
39644 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39645 New macros.
39646 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39647 flag_openmp.
39648 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39649 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39650 i386/intelmic-offload.h.
39651 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39652 to libgomp and its dependencies.
39653 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39654 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39655 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39656 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39657 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39658 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39659 * doc/generic.texi: Update for OpenACC changes.
39660 * doc/gimple.texi: Likewise.
39661 * doc/invoke.texi: Likewise.
39662 * doc/sourcebuild.texi: Likewise.
39663 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39664 GF_OMP_FOR_KIND_OACC_LOOP.
39665 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39666 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39667 GF_OMP_TARGET_KIND_OACC_UPDATE,
39668 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39669 Dump more data.
39670 * gimple.c: Update comments for OpenACC changes.
39671 * gimple.def: Likewise.
39672 * gimple.h: Likewise.
39673 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39674 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39675 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39676 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39677 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39678 appropriate place.
39679 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39680 * gimplify.c: Include "gomp-constants.h".
39681 Update comments for OpenACC changes.
39682 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39683 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39684 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39685 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39686 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39687 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39688 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39689 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39690 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39691 OMP_CLAUSE_SEQ.
39692 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39693 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39694 OMP_CLAUSE_SET_MAP_KIND.
39695 (gimplify_oacc_cache): New function.
39696 (gimplify_omp_for): Handle OACC_LOOP.
39697 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39698 OACC_DATA.
39699 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39700 OACC_EXIT_DATA, OACC_UPDATE.
39701 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39702 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39703 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39704 (gimplify_body): Consider flag_openacc next to flag_openmp.
39705 * lto-streamer-out.c: Include "gomp-constants.h".
39706 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39707 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39708 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39709 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39710 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39711 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39712 * omp-low.c: Include "gomp-constants.h".
39713 Update comments for OpenACC changes.
39714 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39715 members.
39716 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39717 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39718 (create_omp_child_function, scan_omp_for, scan_omp_target)
39719 (check_omp_nesting_restrictions, lower_reduction_clauses)
39720 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39721 Update for OpenACC changes.
39722 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39723 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39724 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39725 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39726 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39727 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39728 OMP_CLAUSE_MAP_*.
39729 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39730 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39731 (expand_omp_target, lower_omp_target): Handle
39732 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39733 GF_OMP_TARGET_KIND_OACC_UPDATE,
39734 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39735 GF_OMP_TARGET_KIND_OACC_DATA.
39736 (pass_expand_omp::execute, execute_lower_omp)
39737 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39738 flag_openmp.
39739 (offload_symbol_decl): New variable.
39740 (oacc_get_reduction_array_id, oacc_max_threads)
39741 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39742 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39743 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39744 (oacc_gimple_assign, oacc_initialize_reduction_data)
39745 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39746 functions.
39747 (is_targetreg_ctx): Remove function.
39748 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39749 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39750 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39751 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39752 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39753 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39754 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39755 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39756 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39757 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39758 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39759 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39760 * tree-core.h: Update comments for OpenACC changes.
39761 (enum omp_clause_map_kind): Remove.
39762 (struct tree_omp_clause): Change type of map_kind member from enum
39763 omp_clause_map_kind to unsigned char.
39764 * tree-inline.c: Update comments for OpenACC changes.
39765 * tree-nested.c: Likewise. Include "gomp-constants.h".
39766 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39767 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39768 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39769 OMP_CLAUSE_SET_MAP_KIND.
39770 * tree-pretty-print.c: Include "gomp-constants.h".
39771 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39772 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39773 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39774 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39775 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39776 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39777 instead of OMP_CLAUSE_MAP_*.
39778 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39779 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39780 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39781 * tree-streamer-in.c: Include "gomp-constants.h".
39782 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39783 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39784 * tree-streamer-out.c: Include "gomp-constants.h".
39785 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39786 OMP_CLAUSE_MAP_*.
39787 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39788 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39789 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39790 * tree.c (omp_clause_num_ops): Update accordingly.
39791 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39792 Likewise.
39793 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39794 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39795 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39796 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39797 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39798 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39799 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39800 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39801 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39802 to flag_openmp.
39803 * config/i386/intelmic-offload.h: New file.
39804 * config/nvptx/offload.h: Likewise.
39805
39806 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39807
39808 * explow.h: Remove duplicate contents.
39809 * dojump.h: Likewise.
39810
39811 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39812
39813 * arm.c (arm_xgene_tune): Add default initializer for instruction
39814 fusion.
39815
39816 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39817
39818 PR ipa/64068
39819 PR ipa/64559
39820 * ipa.c (symbol_table::remove_unreachable_nodes):
39821 Do not put abstract origins into boundary.
39822
39823 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39824
39825 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39826 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39827
39828 2015-01-15 Steve Ellcey <sellcey@mips.com>
39829
39830 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39831 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39832 builtins.def, and chkp-builtins.def.
39833
39834 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39835
39836 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39837 ISA 2.7 (POWER8).
39838
39839 2015-01-15 Richard Biener <rguenther@suse.de>
39840
39841 PR tree-optimization/61743
39842 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39843 information on PHIs for some simple cases.
39844
39845 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39846
39847 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39848 Include xgene1.md.
39849 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39850 * config/arm/arm-cores.def (xgene1): New entry.
39851 * config/arm/arm-tables.opt: Regenerate.
39852 * config/arm/arm-tune.md: Regenerate.
39853 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39854
39855 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39856
39857 * tree-if-conv.c: Include hash-map.h.
39858 (aggressive_if_conv): New variable.
39859 (fold_build_cond_expr): Add simplification of non-zero condition.
39860 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39861 destination block is not always executed.
39862 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39863 than two predecessors if AGGRESSIVE_IF_CONV is true.
39864 (if_convertible_stmt_p): Fix commentary.
39865 (all_preds_critical_p): New function.
39866 (has_pred_critical_p): New function.
39867 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39868 BB can have more than two predecessors and all incoming edges can be
39869 critical.
39870 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39871 to compute predicate for true edge.
39872 (find_phi_replacement_condition): Delete this function.
39873 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39874 Allow interchange PHI arguments if EXTENDED is false.
39875 Change check that block containing reduction statement candidate
39876 is predecessor of phi-block since phi may have more than two arguments.
39877 (phi_args_hash_traits): New helper structure.
39878 (struct phi_args_hash_traits): New type.
39879 (phi_args_hash_traits::hash): New function.
39880 (phi_args_hash_traits::equal_keys): New function.
39881 (gen_phi_arg_condition): New function.
39882 (predicate_scalar_phi): Add handling of phi nodes with more than two
39883 arguments, delete COND and TRUE_BB arguments, insert body of
39884 find_phi_replacement_condition to predicate ordinary phi nodes.
39885 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39886 delete call of find_phi_replacement_condition and invoke
39887 predicate_scalar_phi with two arguments.
39888 (insert_gimplified_predicates): Add assert that non-predicated block
39889 don't have statements to insert.
39890 (ifcvt_split_critical_edges): New function.
39891 (ifcvt_split_def_stmt): Likewise.
39892 (ifcvt_walk_pattern_tree): Likewise.
39893 (stmt_is_root_of_bool_pattern): Likewise.
39894 (ifcvt_repair_bool_pattern): Likewise.
39895 (ifcvt_local_dce): Likewise.
39896 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39897 is copy of inner or outer loop force_vectorize field, invoke
39898 ifcvt_split_critical_edges, ifcvt_local_dce and
39899 ifcvt_repair_bool_pattern for aggressive if-conversion.
39900
39901 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39902
39903 * config/aarch64/aarch64.md: Include xgene1.md.
39904 * config/aarch64/xgene1.md: New file.
39905
39906 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39907
39908 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39909 xgene1 (APM XGene-1) core definition.
39910 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39911 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39912 * doc/invoke.texi: Document -mcpu=xgene1.
39913
39914 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39915
39916 * dojump.h: New header file.
39917 * explow.h: Likewise.
39918 * expr.h: Remove includes.
39919 Move expmed.c prototypes to expmed.h.
39920 Move dojump.c prototypes to dojump.h.
39921 Move alias.c prototypes to alias.h.
39922 Move explow.c prototypes to explow.h.
39923 Move calls.c prototypes to calls.h.
39924 Move emit-rtl.c prototypes to emit-rtl.h.
39925 Move varasm.c prototypes to varasm.h.
39926 Move stmt.c prototypes to stmt.h.
39927 (saved_pending_stack_adjust): Move to dojump.h.
39928 (adjust_address): Move to explow.h.
39929 (adjust_address_nv): Move to emit-rtl.h.
39930 (adjust_bitfield_address): Likewise.
39931 (adjust_bitfield_address_size): Likewise.
39932 (adjust_bitfield_address_nv): Likewise.
39933 (adjust_automodify_address_nv): Likewise.
39934 * explow.c (expr_size): Move to expr.c.
39935 (int_expr_size): Likewise.
39936 (tree_expr_size): Likewise.
39937 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39938 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39939 * genemit.c (main): Generate includes statistics.h, real.h,
39940 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39941 stmt.h.
39942 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39943 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39944 explow.h, emit-rtl.h, stmt.h.
39945 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39946 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39947 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39948 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39949 emit-rtl.h, varasm.h, stmt.h.
39950 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39951 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39952 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39953 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39954 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39955 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39956 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39957 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39958 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39959 tm.h tree.h varasm.h vec.h wide-int.h.
39960 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39961 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39962 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39963 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39964 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39965 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39966 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39967 * loop-iv.c: Likewise.
39968 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39969 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39970 statistics.h stmt.h tree.h varasm.h wide-int.h.
39971 * lra-constraints.c: Likewise.
39972 * lra-eliminations.c: Likewise.
39973 * lra-lives.c: Likewise.
39974 * lra-remat.c: Likewise.
39975 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39976 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39977 statistics.h stmt.h tree.h varasm.h wide-int.h.
39978 * hw-doloop.c: Likewise.
39979 * ira-color.c: Likewise.
39980 * ira-emit.c: Likewise.
39981 * loop-doloop.c: Likewise.
39982 * loop-invariant.c: Likewise.
39983 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39984 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39985 statistics.h stmt.h tree.h varasm.h wide-int.h.
39986 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39987 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39988 statistics.h stmt.h tree.h varasm.h wide-int.h.
39989 * combine-stack-adj.c: Likewise.
39990 * cse.c: Likewise.
39991 * ddg.c: Likewise.
39992 * ifcvt.c: Likewise.
39993 * ira-costs.c: Likewise.
39994 * jump.c: Likewise.
39995 * lra-coalesce.c: Likewise.
39996 * lra-spills.c: Likewise.
39997 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39998 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39999 stmt.h varasm.h wide-int.h.
40000 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40001 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40002 varasm.h.
40003 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40004 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40005 statistics.h stmt.h varasm.h wide-int.h.
40006 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40007 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40008 varasm.h wide-int.h.
40009 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40010 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40011 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40012 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40013 statistics.h stmt.h.
40014 * config/tilepro/tilepro.c: Likewise.
40015 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40016 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40017 * config/pdp11/pdp11.c: Likewise.
40018 * config/xtensa/xtensa.c: Likewise.
40019 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40020 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40021 varasm.h.
40022 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40023 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40024 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40025 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40026 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40027 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40028 * rtl-chkp.c: Likewise.
40029 * tree-chkp-opt.c: Likewise.
40030 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40031 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40032 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40033 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40034 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40035 statistics.h stmt.h.
40036 * tree-vect-data-refs.c: Likewise.
40037 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40038 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40039 rtl.h statistics.h stmt.h varasm.h.
40040 * internal-fn.c: Likewise.
40041 * ipa-icf-gimple.c: Likewise.
40042 * lto-section-out.c: Likewise.
40043 * tree-data-ref.c: Likewise.
40044 * tree-nested.c: Likewise.
40045 * tree-outof-ssa.c: Likewise.
40046 * tree-predcom.c: Likewise.
40047 * tree-pretty-print.c: Likewise.
40048 * tree-scalar-evolution.c: Likewise.
40049 * tree-ssa-strlen.c: Likewise.
40050 * tree-vect-loop.c: Likewise.
40051 * tree-vect-patterns.c: Likewise.
40052 * tree-vect-slp.c: Likewise.
40053 * tree-vect-stmts.c: Likewise.
40054 * tsan.c: Likewise.
40055 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40056 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40057 stmt.h.
40058 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40059 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40060 statistics.h stmt.h varasm.h.
40061 * loop-unroll.c: Likewise.
40062 * ubsan.c: Likewise.
40063 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40064 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40065 stmt.h varasm.h.
40066 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40067 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40068 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40069 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40070 statistics.h stmt.h.
40071 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40072 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40073 statistics.h stmt.h varasm.h.
40074 * gimple-match-head.c: Likewise.
40075 * lto-cgraph.c: Likewise.
40076 * lto-section-in.c: Likewise.
40077 * lto-streamer-in.c: Likewise.
40078 * lto-streamer-out.c: Likewise.
40079 * tree-affine.c: Likewise.
40080 * tree-cfg.c: Likewise.
40081 * tree-cfgcleanup.c: Likewise.
40082 * tree-if-conv.c: Likewise.
40083 * tree-into-ssa.c: Likewise.
40084 * tree-ssa-alias.c: Likewise.
40085 * tree-ssa-copyrename.c: Likewise.
40086 * tree-ssa-dse.c: Likewise.
40087 * tree-ssa-forwprop.c: Likewise.
40088 * tree-ssa-live.c: Likewise.
40089 * tree-ssa-math-opts.c: Likewise.
40090 * tree-ssa-pre.c: Likewise.
40091 * tree-ssa-sccvn.c: Likewise.
40092 * tree-tailcall.c: Likewise.
40093 * tree-vect-generic.c: Likewise.
40094 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40095 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40096 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40097 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40098 * varasm.c: Likewise.
40099 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40100 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40101 varasm.h.
40102 * init-regs.c: Likewise.
40103 * ira.c: Likewise.
40104 * omp-low.c: Likewise.
40105 * stack-ptr-mod.c: Likewise.
40106 * tree-ssa-reassoc.c: Likewise.
40107 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40108 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40109 varasm.h.
40110 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40111 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40112 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40113 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40114 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40115 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40116 * tree-ssa-phiopt.c: Likewise.
40117 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40118 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40119 * config/fr30/fr30.c: Likewise.
40120 * config/frv/frv.c: Likewise.
40121 * expr.c: Likewise.
40122 * final.c: Likewise.
40123 * optabs.c: Likewise.
40124 * passes.c: Likewise.
40125 * simplify-rtx.c: Likewise.
40126 * stmt.c: Likewise.
40127 * toplev.c: Likewise.
40128 * var-tracking.c: Likewise.
40129 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40130 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40131 * lower-subreg.c: Likewise.
40132 * postreload-gcse.c: Likewise.
40133 * ree.c: Likewise.
40134 * reginfo.c: Likewise.
40135 * store-motion.c: Likewise.
40136 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40137 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40138 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40139 fixed-value.h hashtab.h statistics.h stmt.h.
40140 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40141 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40142 * except.c: Likewise.
40143 * explow.c: Likewise.
40144 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40145 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40146 varasm.h.
40147 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40148 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40149 * tree-ssa-structalias.c: Likewise.
40150 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40151 fixed-value.h insn-config.h real.h statistics.h.
40152 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40153 fixed-value.h insn-config.h real.h statistics.h stmt.h.
40154 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40155 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40156 * cfgbuild.c: Likewise.
40157 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40158 fixed-value.h real.h rtl.h statistics.h stmt.h.
40159 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40160 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40161 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40162 fixed-value.h real.h statistics.h stmt.h.
40163 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40164 fixed-value.h real.h statistics.h stmt.h varasm.h.
40165 * cprop.c: Likewise.
40166 * modulo-sched.c: Likewise.
40167 * postreload.c: Likewise.
40168 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40169 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40170 statistics.h stmt.h varasm.h.
40171 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40172 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40173 rtl.h statistics.h stmt.h varasm.h.
40174 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40175 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40176 varasm.h.
40177 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40178 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40179 varasm.h.
40180 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40181 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40182 varasm.h.
40183 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40184 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40185 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40186 function.h real.h statistics.h stmt.h varasm.h.
40187 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40188 insn-config.h real.h statistics.h stmt.h.
40189 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40190 statistics.h stmt.h.
40191 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40192 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40193 statistics.h stmt.h varasm.h.
40194 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40195 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40196 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40197 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40198 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40199 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40200 statistics.h stmt.h varasm.h.
40201 * ipa-polymorphic-call.c: Likewise.
40202 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40203 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40204 statistics.h stmt.h.
40205 * config/c6x/c6x.c: Likewise.
40206 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40207 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40208 statistics.h stmt.h varasm.h.
40209 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40210 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40211 stmt.h varasm.h.
40212 * ipa-split.c: Likewise.
40213 * tree-eh.c: Likewise.
40214 * tree-ssa-dce.c: Likewise.
40215 * tree-ssa-loop-niter.c: Likewise.
40216 * tree-vrp.c: Likewise.
40217 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40218 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40219 stmt.h.
40220 * config/nds32/nds32-fp-as-gp.c: Likewise.
40221 * config/nds32/nds32-intrinsic.c: Likewise.
40222 * config/nds32/nds32-isr.c: Likewise.
40223 * config/nds32/nds32-md-auxiliary.c: Likewise.
40224 * config/nds32/nds32-memory-manipulation.c: Likewise.
40225 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40226 * config/nds32/nds32-predicates.c: Likewise.
40227 * config/nds32/nds32.c: Likewise.
40228 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40229 fixed-value.h hashtab.h real.h statistics.h.
40230 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40231 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40232 * config/arm/arm.c: Likewise.
40233 * config/avr/avr.c: Likewise.
40234 * config/bfin/bfin.c: Likewise.
40235 * config/h8300/h8300.c: Likewise.
40236 * config/i386/i386.c: Likewise.
40237 * config/ia64/ia64.c: Likewise.
40238 * config/iq2000/iq2000.c: Likewise.
40239 * config/m32c/m32c.c: Likewise.
40240 * config/m32r/m32r.c: Likewise.
40241 * config/m68k/m68k.c: Likewise.
40242 * config/mcore/mcore.c: Likewise.
40243 * config/mep/mep.c: Likewise.
40244 * config/mips/mips.c: Likewise.
40245 * config/mn10300/mn10300.c: Likewise.
40246 * config/moxie/moxie.c: Likewise.
40247 * config/pa/pa.c: Likewise.
40248 * config/rl78/rl78.c: Likewise.
40249 * config/rx/rx.c: Likewise.
40250 * config/s390/s390.c: Likewise.
40251 * config/sh/sh.c: Likewise.
40252 * config/sparc/sparc.c: Likewise.
40253 * config/spu/spu.c: Likewise.
40254 * config/stormy16/stormy16.c: Likewise.
40255 * config/v850/v850.c: Likewise.
40256 * config/vax/vax.c: Likewise.
40257 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40258 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40259 * config/msp430/msp430.c: Likewise.
40260 * predict.c: Likewise.
40261 * value-prof.c: Likewise.
40262 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40263 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40264 * config/microblaze/microblaze.c: Likewise.
40265 * config/nios2/nios2.c: Likewise.
40266 * config/rs6000/rs6000.c: Likewise.
40267 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40268 insn-config.h real.h rtl.h statistics.h stmt.h.
40269 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40270 insn-config.h real.h statistics.h stmt.h.
40271 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40272 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40273 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40274 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40275 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40276 fixed-value.h real.h statistics.h stmt.h.
40277 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40278 fixed-value.h statistics.h stmt.h.
40279 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40280 stmt.h.
40281
40282 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40283
40284 * gengtype.c (create_user_defined_type): Workaround
40285 -Wmaybe-uninitialized false positives.
40286 * cse.c (fold_rtx): Likewise.
40287 * loop-invariant.c (gain_for_invariant): Likewise.
40288
40289 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40290
40291 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40292 set the memory attributes in all cases but clear MEM_EXPR if need be.
40293
40294 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40295
40296 PR tree-optimization/64434
40297 * cfgexpand.c (reorder_operands): New function.
40298 (expand_gimple_basic_block): Insert call of reorder_operands if
40299 optimized is true.
40300
40301 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40302
40303 * config/mips/micromips.md (*swp): Remove explicit parallel.
40304 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40305 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40306 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40307 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40308 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40309 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40310 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40311 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40312 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40313 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40314 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40315 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40316 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40317 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40318 (mips_wrdsp): Likewise.
40319 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40320 parallel.
40321 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40322 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40323 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40324 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40325 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40326 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40327 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40328 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40329 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40330
40331 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40332
40333 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40334 (mips_print_operand): Support 'y' to print exact log2 in decimal
40335 of a const_int.
40336 * config/mips/mips.h (ISA_HAS_LSA): New define.
40337 (ISA_HAS_DLSA): Likewise.
40338 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40339 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40340
40341 2015-01-15 Martin Liska <mliska@suse.cz>
40342
40343 PR target/64377
40344 * optc-save-gen.awk: Add support for array types.
40345
40346 2015-01-15 Richard Biener <rguenther@suse.de>
40347
40348 PR middle-end/64365
40349 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40350 for MEM_REF access functions with the same base can never partially
40351 overlap.
40352
40353 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40354
40355 * common.opt: New option -fstack-protector-explicit.
40356 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40357 (stack_protect_decl_phase): Handle stack_protect attribute for
40358 explicit stack protection requests.
40359 (expand_used_vars): Similarly.
40360 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40361 * doc/extend.texi: Add documentation for "stack_protect" attribute.
40362 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40363
40364 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
40365
40366 PR target/53988
40367 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40368 reg-reg copies.
40369 (sh_extending_set_of_reg): New struct.
40370 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40371 sh_remove_reg_dead_or_unused_notes): New Declarations.
40372 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40373 sh_find_extending_set_of_reg, sh_split_tst_subregs,
40374 sh_extending_set_of_reg::use_as_extended_reg): New functions.
40375 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40376 convert to insn_and_split and use new function sh_split_tst_subregs.
40377
40378 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
40379
40380 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40381 option.
40382 (Optimization Options): Move -fuse-ld documentation to...
40383 (Link Options): ...here.
40384
40385 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40386
40387 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40388 offsets.
40389 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40390 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40391 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40392 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40393 instead of ZR for the memory operand of LL/SC.
40394 (compare_and_swap_12, sync_add<mode>): Likewise.
40395 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40396 (sync_new_<optab>_12, sync_nand_12): Likewise.
40397 (sync_old_nand_12, sync_new_nand_12): Likewise.
40398 (sync_sub<mode>, sync_old_add<mode>): Likewise.
40399 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40400 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40401 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40402 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40403 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40404 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40405 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40406 * doc/md.texi (ZC): Update description.
40407
40408 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40409
40410 * builtins.c (expand_builtin_atomic_exchange): Remove error when
40411 memory model is CONSUME.
40412 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40413 expand_builtin_atomic_store): Change invalid memory model errors to
40414 warnings.
40415 (expand_builtin_atomic_clear): Change invalid model errors to warnings
40416 and issue warning for CONSUME.
40417
40418 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
40419
40420 * lto-cgraph: Update function comments for
40421 lto_symtab_encoder_encode_*.
40422
40423 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40424
40425 * Makefile.in (site.exp): Do not set ENABLE_LTO.
40426
40427 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40428
40429 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40430 * lto-cgraph.c (select_what_to_stream): Remove argument, use
40431 lto_stream_offload_p instead.
40432 * lto-streamer.h (select_what_to_stream): Remove argument.
40433 * passes.c (ipa_write_summaries): Likewise.
40434 * tree-pass.h (ipa_write_summaries): Likewise.
40435
40436 2015-01-14 Richard Biener <rguenther@suse.de>
40437
40438 PR tree-optimization/59354
40439 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40440 groups larger than the slp group size as having gaps.
40441
40442 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40443
40444 PR middle-end/59448
40445 * builtins.c (get_memmodel): Promote consume to acquire always.
40446
40447 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40448
40449 PR target/64386
40450 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40451 V32HImode.
40452
40453 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40454
40455 PR target/64393
40456 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40457 Enable AVX512BW.
40458 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40459 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40460 AVX512VBMI, as it implies AVX512BW.
40461
40462 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40463
40464 PR target/64387
40465 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40466 (vec_unpacks_hi_v16sf): Ditto.
40467
40468 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40469
40470 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40471 is not available.
40472
40473 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40474
40475 * doc/invoke.texi (mapcs): Mention deprecation.
40476 (mapcs-frame): Likewise.
40477
40478 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
40479
40480 PR target/64453
40481 * config/arm/arm.c (callee_saved_reg_p): Define.
40482 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40483 register is callee saved instead of !call_used_regs[reg].
40484 (thumb1_compute_save_reg_mask): Likewise.
40485
40486 2015-01-14 Hale Wang <hale.wang@arm.com>
40487
40488 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40489 Cortex-M7.
40490
40491 2015-01-14 Richard Biener <rguenther@suse.de>
40492
40493 PR lto/64415
40494 * tree-inline.c (insert_debug_decl_map): Check destination
40495 function MAY_HAVE_DEBUG_STMTS.
40496 (insert_init_debug_bind): Likewise.
40497 (insert_init_stmt): Remove redundant check.
40498 (remap_gimple_stmt): Drop debug stmts if the destination
40499 function has var-tracking assignments disabled.
40500
40501 2015-01-14 Martin Liska <mliska@suse.cz>
40502
40503 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40504 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40505
40506 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40507
40508 PR target/64460
40509 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40510 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40511
40512 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40513
40514 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40515 level from an ARCH; do not inject the default.
40516 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40517 MIPS_ISA_LEVEL_SPEC.
40518 (MIPS_ISA_NAN2008_SPEC): Update comment.
40519 (BASE_DRIVER_SELF_SPECS): Likewise.
40520 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40521 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40522 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40523 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40524 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40525
40526 2015-01-14 Richard Biener <rguenther@suse.de>
40527
40528 PR tree-optimization/64493
40529 PR tree-optimization/64495
40530 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40531 assign the proper vectorized PHI to the inner loop exit PHIs.
40532
40533 2015-01-14 Joey Ye <joey.ye@arm.com>
40534
40535 * config/arm/arm.c (arm_compute_save_reg_mask):
40536 Do not save lr in case of tail call.
40537 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40538
40539 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40540
40541 * tree-vrp.c (check_array_ref): Emit more warnings
40542 for warn_array_bounds >= 2.
40543 * common.opt: New option -Warray-bounds=.
40544 * doc/invoke.texi: Document -Warray-bounds=.
40545
40546 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40547
40548 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40549 (mforbid-fp-as-gp): Remove.
40550 (mex9): Remove.
40551 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40552 (nds32_symbol_load_store_p): Remove.
40553 (nds32_fp_as_gp_check_available): Clean up implementation.
40554 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40555 cases.
40556 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40557 fp-as-gp and ex9 cases.
40558
40559 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40560
40561 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40562 for bintuils bug 14342.
40563 (init_ic_make_global_vars): Likewise.
40564 (gimple_init_edge_profiler): Likewise.
40565 (gimple_gen_ic_func_profiler): Likewise.
40566
40567 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40568
40569 * ipa-inline.c (inline_small_functions): Swap the operands in
40570 enum.
40571
40572 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40573
40574 PR ipa/64481
40575 * ipa-inline-analysis.c (node_growth_cache): Remove.
40576 (initialize_growth_caches): Do not initialize it.
40577 (free_growth_caches): Do not free it.
40578 (do_estimate_growth): Rename to ...
40579 (estimate_growth): ... this one; drop growth cache code.
40580 (growth_likely_positive): Always go the heuristics way.
40581 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40582 (reset_edge_caches): Do not reset node growth.
40583 (heap_edge_removal_hook): Do not maintain cache.
40584 (inline_small_functions): Likewise; strenghten sanity check.
40585 (ipa_inline): Do not maintain caches.
40586 * ipa-inline.h (node_growth_cache): Remove.
40587 (do_estimate_growth): Remove to ...
40588 (estimate_growth): this one; remove inline version.
40589 (reset_node_growth_cache): Remove.
40590
40591 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40592
40593 PR ipa/64565
40594 * ipa-inline.c (inline_small_functions): Update callee keys after
40595 resolving speculation
40596 (inline_small_functions): Always check monotonicity of the queue.
40597
40598 2015-01-13 Marek Polacek <polacek@redhat.com>
40599
40600 PR middle-end/64391
40601 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40602
40603 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40604
40605 PR rtl-optimization/64286
40606 * ree.c (combine_reaching_defs): Move part of comment earlier,
40607 remove !SCALAR_INT_MODE_P check.
40608 (add_removable_extension): Don't add vector mode
40609 extensions if all uses of the source register aren't the same
40610 vector extensions.
40611
40612 2015-01-13 Renlin Li <renlin.li@arm.com>
40613
40614 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40615 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40616
40617 2015-01-13 Martin Liska <mliska@suse.cz>
40618
40619 * ipa-icf.c (sem_function::equals_private): Call new functions
40620 cl_target_option_print_diff and cl_optimization_print_diff.
40621 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40622 (cl_optimization_print_diff): Likewise.
40623 * opth-gen.awk: Likewise.
40624
40625 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40626
40627 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40628 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40629 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40630 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40631 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40632 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40633
40634 2015-01-13 Andrew Pinski <apinski@cavium.com>
40635
40636 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40637 instead of src mode.
40638
40639 2015-01-13 Richard Biener <rguenther@suse.de>
40640
40641 PR lto/64373
40642 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40643 DECL_CONTEXT.
40644
40645 2015-01-13 Andrew Pinski <apinski@cavium.com>
40646
40647 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40648 volatile mems.
40649 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40650
40651 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40652
40653 PR middle-end/63974
40654 * cfgexpand.c (expand_computed_goto): Don't call
40655 convert_memory_address here.
40656
40657 2015-01-13 Richard Biener <rguenther@suse.de>
40658
40659 PR tree-optimization/64406
40660 * tree-loop-distibution.c (pass_loop_distribution::execute):
40661 Reset the SCEV hashtable if we distributed anything.
40662
40663 2015-01-13 Richard Biener <rguenther@suse.de>
40664
40665 PR tree-optimization/64404
40666 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40667 SLP types for CSEd loads.
40668
40669 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40670
40671 PR tree-optimization/64436
40672 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40673 merge of two symbolic numbers for a bitwise OR to ...
40674 (perform_symbolic_merge): This. Also fix computation of the range and
40675 end of the symbolic number corresponding to the result of a bitwise OR.
40676
40677 2015-01-13 Richard Biener <rguenther@suse.de>
40678
40679 PR tree-optimization/64568
40680 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40681 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40682
40683 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40684
40685 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40686 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40687
40688 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40689
40690 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40691 target-specific symbol_ref flag.
40692 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40693 resides in rodata section.
40694 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40695 (nds32_encode_section_info): New function.
40696
40697 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40698
40699 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40700 clobbers TA_REGNUM if large code model is specified.
40701 (call_register): Likewise.
40702 (call_immediate): Likewise.
40703 (call_value): Likewise.
40704 (call_value_register): Likewise.
40705 (call_value_immediate): Likewise.
40706
40707 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40708
40709 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40710 (TARGET_CMODEL_MEDIUM): New macro.
40711 (TARGET_CMODEL_LARGE): New macro.
40712 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40713 code model setting in assembly code.
40714
40715 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40716
40717 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40718 Remove MASK_GP_DIRECT flag.
40719 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40720 one of the multilib default options.
40721 * config/nds32/nds32.opt (mgp-direct): Remove.
40722 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40723 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40724
40725 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40726
40727 * config/nds32/nds32.opt (mcmodel): Add new option.
40728 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40729 to describe code model.
40730
40731 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40732
40733 PR target/64479
40734 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40735
40736 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40737
40738 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40739 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40740 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40741 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40742 __builtin_sh_set_fpscr.
40743
40744 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40745
40746 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40747 after a funtion name just to indicate it is a function.
40748 ([-fsanitize-undefined-trap-on-error]): Likewise.
40749 ([-fdbg-cnt=]): Likewise.
40750 ([-mmemcpy]): Likewise.
40751 ([-mflush-func]): Likewise.
40752 ([-msynci]): Likewise.
40753
40754 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40755
40756 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40757 example.
40758
40759 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40760
40761 PR tree-optimization/64563
40762 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40763 instead of != VR_VARYING.
40764
40765 PR target/64513
40766 * config/i386/i386.c (ix86_expand_prologue): Add
40767 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40768
40769 PR tree-optimization/64454
40770 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40771 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40772 for signed or [0, op1 - 1] for unsigned modulo.
40773 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40774 even if op1 does not satisfy integer_pow2p.
40775
40776 PR other/64370
40777 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40778
40779 2015-01-12 Jeff Law <law@redhat.com>
40780
40781 PR target/64461
40782 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40783 (trunchiqi2, truncsihi2): Similarly.
40784
40785 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40786 rather than calling F.
40787
40788 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40789
40790 * tsan.c (instrument_expr): Use force_gimple_operand.
40791 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40792
40793 2015-01-12 Richard Biener <rguenther@suse.de>
40794
40795 PR tree-optimization/64530
40796 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40797 back dr1.
40798
40799 2015-01-12 Richard Biener <rguenther@suse.de>
40800
40801 PR middle-end/64357
40802 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40803 latches properly.
40804
40805 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40806
40807 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40808 Cortex-A17 tuning parameters.
40809 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40810
40811 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40812
40813 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40814 * config/arm/arm.c (arm_macro_fusion_p): New function.
40815 (arm_macro_fusion_pair_p): Likewise.
40816 (TARGET_SCHED_MACRO_FUSION_P): Define.
40817 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40818 (ARM_FUSE_NOTHING): Likewise.
40819 (ARM_FUSE_MOVW_MOVT): Likewise.
40820 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40821 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40822 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40823 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40824 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40825 arm_cortex_a5_tune): Specify fuseable_ops value.
40826
40827 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40828
40829 PR bootstrap/64561
40830 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40831 test for PIE with copy reloc.
40832 * configure: Regenerated.
40833
40834 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40835
40836 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40837 in gen_rtx_REG.
40838 (arm_tls_descseq_addr): Likewise.
40839 (arm_gen_movmemqi): Likewise.
40840 (arm_expand_epilogue_apcs_frame): Likewise.
40841 (arm_expand_epilogue): Likewise.
40842 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40843 in gen_rtx_REG.
40844
40845 2015-01-12 Martin Liska <mliska@suse.cz>
40846
40847 PR ipa/64550
40848 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40849 volatility for correct operands.
40850
40851 2015-01-12 Martin Liska <mliska@suse.cz>
40852
40853 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40854 indication that a function is not leaf.
40855 (sem_function::compare_polymorphic_p): Likewise.
40856
40857 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40858
40859 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40860 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40861 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40862 fold-const.h, tree-check.h.
40863
40864 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40865
40866 PR ipa/63967
40867 PR ipa/64425
40868 * ipa-inline.c (compute_uninlined_call_time,
40869 compute_inlined_call_time): Use counts for extra precision when
40870 needed possible.
40871 (big_speedup_p): Fix formating.
40872 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40873 (relative_time_benefit): Remove.
40874 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40875 merge guessed and read profile paths.
40876 (inline_small_functions): Count only !optimize_size functions into
40877 initial size; be more lax about sanity check when profile is used;
40878 be sure to update inlined function profile when profile is read.
40879
40880 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40881
40882 PR ipa/63470
40883 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40884 cost when edge becomes direct.
40885 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40886 is resolved or when introducing new speculation.
40887
40888 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40889
40890 PR ipa/64551
40891 PR ipa/64552
40892 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40893 '||' to fix typo issue.
40894
40895 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40896 accept and return NULL.
40897
40898 2015-01-12 Martin Liska <mliska@suse.cz>
40899
40900 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40901 file for being inlined.
40902 (cgraph_set_edge_callee): Delete.
40903 (cgraph_edge::redirect_callee): Move function to header file
40904 for being inlined.
40905 (cgraph_edge::make_direct): Use new function.
40906 (cgraph_edge::dump_edge_flags): New function created from
40907 static dump_edge_flags function.
40908 (cgraph_node::dump): Use new function.
40909 (cgraph_edge::verify_count_and_frequency): New function created
40910 from verify_edge_count_and_frequency.
40911 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40912 from verify_edge_corresponds_to_fndecl.
40913 (verify_edge_corresponds_to_fndecl): Delete.
40914 (cgraph_node::verify_node): Use new function.
40915 * cgraph.h (cgraph_edge::set_callee): New function.
40916 (cgraph_edge::dump_edge_flags): Likewise.
40917 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40918
40919 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40920
40921 * ipa-utils.c (estimate_function_body_sizes): Do not
40922 free node params when called late with early=true.
40923
40924 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40925
40926 * doc/md.texi (Instruction Patterns): Rewrite text for
40927 clarity.
40928 (Example): Likewise.
40929
40930 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40931
40932 * doc/invoke.texi (Option Summary): Break long lines.
40933 [(-fdiagnostics-color)]: Put long literal in @smallexample
40934 instead of inline.
40935 [(-fsanitize-recover)]: Likewise.
40936 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40937 [(-ffast-math)]: Likewise.
40938 [(--param max-inline-insns-recursive)]: Likewise.
40939 [(--param max-inline-recursive-depth)]: Likewise.
40940 [(-mno-text-section-literals)]: Likewise.
40941
40942 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40943
40944 * doc/install.texi: Update for libgomp being renamed from "GNU
40945 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40946 Runtime Library".
40947 * doc/sourcebuild.texi: Likewise.
40948
40949 2015-01-10 Anthony Green <green@moxielogic.com>
40950
40951 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40952 mul.x availability for moxiebox configuration.
40953
40954 2015-01-09 Anthony Green <green@moxielogic.com>
40955
40956 * config/moxie/moxie.md: Tabify assembly output.
40957
40958 2015-01-09 Anthony Green <green@moxielogic.com>
40959
40960 * config/moxie/moxie.md (CC_REG): Correct register definition.
40961
40962 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40963
40964 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40965 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40966 of log files.
40967
40968 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40969
40970 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40971
40972 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40973 Jakub Jelinek <jakub@redhat.com>
40974
40975 PR middle-end/64412
40976 * lto-streamer.h (lto_stream_offload_p): New declaration.
40977 * lto-streamer.c (lto_stream_offload_p): New variable.
40978 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40979 at the same time as section_name_prefix.
40980 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40981 if lto_stream_offload_p.
40982 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40983 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40984 (write_ts_function_decl_tree_pointers): Don't
40985 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40986 * tree-streamer-in.c (unpack_value_fields): Don't stream
40987 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40988 (lto_input_ts_function_decl_tree_pointers): Don't stream
40989 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40990 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40991 instead of section_name_prefix string comparisons.
40992
40993 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40994
40995 PR rtl-optimization/64536
40996 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40997 tablejumps.
40998
40999 2015-01-09 Michael Collison <michael.collison@linaro.org>
41000
41001 PR tree-optimization/64322
41002 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41003 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41004
41005 2015-01-09 Tom de Vries <tom@codesourcery.com>
41006
41007 PR rtl-optimization/64539
41008 * regcprop.c (kill_clobbered_values): Factor out of ...
41009 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41010 instead of note_stores with kill_clobbered_value.
41011
41012 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41013
41014 * ginclude/unwind-arm-common.h: Revert previous commit.
41015
41016 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41017
41018 * config.gcc (arm*-*-freebsd*): New configuration.
41019 * config/arm/freebsd.h: New file.
41020 * config.host: Add extra components for arm*-*-freebsd*.
41021 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41022 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41023
41024 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41025
41026 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41027 for -mcpu=e6500.
41028 * config/rs6000/t-rtems: Add e6500 multilibs.
41029
41030 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41031
41032 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41033 MPC8540.
41034
41035 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41036
41037 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41038 MULTILIB_EXCEPTIONS.
41039
41040 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41041
41042 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41043 MULTILIB_EXCEPTIONS.
41044
41045 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41046
41047 * config/arm/t-rtems-eabi: Rename to...
41048 * config/arm/t-rtems: ...this.
41049 * config/arm/rtems-eabi.h: Rename to...
41050 * config/arm/rtems.h: ...this.
41051 * config.gcc (arm*-*-rtems*): Reflect changes above.
41052
41053 2015-01-09 Richard Biener <rguenther@suse.de>
41054
41055 PR tree-optimization/64410
41056 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41057 on the LHS.
41058 (execute_update_addresses_taken): Deal with that.
41059 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41060 loads/stores for complex variables.
41061
41062 2015-01-09 Martin Liska <mliska@suse.cz>
41063
41064 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41065 name comparison.
41066 (func_checker::compare_memory_operand): New function.
41067 (func_checker::compare_operand): Split case to newly
41068 added functions.
41069 (func_checker::compare_cst_or_decl): New function.
41070 (func_checker::compare_gimple_call): Identify
41071 memory operands.
41072 (func_checker::compare_gimple_assign): Likewise.
41073 * ipa-icf-gimple.h: New function.
41074
41075 2015-01-09 Martin Liska <mliska@suse.cz>
41076
41077 PR ipa/64503
41078 * sreal.c (sreal::dump): Change unsigned format to signed for
41079 m_exp value.
41080 (sreal::to_double): Replace exp2 with scalbln.
41081
41082 2015-01-09 Martin Liska <mliska@suse.cz>
41083
41084 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41085 * ipa-icf.c (sem_function::equals_private): Add support for target and
41086 (sem_item_optimizer::merge_classes): Remove redundant function
41087 optimization flags comparison.
41088 * tree.h (target_opts_for_fn): New function.
41089
41090 2015-01-09 Tom de Vries <tom@codesourcery.com>
41091
41092 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41093
41094 2015-01-09 Kito Cheng <kito@0xlab.org>
41095
41096 PR rtl-optimization/64348
41097 * lra-constraints.c (split_reg): Fix caller-save store/restore
41098 instruction generation.
41099
41100 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41101
41102 PR gcov-profile/61790
41103 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41104 long long. Fallback to int64_t if host doesn't have long long and
41105 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41106
41107 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41108
41109 PR tree-optimization/63989
41110 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41111 from 1000 to 10000.
41112 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41113 (get_stridx): If we don't have a record for certain SSA_NAME,
41114 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41115 constant offset, call get_stridx_plus_constant.
41116 (get_stridx_plus_constant): New function.
41117 (zero_length_string): Don't use get_stridx here.
41118
41119 PR target/55023
41120 PR middle-end/64388
41121 * dse.c (struct insn_info): Mention frame_read set also
41122 before reload for tail calls on some targets.
41123 (scan_insn): Revert 2014-12-22 change. Set frame_read
41124 also before reload for tail calls if
41125 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41126 instead of add_non_frame_wild_read for non-const/memset
41127 tail calls after reload.
41128
41129 2015-01-08 Jason Merrill <jason@redhat.com>
41130
41131 * ubsan.c (do_ubsan_in_current_function): New.
41132 (pass_ubsan::gate): Use it.
41133 * ubsan.h: Declare it.
41134 * convert.c (convert_to_integer): Use it.
41135
41136 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41137
41138 PR target/64338
41139 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41140 compare_code when it is unconditionally overwritten afterwards.
41141 Use ix86_reverse_condition instead of reverse_condition. Don't
41142 change code if *reverse_condition* returned UNKNOWN and don't
41143 swap ct/cf and negate diff in that case.
41144
41145 2015-01-08 Mike Stump <mikestump@comcast.net>
41146
41147 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41148 (pass_tsan_O0::gate): Likewise.
41149 * extend.texi (Function Attributes): Add no_sanitize_thread
41150 documentation.
41151
41152 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
41153
41154 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41155 for registering builtins.
41156 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41157 add -fopenmp to the argv_obstack used when invoking
41158 compile_for_target.
41159
41160 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41161 add "-m32" or "-m64" to argv_obstack.
41162 (generate_host_descr_file): Likewise, when invoking host_compiler.
41163 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41164 ld.
41165
41166 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41167
41168 * config/sh/sh-mem.cc: Use constant as second operand when emitting
41169 tstsi_t insns.
41170
41171 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41172
41173 PR target/55212
41174 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41175 constant load if constant operand fits into I08.
41176
41177 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41178
41179 PR sanitizer/64336
41180 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41181 and TREE_THIS_VOLATILE for MEM_REFs.
41182 (build5_stat): Fix up initialization of TREE_READONLY and
41183 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41184
41185 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41186
41187 PR target/64533
41188 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41189 of r for the second alternative of the destination operand.
41190
41191 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41192
41193 PR target/36557
41194 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41195
41196 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41197
41198 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41199 keywords.
41200 ([-fivar-visibility], [-fvisibility]): Likewise.
41201
41202 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41203
41204 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41205 the file where @code, @command, etc is more appropriate.
41206
41207 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41208
41209 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41210 of -mrecip= documentation.
41211
41212 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41213
41214 PR target/64505
41215 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41216 correct reload handler if -m32 -mpowerpc64 is used.
41217
41218 2015-01-06 Tom de Vries <tom@codesourcery.com>
41219
41220 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41221
41222 2015-01-08 Christian Bruel <christian.bruel@st.com>
41223
41224 PR target/64507
41225 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41226
41227 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41228
41229 PR tree-optimization/63259
41230 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41231 if optab exists for 16bit byteswap.
41232
41233 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41234
41235 * opts.c (common_handle_option): Add support for
41236 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41237 * doc/invoke.texi: Document -fno-sanitize=all,
41238 -f{,no-}sanitize-recover=all. Document that
41239 -fsanitize=float-cast-overflow is not enabled
41240 by -fsanitize=undefined. Fix up documentation
41241 of -f{,no-}sanitize-recover.
41242
41243 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41244
41245 * config.gcc: Add Visium support.
41246 * configure.ac: Likewise.
41247 * configure: Regenerate.
41248 * doc/extend.texi (interrupt attribute): Add Visium.
41249 * doc/invoke.texi: Document Visium options.
41250 * doc/install.texi: Document Visium target.
41251 * doc/md.texi: Document Visium constraints.
41252 * common/config/visium: New directory.
41253 * config/visium: Likewise.
41254
41255 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41256
41257 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41258 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41259
41260 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41261
41262 * combine.c (combine_validate_cost): Do not count the cost of a
41263 split I2 twice. Do not display it twice in the dump, either.
41264
41265 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41266
41267 Revert parts of r219199.
41268 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41269 <inttypes.h>.
41270 ([-Wtraditional]): Restore markup on <limits.h>.
41271
41272 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41273
41274 PR c++/31397
41275 * doc/invoke.texi: Document -Wsuggest-override.
41276
41277 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41278
41279 PR rtl-optimization/64287
41280 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41281 (process_options): Disable flag_ipa_ra if profiling.
41282
41283 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41284
41285 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41286
41287 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41288
41289 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41290 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41291 put under #if TARGET_LOOPS guard.
41292
41293 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41294
41295 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41296
41297 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41298
41299 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41300 * rtl.h (refers_to_regno_p): Add overload.
41301 * cse.c: Use it.
41302 * bt-load.c: Likewise.
41303 * combine.c: Likewise.
41304 * df-scan.c: Likewise.
41305 * sched-deps.c: Likewise.
41306 * config/s390/s390.c: Likewise.
41307 * config/m32r/m32r.c: Likewise.
41308 * config/rs6000/spe.md: Likewise.
41309 * config/rs6000/rs6000.c: Likewise.
41310 * config/pa/pa.c: Likewise.
41311 * config/stormy16/stormy16.c: Likewise.
41312 * config/cris/cris.c: Likewise.
41313 * config/arc/arc.md: Likewise.
41314 * config/arc/arc.c: Likewise.
41315 * config/sh/sh.md: Likewise.
41316 * config/sh/sh.c: Likewise.
41317 * config/frv/frv.c: Likewise.
41318
41319 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41320
41321 PR sanitizer/64265
41322 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41323 call as cleanup of the whole body.
41324 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41325 * tsan.c (replace_func_exit): New function.
41326 (instrument_func_exit): Moved earlier.
41327 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41328 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41329 been found.
41330 (tsan_pass): Don't call instrument_func_exit.
41331 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41332 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41333 inlining.
41334
41335 PR sanitizer/64344
41336 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41337 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41338 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41339 if the result is integer_zerop, return NULL_TREE.
41340 * convert.c (convert_to_integer): Pass expr as ARG.
41341
41342 PR tree-optimization/64465
41343 * tree-inline.c (redirect_all_calls): During inlining
41344 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41345 changed the stmt to a non-throwing call.
41346
41347 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41348
41349 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41350 etc markup throughout the file.
41351
41352 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41353
41354 Enable experimental TSAN support for Ada.
41355 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41356
41357 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41358
41359 PR tree-optimization/64494
41360 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41361 clear SSA_NAME_ANTI_RANGE_P flag.
41362
41363 2015-01-05 Marek Polacek <polacek@redhat.com>
41364
41365 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41366
41367 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41368
41369 Update copyright years.
41370
41371 * gcc.c (process_command): Update copyright notice dates.
41372 * gcov-dump.c: Ditto.
41373 * gcov.c: Ditto.
41374 * doc/cpp.texi: Bump @copying's copyright year.
41375 * doc/cppinternals.texi: Ditto.
41376 * doc/gcc.texi: Ditto.
41377 * doc/gccint.texi: Ditto.
41378 * doc/gcov.texi: Ditto.
41379 * doc/install.texi: Ditto.
41380 * doc/invoke.texi: Ditto.
41381
41382 * auto-profile.c, auto-profile.h: Fix up Copyright line.
41383
41384 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
41385
41386 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41387 verb tense, etc.
41388 ([-fvtable-verify], [-fvtv-debug]): Likewise.
41389 ([-Wabi]): Likewise.
41390 ([-fmessage-length]): Likewise.
41391 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41392 ([-Wno-discarded-qualifiers]): Likewise.
41393 ([-Wnodiscarded-array-qualifiers]): Likewise.
41394 ([-Wno-virtual-move-assign]): Likewise.
41395 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41396 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41397 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41398 ([-fsanitize-undefined-trap-on-error]): Likewise.
41399 ([-floop-interchange]): Likewise.
41400 ([-ftree-coalesce-inlined-vars]): Likewise.
41401 ([-fvect-cost-model]): Likewise.
41402 ([-flto]): Likewise.
41403 ([--param]): Likewise.
41404 (Spec Files): Likewise.
41405 ([-mstrict-align]): Likewise.
41406 ([-mfix-cortex-a53-835769]): Likewise.
41407 ([-march], [-mtune]): Likewise.
41408 ([-mpic-register]): Likewise.
41409 ([-munaligned-access]): Likewise.
41410 ([-msp8]): Likewise.
41411 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41412 (AVR Built-in Macros): Likewise.
41413 ([-mpreferred-stack-boundary]): Likewise.
41414 ([-mtune-crtl]): Likewise.
41415 ([-mashf]): Likewise.
41416 ([-mmcu=]): Likewise.
41417 ([-minrt]): Likewise.
41418 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41419 ([-mupper-regs]): Likewise.
41420 ([-matomic-model]): Likewise.
41421 ([-mdiv]): Likewise.
41422 ([-mzdcbranch]): Likewise.
41423 ([-mdisable-callt]): Likewise.
41424 ([-msoft-float]): Likewise.
41425 ([-m8byte-align]): Likewise.
41426 ([-fstack-reuse]): Likewise.
41427
41428 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41429
41430 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41431 Fix markup, light copy-editing.
41432 ([-fauto-profile]): Rewrite to fix formatting and content
41433 problems.
41434
41435 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41436
41437 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41438 Copy-edit description.
41439 ([-fisolate-erroneous-paths-attribute]): Likewise.
41440 * common.opt (fisolate-erroneous-paths-dereference):
41441 Copy-edit description.
41442 (fisolate-erroneous-paths-attribute): Likewise.
41443
41444 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41445
41446 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41447 tidy grammar.
41448
41449 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41450
41451 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41452 ([-fvtv-debug]): Likewise.
41453 ([-Wc++-compat]): Likewise.
41454 ([-Wc++11-compat]): Likewise.
41455 ([-Wc++14-compat]): Likewise.
41456 ([-Wno-sized-deallocation]): Likewise.
41457 ([-femit-class-debug-always]): Likewise.
41458 ([-femit-struct-debug-detailed]): Likewise.
41459 ([-fno-keep-inline-dllexport]): Likewise.
41460 ([-fira-algorithm]): Likewise.
41461 ([-fira-region]): Likewise.
41462 ([-flra-remat]): Likewise.
41463 ([-fipa-ra]): Likewise.
41464 ([-fhoist-adjacent-loads]): Likewise.
41465 ([-fisolate-erroneous-paths-dereference]): Likewise.
41466 ([-fisolate-erroneous-paths-attribute]): Likewise.
41467 ([-ftree-switch-conversion]): Likewise.
41468 ([-ftree-tail-merge]): Likewise.
41469 ([-ftree-loop-if-convert]): Likewise.
41470 ([-ftree-loop-if-convert-stores]): Likewise.
41471 ([-ftree-loop-distribution]): Likewise.
41472 ([-ftree-loop-distribute-patterns]): Likewise.
41473 ([-flto-compression-level]): Likewise.
41474 ([-flto-report]): Likewise.
41475 ([-flto-report-wpa]): Likewise.
41476 ([-fuse-linker-plugin]): Likewise.
41477 ([-mfix-cortex-a53-835769]): Likewise.
41478 ([-mno-fix-cortex-a53-835769]): Likewise.
41479 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41480 explicit listing; add a note to the discussion indicating they
41481 exist. Reorder table to group similar options. Add missing
41482 @opindex entries. Add @need commands throughout the table to
41483 allow it to be split across multiple pages.
41484 ([-m8bit-idiv]): Fix @opindex.
41485 ([-mavx256-split-unaligned-load]): Likewise.
41486 ([-mavx256-split-unaligned-store]): Likewise.
41487 ([-mstack-protector-guard]): Likewise.
41488 ([-mcpu=]): Likewise.
41489 ([-mcpu]): Likewise.
41490 ([-mpointer-size=]): Likewise.
41491
41492 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41493
41494 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41495 instead of `m' constraint. Likewise for unnamed movb comparison
41496 patterns using reg_before_reload_operand predicate.
41497 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41498 predicate to reject register index and LO_SUM DLT memory forms
41499 after reload.
41500
41501 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41502
41503 * doc/invoke.texi (Option Summary): Fix spelling of
41504 -fdevirtualize-at-ltrans.
41505 ([-fdevirtualize]): Fix markup.
41506 ([-fdevirtualize-speculatively]): Fix typo.
41507 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41508 implementor-speaky.
41509 * common.opt (fdevirtualize-at-ltrans): Likewise.
41510 * ipa-devirt.c: Fix typos in comments throughout the file.
41511 (ipa_devirt): Fix typos in format strings for dump output.
41512
41513 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41514
41515 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41516 discussion of defaults, light copy-editing.
41517
41518 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41519
41520 * tsan.c (instrument_expr): corrected previous checkin.
41521
41522 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41523
41524 Instrument bit field and unaligned accesses for TSAN.
41525 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41526 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41527 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41528 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41529 unaligned memory regions.
41530
41531 2015-01-01 Anthony Green <green@moxielogic.com>
41532
41533 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41534 Restrict move source register offsets to 16 bits.
41535 \f
41536 Copyright (C) 2015 Free Software Foundation, Inc.
41537
41538 Copying and distribution of this file, with or without modification,
41539 are permitted in any medium without royalty provided the copyright
41540 notice and this notice are preserved.