ea4c5cb7145c5d6e2a0c5ffb7ccf8d7fd046c3b7
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-08-04  Martin Liska <mliska@suse.cz>
2
3         * cgraph.h (csi_end_p): Removed.
4         (csi_next): Likewise.
5         (csi_node): Likewise.
6         (csi_start): Likewise.
7         (cgraph_node_in_set_p): Likewise.
8         (cgraph_node_set_size): Likewise.
9         (vsi_end_p): Likewise.
10         (vsi_next): Likewise.
11         (vsi_node): Likewise.
12         (vsi_start): Likewise.
13         (varpool_node_set_size): Likewise.
14         (cgraph_node_set_nonempty_p): Likewise.
15         (varpool_node_set_nonempty_p): Likewise.
16         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17         cgraph_node_set.
18         * ipa-inline-transform.c: Likewise.
19         * ipa-utils.c (cgraph_node_set_new): Removed.
20         (cgraph_node_set_add): Likewise.
21         (cgraph_node_set_remove): Likewise.
22         (cgraph_node_set_find): Likewise.
23         (dump_cgraph_node_set): Likewise.
24         (debug_cgraph_node_set): Likewise.
25         (free_cgraph_node_set): Likewise.
26         (varpool_node_set_new): Likewise.
27         (varpool_node_set_add): Likewise.
28         (varpool_node_set_remove): Likewise.
29         (varpool_node_set_find): Likewise.
30         (dump_varpool_node_set): Likewise.
31         (free_varpool_node_set): Likewise.
32         (debug_varpool_node_set): Likewise.
33         * tree-emutls.c (struct tls_var_data):
34         (emutls_index): Removed.
35         (emutls_decl): Likewise.
36         (gen_emutls_addr): Function implementation uses newly added
37         hash_map<varpool_node *, tls_var_data>.
38         (clear_access_vars): Likewise.
39         (create_emultls_var): Likewise.
40         (ipa_lower_emutls): Likewise.
41         (reset_access): New function.
42
43 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
44
45         * config/i386/i386.c (ix86_option_override_internal): Add
46         PTA_RDRND and PTA_MOVBE for bdver4.
47
48 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
49             James Greenhalgh  <james.greenhalgh@arm.com>
50
51         * doc/md.texi (clrsb): Document.
52         (clz): Change reference to x into operand 1.
53         (ctz): Likewise.
54         (popcount): Likewise.
55
56 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
57
58         PR target/61713
59         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
60         move to subtarget in serial version if result is ignored.
61
62 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
63             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
64
65         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
66         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
67         (sched_analyze_insn): Update use of try_group_insn to
68         sched_macro_fuse_insns.
69         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
70         arguments that are not conditional jumps.
71
72 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
73
74         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
75         family information. Handle BTVER2 cpu with cpuid family value.
76
77 2014-08-04  Tom de Vries  <tom@codesourcery.com>
78
79         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
80         (glibc_2_11_or_earlier): Document effective-target keywords.
81
82 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
83
84         * ipa-devirt.c (odr_type_warn_count): Add type.
85         (possible_polymorphic_call_targets): Set it.
86         (ipa_devirt): Use it.
87
88 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
89
90         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods): Document.
91         * ipa-devirt.c: Include hash-map.h
92         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
93         (clear_speculation): Break out of ...
94         (get_class_context): ... here; speed up handling obviously useless
95         speculations.
96         (odr_type_warn_count, decl_warn_count): New structures.
97         (final_warning_record): New structure.
98         (final_warning_records): New static variable.
99         (possible_polymorphic_call_targets): Cleanup handling of speculative info;
100         do not build speculation when user do not care; record info about warnings
101         when asked for.
102         (add_decl_warning): New function.
103         (type_warning_cmp): New function.
104         (decl_warning_cmp): New function.
105         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
106         (gate): Enable pass when warnings are requested.
107         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New options.
108
109 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
110
111         * hash-map.h (default_hashmap_traits::mark_key_deleted):
112         Fix cast.
113         (hash_map::remove): New method.
114         (hash_map::traverse): New method.
115         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
116         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
117         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
118         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
119         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
120         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
121         pointer_map.
122
123 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
124
125         * hash-set.h: new File.
126         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
127         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
128         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
129         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
130         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
131         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
132         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
133         varpool.c: Use hash_set instead of pointer_set.
134
135 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
136
137         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
138
139 2014-08-01  Jiong Wang <jiong.wang@arm.com>
140
141         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
142         for frame access when strict_p is false.
143
144 2014-08-01  Renlin Li <renlin.li@arm.com>
145 2014-08-01  Jiong Wang <jiong.wang@arm.com>
146
147         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
148         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
149         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
150         Declaration.
151         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
152         predicate.
153         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
154         aarch64_mem_pair_offset.
155
156 2014-08-01  Jiong Wang <jiong.wang@arm.com>
157
158         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
159         offset.
160         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
161         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
162
163 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
164
165         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
166
167 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
168
169         PR regression/61510
170         * cgraphunit.c (analyze_functions): Use get_create rather than get
171         for decls which are clones of abstract functions.
172
173 2014-08-01  Martin Liska  <mliska@suse.cz>
174
175         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
176         * ipa-prop.h (count_formal_params): Global function created from static.
177         * ipa-prop.c (count_formal_params): Likewise.
178         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
179         profiles for semantically equivalent functions.
180         * passes.c (do_per_function): If we load body of a function
181         during WPA, this condition should behave same.
182         * varpool.c (ctor_for_folding): More tolerant assert for variable
183         aliases created during WPA.
184
185 2014-08-01  Martin Liska  <mliska@suse.cz>
186
187         * doc/invoke.texi (Options That Control Optimization): Documentation
188         for -foptimize-strlen introduced. Optimization levels default options
189         fixed.
190
191 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
192
193         * opts.c (common_handle_option): Handle -fsanitize=alignment.
194         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
195         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
196         type to bool.
197         * stor-layout.h (min_align_of_type): New prototype.
198         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
199         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
200         check.
201         * ubsan.c: Include builtins.h.
202         (ubsan_expand_bounds_ifn): Change return type to bool,
203         always return true.
204         (ubsan_expand_null_ifn): Change return type to bool, change
205         argument to gimple_stmt_iterator *.  Handle both null and alignment
206         sanitization, take type from ckind argument's type rather than
207         first argument.
208         (instrument_member_call): Removed.
209         (instrument_mem_ref): Remove t argument, add mem and base arguments.
210         Handle both null and alignment sanitization, don't say whole
211         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
212         call instead of 2 argument.
213         (instrument_null): Adjust instrument_mem_ref caller.  Don't
214         instrument calls here.
215         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
216         like SANITIZE_NULL.
217         * stor-layout.c (min_align_of_type): New function.
218         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
219         Or it into SANITIZE_UNDEFINED.
220         * doc/invoke.texi (-fsanitize=alignment): Document.
221
222 2014-07-31  Andi Kleen  <ak@linux.intel.com>
223
224         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
225
226 2014-07-31  Andi Kleen  <ak@linux.intel.com>
227
228         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
229         inchash.
230         (vn_reference_compute_hash): Dito.
231         (vn_nary_op_compute_hash): Dito.
232         (vn_phi_compute_hash): Dito.
233         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
234
235 2014-07-31  Andi Kleen  <ak@linux.intel.com>
236
237         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
238         Rename to inchash:add_expr_commutative. Convert to inchash.
239         (iterative_hash_hashable_expr): Rename to
240         inchash:add_hashable_expr. Convert to inchash.
241         (avail_expr_hash): Dito.
242
243 2014-07-31  Andi Kleen  <ak@linux.intel.com>
244
245         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
246         Convert to inchash.
247
248 2014-07-31  Andi Kleen  <ak@linux.intel.com>
249
250         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
251
252 2014-07-31  Andi Kleen  <ak@linux.intel.com>
253
254         * Makefile.in (OBJS): Add rtlhash.o
255         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
256         (loc_checksum): Dito.
257         (loc_checksum_ordered): Dito.
258         (hash_loc_operands): Dito.
259         (hash_locs): Dito.
260         (hash_loc_list): Dito.
261         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
262         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
263         * rtlhash.c: New file.
264         * rtlhash.h: New file.
265
266 2014-07-31  Andi Kleen  <ak@linux.intel.com>
267
268         * inchash.h (inchash): Change inchash class to namespace.
269         (class hash): ... Rename from inchash.
270         (add_object): Move from macro to class template.
271         * lto-streamer-out.c (hash_tree): Change inchash
272         to inchash::hash.
273         * tree.c (build_type_attribute_qual_variant): Dito.
274         (type_hash_list): Dito.
275         (attribute_hash_list): Dito.
276         (iterative_hstate_expr): Rename to inchash::add_expr
277         (build_range_type_1): Change inchash to inchash::hash
278         and use hash::add_expr.
279         (build_array_type_1): Dito.
280         (build_function_type): Dito
281         (build_method_type_directly): Dito.
282         (build_offset_type): Dito.
283         (build_complex_type): Dito.
284         (make_vector_type): Dito.
285         * tree.h (iterative_hash_expr): Dito.
286
287 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
288
289         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
290
291 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
292
293         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
294         correct alphabetical position.
295         (vpaddd_f64): Rewrite using builtins.
296         (vpaddd_s64): Move to correct alphabetical position.
297         (vpaddd_u64): New.
298
299 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
300
301         PR target/61844
302         * config/sh/sh.c (sh_legitimate_address_p,
303         sh_legitimize_reload_address): Handle reg+reg address modes when
304         ALLOW_INDEXED_ADDRESS is false.
305         * config/sh/predicates.md (general_movsrc_operand,
306         general_movdst_operand): Likewise.
307
308 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
309
310         * config/aarch64/aarch64-builtins.c
311         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
312         BYTES_BIG_ENDIAN.
313
314 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
315
316         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
317         the generated mask based on BYTES_BIG_ENDIAN.
318         (aarch64_simd_check_vect_par_cnst_half): New.
319         * config/aarch64/aarch64-protos.h
320         (aarch64_simd_check_vect_par_cnst_half): New.
321         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
322         the check out to aarch64_simd_check_vect_par_cnst_half.
323         (vect_par_cnst_lo_half): Likewise.
324         * config/aarch64/aarch64-simd.md
325         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
326         (move_hi_quad_<mode>): Always generate a low mask.
327
328 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
329
330         * doc/invoke.texi (AVR Options): Add documentation about
331         __AVR_DEVICE_NAME__ built-in macro.
332
333 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
334
335         PR target/61948
336         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
337         constraints are satisfied.
338         (<shift>di3_neon): Likewise.
339
340 2014-07-31  Richard Biener  <rguenther@suse.de>
341
342         PR tree-optimization/61964
343         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
344         by structural equality.
345
346 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
347
348         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
349         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
350         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
351         New enums.
352         * gcc.c (sanitize_spec_function): Support new option.
353         (SANITIZER_SPEC): Remove now redundant check.
354         * opts.c (common_handle_option): Support new option.
355         (finish_options): Check for incompatibilities.
356         * toplev.c (process_options): Split userspace-specific checks.
357
358 2014-07-31  Richard Biener  <rguenther@suse.de>
359
360         * lto-streamer.h (struct output_block): Remove global.
361         (struct data_in): Remove labels, num_named_labels and
362         num_unnamed_labels.
363         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
364         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
365
366 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
367
368         PR c++/60517
369         * common.opt (-Wreturn-local-addr): Moved from c.opt.
370         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
371         (isolate_path): New argument to avoid inserting a trap.
372         (find_implicit_erroneous_behaviour): Handle returning the address
373         of a local variable.
374         (find_explicit_erroneous_behaviour): Likewise.
375
376 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
377
378         PR lto/61868
379         * toplev.c (init_random_seed): Move piece of code never called to
380         set_random_seed.
381         (set_random_seed): see above.
382
383 2014-07-31  Tom de Vries  <tom@codesourcery.com>
384
385         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
386
387 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
388
389         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
390         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
391
392 2014-07-31  Richard Biener  <rguenther@suse.de>
393
394         * data-streamer.h (streamer_write_data_stream): Declare here,
395         renamed from ...
396         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
397         * lto-cgraph.c (lto_output_node): Adjust.
398         (lto_output_varpool_node): Likewise.
399         * data-streamer-out.c (streamer_string_index): Likewise.
400         (streamer_write_data_stream, lto_append_block): Move from ...
401         * lto-section-out.c (lto_output_data_stream,
402         lto_append_block): ... here.
403
404 2014-07-30  Mike Stump  <mikestump@comcast.net>
405
406         * configure.ac: Also check for popen.
407         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
408         * configure: Regenerate.
409         * config.in:  Regenerate.
410
411 2014-07-30  Martin Jambor  <mjambor@suse.cz>
412
413         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
414         parameter to gimple.
415
416 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
417
418         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
419         address as second parameter to __tpf_eh_return routine.
420
421 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
422
423         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
424         Thumb2.
425
426 2014-07-30  Tom Tromey  <tromey@redhat.com>
427
428         PR c/59855
429         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
430         * doc/extend.texi (Type Attributes): Document designated_init
431         attribute.
432
433 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
434
435         * graphite-isl-ast-to-gimple.c:
436         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
437         (gcc_expression_from_isl_expression): Pass type to
438         gcc_expression_from_isl_ast_expr_id.
439
440 2014-07-30  Richard Biener  <rguenther@suse.de>
441
442         * lto-streamer.h (lto_write_data): New function.
443         * langhooks.c (lhd_append_data): Do not free block.
444         * lto-section-out.c (lto_write_data): New function writing
445         raw data to the current section.
446         (lto_write_stream): Adjust for langhook semantic change.
447         (lto_destroy_simple_output_block): Write header directly.
448         * lto-opts.c (lto_write_options): Write options directly.
449         * lto-streamer-out.c (produce_asm): Write heaeder directly.
450         (lto_output_toplevel_asms): Likewise.
451         (copy_function_or_variable): Copy data directly.
452         (write_global_references): Output index table directly.
453         (lto_output_decl_state_refs): Likewise.
454         (write_symbol): Write data directly.
455         (produce_symtab): Adjust.
456         (produce_asm_for_decls): Output header and refs directly.
457
458 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
459
460         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
461         to speculative_targets
462         (get_class_context): Fix handling of contextes without outer type;
463         avoid matching non-polymorphic types in LTO.
464         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
465         parameter to speculative_targetsp; handle speculation.
466         (dump_possible_polymorphic_call_targets): Update dumping.
467
468 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
469
470         * common.opt (Wodr): Enable by default.
471
472 2014-07-29  Olivier Hainque  <hainque@adacore.com>
473
474         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
475
476 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
477
478         PR bootstrap/61914
479         * gengtype.c (strtoken): New function.
480         (create_user_defined_type): Replace strtok with strtoken.
481
482 2014-07-29  Nathan Sidwell  <nathan@acm.org>
483
484         * gcov-io.c (gcov_var): Make hidden.
485         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
486         (gcov_do_dump): Declare.
487         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
488
489 2014-07-29  Martin Jambor  <mjambor@suse.cz>
490
491         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
492         parameter to gimple.
493         (sra_modify_assign): Likewise.
494
495 2014-07-29  Richard Biener  <rguenther@suse.de>
496
497         PR middle-end/52478
498         * expr.c (expand_expr_real_2): Revert last change.
499
500 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
501
502         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
503         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
504         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
505         call.
506         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
507         (contains_type_p): Forward declare.
508         (polymorphic_call_target_hasher::hash): Hash speculative info.
509         (polymorphic_call_target_hasher::equal): Compare speculative info.
510         (get_class_context): Handle speuclation.
511         (contains_type_p): Update.
512         (get_polymorphic_call_info_for_decl): Update.
513         (walk_ssa_copies): Break out from ...
514         (get_polymorphic_call_info): ... here; set speculative context
515         before giving up.
516         * ipa-prop.c (ipa_write_indirect_edge_info,
517         ipa_read_indirect_edge_info): Stream speculative context.
518         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
519         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
520         SPECULATIVE_MAYBE_DERIVED_TYPE).
521         (possible_polymorphic_call_targets overriders): Update.
522         (dump_possible_polymorphic_call_targets overriders): Update.
523         (dump_possible_polymorphic_call_target_p overriders): Update.
524
525 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
526
527         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
528         ipa-devirt path; fix thinko there.
529
530 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
531
532         * config/i386/i386.c (ix86_return_in_memory): Replace one
533         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
534
535 2014-07-28  Marek Polacek  <polacek@redhat.com>
536
537         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
538
539 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
540
541         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
542         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
543         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
544         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
545         (USE_LD_AS_NEEDED): Likewise.
546         (ASM_APP_ON): Likewise.
547         (ASM_APP_OFF): Likewise.
548         (TARGET_POSIX_IO): Likewise.
549         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
550         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
551         (USE_LD_AS_NEEDED): Likewise.
552         (ASM_APP_ON): Likewise.
553         (ASM_APP_OFF): Likewise.
554         (TARGET_POSIX_IO): Likewise.
555
556 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
557
558         PR middle-end/61734
559         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
560         operators other than the equality operators.
561
562 2014-07-28  Richard Biener  <rguenther@suse.de>
563
564         PR middle-end/52478
565         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
566         sure to register SImode ones, not only >= word_mode ones.
567         * expr.c (expand_expr_real_2): When expanding -ftrapv
568         binops do not use OPTAB_LIB_WIDEN.
569
570 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
571
572         PR middle-end/61919
573         * tree-outof-ssa.c (insert_partition_copy_on_edge)
574         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
575         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
576         inserting them in the insn stream.
577
578 2014-07-28  Marek Polacek  <polacek@redhat.com>
579
580         PR middle-end/61913
581         * common.opt (Wodr): Add Var.
582
583 2014-07-28  Richard Biener  <rguenther@suse.de>
584
585         PR tree-optimization/61921
586         * tree-ssa-structalias.c (create_variable_info_for_1): Check
587         if there is a varpool node before dereferencing it.
588
589 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
590
591         * graphite-sese-to-poly.c:
592         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
593         id of the pbb), which contains pointer to the pbb1.
594
595         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
596
597 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
598
599         * graphite-isl-ast-to-gimple.c:
600         (graphite_create_new_guard): New function.
601         (translate_isl_ast_node_if): New function.
602         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
603
604         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
605
606 2014-07-27  Anthony Green  <green@moxielogic.com>
607
608         * config.gcc: Add moxie-*-moxiebox* configuration.
609         * config/moxie/moxiebox.h: New file.
610
611 2014-07-26  Andrew Pinski  <apinski@cavium.com>
612
613         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
614         from the read only register.
615
616 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
617
618         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
619         as the allocation class if it isn't likely to be spilled.
620
621 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
622
623         * rtl.h (tls_referenced_p): Declare.
624         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
625         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
626         (mips_cannot_force_const_mem): Use tls_referenced_p.
627         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
628         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
629         instead of pa_tls_referenced_p.
630         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
631         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
632         (pa_legitimate_constant_p): Likewise.
633         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
634         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
635         (rs6000_cannot_force_const_mem, rs6000_emit_move)
636         (rs6000_address_for_altivec): Use tls_referenced_p instead of
637         rs6000_tls_referenced_p.
638         (rs6000_tls_symbol_ref_1): Delete.
639
640 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
641
642         PR target/44551
643         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
644         Optimize inverse of a VEC_CONCAT.
645
646 2014-07-25  Xinliang David Li  <davidxl@google.com>
647
648         * params.def: New parameter.
649         * coverage.c (get_coverage_counts): Check new flag.
650         (coverage_compute_profile_id): Check new flag.
651         (coverage_begin_function): Check new flag.
652         (coverage_end_function): Check new flag.
653         * value-prof.c (coverage_node_map_initialized_p): New function.
654         (init_node_map): Populate map with all functions.
655         * doc/invoke.texi: Document new parameter.
656
657 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
658             Richard Biener <rguenther@suse.de>
659
660         * lto-streamer-out.c (struct sccs): Turn to ...
661         (class DFS): ... this one; refactor the DFS walk so it can
662         be re-done on per-SCC basis.
663         (DFS::DFS): New constructor.
664         (DFS::~DFS): New destructor.
665         (hash_tree): Add new MAP argument holding in-SCC hash values;
666         remove POINTER_TYPE hashing hack.
667         (scc_entry_compare): Rename to ...
668         (DFS::scc_entry_compare): ... this one.
669         (hash_scc): Rename to ...
670         (DFS::hash_scc): ... this one; pass output_block instead
671         of streamer_cache; work harder to get unique and stable SCC
672         hashes.
673         (DFS_write_tree): Rename to ...
674         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
675         (lto_output_tree): Update.
676
677 2014-07-25  Andi Kleen  <ak@linux.intel.com>
678
679         * lto-streamer-out.c (hash_tree): Convert to inchash.
680
681 2014-07-25  Andi Kleen  <ak@linux.intel.com>
682
683         * tree.c (build_type_attribute_qual_variant): Use inchash.
684         (type_hash_list): Dito.
685         (attribute_hash_list): Dito
686         (iterative_hstate_expr): Dito.
687         (iterative_hash_expr): Dito.
688         (build_range_type_1): Dito.
689         (build_array_type_1): Dito.
690         (build_function_type): Dito.
691         (build_method_type_directly): Dito.
692         (build_offset_type): Dito.
693         (build_complex_type): Dito.
694         (make_vector_type): Dito.
695         * tree.h (iterative_hash_expr): Add compat wrapper.
696         (iterative_hstate_expr): Add.
697
698 2014-07-25  Andi Kleen  <ak@linux.intel.com>
699
700         * Makefile.in (OBJS): Add inchash.o.
701         (PLUGIN_HEADERS): Add inchash.h.
702         * ipa-devirt.c: Include inchash.h.
703         * lto-streamer-out.c: Dito.
704         * tree-ssa-dom.c: Dito.
705         * tree-ssa-pre.c: Dito.
706         * tree-ssa-sccvn.c: Dito.
707         * tree-ssa-tail-merge.c: Dito.
708         * asan.c: Dito.
709         * tree.c (iterative_hash_hashval_t): Move to ...
710         (iterative_hash_host_wide_int): Move to ...
711         * inchash.c: Here. New file.
712         * tree.h (iterative_hash_hashval_t): Move to ...
713         (iterative_hash_host_wide_int): Move to ...
714         * inchash.h: Here. New file.
715
716 2014-07-25  Richard Biener  <rguenther@suse.de>
717
718         PR middle-end/61762
719         PR middle-end/61894
720         * fold-const.c (native_encode_int): Add and handle offset
721         parameter to do partial encodings of expr.
722         (native_encode_fixed): Likewise.
723         (native_encode_real): Likewise.
724         (native_encode_complex): Likewise.
725         (native_encode_vector): Likewise.
726         (native_encode_string): Likewise.
727         (native_encode_expr): Likewise.
728         * fold-const.c (native_encode_expr): Add offset parameter
729         defaulting to -1.
730         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
731         (fold_ctor_reference): Handle all reads from tcc_constant
732         ctors.
733
734 2014-07-25  Richard Biener  <rguenther@suse.de>
735
736         * tree-inline.c (estimate_move_cost): Mark speed_p argument
737         as possibly unused.
738
739 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
740
741         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
742
743 2014-07-24  Kyle McMartin  <kyle@redhat.com>
744
745         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
746
747 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
748
749         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
750         Add prototype.
751         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
752         function.
753         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
754         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
755         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
756
757 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
758
759         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
760         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
761         aggregate types.  Instead, *all* aggregate types, except for single-
762         element or homogeneous float/vector aggregates, are quadword-aligned
763         if required by their type alignment.  Issue -Wpsabi note when a type
764         is now treated differently than before.
765
766 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
767
768         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
769         does not fit fully into floating-point registers, and there is still
770         space in the register parameter area, use GPRs to pass those parts
771         of the argument.  Issue -Wpsabi note if any parameter is now treated
772         differently than before.
773         (rs6000_arg_partial_bytes): Update.
774
775 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
776
777         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
778
779 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
780
781         * rtl.h (target_rtl): Remove lang_dependent_initialized.
782         * toplev.c (initialize_rtl): Don't use it.  Move previously
783         "language-dependent" calls to...
784         (backend_init): ...here.
785         (lang_dependent_init_target): Don't set lang_dependent_initialized.
786         Assert that RTL initialization hasn't happend yet.
787
788 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
789
790         PR rtl-optimization/61629
791         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
792         they have already been initialized.
793
794 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
795
796         PR middle-end/61268
797         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
798         DECL_INCOMING_RTL and entry_parm.
799         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
800         * calls.c (load_register_parameters): Likewise argument values.
801         (emit_library_call_value_1, store_one_arg): Likewise argument
802         save areas.
803         * config/i386/i386.c (assign_386_stack_local): Likewise the local
804         stack slot.
805         * explow.c (validize_mem): Modify the argument in-place.
806
807 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
808
809         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
810         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
811
812 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
813
814         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
815         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
816
817 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
818
819         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
820         (aarch64_save_callee_saves): New parameter "skip_wb".
821         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
822
823 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
824
825         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
826         "wb_candidate2".
827         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
828
829 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
830
831         * graphite-isl-ast-to-gimple.c:
832         (graphite_create_new_loop): Add calling of isl_id_free to properly
833         decrement reference counts.
834
835         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
836
837 2014-07-24  Martin Liska  <mliska@suse.cz>
838         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
839         function used.
840         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
841         (rs6000_code_end): Likewise.
842
843 2014-07-24  Martin Liska  <mliska@suse.cz>
844
845         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
846         symtab_node funtion used.
847         (rs6000_xcoff_declare_object_name): Likewise.
848
849 2014-07-24  Martin Liska  <mliska@suse.cz>
850
851         * cgraphunit.c (compile): Correct function used.
852
853 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
854
855         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
856         as non-indexable.
857
858 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
859
860         PR lto/61802
861         * varasm.c (bss_initializer_p): Handle offlined ctors.
862         (align_variable, get_variable_align): Likewise.
863         (make_decl_one_only): Likewise.
864         (default_binds_local_p_1): Likewise.
865         (decl_binds_to_current_def_p): Likewise.
866         (get_variable_section): Get constructor if it is offlined.
867         (assemble_variable_contents): Sanity check that the caller
868         streamed in the ctor in LTO.
869
870 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
871
872         * graphite-isl-ast-to-gimple.c:
873         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
874         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
875         isl_ast_op_pdiv_r to the different case.
876
877         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
878
879 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
880
881         PR middle-end/61876
882         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
883         when flag_errno_math is on.
884
885 2014-07-24  Martin Liska  <mliska@suse.cz>
886
887         * cgraph.h (varpool_node):
888         (availability get_availability (void)):
889         created from cgraph_variable_initializer_availability
890         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
891         created from: cgraph_variable_initializer_availability
892         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
893         (void finalize_named_section_flags (void)):
894         created from varpool_finalize_named_section_flags
895         (bool assemble_decl (void)): created from varpool_assemble_decl
896         (void analyze (void)): created from varpool_analyze_node
897         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
898         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
899         (void remove_initializer (void)): created from varpool_remove_initializer
900         (tree get_constructor (void)): created from varpool_get_constructor
901         (bool externally_visible_p (void)): created from varpool_externally_visible_p
902         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
903         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
904         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
905         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
906         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
907         (static bool output_variables (void)): created from varpool_output_variables
908         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
909         created from varpool_extra_name_alias
910         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
911         (static void dump_varpool (FILE *f)): created from dump_varpool
912         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
913         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
914         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
915         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
916         (void assemble_aliases (void)): created from assemble_aliases
917
918 2014-07-24  Martin Liska  <mliska@suse.cz>
919
920         * cgraph.h (symtab_node):
921         (void register_symbol (void)): created from symtab_register_node
922         (void remove (void)): created from symtab_remove_node
923         (void dump (FILE *f)): created from dump_symtab_node
924         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
925         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
926         (struct ipa_ref *add_reference (symtab_node *referred_node,
927         enum ipa_ref_use use_type)): created from add_reference 
928         (struct ipa_ref *add_reference (symtab_node *referred_node,
929         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
930         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
931         gimple stmt)): created from maybe_add_reference
932         (bool semantically_equivalent_p (symtab_node *target)): created from
933         symtab_semantically_equivalent_p
934         (void remove_from_same_comdat_group (void)): created from
935         remove_from_same_comdat_group
936         (void add_to_same_comdat_group (symtab_node *old_node)): created from
937         symtab_add_to_same_comdat_group
938         (void dissolve_same_comdat_group_list (void)): created from
939         symtab_dissolve_same_comdat_group_list
940         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
941         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
942         created from symtab_alias_ultimate_target
943         (inline symtab_node *next_defined_symbol (void)): created from
944         symtab_next_defined_symbol
945         (bool resolve_alias (symtab_node *target)): created from
946         symtab_resolve_alias
947         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
948         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
949         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
950         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
951         (void set_section (const char *section)): created from set_section_1 
952         (enum availability get_availability (void)): created from symtab_node_availability
953         (void make_decl_local (void)): created from symtab_make_decl_local
954         (bool real_symbol_p (void)): created from symtab_read_node
955         (can_be_discarded_p (void)): created from symtab_can_be_discarded
956         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
957         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
958         symtab_in_same_comdat_p;
959         (bool address_taken_from_non_vtable_p (void)): created from
960         address_taken_from_non_vtable_p
961         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
962         (static void dump_table (FILE *)): created from dump_symtab
963         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
964         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
965         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
966         symtab_used_from_object_file_p 
967         (void dump_base (FILE *)): created from dump_symtab_base
968         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
969         (void unregister (void)): created from symtab_unregister_node
970         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
971         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
972         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
973         symtab_nonoverwritable_alias_1
974         * cgraph.h (cgraph_node):
975         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
976         created from cgraph_remove_node_and_inline_clones
977         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
978         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
979         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
980         (cgraph_node *function_symbol (enum availability *avail = NULL)):
981         created from cgraph_function_node
982         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
983         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
984         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
985         created from cgraph_create_clone 
986         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
987         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
988         created from cgraph_create_virtual_clone
989         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
990         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
991         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
992         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
993         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
994         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
995         created from cgraph_function_version_info
996         (struct cgraph_function_version_info *insert_new_function_version (void)):
997         created from insert_new_cgraph_node_version
998         (struct cgraph_function_version_info *function_version (void)): created from
999         get_cgraph_node_version
1000         (void analyze (void)): created from analyze_function
1001         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
1002         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
1003         tree real_alias) cgraph_add_thunk
1004         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
1005         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
1006         created from cgraph_function_or_thunk_node
1007         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
1008         created from expand_thunk
1009         (void reset (void)): created from cgraph_reset_node
1010         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
1011         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
1012         (void remove (void)): created from cgraph_remove_node
1013         (void dump (FILE *f)): created from dump_cgraph_node
1014         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
1015         (bool get_body (void)): created from cgraph_get_body
1016         (void release_body (void)): created from cgraph_release_function_body
1017         (void unnest (void)): created from cgraph_unnest_node
1018         (void make_local (void)): created from cgraph_make_node_local
1019         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
1020         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
1021         gcov_type count, int freq)): created from cgraph_create_edge
1022         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
1023         gcov_type count, int freq)): created from cgraph_create_indirect_edge
1024         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
1025         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
1026         created from cgraph_create_edge_including_clones
1027         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
1028         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
1029         (void remove_callers (void)): created from cgraph_node_remove_callers
1030         (void remove_callees (void)): created from cgraph_node_remove_callees
1031         (enum availability get_availability (void)): created from cgraph_function_body_availability
1032         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
1033         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
1034         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
1035         (void call_duplication_hooks (cgraph_node *node2)): created from
1036         cgraph_call_node_duplication_hooks
1037         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
1038         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
1039         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
1040         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
1041         (void call_function_insertion_hooks (void)):
1042         created from cgraph_call_function_insertion_hooks
1043         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
1044         (bool local_p (void)): created from cgraph_local_node
1045         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
1046         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
1047         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
1048         (inline bool only_called_directly_or_aliased_p (void)):
1049         created from cgraph_only_called_directly_or_aliased_p
1050         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
1051         created from cgraph_will_be_removed_from_program_if_no_direct_calls
1052         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
1053         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
1054         (bool can_remove_if_no_direct_calls_p (void)):
1055         created from cgraph_can_remove_if_no_direct_calls_p
1056         (inline bool has_gimple_body_p (void)):
1057         created from cgraph_function_with_gimple_body_p
1058         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
1059         (static void dump_cgraph (FILE *f)): created from dump_cgraph
1060         (static inline void debug_cgraph (void)): created from debug_cgraph
1061         (static void record_function_versions (tree decl1, tree decl2)):
1062         created from record_function_versions
1063         (static void delete_function_version (tree decl)):
1064         created from delete_function_version
1065         (static void add_new_function (tree fndecl, bool lowered)):
1066         created from cgraph_add_new_function
1067         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
1068         (static cgraph_node * create (tree decl)): created from cgraph_create_node
1069         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
1070         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
1071         (static cgraph_node *get_for_asmname (tree asmname)):
1072         created from cgraph_node_for_asm
1073         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
1074         created from cgraph_same_body_alias 
1075         (static bool used_from_object_file_p_worker (cgraph_node *node,
1076         void *): new function
1077         (static bool non_local_p (cgraph_node *node, void *)):
1078         created from cgraph_non_local_node_p_1
1079         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
1080         created from verify_cgraph
1081         (static bool make_local (cgraph_node *node, void *)):
1082         created from cgraph_make_node_local
1083         (static cgraph_node *create_alias (tree alias, tree target)):
1084         created from cgraph_create_function_alias
1085         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
1086         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
1087         created from cgraph_create_edge_1
1088         * cgraph.h (varpool_node):
1089         (void remove (void)): created from varpool_remove_node
1090         (void dump (FILE *f)): created from dump_varpool_node
1091
1092 2014-07-24  Richard Biener  <rguenther@suse.de>
1093
1094         PR ipa/61823
1095         * tree-ssa-structalias.c (create_variable_info_for_1):
1096         Use varpool_get_constructor.
1097         (create_variable_info_for): Likewise.
1098
1099 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1100
1101         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
1102         subtract outgoing area size when restoring stack_pointer_rtx.
1103
1104 2014-07-24  Nick Clifton  <nickc@redhat.com>
1105
1106         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
1107         that operations are taking place in parallel.
1108         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
1109
1110 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
1111
1112         * omp-low.c (extract_omp_for_data): Add missing break statement.
1113
1114 2014-07-24  Richard Biener  <rguenther@suse.de>
1115
1116         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
1117         * tree-inline.c (estimate_move_cost): Add speed_p parameter
1118         and adjust MOVE_RATIO query accordingly.
1119         (estimate_num_insns): Adjust callers.
1120         * ipa-prop.c (ipa_populate_param_decls): Likewise.
1121         * ipa-cp.c (gather_context_independent_values,
1122         estimate_local_effects): Likewise.
1123         * ipa-split.c (consider_split): Likewise.
1124
1125 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
1126
1127         * config/i386/driver-i386.c: Remove names of unused arguments and
1128         unnecessary unused attributes.
1129         * config/i386/host-mingw32.c: Likewise.
1130         * config/i386/i386.c: Likewise.
1131         * config/i386/winnt-stubs.c: Likewise.
1132         * config/i386/winnt.c: Likewise.
1133
1134 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1135
1136         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
1137         (aarch64_gen_loadwb_pair): New helper function.
1138         (aarch64_expand_epilogue): Simplify code using new helper functions.
1139         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
1140
1141 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1142
1143         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
1144         (aarch64_gen_storewb_pair): New helper function.
1145         (aarch64_expand_prologue): Simplify code using new helper functions.
1146         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
1147
1148 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1149
1150         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
1151         Rename to aarch64_save_callee_saves, remove restore code.
1152         (aarch64_restore_callee_saves): New function.
1153
1154 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1155
1156         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
1157         (aarch64_save_callee_saves): New function to handle reg save
1158         for both core and vectore regs.
1159
1160 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1161
1162         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
1163         (aarch64_gen_store_pair): New helper function.
1164         (aarch64_save_or_restore_callee_save_registers)
1165         (aarch64_save_or_restore_fprs): Use new helper functions.
1166
1167 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1168
1169         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
1170         (aarch64_save_or_restore_callee_save_registers)
1171         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
1172
1173 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1174
1175         * config/aarch64/aarch64.c
1176         (aarch64_save_or_restore_callee_save_registers)
1177         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
1178
1179 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1180
1181         * config/aarch64/aarch64.c
1182         (aarch64_save_or_restore_callee_save_registers)
1183         (aarch64_save_or_restore_fprs): Remove 'increment'.
1184
1185 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1186
1187         * config/aarch64/aarch64.c
1188         (aarch64_save_or_restore_callee_save_registers)
1189         (aarch64_save_or_restore_fprs): Use register offset in
1190         cfun->machine->frame.reg_offset.
1191
1192 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1193
1194         * config/aarch64/aarch64.c
1195         (aarch64_save_or_restore_callee_save_registers)
1196         (aarch64_save_or_restore_fprs): Remove base_rtx.
1197
1198 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1199
1200         * config/aarch64/aarch64.c
1201         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
1202         to 'start_offset'.  Remove local variable 'start_offset'.
1203
1204 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1205
1206         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
1207         type to HOST_WIDE_INT.
1208
1209 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1210
1211         * config/aarch64/aarch64.c (aarch64_expand_prologue)
1212         (aarch64_save_or_restore_fprs)
1213         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
1214
1215 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1216
1217         * config/arm/t-rtems-eabi: Add
1218         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
1219         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
1220         mbig-endian/mthumb/march=armv7-r, and
1221         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
1222         multilibs.
1223
1224 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1225             Chris Johns <chrisj@rtems.org>
1226             Joel Sherrill <joel.sherrill@oarcorp.com>
1227
1228         * config.gcc: Add nios2-*-rtems*.
1229         * config/nios2/rtems.h: New file.
1230         * gcc/config/nios2/t-rtems: New file.
1231
1232 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
1233
1234         PR target/61396
1235         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
1236         constant numbers, not general constants.
1237         (rs6000_expand_vector_init): Ditto.
1238
1239 2014-07-23  Nathan Sidwell  <nathan@acm.org>
1240
1241         * gcov-tool.c (gcov_list): Declare here.
1242         (set_gcov_list): Remove.
1243         (gcov_output_files): Set gcov_list directly.
1244
1245 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
1246
1247         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
1248
1249 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1250
1251         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
1252         callee-saved registers are available for padding purpose
1253         and r3 is not mandatory, then prefer use those callee-saved
1254         instead of r3.
1255
1256 2014-07-23  Richard Biener  <rguenther@suse.de>
1257
1258         * params.def (PARAM_MAX_COMBINE_INSNS): New.
1259         * combine.c: Include statistics.h and params.h.
1260         (combine_instructions): Guard three and four insn combines
1261         with max-combine-insns value.  Record statistics for combines
1262         performed.
1263         * doc/invoke.texi (max-combine-insns): Document new param.
1264
1265 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
1266
1267         * graphite-isl-ast-to-gimple.c:
1268         (translate_isl_ast_node_block): New function.
1269         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
1270
1271         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
1272         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
1273
1274 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
1275
1276         * graphite-isl-ast-to-gimple.c:
1277         (get_max_schedule_dimensions): New function.
1278         (extend_schedule): Likewise.
1279         (generate_isl_schedule): Add calling of extend_schedule and
1280         get_max_schedule_dimensions.
1281
1282 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1283
1284         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
1285         (case UNSPEC): Handle UNSPEC_RBIT.
1286
1287 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1288
1289         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
1290         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
1291
1292 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1293
1294         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
1295
1296 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
1297
1298         * graphite-isl-ast-to-gimple.c:
1299         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
1300         (ivs_params_clear):
1301         (build_iv_mapping): New function.
1302         (translate_isl_ast_node_user): Likewise.
1303         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
1304
1305         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
1306         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
1307         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
1308
1309 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
1310
1311         PR target/55701
1312         * config/arm/arm.md (setmem): New pattern.
1313         * config/arm/arm-protos.h (struct tune_params): New fields.
1314         (arm_gen_setmem): New prototype.
1315         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1316         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1317         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1318         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1319         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1320         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1321         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1322         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1323         (arm_const_inline_cost): New function.
1324         (arm_block_set_max_insns): New function.
1325         (arm_block_set_non_vect_profit_p): New function.
1326         (arm_block_set_vect_profit_p): New function.
1327         (arm_block_set_unaligned_vect): New function.
1328         (arm_block_set_aligned_vect): New function.
1329         (arm_block_set_unaligned_non_vect): New function.
1330         (arm_block_set_aligned_non_vect): New function.
1331         (arm_block_set_vect, arm_gen_setmem): New functions.
1332
1333 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
1334
1335         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1336
1337 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
1338
1339         PR target/61855
1340         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
1341         out of #ifdef __OPTIMIZE__.
1342
1343 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
1344
1345         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
1346         different trapping status if -fnon-call-exceptions is enabled.
1347
1348 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
1349
1350         * expr.c (store_field): Handle VOIDmode for calls that return values
1351         in multiple locations.
1352
1353 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1354
1355         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
1356         (altivec_vsldoi_<mode>): Likewise.
1357
1358 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
1359
1360         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
1361         to the number of characters in the line.
1362
1363 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
1364
1365         * graphite-isl-ast-to-gimple.c: Add using of
1366         build_nonstandard_integer_type instead of int128_integer_type_node.
1367
1368 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
1369
1370         * toplev.c (output_stack_usage): Adjust the location of the warning.
1371
1372 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
1373
1374         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
1375         (*membar_storeload): Disable for LEON3.
1376
1377 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1378
1379         PR rtl-optimization/61461
1380         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
1381
1382 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
1383
1384         PR target/61794
1385         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
1386         Fix instruction constraint.
1387         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
1388
1389 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
1390
1391         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
1392
1393 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
1394
1395         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
1396         GNU coding standards.
1397         (nds32_register_move_cost): Likewise.
1398         (nds32_memory_move_cost): Likewise.
1399         (nds32_address_cost): Likewise.
1400
1401 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1402
1403         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
1404
1405 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
1406
1407         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
1408         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
1409         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1410         (HAVE_sync_compare_and_swapqi): Define.
1411         (HAVE_sync_compare_and_swaphi): Likewise.
1412         (HAVE_sync_compare_and_swapsi): Likewise.
1413
1414 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
1415
1416         * config/mips/p5600.md: Add missing cpu tests.
1417
1418 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1419
1420         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
1421         (vmla_f64): Likewise.
1422         (vfms_f64): Likewise.
1423         (vmls_f64): Likewise.
1424
1425 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1426
1427         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
1428         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
1429
1430 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1431
1432         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
1433         (vmlal_high_lane_s32): Likewise.
1434         (vmlal_high_lane_u16): Likewise.
1435         (vmlal_high_lane_u32): Likewise.
1436         (vmlsl_high_lane_s16): Likewise.
1437         (vmlsl_high_lane_s32): Likewise.
1438         (vmlsl_high_lane_u16): Likewise.
1439         (vmlsl_high_lane_u32): Likewise.
1440
1441 2014-07-17  Terry Guo  <terry.guo@arm.com>
1442
1443         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
1444         (alus_reg): Renamed to alus_sreg.
1445         * config/arm/arm-fixed.md: Change type of non-dsp instructions
1446         from alu_reg to alu_sreg.  Change type of dsp instructions from
1447         alu_reg to alu_dsp_reg.
1448         * config/arm/thumb1.md: Likewise.
1449         * config/arm/thumb2.md: Likewise.
1450         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
1451         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
1452         with alu_sreg and alus_sreg.
1453         * config/arm/arm1026ejs.md (alu_op): Likewise.
1454         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
1455         * config/arm/arm926ejs.md (9_alu_op): Likewise.
1456         * config/arm/fa526.md (526_alu_op): Likewise.
1457         * config/arm/fa606te.md (606te_alu_op): Likewise.
1458         * config/arm/fa626te.md (626te_alu_op): Likewise.
1459         * config/arm/fa726te.md (726te_alu_op): Likewise.
1460         * config/arm/fmp626.md (mp626_alu_op): Likewise.
1461         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
1462         alu_sreg, alu_dsp_reg and alus_sreg.
1463         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
1464         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
1465         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
1466         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
1467         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
1468         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
1469         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
1470         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
1471         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
1472         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
1473         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
1474         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
1475         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
1476         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
1477         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
1478         alus_reg to alus_sreg.
1479
1480 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
1481
1482         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
1483         infinity format.
1484
1485 2014-07-17  Richard Biener  <rguenther@suse.de>
1486
1487         PR rtl-optimization/61801
1488         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
1489         don't set reg_pending_barrier if it appears in a debug-insn.
1490
1491 2014-07-16  DJ Delorie  <dj@redhat.com>
1492
1493         * config/rx/rx.c (rx_option_override): Fix alignment values.
1494         (rx_align_for_label): Likewise.
1495
1496 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
1497
1498         PR target/61737.
1499         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
1500         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1501         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
1502         functions.
1503         (cris_print_index, cris_print_operand, cris_constant_index_p)
1504         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
1505         (cris_address_cost): Ditto last CONSTANT_P.
1506         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
1507         callers changed.  Yield cris_offsettable_symbol for non-PIC
1508         constant symbolic expressions including labels.  Yield cris_unspec
1509         for all unspecs.
1510         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
1511         target to pic_offset_table_rtx for calls that will likely go
1512         through PLT, const0_rtx when they can't.  All callers changed.
1513         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
1514         symbolic expressions to be PICified.  Remove second, redundant,
1515         assert on can_create_pseudo_p returning non-zero.  Use
1516         replace_equiv_address_nv, not replace_equiv_address, for final
1517         operand update.
1518         * config/cris/cris.md ("movsi"): Move variable t to pattern
1519         toplevel. Adjust assert for new cris_symbol_type member.  Use
1520         CONSTANT_P instead of CONSTANT_ADDRESS_P.
1521         ("*movsi_internal") <case 9>: Make check for valid unspec operands
1522         for lapc stricter.
1523         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
1524         ("call", "call_value"): Use second incoming operand as a marker
1525         for pic-offset-table-register being used.
1526         ("*expanded_call_non_v32", "*expanded_call_v32")
1527         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
1528         second incoming operand to CALL, match cris_call_type_marker.
1529         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
1530         ("*expanded_call_side"): Ditto.  Fix typo in comment.
1531         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
1532         CONSTANT_P.
1533         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
1534         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
1535         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
1536         users changed.  Add members cris_offsettable_symbol and cris_unspec.
1537         (cris_symbol_type): Rename from cris_pic_symbol_type.
1538         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
1539         just CONSTANT_P.
1540         * config/cris/cris-protos.h (cris_symbol_type_of,
1541         cris_expand_pic_call_address): Adjust prototypes.
1542         (cris_legitimate_constant_p): New prototype.
1543
1544         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
1545         an existing tmake_file.  Don't add t-slibgcc and t-linux.
1546
1547 2014-07-17  Jason Merrill  <jason@redhat.com>
1548
1549         PR c++/61623
1550         * symtab.c (symtab_remove_from_same_comdat_group): Also
1551         set_comdat_group to NULL_TREE.
1552         (verify_symtab): Fix diagnostic.
1553
1554 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
1555
1556         PR target/61662
1557         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
1558
1559 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1560
1561         Support location tracking for built-in macro tokens
1562         * input.h (is_location_from_builtin_token): New function declaration.
1563         * input.c (is_location_from_builtin_token): New function definition.
1564         * toplev.c (general_init): Tell libcpp what the pre-defined
1565         spelling location for built-in tokens is.
1566
1567 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
1568
1569         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
1570         on the FUNCTION_DECL.
1571
1572 2014-07-16  Richard Biener  <rguenther@suse.de>
1573
1574         PR other/61782
1575         * doc/extend.texi (always_inline): Clarify.
1576
1577 2014-07-15  Eric Christopher  <echristo@gmail.com>
1578
1579         * doc/invoke.texi (Link Options): Document -z option.
1580
1581 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
1582
1583         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
1584         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1585
1586 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
1587
1588         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
1589
1590 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1591
1592         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
1593         varpool_assemble_decl.
1594         * varpool.c (varpool_assemble_decl): Assert that node->definition is
1595         true.
1596
1597 2014-07-15  Michael Matz  <matz@suse.de>
1598
1599         PR rtl-optimization/61772
1600         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
1601
1602 2014-07-15  Richard Biener  <rguenther@suse.de>
1603
1604         * opts.c (default_options_table): Disable bit-ccp at -Og.
1605
1606 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
1607
1608         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
1609
1610 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
1611
1612         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
1613         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
1614         call langhook for unknown declaration.
1615         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
1616         * tree.h (DECL_ARGUMENTS): Update.
1617         * print-tree.c (print_node): Update.
1618         * tree-core.h (tree_decl_non_common): Remove arguments.
1619         (tree_function_decl): Add arguments.
1620
1621 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
1622
1623         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
1624
1625 2014-07-14  Richard Biener  <rguenther@suse.de>
1626
1627         PR tree-optimization/61779
1628         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
1629         simplifying a condition.
1630
1631 2014-07-14  Richard Biener  <rguenther@suse.de>
1632
1633         * builtins.c (c_strlen): Make only_value == 2 really only
1634         affect warning generation.
1635
1636 2014-07-14  Richard Biener  <rguenther@suse.de>
1637
1638         PR tree-optimization/61757
1639         PR tree-optimization/61783
1640         PR tree-optimization/61787
1641         * tree-ssa-dom.c (record_equality): Revert canonicalization
1642         change and add comment.
1643         (propagate_rhs_into_lhs): Revert previous fix, removing
1644         loop depth restriction again.
1645
1646 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1647
1648         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
1649         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
1650         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
1651         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
1652         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
1653         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
1654         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
1655
1656 2014-07-14  Richard Biener  <rguenther@suse.de>
1657
1658         * cgraph.h (decl_in_symtab_p): Make inline.
1659
1660 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1661
1662         PR middle-end/61294
1663         * doc/invoke.texi (-Wmemset-transposed-args): Document.
1664
1665         PR target/61656
1666         * config/i386/i386.c (classify_argument): Don't merge classes above
1667         number of words.
1668
1669 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
1670
1671         * cgraph.h (symtab_node): Add nonzero_address.
1672         (decl_in_symtab_p): Break out from ...
1673         (symtab_get_node): ... here.
1674         * fold-const.c: Include cgraph.h
1675         (tree_single_nonzero_warnv_p): Use symtab to determine
1676         if symbol is non-zero.
1677         * symtab.c (symtab_node::nonzero_address): New method.
1678
1679 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
1680
1681         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
1682         forgotten in previous commit.
1683
1684 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
1685
1686         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
1687         on builtin types.
1688         * ipa-devirt.c: Include stor-layout.h and intl.h
1689         (odr_subtypes_equivalent_p): New function.
1690         (warn_odr): New function.
1691         (warn_type_mismatch): New function.
1692         (odr_types_equivalent_p): New function.
1693         (add_type_duplicate): Use it.
1694         * common.opt (Wodr): New flag.
1695         * doc/invoke.texi (Wodr): Document new warning.
1696
1697 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
1698
1699         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
1700         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
1701         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
1702         (varpool_get_constructor): Push CTORS_IN timevar.
1703         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
1704
1705 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
1706
1707         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
1708         Remove VOID_FTYPE_PUSHORT.
1709         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
1710         Change code to USHORT_FTYPE_VOID.
1711         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
1712         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
1713         (ix86_atomic_assign_expand_fenv): Update for
1714         __builtin_ia32_fnstsw changes.
1715         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
1716         (fnstsw): Change operand 0 to nonimmediate operand.
1717
1718 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
1719
1720         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
1721         (varpool_get_constructor): New function.
1722         (varpool_ctor_useable_for_folding_p): Break out from ...
1723         (ctor_for_folding): ... here; use varpool_get_constructor.
1724         (varpool_assemble_decl): Likewise.
1725         * lto-streamer.h (struct output_block): Turn cgraph_node
1726         to symbol filed.
1727         (lto_input_variable_constructor): Declare.
1728         * ipa-visibility.c (function_and_variable_visibility): Use
1729         varpool_get_constructor.
1730         * cgraph.h (varpool_get_constructor): Declare.
1731         (varpool_ctor_useable_for_folding_p): New function.
1732         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
1733         parameter; return error_mark_node for non-trivial constructors.
1734         (lto_write_tree_1, DFS_write_tree): Update use of
1735         get_symbol_initial_value.
1736         (output_function): Update initialization of symbol.
1737         (output_constructor): New function.
1738         (copy_function): Rename to ..
1739         (copy_function_or_variable): ... this one; handle vars too.
1740         (lto_output): Output variable sections.
1741         * lto-streamer-in.c (input_constructor): New function.
1742         (lto_read_body): Rename from ...
1743         (lto_read_body_or_constructor): ... this one; handle vars too.
1744         (lto_input_variable_constructor): New function.
1745         * ipa-prop.c (ipa_prop_write_jump_functions,
1746         ipa_prop_write_all_agg_replacement): Update.
1747         * lto-cgraph.c (compute_ltrans_boundary): Use it.
1748         (output_cgraph_opt_summary): Set symbol to NULL.
1749
1750 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
1751
1752         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
1753         non-polymorphic types.
1754         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
1755         * ipa-devirt.c (types_same_for_odr): Do not explode when one
1756         of types is not polymorphic.
1757
1758 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
1759
1760         * lra-constraints.c (remove_inheritance_pseudos): Process
1761         destination pseudo too.
1762
1763 2014-07-11  Rong Xu  <xur@google.com>
1764
1765         * gcov-tool.c (gcov_output_files): Fix build error introduced in
1766         commit r212448.
1767
1768 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1769
1770         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
1771         * config/avr/avr-devices.c (AVR_MCU): Same.
1772         (avr_mcu_types): add text start value to end of device list.
1773         * config/avr/avr-mcus.def: Add text section start for all devices.
1774         (ata5782): Add new avr5 device.
1775         (ata5831): Same.
1776         * config/avr/avr-tables.opt: Regenerate.
1777         * config/avr/avr.h: Add declaration for text section start handler.
1778         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
1779         SPEC functions.
1780         (LINK_SPEC): Include text section start handler to linker spec.
1781         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
1782         pass -Ttext option to linker if the text section start for the device
1783         is not zero.
1784         * config/avr/t-multilib: Regenerate.
1785         * doc/avr-mmcu.texi: Regenerate.
1786
1787 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
1788
1789         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
1790         * config/rs6000/aix52.h (LINK_SPEC): Same.
1791         * config/rs6000/aix53.h (LINK_SPEC): Same.
1792         * config/rs6000/aix61.h (LINK_SPEC): Same.
1793         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
1794
1795 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
1796
1797         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
1798         (graphite_verify): New function.
1799         (ivs_params_clear): New function.
1800         (gcc_expression_from_isl_ast_expr_id): New function.
1801         (gcc_expression_from_isl_expr_int): New function.
1802         (binary_op_to_tree): New function.
1803         (ternary_op_to_tree): New function.
1804         (unary_op_to_tree): New function.
1805         (nary_op_to_tree): New function.
1806         (gcc_expression_from_isl_expr_op): New function.
1807         (gcc_expression_from_isl_expression): New function.
1808         (graphite_create_new_loop): New function.
1809         (translate_isl_ast_for_loop): New function.
1810         (get_upper_bound): New function.
1811         (graphite_create_new_loop_guard): New function.
1812         (translate_isl_ast_node_for): New function.
1813         (translate_isl_ast): New function.
1814         (add_parameters_to_ivs_params): New function.
1815         (scop_to_isl_ast): New parameter ip.
1816         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
1817
1818 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
1819
1820         * config/xtensa/predicates.md (call expander): Update for
1821         DECL_SECTION_NAME being string.
1822
1823 2014-07-11  Richard Biener  <rguenther@suse.de>
1824
1825         PR middle-end/61473
1826         * builtins.c (fold_builtin_memory_op): Inline memory moves that
1827         can be implemented with a single load followed by a single store.
1828         (c_strlen): Only warn when only_value is not 2.
1829
1830 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
1831
1832         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
1833
1834 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
1835
1836         PR target/61561
1837         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
1838         (*movhi_bytes): Likewise.
1839         (*arm_movqi_insn): Likewise.
1840
1841 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
1842
1843         PR target/56858
1844         * config/alpha/alpha.c: Include tree-pass.h, context.h
1845         and pass_manager.h.
1846         (pass_data_handle_trap_shadows): New pass.
1847         (pass_handle_trap_shadows::gate): New pass gate function.
1848         (make_pass_handle_trap_shadows): New function.
1849         (rest_of_handle_trap_shadows): Ditto.
1850
1851         (alpha_align_insns_1): Rename from alpha_align_insns.
1852         (pass_data_align_insns): New pass.
1853         (pass_align_insns::gate): New pass gate function.
1854         (make_pass_aling_insns): New function.
1855         (rest_of_align_insns): Ditto.
1856         (alpha_align_insns): Ditto.
1857
1858         (alpha_option_override): Declare handle_trap_shadows info
1859         and align_insns_info.  Register handle_trap_shadows and align_insns
1860         passes here.
1861         (alpha_reorg): Do not call alpha_trap_shadows and
1862         alpha_align_insn from here.
1863
1864         (alpha_pad_function_end): Do not skip BARRIERs.
1865
1866 2014-07-10  Rong Xu  <xur@google.com>
1867
1868         Add gcov-tool: an offline gcda profile processing tool support.
1869         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
1870         (gcov_is_error): Ditto.
1871         (gcov_read_string): Ditto.
1872         (gcov_read_sync): Ditto.
1873         * gcov-io.h: Move counter defines to gcov-counter.def.
1874         * gcov-dump.c (tag_counters): Use gcov-counter.def.
1875         * coverage.c: Ditto.
1876         * gcov-tool.c: Offline gcda profile processing tool.
1877         (unlink_gcda_file): Remove one gcda file.
1878         (unlink_profile_dir): Remove gcda files from the profile path.
1879         (gcov_output_files): Output gcda files to an output dir.
1880         (profile_merge): Merge two profiles in directory.
1881         (print_merge_usage_message): Print merge usage.
1882         (merge_usage): Print merge usage and exit.
1883         (do_merge): Driver for profile merge sub-command.
1884         (profile_rewrite): Rewrite profile.
1885         (print_rewrite_usage_message): Print rewrite usage.
1886         (rewrite_usage): Print rewrite usage and exit.
1887         (do_rewrite): Driver for profile rewrite sub-command.
1888         (print_usage): Print gcov-info usage and exit.
1889         (print_version): Print gcov-info version.
1890         (process_args): Process arguments.
1891         (main): Main routine for gcov-tool.
1892         * Makefile.in: Build and install gcov-tool.
1893         * gcov-counter.def: New file split from gcov-io.h.
1894         * doc/gcc.texi: Include gcov-tool.texi.
1895         * doc/gcov-tool.texi: Document for gcov-tool.
1896
1897 2014-07-10  Richard Biener  <rguenther@suse.de>
1898
1899         PR tree-optimization/61757
1900         * tree-ssa-dom.c (loop_depth_of_name): Restore.
1901         (propagate_rhs_into_lhs): Revert part of last change.
1902
1903 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
1904
1905         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
1906         FUNCTION_DECLs.
1907
1908 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
1909
1910         PR middle-end/53590
1911         * function.c (allocate_struct_function): Revert r188667 change.
1912
1913         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
1914
1915 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
1916
1917         * doc/install.texi: Remove links to defunct package providers for
1918         Solaris.
1919
1920 2014-07-09  Tom de Vries  <tom@codesourcery.com>
1921
1922         * final.c (get_call_fndecl): Declare.
1923         (self_recursive_call_p): New function.
1924         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
1925
1926 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1927
1928         * ipa-devirt.c (record_node): Walk through aliases.
1929
1930 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1931
1932         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
1933
1934 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1935
1936         Revert:
1937         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
1938
1939 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1940
1941         * ipa-visibility.c (function_and_variable_visibility): Remove
1942         temporary hack disabling local aliases on AIX.
1943
1944 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1945
1946         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
1947         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
1948
1949 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
1950
1951         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
1952         * rs6000/rs6000.c: Inline output of .set instruction.
1953         (declare_alias_data): New struct.
1954         (rs6000_declare_alias): New function.
1955         (rs6000_xcoff_declare_function_name): Use it.
1956         (rs6000_xcoff_declare_object_name): New function.
1957         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
1958         (ASM_OUTPUT_DEF): Turn to empty definition.
1959
1960 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
1961
1962         PR bootstrap/61679
1963         * hash-table.h: use hash_table::value_type instead of
1964         Descriptor::value_type in the return types of several methods.
1965
1966 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
1967
1968         * tree-pass.h (pass_data): Remove has_execute member.
1969         * passes.c (execute_one_pass): Don't check pass->has_execute.
1970         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
1971         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
1972         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
1973         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
1974         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
1975         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
1976         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
1977         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
1978         gimple-low.c, gimple-ssa-isolate-paths.c,
1979         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
1980         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
1981         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
1982         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
1983         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
1984         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
1985         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
1986         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
1987         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
1988         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
1989         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
1990         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
1991         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
1992         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1993         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
1994         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
1995         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
1996         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
1997         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
1998         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
1999         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
2000         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
2001         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
2002         web.c: Remove initializer for pass_data::has_execute.
2003
2004 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
2005
2006         * graphite-htab.h: Use hash_map instead of hash_table.
2007         * graphite-clast-to-gimple.c: Adjust.
2008         * passes.c: Use hash_map instead of hash_table.
2009         * sese.c: Likewise.
2010         * sese.h: Remove now unused code.
2011
2012 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
2013
2014         PR target/61599
2015         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
2016         than zero.
2017
2018 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
2019
2020         PR rtl-optimization/61673
2021         * combine.c (simplify_comparison): Test just mode's sign bit
2022         in tmode rather than the sign bit and any bits above it.
2023
2024 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
2025
2026         * graphite-isl-ast-to-gimple.c (generate_isl_context):
2027         Add __isl_give to the declaration.
2028         (generate_isl_schedule): Likewise.
2029         (scop_to_isl_ast): Likewise.
2030
2031 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2032
2033         * config/arm/arm.c (cortexa5_extra_costs): New table.
2034         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
2035
2036 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
2037
2038         PR tree-optimization/61725
2039         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
2040         range, use range_includes_zerop_p instead of integer_zerop on
2041         vr0->min, only use log2 of max if min is not negative.
2042
2043 2014-07-08  Richard Biener  <rguenther@suse.de>
2044
2045         * tree-ssa-dom.h (loop_depth_of_name): Remove.
2046         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
2047         restriction on loop depth difference.
2048         (record_equality): Likewise.
2049         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
2050         (loop_depth_of_name): Remove.
2051         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
2052         restriction on loop depth difference.
2053         (init_copy_prop): Likewise.
2054
2055 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2056
2057         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
2058         parameter.
2059         (walk_aliased_vdefs): Likewise.
2060         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
2061         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
2062         (detect_type_change_from_memory_writes): Check if entry was reached.
2063
2064 2014-07-08  Richard Biener  <rguenther@suse.de>
2065
2066         PR tree-optimization/61681
2067         * tree-ssa-structalias.c (find_what_var_points_to): Expand
2068         NONLOCAL inside ESCAPED.
2069
2070 2014-07-08  Richard Biener  <rguenther@suse.de>
2071
2072         PR tree-optimization/61680
2073         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2074         Handle properly all read-write dependences with group accesses.
2075
2076 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2077
2078         PR tree-optimization/61576
2079         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
2080         block containing reduction statement is predecessor of phi basi block.
2081
2082 2014-07-08  Marek Polacek  <polacek@redhat.com>
2083
2084         PR c/60226
2085         * fold-const.c (round_up_loc): Change the parameter type.
2086         Remove assert.
2087         * fold-const.h (round_up_loc): Adjust declaration.
2088         * stor-layout.c (finalize_record_size): Check for too large types.
2089
2090 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
2091
2092         * symtab.c: Include calls.h.
2093         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
2094
2095 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
2096
2097         * config/rs6000/rs6000.c (output_vec_const_move): Handle
2098         little-endian code generation.
2099         * config/rs6000/spe.md (spe_evmergehi): Rename to...
2100         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
2101         (spe_evmergehilo): Rename to...
2102         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
2103         (spe_evmergelo): Rename to...
2104         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
2105         (spe_evmergelohi): Rename to...
2106         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
2107         (spe_evmergehi, spe_evmergehilo): New expanders.
2108         (spe_evmergelo, spe_evmergelohi): Likewise.
2109         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
2110         (*frob_tf_ti): Likewise.
2111         (*frob_<mode>_di_2): Likewise.
2112         (*frob_tf_di_8_2): Likewise.
2113         (*frob_di_<mode>): Likewise.
2114         (*frob_ti_tf): Likewise.
2115         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
2116         (*frob_ti_<mode>_8_2): Likewise.
2117         (*frob_ti_tf_2): Likewise.
2118         (mov_si<mode>_e500_subreg0): Rename to...
2119         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
2120         endianness only.
2121         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
2122         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
2123         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
2124         the big endianness only.
2125         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
2126         (*mov_si<mode>_e500_subreg0_2): Rename to...
2127         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
2128         big big endianness only.
2129         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
2130         (*mov_si<mode>_e500_subreg4): Rename to...
2131         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
2132         endianness only.
2133         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
2134         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
2135         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
2136         the big endianness only.
2137         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
2138         pattern.
2139         (*mov_si<mode>_e500_subreg4_2): Rename to...
2140         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
2141         endianness only.
2142         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
2143         (*mov_sitf_e500_subreg8): Rename to...
2144         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
2145         endianness only.
2146         (*mov_sitf_e500_subreg8_le): New instruction pattern.
2147         (*mov_sitf_e500_subreg8_2): Rename to...
2148         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
2149         endianness only.
2150         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
2151         (*mov_sitf_e500_subreg12): Rename to...
2152         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
2153         endianness only.
2154         (*mov_sitf_e500_subreg12_le): New instruction pattern.
2155         (*mov_sitf_e500_subreg12_2): Rename to...
2156         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
2157         endianness only.
2158         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
2159
2160 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2161
2162         * asan.c (instrument_strlen_call): Do not instrument first byte
2163         in strlen if already instrumented.
2164
2165 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2166
2167         * config/arm/arm.opt (mwords-little-endian): Delete.
2168         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
2169         of TARGET_LITTLE_WORDS.
2170         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
2171         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
2172         warning.
2173         * doc/invoke.texi: Remove references to -mwords-little-endian.
2174
2175 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
2176
2177         * expmed.c (struct init_expmed_rtl): Change all fields but
2178         pow2 and cint from struct rtx_def to rtx.
2179         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
2180         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
2181         at the end again.
2182
2183 2014-07-06  Marek Polacek  <polacek@redhat.com>
2184
2185         PR c/6940
2186         * doc/invoke.texi: Document -Wsizeof-array-argument.
2187
2188 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
2189
2190         * wide-int.h (wide_int_storage): Change declaration from struct
2191         to class.
2192
2193 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
2194
2195         * cgraph.c (cgraph_create_indirect_edge): Update call of
2196         get_polymorphic_call_info.
2197         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
2198         (possible_polymorphic_call_targets): Add parameter call.
2199         (decl_maybe_in_construction_p): New predicate.
2200         (get_polymorphic_call_info): Add parameter call;
2201         use decl_maybe_in_construction_p.
2202         * gimple-fold.c (fold_gimple_assign): Update use of
2203         possible_polymorphic_call_targets.
2204         (gimple_fold_call): Likewise.
2205         * ipa-prop.c: Inlcude calls.h
2206         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
2207         (param_type_may_change_p): New predicate.
2208         (detect_type_change_from_memory_writes): Break out from ...
2209         (detect_type_change): ... this one; use param_type_may_change_p.
2210         (detect_type_change_ssa): Use param_type_may_change_p.
2211         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
2212
2213 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
2214
2215         PR target/49423
2216         * config/arm/arm-protos.h (arm_legitimate_address_p,
2217         arm_is_constant_pool_ref): Add prototypes.
2218         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
2219         (arm_is_constant_pool_ref) New function.
2220         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
2221         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
2222         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
2223         operand. Remove pool_range and neg_pool_range attributes.
2224         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
2225         pool_range and neg_pool_range attributes.
2226         * config/arm/constraints.md (Uh): New constraint.
2227         (Uq): Don't allow constant pool references.
2228
2229 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
2230
2231         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
2232         (move_lo_quad_internal_be_<mode>): Likewise.
2233         (move_lo_quad_<mode>): Convert to define_expand.
2234         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
2235         (aarch64_simd_move_hi_quad_be_<mode>): New.
2236         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
2237         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
2238         (aarch64_combinez_be<mode>): New.
2239         (aarch64_combine<mode>): Convert to define_expand.
2240         (aarch64_combine_internal<mode>): New.
2241         (aarch64_simd_combine<mode>): Remove bogus RTL description.
2242
2243 2014-07-04  Tom de Vries  <tom@codesourcery.com>
2244
2245         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
2246         combination of earlyclobber and read/write modifiers.
2247
2248 2014-07-04  Tom de Vries  <tom@codesourcery.com>
2249
2250         * config/aarch64/aarch64-simd.md
2251         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
2252
2253 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
2254
2255         PR target/61714
2256         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
2257
2258 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
2259
2260         PR middle-end/61654
2261         * cgraphunit.c (expand_thunk): Call free_dominance_info.
2262
2263         PR tree-optimization/61684
2264         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
2265         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
2266
2267 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2268             Kito Cheng  <kito@0xlab.org>
2269             Monk Chiang  <sh.chiang04@gmail.com>
2270
2271         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
2272         (nds32_symbol_load_store_p): Move to ...
2273         (nds32_fp_as_gp_check_available): Move to ...
2274         * config/nds32/nds32-fp-as-gp.c: ... here.
2275         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
2276         extern declaration.
2277
2278 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2279             Kito Cheng  <kito@0xlab.org>
2280             Monk Chiang  <sh.chiang04@gmail.com>
2281
2282         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
2283         (nds32_expand_store_multiple): Move to ...
2284         (nds32_expand_movmemqi): Move to ...
2285         * config/nds32/nds32-memory-manipulation.c: ... here.
2286
2287 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2288             Kito Cheng  <kito@0xlab.org>
2289             Monk Chiang  <sh.chiang04@gmail.com>
2290
2291         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
2292         (nds32_output_casesi_pc_relative): Move to ...
2293         (nds32_output_casesi): Move to ...
2294         (nds32_mem_format): Move to ...
2295         (nds32_output_16bit_store): Move to ...
2296         (nds32_output_16bit_load): Move to ...
2297         (nds32_output_32bit_store): Move to ...
2298         (nds32_output_32bit_load): Move to ...
2299         (nds32_output_32bit_load_s): Move to ...
2300         (nds32_output_stack_push): Move to ...
2301         (nds32_output_stack_pop): Move to ...
2302         * config/nds32/nds32-md-auxiliary.c: ... here.
2303
2304 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2305             Ling-Hua Tseng  <uranus@tinlans.org>
2306
2307         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
2308         the purpose of this file.
2309
2310 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2311             Kito Cheng  <kito@0xlab.org>
2312             Monk Chiang  <sh.chiang04@gmail.com>
2313
2314         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
2315         (nds32_address_cost): Move implementation to ...
2316         * config/nds32/nds32-cost.c: ... here.
2317         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
2318         (nds32_address_cost_impl): Declare.
2319
2320 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2321             Kito Cheng  <kito@0xlab.org>
2322             Monk Chiang  <sh.chiang04@gmail.com>
2323
2324         * config/nds32/nds32.c
2325         (nds32_consecutive_registers_load_store_p): Move to ...
2326         (nds32_valid_multiple_load_store): Move to ...
2327         (nds32_valid_stack_push_pop): Move to ...
2328         (nds32_can_use_bclr_p): Move to ...
2329         (nds32_can_use_bset_p): Move to ...
2330         (nds32_can_use_btgl_p): Move to ...
2331         (nds32_can_use_bitci_p): Move to ...
2332         * config/nds32/nds32-predicates.c: ... here.
2333
2334 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2335             Kito Cheng  <kito@0xlab.org>
2336             Monk Chiang  <sh.chiang04@gmail.com>
2337
2338         * config/nds32/nds32.c
2339         (nds32_expand_builtin_null_ftype_reg): Move to ...
2340         (nds32_expand_builtin_reg_ftype_imm): Move to ...
2341         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
2342         (nds32_init_builtins): Move implementation to ...
2343         (nds32_expand_builtin): Move implementation to ...
2344         * config/nds32/nds32-intrinsic.c: ... here.
2345         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
2346         (nds32_expand_builtin_impl): Declare.
2347
2348 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2349             Kito Cheng  <kito@0xlab.org>
2350             Monk Chiang  <sh.chiang04@gmail.com>
2351
2352         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
2353         (nds32_emit_section_tail_template): Move to ...
2354         (nds32_emit_isr_jmptbl_section): Move to ...
2355         (nds32_emit_isr_vector_section): Move to ...
2356         (nds32_emit_isr_reset_conten): Move to ...
2357         (nds32_check_isr_attrs_conflict): Move to ...
2358         (nds32_construct_isr_vectors_information): Move to ...
2359         (nds32_asm_file_start): Move implementation to ...
2360         (nds32_asm_file_end): Move implementation to ...
2361         * config/nds32/nds32-isr.c: ... here.
2362         * config/nds32/nds32-protos.h
2363         (nds32_check_isr_attrs_conflict): Declare.
2364         (nds32_construct_isr_vectors_information): Declare.
2365         (nds32_asm_file_start_for_isr): Declare.
2366         (nds32_asm_file_end_for_isr): Declare.
2367
2368 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2369             Kito Cheng  <kito@0xlab.org>
2370             Monk Chiang  <sh.chiang04@gmail.com>
2371
2372         * config.gcc (nds32*): Add new modules to extra_objs.
2373         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
2374         (nds32be-*-*): Likewise.
2375         * config/nds32/nds32-cost.c: New file.
2376         * config/nds32/nds32-fp-as-gp.c: New file.
2377         * config/nds32/nds32-intrinsic.c: New file.
2378         * config/nds32/nds32-isr.c: New file.
2379         * config/nds32/nds32-md-auxiliary.c: New file.
2380         * config/nds32/nds32-memory-manipulation.c: New file.
2381         * config/nds32/nds32-pipelines-auxiliary.c: New file.
2382         * config/nds32/nds32-predicates.c: New file.
2383         * config/nds32/t-nds32: New file.
2384
2385 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
2386
2387         PR tree-optimization/61682
2388         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
2389         using cases and when one of the operands is equal to 1.
2390
2391 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
2392
2393         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
2394         ashr<mode>3): Correct mode of operands[2].
2395         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
2396         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
2397         Correct mode of operands[2].  Fix split condition.
2398
2399 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
2400
2401         * arm.md (arch): Add armv6_or_vfpv3.
2402         (arch_enabled): Add test for the above.
2403         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
2404         on VFP9.
2405         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
2406
2407 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
2408
2409         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
2410         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
2411         HWI 1 and negate the unsigned value.
2412         * expmed.c (expand_sdiv_pow2): For modes wider than word always
2413         use AND instead of shift.
2414         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
2415
2416 2014-07-03  Marek Polacek  <polacek@redhat.com>
2417
2418         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
2419         (-fsanitize=float-divide-by-zero): Move to the table with
2420         -fsanitize=undefined suboptions.
2421         (-fsanitize=float-cast-overflow): Likewise.
2422
2423 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
2424
2425         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
2426         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
2427         endianness.
2428
2429 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2430
2431         * loop-invariant.c (struct invariant): Add a new member: eqno;
2432         (find_identical_invariants): Update eqno;
2433         (create_new_invariant): Init eqno;
2434         (get_inv_cost): Compute comp_cost with eqno;
2435
2436 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
2437
2438         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
2439         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
2440         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
2441         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
2442         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
2443
2444 2014-07-02  Christian Bruel  <christian.bruel@st.com>
2445
2446         PR target/29349
2447         PR target/53513
2448         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
2449         (make_preds_opaque): Delete.
2450         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
2451         (commit_mode_sets): New function.
2452         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
2453         Process all modes at once.
2454         * basic-block.h (pre_edge_lcm_avs): Declare.
2455         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
2456         Call clear_aux_for_edges. Fix comments.
2457         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
2458         (pre_edge_rev_lcm): Idem.
2459         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
2460         parameter.
2461         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
2462         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
2463         Idem.
2464         * config/i386/i386.c (x96_emit_mode_set): Idem.
2465         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
2466         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
2467         (fpscr_toggle) Disallow from delay slot.
2468         * target.def (emit_mode_set): Add prev_mode parameter.
2469         * doc/tm.texi: Regenerate.
2470
2471 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2472
2473         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
2474         variable i.
2475
2476 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
2477
2478         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
2479         vtable_pointer_value_to_vtable): Constify.
2480         (contains_polymorphic_type_p): Declare.
2481         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
2482         vtable_pointer_value_to_vtable): Constify.
2483         (contains_polymorphic_type_p): New predicate.
2484         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
2485         polymorphic types.
2486         (ipa_set_ancestor_jf): Likewise.
2487         (detect_type_change): Return false in easy cases.
2488         (compute_complex_assign_jump_func): Require type to contain
2489         polymorphic type.
2490         (compute_known_type_jump_func): Likewise.
2491
2492 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
2493
2494         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
2495         Remove.
2496         (type_in_anonymous_namespace_p): Constify argument.
2497         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
2498         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
2499         (main_odr_variant): New function.
2500         (hash_type_name): Make static; update assert; do not ICE on
2501         non-records.
2502         (types_same_for_odr): Bring here from tree.c; simplify and remove
2503         old structural comparing code that doesn't work for templates.
2504         (odr_hasher::equal): Update assert.
2505         (add_type_duplicate): Return true when bases should be computed;
2506         replace incomplete loader by complete; do not output duplicated
2507         warnings; do not ICE on non-records; set odr_violated flag.
2508         (get_odr_type): Be ready to replace incomplete type by complete
2509         one; work on ODR variants instead of main variants; reorder item
2510         in array so bases have still smaller indexes.
2511         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
2512         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
2513
2514 2014-07-01  Cary Coutant  <ccoutant@google.com>
2515
2516         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
2517         lookup.
2518         (resolve_addr_in_expr): When replacing the rtx in a location list
2519         entry, get a new address table entry.
2520         (dwarf2out_finish): Call index_location_lists even if there are no
2521         addr_index_table entries yet.
2522
2523 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
2524
2525         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
2526         change for not being obvious.
2527
2528 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
2529
2530         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
2531         unused argument.
2532
2533 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2534
2535         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
2536         (vcagt_f64): Likewise.
2537         (vcale_f64): Likewise.
2538         (vcaled_f64): Likewise.
2539         (vcales_f32): Likewise.
2540         (vcalt_f64): Likewise.
2541         (vcaltd_f64): Likewise.
2542         (vcalts_f32): Likewise.
2543
2544 2014-07-01  Marek Polacek  <polacek@redhat.com>
2545
2546         * doc/invoke.texi: Document -Wint-conversion.
2547
2548 2014-07-01  Marek Polacek  <polacek@redhat.com>
2549
2550         PR c/58286
2551         * doc/invoke.texi: Document -Wincompatible-pointer-types.
2552
2553 2014-07-01  Martin Liska  <mliska@suse.cz>
2554
2555         IPA REF alias refactoring
2556         * cgraph.h (iterate_direct_aliases): New function.
2557         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
2558         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
2559         FOR_EACH_ALIAS added.
2560         (cgraph_for_node_and_aliases): Likewise.
2561         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
2562         * ipa-inline.c (reset_edge_caches): Likewise.
2563         (update_caller_keys): Likewise.
2564         * trans-mem.c (ipa_tm_execute): Likewise.
2565         *varpool.c (varpool_analyze_node): Likewise.
2566         (varpool_for_node_and_aliases): Likewise.
2567         * ipa-ref.h (first_alias): New function.
2568         (last_alias): Likewise.
2569         (has_aliases_p): Likewise.
2570         * ipa-ref.c (ipa_ref::remove_reference): Removal function
2571         is sensitive to IPA_REF_ALIASes.
2572         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
2573         are put at the beginning of the list.
2574         (symtab_node::iterate_direct_aliases): New function.
2575
2576 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2577
2578         Revert:
2579         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
2580         type is complete.
2581         (write_ts_type_common_tree_pointers): Do not stream fields not set
2582         for incomplete types; do not stream duplicated fields for variants;
2583         sanity check that variant and type match.
2584         (write_ts_type_non_common_tree_pointers): Likewise.
2585         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
2586         TYPE_SIZE whether type is complete.
2587         (lto_input_ts_type_common_tree_pointers): Do same changes as in
2588         write_ts_type_common_tree_pointers
2589         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2590
2591 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
2592
2593         * var-tracking.c (add_stores): Return instead of asserting if old
2594         and new values for conditional store are the same.
2595
2596 2014-06-30  Richard Henderson  <rth@redhat.com>
2597
2598         PR rtl-opt/61608
2599         PR target/39284
2600         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
2601         the cfg if there were any changes.
2602         * passes.def: Revert move of peephole2 after reorder_blocks;
2603         move duplicate_computed_gotos before peephole2.
2604
2605 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
2606
2607         * except.c (emit_note_eh_region_end): New helper function.
2608         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
2609         emit EH_REGION_END note.
2610         * jump.c (cleanup_barriers): Do not split a call and its
2611         corresponding CALL_ARG_LOCATION note.
2612
2613 2014-06-30  Jeff Law  <law@redhat.com>
2614
2615         PR tree-optimization/61607
2616         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
2617         deeper into the SSA_NAME_VALUE chain.
2618
2619 2014-06-30  Marek Polacek  <polacek@redhat.com>
2620
2621         * convert.c (convert_to_integer): Don't instrument conversions if the
2622         function has no_sanitize_undefined attribute.
2623         * ubsan.c: Don't run the ubsan pass if the function has
2624         no_sanitize_undefined attribute.
2625
2626 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
2627
2628         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
2629         -fsanitize=undefined suboptions.
2630
2631 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
2632
2633         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
2634         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
2635         against bigendian and adjust indices.
2636
2637 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
2638
2639         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
2640
2641 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2642
2643         PR target/61633
2644         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
2645         Add alternative; make early clobber.  Adjust both split patterns
2646         to use operand 0 as the working register.
2647
2648 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
2649
2650         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
2651         as ira_object_id_map might be NULL, or 1.
2652
2653 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2654
2655         * loop-invariant.c (get_inv_cost): Handle register class.
2656         (gain_for_invariant): Check the register pressure of the inv
2657         and its overlapped register class, other than all.
2658
2659 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
2660
2661         * doc/invoke.texi (Optimize Options): Fix descriptions of
2662         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
2663
2664 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
2665
2666         * doc/extend.texi (Function Attributes): Update 'naked' attribute
2667         documentation.
2668
2669 2014-06-29  Tobias Grosser <tobias@grosser.es>
2670
2671         PR bootstrap/61650
2672         * graphite-isl-ast-to-gimple.c: Add missing guards.
2673
2674 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
2675
2676         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
2677         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
2678         * flag-types.h: Add new enum fgraphite_generator.
2679         * graphite-isl-ast-to-gimple.c: New.
2680         * graphite-isl-ast-to-gimple.h: New.
2681         * graphite.c (graphite_transform_loops): Add choice of Graphite
2682         code generator, which depends on flag_graphite_code_gen.
2683
2684 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
2685
2686         * graphite-dependences.c (subtract_commutative_associative_deps):
2687         Add NULL checking of the following variables: must_raw_no_source,
2688         may_raw_no_source, must_war_no_source, may_war_no_source,
2689         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
2690         must_war, may_war, must_waw, may_waw.
2691
2692 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
2693
2694         * graphite-clast-to-gimple.c: gloog is renamed to
2695         graphite_regenerate_ast_cloog.  gloog_error is renamed to
2696         graphite_regenerate_error.
2697         * graphite-clast-to-gimple.h: The definition of the struct
2698         bb_pbb_def is moved to graphite-htab.h.
2699         Add inclusion of the hash-table.h.
2700         * graphite-htab.h: The declaration of the function gloog is moved
2701         to graphite-clast-to-gimple.h and renamed to
2702         graphite_regenerate_ast_cloog.
2703         * graphite.c (graphite_transform_loops): gloog is renamed
2704         to graphite_regenerate_ast_cloog.
2705
2706 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2707
2708         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
2709         type is complete.
2710         (write_ts_type_common_tree_pointers): Do not stream fields not set
2711         for incomplete types; do not stream duplicated fields for variants;
2712         sanity check that variant and type match.
2713         (write_ts_type_non_common_tree_pointers): Likewise.
2714         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
2715         TYPE_SIZE whether type is complete.
2716         (lto_input_ts_type_common_tree_pointers): Do same changes as in
2717         write_ts_type_common_tree_pointers
2718         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2719
2720 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2721
2722         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
2723
2724 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2725
2726         * tree-inline.c (remap_type_1): Do not duplicate fields
2727         that are shared in between type and its main variant.
2728
2729 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2730
2731         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
2732         of the type.
2733         (ipa_set_ancestor_jf) Likewise.
2734         (check_stmt_for_type_change): Check that we work on main variant.
2735         (detect_type_change): Look into main variant.
2736         (compute_known_type_jump_func): Check that main variant has BINFO.
2737
2738 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2739
2740         * ipa-devirt.c (set_type_binfo): New function.
2741         (add_type_duplicate): Use it.
2742         (get_odr_type): Sanity check that binfos points to main variants.
2743         (get_class_context): Be sure the context's outer_type is main variant.
2744         (contains_type_p): Walk main variant.
2745         (get_polymorphic_call_info_for_decl): Set outer_type to be
2746         main variant.
2747         (get_polymorphic_call_info): Likewise.
2748         (possible_polymorphic_call_targets): Sanity check that we operate
2749         on main variant.
2750
2751 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
2752
2753         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
2754
2755 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2756
2757         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
2758         accidental change due to wide-int branch merge.
2759
2760 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2761
2762         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
2763         compressed debug support.
2764         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
2765         * configure: Regenerate.
2766         * config.in: Regenerate.
2767         * common.opt (compressed_debug_sections): New enum.
2768         (gz, gz=): New options.
2769         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
2770         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
2771         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
2772         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
2773         LINK_COMPRESS_DEBUG_SPEC.
2774         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
2775         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
2776         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
2777         (Debugging Options): Document -gz[=type].
2778
2779 2014-06-27  Martin Jambor  <mjambor@suse.cz>
2780
2781         PR ipa/61160
2782         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
2783         args_to_skip, use those from node instead.  Copy args_to_skip and
2784         combined_args_to_skip from node to the new thunk.
2785         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
2786         (cgraph_create_virtual_clone): Moved computation of
2787         combined_args_to_skip...
2788         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
2789
2790 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
2791
2792         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
2793         redundant diagnostic machinary.
2794
2795 2014-06-27  Richard Biener  <rguenther@suse.de>
2796
2797         * tree-ssa-math-opts.c (bswap_replace): Fix
2798         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
2799
2800 2014-06-27  Martin Liska  <mliska@suse.cz>
2801
2802         * gimple.h (gimple_location_safe): New function introduced.
2803         * cgraphunit.c (walk_polymorphic_call_targets): Usage
2804         of gimple_location_safe replaces gimple_location.
2805         (gimple_fold_call): Likewise.
2806         * ipa-devirt.c (ipa_devirt): Likewise.
2807         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2808         * ipa.c (walk_polymorphic_call_targets): Likewise.
2809         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2810
2811 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
2812
2813         PR tree-optimization/57233
2814         PR tree-optimization/61299
2815         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
2816         functions.
2817         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
2818         would be lowered to scalar shifts, check if corresponding
2819         shifts and vector BIT_IOR_EXPR are supported and don't lower
2820         or lower just to narrower vector type in that case.
2821         * expmed.c (expand_shift_1): Fix up handling of vector
2822         shifts and rotates.
2823
2824 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
2825
2826         PR target/61586
2827         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
2828
2829 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
2830
2831         * doc/invoke.texi (-fsemantic-interposition): Document.
2832         * common.opt (fsemantic-interposition): New flag.
2833         * varasm.c (decl_replaceable_p): Use it.
2834
2835 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2836
2837         PR target/61542
2838         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
2839         extraction other than index 3.
2840
2841 2014-06-26  Teresa Johnson  <tejohnson@google.com>
2842
2843         * doc/invoke.texi: Fix typo.
2844         * dumpfile.c: Add support for documented -fdump-* options
2845         optimized/missed/note/optall.
2846
2847 2014-06-26  Martin Jambor  <mjambor@suse.cz>
2848
2849         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
2850         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
2851         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
2852         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
2853         * opts.c (default_options_optimization): Set
2854         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
2855         * doc/invoke.texi (allow-load-data-races)
2856         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
2857         (allow-store-data-races): Document the new default.
2858
2859 2014-06-26  Martin Jambor  <mjambor@suse.cz>
2860
2861         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
2862         renamed to ipa_impossible_devirt_target.  Fix typo.
2863         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
2864         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
2865         ipa_impossible_devirt_target.
2866
2867 2014-06-26  Richard Biener  <rguenther@suse.de>
2868
2869         PR tree-optimization/61607
2870         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
2871         explaining why we restrict copies on loop depth.
2872         * tree-ssa-dom.c (cprop_operand): Remove restriction on
2873         on loop depth.
2874         (record_equivalences_from_phis): Instead add it here.
2875
2876 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
2877
2878         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
2879         (LTO_WRAPPER_OBJS): New variable.
2880         (lto-wrapper$(exeext)): Use it.
2881         * collect2.c: Include "collect-utils.h".
2882         (verbose, debug): Remove variables.
2883         (at_file_supplied): No longer static.
2884         (tool_name): New variable.
2885         (do_wait, fork_execute, maybe_unlink): Don't declare.
2886         (tool_cleanup): No longer static.
2887         (notice): Remove function.
2888         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
2889         fork_execute calls.
2890         (collect_wait, do_wait, collect_execute): Remove functions.
2891         (maybe_unlink): No longer static.
2892         * collect2.h (verbose, debug): Don't declare.
2893         (at_file_supplied): Declare.
2894         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
2895         changed.
2896         (collect_execute): Replace with implementation from collect2, plus a
2897         new arg use_atfile.  All callers changed.
2898         (collect_wait): Replace with implementation from collect2.
2899         (maybe_unlink_file): Remove function.
2900         (fork_execute): Replace with implementation from collect2, plus a
2901         new arg use_atfile.  All callers changed.
2902         (do_wait): Add call to utils_cleanup to the error path.
2903         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
2904         (tool_cleanup): Adjust declarations.
2905         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
2906         * tlink.c: Include "collect-utils.h".
2907         (tlink_execute): New arg use_atfile.  All callers changed.
2908         (tlink_init, tlink_execute): Remove declarations.
2909
2910         * collect-utils.c (save_temps): New variable.
2911         (do_wait): Use it instead of debug.  Use fatal_error.
2912         * collect-utils.h (save_temps): Declare.
2913         * collect2.c (verbose): Rename from vflag.  All uses changed.
2914         (tool_cleanup): New function, copied from collect_atexit.
2915         (collect_atexit, handler): Just call it.
2916         * collect2.h (verbose): Declaration renamed from vflag.
2917         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
2918         debug.
2919
2920         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
2921         (lto-wrapper$(exeext)): Link with collect-utils.o.
2922         * collect-utils.c: New file.
2923         * collect-utils.h: New file.
2924         * lto-wrapper.c: Include "collect-utils.h".
2925         (args_name): Delete variable.
2926         (tool_name): New variable.
2927         (tool_cleanup): New function.
2928         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
2929         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
2930         (fork_execute): Remove functions.
2931
2932 2014-06-26  Nick Clifton  <nickc@redhat.com>
2933
2934         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
2935
2936         * doc/extend.texi (Function Attributes): Fix typo in description
2937         of RX vector attribute.
2938
2939 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
2940
2941         * config.gcc (supported_defaults): Error when passing either
2942         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
2943
2944 2014-06-26  Richard Biener  <rguenther@suse.de>
2945
2946         * tree-ssa-dom.c (cprop_operand): Remove restriction on
2947         propagating volatile pointers.
2948
2949 2014-06-26  Richard Biener  <rguenther@suse.de>
2950
2951         PR tree-optimization/61607
2952         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
2953         loop if we redirected its latch edge.
2954         (thread_block_1): Do not cancel loops prematurely.
2955
2956 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
2957
2958         * toplev.c (backend_init_target): Move init_emit_regs and
2959         init_regs to...
2960         (backend_init) ... here; skip ira_init_once and backend_init_target.
2961         (target_reinit) ... and here; clear
2962         this_target_rtl->lang_dependent_initialized.
2963         (lang_dependent_init_target): Clear
2964         this_target_rtl->lang_dependent_initialized;
2965         break out rtl initialization to ...
2966         (initialize_rtl): ... here; call also backend_init_target
2967         and ira_init_once.
2968         * toplev.h (initialize_rtl): New function.
2969         * function.c: Include toplev.h
2970         (init_function_start): Call initialize_rtl.
2971         * rtl.h (target_rtl): Add target_specific_initialized,
2972         lang_dependent_initialized.
2973
2974 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
2975             Jakub Jelinek  <jakub@redhat.com>
2976
2977         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
2978
2979 2014-06-25  Tom de Vries  <tom@codesourcery.com>
2980
2981         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
2982
2983 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2984
2985         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
2986         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
2987         Issue a strict overflow warning if appropriate.
2988
2989 2014-06-25  Martin Liska  <mliska@suse.cz>
2990
2991         IPA REF refactoring
2992         * Makefile.in: Removed header file (ipa-ref-inline.h).
2993         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
2994         called.
2995         (cgraph_speculative_call_info): Likewise.
2996         (cgraph_for_node_thunks_and_aliases): Likewise.
2997         (cgraph_for_node_and_aliases): Likewise.
2998         (verify_cgraph_node): Likewise.
2999         * cgraph.h: Batch of IPA REF functions become member functions of
3000         symtab_node: add_reference, maybe_add_reference, clone_references,
3001         clone_referring, clone_reference, find_reference,
3002         remove_stmt_references, remove_all_references,
3003         remove_all_referring, dump_references, dump_referring,
3004         has_alias_p, iterate_reference, iterate_referring.
3005         * cgraphbuild.c (record_reference): New IPA REF function used.
3006         (record_type_list): Likewise.
3007         (record_eh_tables): Likewise.
3008         (mark_address): Likewise.
3009         (mark_load): Likewise.
3010         (mark_store): Likewise.
3011         (pass_build_cgraph_edges): Likewise.
3012         (rebuild_cgraph_edge): Likewise.
3013         (cgraph_rebuild_references): Likewise.
3014         (pass_remove_cgraph_callee_edges): Likewise.
3015         * cgraphclones.c (cgraph_clone_node): Likewise.
3016         (cgraph_create_virtual_clone): Likewise.
3017         (cgraph_materialize_clone): Likewise.
3018         (cgraph_materialize_all_clones): Likewise.
3019         * cgraphunit.c (cgraph_reset_node): Likewise.
3020         (cgraph_reset_node): Likewise.
3021         (analyze_function): Likewise.
3022         (assemble_thunks_and_aliases): Likewise.
3023         (expand_function): Likewise.
3024         * ipa-comdats.c (propagate_comdat_group): Likewise.
3025         (enqueue_references): Likewise.
3026         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
3027         (create_specialized_node): Likewise.
3028         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
3029         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
3030         * ipa-inline.c (reset_edge_caches): Likewise.
3031         (update_caller_keys): Likewise.
3032         (execute): Likewise.
3033         * ipa-prop.c (remove_described_reference): Likewise.
3034         (propagate_controlled_uses): Likewise.
3035         (ipa_edge_duplication_hook): Likewise.
3036         (ipa_modify_call_arguments): Likewise.
3037         * ipa-pure-const.c (propagate_pure_const): Likewise.
3038         * ipa-ref-inline.h: Header file removed, functions moved
3039         to symtab_node class.
3040         * ipa-ref.c (remove_reference): New class member function.
3041         (cannot_lead_to_return): New class member function.
3042         (referring_ref_list): Likewise.
3043         (referred_ref_list): Likewise.
3044         Rest of functions moved to symtab_node class.
3045         * ipa-ref.h: New member functions remove_reference,
3046         cannot_lead_to_return, referring_ref_list, referred_ref_list added
3047         to ipa_ref class.
3048         ipa_ref_list class has new member functions: first_reference,
3049         first_referring, clear, nreferences.
3050         * ipa-reference.c (analyze_function): New IPA REF function used.
3051         (write_node_summary_p): Likewise.
3052         (ipa_reference_write_optimization_summary): Likewise.
3053         * ipa-split.c (split_function): Likewise.
3054         * ipa-utils.c (ipa_reverse_postorder): Likewise.
3055         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
3056         (function_and_variable_visibility): Likewise.
3057         * ipa.c (has_addr_references_p): Likewise.
3058         (process_references): Argument type changed.
3059         (symtab_remove_unreachable_nodes): New IPA REF function used.
3060         (process_references): Likewise.
3061         (set_writeonly_bit): Likewise.
3062         * lto-cgraph.c: Implementation of new symtab_node member functions
3063         that uses new IPA REF functions.
3064         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
3065         function used.
3066         * lto-streamer-out.c (output_symbol_p): Likewise.
3067         * lto-streamer.h (referenced_from_this_partition_p): Argument type
3068         changed.
3069         * symtab.c: Implementation of new IPA REF API.
3070         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
3071         (ipa_tm_create_version): Likewise.
3072         (ipa_tm_execute): Likewise.
3073         * tree-emutls.c (gen_emutls_addr): Likewise.
3074         * tree-inline.c (copy_bb): Likewise.
3075         (delete_unreachable_blocks_update_callgraph): Likewise.
3076         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
3077         (varpool_for_node_and_aliases): Likewise.
3078
3079 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
3080
3081         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
3082
3083 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
3084
3085         PR bootstrap/61598
3086         * fold-const.c (fold_checksum_tree): Use a hash_table of const
3087         tree_node * instead of tree_node *.
3088         (fold): Adjust.
3089         (print_fold_checksum): Likewise.
3090         (fold_check_failed): Likewise.
3091         (debug_fold_checksum): Likewise.
3092         (fold_build1_stat_loc): Likewise.
3093         (fold_build2_stat_loc): Likewise.
3094         (fold_build3_stat_loc): Likewise.
3095         (fold_build_call_array_loc): Likewise.
3096
3097 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
3098
3099         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
3100         implementation with call to...
3101         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
3102         function.
3103         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
3104         Declare.
3105
3106 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
3107
3108         PR tree-optimization/57742
3109         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
3110         after replacing the statement.
3111
3112 2014-06-25  Nick Clifton  <nickc@redhat.com>
3113
3114         * config/v850/v850.c (GHS_default_section_names): Change to const
3115         char * type.
3116         (GHS_current_section_names): Likewise.
3117         (v850_insert_attributes): Do not build strings, just assign the
3118         names directly.  Change the type of 'chosen_section' to const
3119         char*.
3120         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
3121         directly to the array entry.
3122         * config/v850/v850.h (GHS_default_section_names): Change to const
3123         char * type.
3124         (GHS_current_section_names): Likewise.
3125
3126 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
3127
3128         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
3129         (LANG_HOOKS_DECLS): Add it.
3130         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
3131         has correct type.
3132         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
3133         * langhooks.h (struct lang_hooks_for_decls): Add
3134         omp_clause_linear_ctor hook.
3135         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
3136         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
3137         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
3138         combined simd loop use omp_clause_linear_ctor hook.
3139
3140 2014-06-24  Cong Hou  <congh@google.com>
3141
3142         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
3143         pattern recognition.
3144         (type_conversion_p): PROMOTION is true if it's a type promotion
3145         conversion, and false otherwise.  Return true if the given expression
3146         is a type conversion one.
3147         * tree-vectorizer.h: Adjust the number of patterns.
3148         * tree.def: Add SAD_EXPR.
3149         * optabs.def: Add sad_optab.
3150         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
3151         * expr.c (expand_expr_real_2): Likewise.
3152         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3153         * gimple.c (get_gimple_rhs_num_ops): Likewise.
3154         * optabs.c (optab_for_tree_code): Likewise.
3155         * tree-cfg.c (estimate_operator_cost): Likewise.
3156         * tree-ssa-operands.c (get_expr_operands): Likewise.
3157         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
3158         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
3159         * doc/generic.texi: Add document for SAD_EXPR.
3160         * doc/md.texi: Add document for ssad and usad.
3161
3162 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3163
3164         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
3165         qualification in cast.
3166
3167 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
3168
3169         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
3170         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
3171         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
3172         (tree_function_decl): ... here.
3173         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
3174         streaming of vindex to ...
3175         (write_ts_function_decl_tree_pointers): ... here.
3176         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
3177         Do not stream DECL_VINDEX.
3178         (lto_input_ts_function_decl_tree_pointers): Stream it here.
3179
3180 2014-06-24  Catherine Moore  <clm@codesourcery.com>
3181             Sandra Loosemore  <sandra@codesourcery.com>
3182
3183         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
3184         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
3185         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
3186
3187 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
3188
3189         * doc/invoke.texi (Warning Options): Remove duplicated
3190         -Wmaybe-uninitialized.
3191
3192 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
3193
3194         PR tree-optimization/57742
3195         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
3196         (handle_builtin_malloc, handle_builtin_memset): New functions.
3197         (strlen_optimize_stmt): Call them.
3198         * passes.def: Move strlen after loop+dom but before vrp.
3199
3200 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
3201
3202         PR target/61570
3203         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
3204         model family 6 CPU with has_longmode never use a CPU without
3205         64-bit support.
3206
3207 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3208
3209         PR target/61570
3210         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
3211         the last change.
3212
3213 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3214
3215         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
3216         * dominance.c (iterate_fix_dominators): Use hash_map instead of
3217         pointer_map.
3218         * hash-map.h: New file.
3219         * ipa-comdats.c: Use hash_map instead of pointer_map.
3220         * ipa.c: Likewise.
3221         * lto-section-out.c: Adjust.
3222         * lto-streamer.h: Replace pointer_map with hash_map.
3223         * symtab.c (verify_symtab): Likewise.
3224         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
3225         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
3226         * tree-streamer.h: Likewise.
3227         * tree-streamer.c: Adjust.
3228         * pointer-set.h: Remove pointer_map.
3229
3230 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3231
3232         * hash-table.h: Add a template arg to choose between storing values
3233         and storing pointers to values, and then provide partial
3234         specializations for both.
3235         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
3236         should store, not the type values should point to.
3237         * tree-into-ssa.c (var_info_hasher): Likewise.
3238         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
3239         * tree-complex.c: Adjust.
3240         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
3241         table instead of int_tree_map *.
3242         * tree-parloops.c: Adjust.
3243         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
3244         type is being stored.
3245         * tree-vectorizer.c: Adjust.
3246
3247 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3248
3249         * hash-table.h: Remove a layer of indirection from hash_table so that
3250         it contains the hash table's data instead of a pointer to the data.
3251         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
3252         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
3253         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
3254         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
3255         fold-const.c, gcse.c, ggc-common.c,
3256         gimple-ssa-strength-reduction.c, gimplify.c,
3257         graphite-clast-to-gimple.c, graphite-dependences.c,
3258         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
3259         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
3260         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
3261         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
3262         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
3263         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
3264         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
3265         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
3266         tree-ssa-live.c, tree-ssa-loop-im.c,
3267         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
3268         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3269         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
3270         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
3271         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
3272         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
3273         vtable-verify.c, vtable-verify.h: Adjust.
3274
3275 2014-06-24  Richard Biener  <rguenther@suse.de>
3276
3277         PR tree-optimization/61572
3278         * tree-ssa-sink.c (statement_sink_location): Do not sink
3279         loads from hard registers.
3280
3281 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
3282
3283         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
3284         not mentioned in clauses use private clause if the iterator is
3285         declared in #pragma omp for simd, and when adding lastprivate
3286         instead, add it to the outer #pragma omp for too.  Diagnose
3287         if the variable is private in outer context.  For simd collapse > 1
3288         loops, replace all iterators with temporaries.
3289         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
3290         same even in collapse > 1 loops.
3291
3292         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
3293         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
3294         non-NULL.
3295         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
3296         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
3297         non-NULL.
3298         (gimplify_adjust_omp_clauses): Likewise.
3299         * omp-low.c (lower_rec_simd_input_clauses,
3300         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
3301         safelen the same as safelen(1).
3302         * tree-nested.c (convert_nonlocal_omp_clauses,
3303         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
3304         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
3305         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
3306         Fixup handling of GIMPLE_OMP_TARGET.
3307         (convert_tramp_reference_stmt, convert_gimple_call): Handle
3308         GIMPLE_OMP_TARGET.
3309
3310 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
3311
3312         PR tree-optimization/61554
3313         * tree-ssa-propagate.c: Include "bitmap.h".
3314         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
3315         properly update constructor/destructor.
3316         (substitute_and_fold_dom_walker::before_dom_children):
3317         Remove call to gimple_purge_dead_eh_edges, add bb->index to
3318         need_eh_cleaup instead.
3319         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
3320         need_eh_cleanup.
3321
3322 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
3323
3324         * varpool.c (dump_varpool_node): Dump used_by_single_function.
3325         * tree-pass.h (make_pass_ipa_single_use): New pass.
3326         * cgraph.h (used_by_single_function): New flag.
3327         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
3328         Stream it.
3329         * passes.def (pass_ipa_single_use): Scedule.
3330         * ipa.c (BOTTOM): New macro.
3331         (meet): New function
3332         (propagate_single_user): New function.
3333         (ipa_single_use): New function.
3334         (pass_data_ipa_single_use): New pass.
3335         (pass_ipa_single_use): New pass.
3336         (pass_ipa_single_use::gate): New gate.
3337         (make_pass_ipa_single_use): New function.
3338
3339 2014-06-23  Kai Tietz  <ktietz@redhat.com>
3340
3341         PR target/39284
3342         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
3343         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
3344
3345 2014-06-23  Richard Biener  <rguenther@suse.de>
3346
3347         * tree-ssa-loop.c (gate_loop): New function.
3348         (pass_tree_loop::gate): Call it.
3349         (pass_data_tree_no_loop, pass_tree_no_loop,
3350         make_pass_tree_no_loop): New.
3351         * tree-vectorizer.c: Include tree-scalar-evolution.c
3352         (pass_slp_vectorize::execute): Initialize loops and SCEV if
3353         required.
3354         (pass_slp_vectorize::clone): New method.
3355         * timevar.def (TV_TREE_NOLOOP): New.
3356         * tree-pass.h (make_pass_tree_no_loop): Declare.
3357         * passes.def (pass_tree_no_loop): New pass group with
3358         SLP vectorizer.
3359
3360 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3361
3362         PR target/61570
3363         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
3364         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
3365
3366 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
3367
3368         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
3369         "yes" where needed.
3370
3371 2014-06-23  Alan Modra  <amodra@gmail.com>
3372
3373         PR bootstrap/61583
3374         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
3375         to zero on debug statements.
3376
3377 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
3378
3379         PR target/60825
3380         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
3381         Ignore third operand if present by marking qualifier_internal.
3382
3383         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
3384
3385         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
3386         vector extension.
3387         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
3388         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
3389         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
3390         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
3391         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
3392         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
3393         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
3394         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
3395         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
3396         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
3397         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
3398         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
3399         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
3400         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
3401         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
3402         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
3403         logic in GCC vector extensions
3404
3405         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
3406         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
3407         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
3408         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
3409         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
3410         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
3411         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
3412         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
3413         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
3414         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
3415
3416         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
3417
3418         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
3419         extensions.
3420
3421         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
3422         (vget_low_s64): Use __GET_LOW macro.
3423         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
3424         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
3425         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
3426         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
3427         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
3428
3429         (vcombine_s64): Use GCC vector extensions; remove cast.
3430         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
3431         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
3432         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
3433         Fix type signature; remove cast.
3434
3435 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
3436
3437         PR target/60825
3438         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
3439         V1DFmode.
3440         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
3441         add V1DFmode
3442         (BUILTIN_VD1): New.
3443         (BUILTIN_VD_RE): Remove.
3444         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
3445         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
3446         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
3447         variant but not df.
3448         (vreinterpretv1df*, vreinterpret*v1df): New.
3449         (vreinterpretdf*, vreinterpret*df): Remove.
3450         * config/aarch64/aarch64-simd.md (aarch64_create,
3451         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
3452         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
3453         (VD1): New.
3454         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
3455         (vcreate_f64): Remove cast, use v1df builtin.
3456         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
3457         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
3458         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
3459         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
3460         vmov_n_f64, vst1_f64): Use gcc vector extensions.
3461         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
3462         add range check using __builtin_aarch64_im_lane_boundsi.
3463         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
3464         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
3465         type signature, use gcc vector extensions.
3466         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
3467         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
3468         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
3469         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
3470         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
3471         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
3472         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
3473         vreinterpret_u64_f64): Use v1df builtin not df.
3474
3475 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
3476
3477         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
3478         vector registers.
3479
3480 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
3481
3482         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
3483         priority directly.
3484
3485 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3486
3487         * loop-invariant.c (pre_check_invariant_p): New function.
3488         (find_invariant_insn): Call pre_check_invariant_p.
3489
3490 2014-06-22  Richard Henderson  <rth@redhat.com>
3491
3492         PR target/61565
3493         * compare-elim.c (struct comparison): Add eh_note.
3494         (find_comparison_dom_walker::before_dom_children): Don't eliminate
3495         a redundant comparison in a different EH region.  Purge EH edges if
3496         necessary.
3497
3498 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3499
3500         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
3501         (var_shift): Use it.
3502         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
3503         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
3504         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
3505         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
3506         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
3507         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
3508         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
3509         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
3510         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
3511         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
3512         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
3513         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
3514         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
3515         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
3516         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
3517         *rotldi3_internal15be): Use the new attribute.  Merge register and
3518         integer alternatives.
3519
3520 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3521
3522         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
3523         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
3524         split, *ashrdi3_internal3 and split): Delete, merge into...
3525         (ashr<mode>3): New expander.
3526         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
3527         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
3528
3529 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3530
3531         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
3532         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
3533         *rotldi3_internal3 and split): Delete, merge into...
3534         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
3535         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
3536         Use "rotlw" extended mnemonic.
3537
3538 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3539
3540         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
3541         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
3542         and split, *ashldi3_internal3 and split): Delete, merge into...
3543         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
3544         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
3545
3546 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3547
3548         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
3549         (lshrsi3, two anonymous define_insns and define_splits,
3550         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
3551         *lshrdi3_internal3 and split): Delete, merge into...
3552         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
3553         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
3554
3555 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
3556
3557         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
3558         Remove "O" alternative.
3559
3560 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
3561
3562         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
3563         (mips_move_from_gpr_cost): Likewise.
3564         (mips_register_move_cost): Update accordingly.
3565         (mips_secondary_reload_class): Remove name of in_p.
3566
3567 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
3568
3569         PR target/61503
3570         * config/i386/i386.md (x86_64_shrd, x86_shrd,
3571         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
3572
3573 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3574
3575         * config/nios2/nios2.c: Include "builtins.h".
3576
3577 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
3578
3579         * cgraph.h (tls_model_names): New variable.
3580         * print-tree.c (print_node): Simplify.
3581         * varpool.c (tls_model_names): New variable.
3582         (dump_varpool_node): Output tls model.
3583
3584 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
3585
3586         * ipa-visibility.c (function_and_variable_visibility): Disable
3587         temporarily local aliases for some targets.
3588
3589 2014-06-20  Marek Polacek  <polacek@redhat.com>
3590
3591         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
3592         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
3593         into SANITIZE_UNDEFINED.
3594         * doc/invoke.texi: Describe -fsanitize=bounds.
3595         * gimplify.c (gimplify_call_expr): Add gimplification of internal
3596         functions created in the FEs.
3597         * internal-fn.c: Move "internal-fn.h" after "tree.h".
3598         (expand_UBSAN_BOUNDS): New function.
3599         * internal-fn.def (UBSAN_BOUNDS): New internal function.
3600         * internal-fn.h: Don't define internal functions here.
3601         * opts.c (common_handle_option): Add -fsanitize=bounds.
3602         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
3603         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
3604         * tree-core.h: Define internal functions here.
3605         (struct tree_base): Add ifn field.
3606         * tree-pretty-print.c: Include "internal-fn.h".
3607         (dump_generic_node): Handle functions without CALL_EXPR_FN.
3608         * tree.c (get_callee_fndecl): Likewise.
3609         (build_call_expr_internal_loc): New function.
3610         * tree.def (CALL_EXPR): Update description.
3611         * tree.h (CALL_EXPR_IFN): Define.
3612         (build_call_expr_internal_loc): Declare.
3613         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
3614         types.
3615         (ubsan_type_descriptor): Change bool parameter to enum
3616         ubsan_print_style.  Adjust the code.  Add handling of
3617         UBSAN_PRINT_ARRAY.
3618         (ubsan_expand_bounds_ifn): New function.
3619         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
3620         (ubsan_build_overflow_builtin): Likewise.
3621         (instrument_bool_enum_load): Likewise.
3622         (ubsan_instrument_float_cast): Likewise.
3623         * ubsan.h (enum ubsan_print_style): New enum.
3624         (ubsan_expand_bounds_ifn): Declare.
3625         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
3626
3627 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
3628
3629         * config/rs6000/rs6000.md: Append `DONE' to preparation
3630         statements of `bswap' pattern splitters.
3631
3632 2014-06-20  Tom de Vries  <tom@codesourcery.com>
3633
3634         * target.def (call_fusage_contains_non_callee_clobbers): Update
3635         definition.
3636         * doc/tm.texi: Regenerate.
3637
3638 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
3639             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3640
3641         PR sanitizer/61547
3642         * asan.c (instrument_strlen_call): Fixed instrumentation of
3643         trailing byte.
3644
3645 2014-06-20  Martin Jambor  <mjambor@suse.cz>
3646
3647         PR ipa/61540
3648         * ipa-prop.c (impossible_devirt_target): New function.
3649         (try_make_edge_direct_virtual_call): Use it, also instead of
3650         asserting.
3651
3652 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
3653             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3654
3655         PR sanitizer/61530
3656         * asan.c (build_check_stmt): Add condition.
3657
3658 2014-06-20  Martin Jambor  <mjambor@suse.cz>
3659
3660         PR ipa/61211
3661         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
3662         expanded clones.
3663
3664 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3665
3666         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
3667         Update comments.
3668         (VCONQ): Make comment more helpful.
3669         (VCON): Delete.
3670         * config/aarch64/aarch64-simd.md
3671         (aarch64_sqdmulh_lane<mode>):
3672         Use VCOND for operands 2.  Update lane checking and flipping logic.
3673         (aarch64_sqrdmulh_lane<mode>): Likewise.
3674         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
3675         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
3676         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
3677         attribute of operand 3 to VCOND.
3678         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
3679         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
3680         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
3681         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
3682         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
3683         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
3684         define_insn.
3685         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
3686         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
3687         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
3688         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
3689         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
3690         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
3691         operand to VCOND.  Update lane flipping and bounds checking logic.
3692         (aarch64_sqdmlal2_lane<mode>): Likewise.
3693         (aarch64_sqdmlsl_lane<mode>): Likewise.
3694         (aarch64_sqdmull_lane<mode>): Likewise.
3695         (aarch64_sqdmull2_lane<mode>): Likewise.
3696         (aarch64_sqdmlal_laneq<mode>):
3697         Replace VCON usage with VCONQ.
3698         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
3699         (aarch64_sqdmlal2_laneq<mode>): Emit
3700         aarch64_sqdmlal2_laneq<mode>_internal insn.
3701         Replace VCON with VCONQ.
3702         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
3703         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
3704         (aarch64_sqdmull_laneq<mode>): Emit
3705         aarch64_sqdmull_laneq<mode>_internal insn.
3706         Replace VCON with VCONQ.
3707         (aarch64_sqdmull2_laneq<mode>): Emit
3708         aarch64_sqdmull2_laneq<mode>_internal insn.
3709         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
3710         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
3711         of 3rd argument to int16x4_t.
3712         (vqdmlalh_lane_s16): Likewise.
3713         (vqdmlslh_lane_s16): Likewise.
3714         (vqdmull_high_lane_s16): Likewise.
3715         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
3716         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
3717         (vqdmlsl_lane_s16): Likewise.
3718         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
3719         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
3720         (vqdmlals_lane_s32): Likewise.
3721         (vqdmlsls_lane_s32): Likewise.
3722         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
3723         (vqdmulls_lane_s32): Likewise.
3724         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
3725         (vqdmlsl_lane_s32): Likewise.
3726         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
3727         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
3728         (vqrdmulhh_lane_s16): Likewise.
3729         (vqdmlsl_high_lane_s16): Likewise.
3730         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
3731         (vqdmlsl_high_lane_s32): Likewise.
3732         (vqrdmulhs_lane_s32): Likewise.
3733
3734 2014-06-20  Tom de Vries  <tom@codesourcery.com>
3735
3736         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
3737         get_call_reg_set_usage.
3738
3739 2014-06-20  Tom de Vries  <tom@codesourcery.com>
3740
3741         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
3742         it contains all call_used_regs.
3743
3744 2014-06-20  Tom de Vries  <tom@codesourcery.com>
3745
3746         * final.c (collect_fn_hard_reg_usage): Add and use variable
3747         function_used_regs.
3748
3749 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
3750
3751         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
3752         (set_init_priority, get_init_priority, set_fini_priority,
3753         get_fini_priority): New methods.
3754         * tree.c (init_priority_for_decl): Remove.
3755         (init_ttree): Do not initialize init priority.
3756         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
3757         (decl_priority_info): Remove.
3758         (decl_init_priority_insert): Rewrite.
3759         (decl_fini_priority_insert): Rewrite.
3760         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
3761         tree_priority_map_marked_p): Remove.
3762         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
3763         * lto-streamer-out.c (hash_tree): Do not hash priorities.
3764         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
3765         not output priorities.
3766         (pack_ts_function_decl_value_fields): Likewise.
3767         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
3768         not input priorities.
3769         (unpack_ts_function_decl_value_fields): Likewise.
3770         * symtab.c (symbol_priority_map): Declare.
3771         (init_priority_hash): Declare.
3772         (symtab_unregister_node): Unregister from priority hash, too.
3773         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
3774         New methods.
3775         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
3776         (symbol_priority_info): New function.
3777         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
3778         New methods.
3779         * tree-core.h (tree_priority_map): Remove.
3780
3781 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
3782
3783         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
3784         0xff to uint64_t before shifting it up.
3785
3786 2014-06-20  Julian Brown  <julian@codesourcery.com>
3787             Chung-Lin Tang  <cltang@codesourcery.com>
3788
3789         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
3790         TARGET_THUMB1_ONLY. Add comments.
3791
3792 2014-06-19  Tom de Vries  <tom@codesourcery.com>
3793
3794         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
3795         return type to void.
3796         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
3797
3798 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3799
3800         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
3801         as "move", from depends_on.
3802
3803 2014-06-19  Terry Guo  <terry.guo@arm.com>
3804
3805         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
3806         stage.
3807
3808 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
3809
3810         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
3811         Remove cr5.
3812         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
3813
3814 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3815
3816         PR target/61550
3817         * config/sh/sh.c (prepare_move_operands): Don't process TLS
3818         addresses here if reload in progress or completed.
3819
3820 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
3821
3822         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
3823         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
3824         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
3825         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
3826         (mips_register_priority): New function that implements the target
3827         hook TARGET_REGISTER_PRIORITY.
3828         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
3829         (mips_lra_p): Likewise for TARGET_LRA_P.
3830         (TARGET_REGISTER_PRIORITY): Define macro.
3831         (TARGET_SPILL_CLASS): Likewise.
3832         (TARGET_LRA_P): Likewise.
3833         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
3834         classes.
3835         (REG_CLASS_NAMES): Likewise.
3836         (REG_CLASS_CONTENTS): Likewise.
3837         (BASE_REG_CLASS): Use M16_SP_REGS.
3838         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
3839         New set attribute to enable alternatives depending on the register
3840         allocator used.
3841         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
3842         (*lea64): Disable pattern for MIPS16.
3843         * config/mips/mips.opt (mlra): New option.
3844
3845 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
3846
3847         * lra-constraints.c (base_to_reg): New function.
3848         (process_address): Use new function.
3849
3850 2014-06-18  Tom de Vries  <tom@codesourcery.com>
3851
3852         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
3853         * config/aarch64/aarch64.c
3854         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
3855         (aarch64_emit_call_insn): New function.
3856         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
3857         of emit_call_insn.
3858         * config/aarch64/aarch64.md (define_expand "call_internal")
3859         (define_expand "call_value_internal", define_expand "sibcall_internal")
3860         (define_expand "sibcall_value_internal"): New.
3861         (define_expand "call", define_expand "call_value")
3862         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
3863         expand variant and aarch64_emit_call_insn.
3864
3865 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
3866             Tom de Vries  <tom@codesourcery.com>
3867
3868         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
3869         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
3870         Redefine to true.
3871         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
3872         clobbers to CALL_INSN_FUNCTION_USAGE.
3873         (define_expand "sibcall_internal")
3874         (define_expand "sibcall_value_internal"): New.
3875         (define_expand "call", define_expand "call_value"): Add argument to
3876         arm_emit_call_insn.
3877         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
3878         (define_expand "sibcall_value"): Use sibcall_value_internal and
3879         arm_emit_call_insn.
3880
3881 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3882
3883         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
3884
3885 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3886
3887         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
3888         __udivmoddi4.
3889
3890 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3891
3892         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
3893         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
3894         annotations. Fix DWARF information.
3895
3896 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3897
3898         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
3899         __udivmoddi4, and fixups for negative operands.
3900
3901 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3902
3903         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
3904
3905 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3906
3907         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
3908         to __udivmoddi4.
3909
3910 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3911
3912         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
3913         manipulation.
3914
3915 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3916
3917         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
3918         describing register usage on function entry and exit.
3919
3920 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3921
3922         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
3923         (__aeabi_ldivmod): Fix whitespace.
3924
3925 2014-06-18  Andreas Schwab  <schwab@suse.de>
3926
3927         * doc/md.texi (Standard Names): Use @itemx for grouped items.
3928         Remove blank line after @item.
3929
3930 2014-06-18  Richard Henderson  <rth@redhat.com>
3931
3932         PR target/61545
3933         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
3934
3935 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
3936
3937         * config/arm/arm.c (neon_vector_mem_operand): Allow register
3938         POST_MODIFY for neon loads and stores.
3939         (arm_print_operand): Output post-index register for neon loads and
3940         stores.
3941
3942 2014-06-18  Richard Biener  <rguenther@suse.de>
3943
3944         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
3945
3946 2014-06-18  Richard Biener  <rguenther@suse.de>
3947
3948         * tree-pass.h (make_pass_dce_loop): Remove.
3949         * passes.def: Replace pass_dce_loop with pass_dce.
3950         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
3951         changed free niter estimates and reset the scev cache.
3952         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
3953         make_pass_dce_loop): Remove.
3954         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
3955         (fini_copy_prop): Return whether something changed.  Always
3956         let substitute_and_fold perform DCE and free niter estimates
3957         and reset the scev cache if so.
3958         (execute_copy_prop): If sth changed schedule cleanup-cfg.
3959         (pass_data_copy_prop): Do not unconditionally schedule
3960         cleanup-cfg or update-ssa.
3961
3962 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
3963
3964         PR tree-optimization/61518
3965         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
3966         reduction var is used in reduction stmt or phi-function only.
3967
3968 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3969
3970         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
3971
3972 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3973
3974         PR tree-optimization/61517
3975         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
3976         whose rhs's first tree is the source expression instead of the
3977         expression itself.
3978         (find_bswap_or_nop): Likewise.
3979         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
3980         gimple stmt whose rhs's first tree is the source. In the memory source
3981         case, move the stmt to be replaced close to one of the original load to
3982         avoid the problem of a store between the load and the stmt's original
3983         location.
3984         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
3985         signature.
3986
3987 2014-06-18  Andreas Schwab  <schwab@suse.de>
3988
3989         PR rtl-optimization/54555
3990         * postreload.c (move2add_use_add2_insn): Substitute
3991         STRICT_LOW_PART only if it is cheaper.
3992
3993 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
3994
3995         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
3996         Do not use unspec as call operand.  Use memory_operand instead of
3997         memory_nox32_operand and add "m" operand constraint.  Disable
3998         pattern for TARGET_X32.
3999         (*sibcall_pop_memory): Ditto.
4000         (*sibcall_value_memory): Ditto.
4001         (*sibcall_value_pop_memory): Ditto.
4002         (sibcall peepholes): Merge SImode and DImode patterns using
4003         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
4004         Disable pattern for TARGET_X32.  Check if eliminated register is
4005         really dead after call insn.  Generate call RTX without unspec operand.
4006         (sibcall_value peepholes): Ditto.
4007         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
4008         instead of memory_nox32_operand.  Check if eliminated register is
4009         really dead after call insn. Generate call RTX without unspec operand.
4010         (sibcall_value_pop peepholes): Ditto.
4011         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
4012
4013 2014-06-18  Terry Guo  <terry.guo@arm.com>
4014
4015         PR target/61544
4016         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
4017         reach the head.
4018
4019 2014-06-18  Olivier Hainque  <hainque@adacore.com>
4020
4021         * tree-core.h (tree_block): Add an "end_locus" field, allowing
4022         memorization of the end of block source location.
4023         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
4024         * gimplify.c (gimplify_bind_expr): Propagate the block start and
4025         end source location info we have on the block entry/exit code we
4026         generate.
4027
4028 2014-06-18  Richard Biener  <rguenther@suse.de>
4029
4030         * common.opt (fssa-phiopt): New option.
4031         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
4032         but not with -Og.
4033         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
4034         * doc/invoke.texi (-fssa-phiopt): Document.
4035
4036 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4037
4038         * genattrtab.c (n_bypassed): New variable.
4039         (process_bypasses): Initialise n_bypassed.
4040         Count number of bypassed reservations.
4041         (make_automaton_attrs): Allocate space for bypassed reservations
4042         rather than number of bypasses.
4043
4044 2014-06-18  Richard Biener  <rguenther@suse.de>
4045
4046         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
4047         we propagated anything.
4048         (substitute_and_fold_dom_walker::before_dom_children): Something
4049         changed if we propagated into PHI arguments.
4050         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
4051         we removed a stmt.
4052
4053 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
4054
4055         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
4056         vector case.
4057         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
4058         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
4059         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
4060         Introduces alternative way of loads group permutaions.
4061         (vect_transform_grouped_load): Try alternative way of permutations.
4062
4063 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
4064
4065         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
4066         changed in ORT_TARGET region, don't jump to do_outer.
4067         (struct gimplify_adjust_omp_clauses_data): New type.
4068         (gimplify_adjust_omp_clauses_1): Adjust for data being
4069         a struct gimplify_adjust_omp_clauses_data pointer instead
4070         of tree *.  Pass pre_p as a new argument to
4071         lang_hooks.decls.omp_finish_clause hook.
4072         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
4073         splay_tree_foreach to pass both list_p and pre_p.
4074         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
4075         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
4076         gimplify_adjust_omp_clauses callers.
4077         * langhooks.c (lhd_omp_finish_clause): New function.
4078         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
4079         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
4080         * langhooks.h (struct lang_hooks_for_decls): Add a new
4081         gimple_seq * argument to omp_finish_clause hook.
4082         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
4083         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
4084         (scan_omp_parallel, lower_omp_for): When adding
4085         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
4086         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
4087         * tree-nested.c (convert_nonlocal_omp_clauses,
4088         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
4089         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
4090
4091 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
4092
4093         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
4094         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
4095
4096 2014-06-17  Xinliang David Li  <davidxl@google.com>
4097
4098         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
4099         * passes.c (pass_init_dump_file): Do not set initialize
4100         flag to false unconditionally.
4101
4102 2014-06-17  Richard Biener  <rguenther@suse.de>
4103
4104         * genopinit.c (main): Use vec<>::qsort method.
4105         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
4106         Likewise.
4107         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
4108
4109 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
4110
4111         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
4112         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
4113         (mips_move_to_gpr_cost): Remove ST_REGS case.
4114         (mips_move_from_gpr_cost): Likewise.
4115         (mips_register_move_cost): Likewise.
4116         (mips_secondary_reload_class): Likewise.
4117
4118 2014-06-17  Richard Biener  <rguenther@suse.de>
4119
4120         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
4121         (pass_all_optimizations): Move 3rd copy-prop pass from after
4122         fre to before ifcombine/phiopt.
4123
4124 2014-06-17  Richard Biener  <rguenther@suse.de>
4125
4126         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
4127         and allow all blocks to be forwarders.
4128
4129 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
4130
4131         PR target/61483
4132         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
4133         variable 'size'; calculate 'size' right in the front; use
4134         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
4135         pcum->aapcs_stack_words.
4136
4137 2014-06-17  Nick Clifton  <nickc@redhat.com>
4138
4139         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
4140         (umulhi3, mulsidi3, umulsidi3): Likewise.
4141
4142 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
4143
4144         PR middle-end/61508
4145         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
4146         check for section name.
4147
4148 2014-06-17  Richard Biener  <rguenther@suse.de>
4149
4150         * tree-ssa-propagate.c: Include domwalk.h.
4151         (substitute_and_fold): Outline main worker into a domwalker ...
4152         (substitute_and_fold_dom_walker::before_dom_children): ... here.
4153         Schedule stmts we can fully propagate for removal.  Remove
4154         poor-mans DCE.
4155         (substitute_and_fold): Apply a dominator walk to perform
4156         substitution.  Process stmts scheduled for removal here.
4157
4158 2014-06-17  Richard Biener  <rguenther@suse.de>
4159
4160         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
4161         of PHI node moving.
4162
4163 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4164
4165         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
4166         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
4167         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
4168         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
4169         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
4170         TARGET_HARD_FLOAT.
4171         (get_fpscr) : Likewise.
4172
4173 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4174
4175         PR rtl-optimization/61325
4176         * lra-constraints.c (valid_address_p): Add forward declaration.
4177         (simplify_operand_subreg): Check address validity before and after
4178         alter_reg of memory subreg.
4179
4180 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
4181
4182         * config/i386/i386.c (decide_alg): Correctly handle
4183         maximum size of stringop algorithm.
4184
4185 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
4186
4187         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
4188
4189 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4190
4191         PR rtl-optimization/61522
4192         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
4193
4194 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
4195
4196         Revert:
4197         * symtab.c (symtab_node::reset_section): New method.
4198         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
4199         for localization.
4200         * cgraph.h (reset_section): Declare.
4201         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
4202         do not consider comdat locals.
4203         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
4204         for new symbol.
4205         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
4206         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
4207         reset sections of symbols dragged out of the comdats.
4208         (function_and_variable_visibility): Reset sections of
4209         localized symbols.
4210
4211 2014-06-16  Richard Biener  <rguenther@suse.de>
4212
4213         PR tree-optimization/61482
4214         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
4215         [-INF(OVF), +INF(OVF)] range.
4216
4217 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4218
4219         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
4220         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
4221         handling 32-bit multiplication.
4222
4223 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
4224
4225         PR middle-end/61430
4226         * lra-lives.c (process_bb_lives): Skip creating copy during
4227         insn scan when src/dest has constrained to same regno.
4228
4229 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
4230
4231         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
4232         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
4233
4234 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
4235
4236         * asan.c (check_func): New function.
4237         (maybe_create_ssa_name): Likewise.
4238         (build_check_stmt_with_calls): Likewise.
4239         (use_calls_p): Likewise.
4240         (report_error_func): Change interface.
4241         (build_check_stmt): Allow non-integer lengths; add support
4242         for new parameter.
4243         (asan_instrument): Likewise.
4244         (instrument_mem_region_access): Moved code to build_check_stmt.
4245         (instrument_derefs): Likewise.
4246         (instrument_strlen_call): Likewise.
4247         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
4248         * doc/invoke.texi: Describe new parameter.
4249         * params.def: Define new parameter.
4250         * params.h: Likewise.
4251         * sanitizer.def: Describe new builtins.
4252
4253 2014-06-16  Richard Biener  <rguenther@suse.de>
4254
4255         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4256         Make all defs available at the end.
4257         (eliminate): If we remove a PHI node schedule cfg-cleanup.
4258
4259 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
4260
4261         PR plugins/45078
4262         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
4263
4264 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
4265
4266         PR bootstrap/61516
4267         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
4268         initialization.  Replace remaining use of uid.
4269
4270 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
4271
4272         * c-family/c-common.c (handle_tls_model_attribute): Use
4273         set_decl_tls_model.
4274         * c-family/c-common.c (handle_tls_model_attribute): Use
4275         set_decl_tls_model.
4276         * cgraph.h (struct varpool_node): Add tls_model.
4277         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
4278         * tree.h (DECL_TLS_MODEL): Update.
4279         (DECL_THREAD_LOCAL_P): Check that variable is static.
4280         (decl_tls_model): Declare.
4281         (set_decl_tls_model): Declare.
4282         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
4283         set symbol prorperties.
4284         (get_emutls_init_templ_addr): Cleanup.
4285         (new_emutls_decl): Update.
4286         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
4287         (lto_input_varpool_node): Likewise.
4288         * lto-streamer-out.c (hash_tree): Likewise.
4289         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
4290         not stream DECL_TLS_MODEL.
4291         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
4292         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
4293
4294 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4295
4296         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
4297
4298 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4299
4300         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
4301         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
4302         lists.
4303         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
4304         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
4305         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
4306         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
4307         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
4308         (df_get_artificial_defs, df_get_artificial_uses)
4309         (df_single_def, df_single_use): Update accordingly.
4310         (df_refs_chain_dump): Take the first element in a linked list as
4311         parameter, rather than a pointer to an array of pointers.
4312         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
4313         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
4314         (df_chain_create_bb_process_use): Likewise.
4315         (df_md_bb_local_compute_process_def): Likewise.
4316         * fwprop.c (process_defs, process_uses): Likewise.
4317         (register_active_defs, update_uses): Likewise.
4318         (forward_propagate_asm): Update for new df_ref linking.
4319         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
4320         (df_null_ref_rec, df_null_mw_rec): Likewise.
4321         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
4322         explicitly.
4323         (df_scan_free_bb_info): Remove check for null artificial_defs.
4324         (df_install_ref_incremental): Adjust for new df_ref linking.
4325         Use a single-element insertion rather than a full sort.
4326         (df_ref_chain_delete_du_chain): Take the first element
4327         in a linked list as parameter, rather than a pointer to an array of
4328         pointers.
4329         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
4330         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
4331         (df_insn_info_delete): Remove check for null defs and call to
4332         df_scan_free_mws_vec.
4333         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
4334         null rather than df_null_*_rec.
4335         (df_insn_rescan_debug_internal): Likewise, and update null
4336         checks in the same way.  Remove check for null defs.
4337         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
4338         Move a single element rather doing a full sort.
4339         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
4340         linking.
4341         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
4342         Initialize df_ref and df_mw_hardreg lists to null rather than
4343         df_null_*_rec.
4344         (df_ref_compare): Take df_refs as parameter, transferring the
4345         old interface to...
4346         (df_ref_ptr_compare): ...this new function.
4347         (df_sort_and_compress_refs): Update accordingly.
4348         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
4349         old interface to...
4350         (df_mw_ptr_compare): ...this new function.
4351         (df_sort_and_compress_mws): Update accordingly.
4352         (df_install_refs, df_install_mws): Return a linked list rather than
4353         an array of pointers.
4354         (df_refs_add_to_chains): Assert that old lists are empty rather
4355         than freeing them.
4356         (df_insn_refs_verify): Don't handle null defs speciailly.
4357         * web.c (union_match_dups): Update for new df_ref linking.
4358
4359 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4360
4361         * df.h (df_ref_create, df_ref_remove): Delete.
4362         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
4363         (df_ref_remove): Likewise.
4364
4365 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4366
4367         * df.h (df_single_def, df_single_use): New functions.
4368         * ira.c (find_moveable_pseudos): Use them.
4369
4370 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4371
4372         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
4373         * df-problems.c (df_note_bb_compute): Use it.
4374         * regstat.c (regstat_bb_compute_ri): Likewise.
4375
4376 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4377
4378         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
4379         * cse.c (cse_extended_basic_block): Use them.
4380         * dce.c (mark_artificial_use): Likewise.
4381         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
4382         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
4383         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
4384         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
4385         (df_simulate_initialize_backwards): Likewise.
4386         (df_simulate_finalize_backwards): Likewise.
4387         (df_simulate_initialize_forwards): Likewise.
4388         (df_md_simulate_artificial_defs_at_top): Likewise.
4389         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
4390         * regrename.c (init_rename_info): Likewise.
4391         * regstat.c (regstat_bb_compute_ri): Likewise.
4392         (regstat_bb_compute_calls_crossed): Likewise.
4393
4394 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
4395
4396         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
4397         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
4398         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
4399         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
4400         * combine.c (create_log_links): Likewise.
4401         * compare-elim.c (find_flags_uses_in_insn): Likewise.
4402         (try_eliminate_compare): Likewise.
4403         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
4404         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
4405         (remove_reg_equal_equiv_notes_for_defs): Likewise.
4406         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
4407         (word_dce_process_block, dce_process_block): Likewise.
4408         * ddg.c (def_has_ccmode_p): Likewise.
4409         * df-core.c (df_bb_regno_first_def_find): Likewise.
4410         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
4411         * df-problems.c (df_rd_simulate_one_insn): Likewise.
4412         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
4413         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
4414         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
4415         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
4416         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
4417         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
4418         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
4419         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
4420         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
4421         * fwprop.c (local_ref_killed_between_p): Likewise.
4422         (all_uses_available_at, free_load_extend): Likewise.
4423         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
4424         * hw-doloop.c (scan_loop): Likewise.
4425         * ifcvt.c (dead_or_predicable): Likewise.
4426         * init-regs.c (initialize_uninitialized_regs): Likewise.
4427         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
4428         (process_bb_node_lives): Likewise.
4429         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
4430         (find_moveable_pseudos): Likewise.
4431         * loop-invariant.c (check_dependencies, record_uses): Likewise.
4432         * recog.c (peep2_find_free_register): Likewise.
4433         * ree.c (get_defs): Likewise.
4434         * regstat.c (regstat_bb_compute_ri): Likewise.
4435         (regstat_bb_compute_calls_crossed): Likewise.
4436         * sched-deps.c (find_inc, find_mem): Likewise.
4437         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
4438         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
4439         * shrink-wrap.c (requires_stack_frame_p): Likewise.
4440         (prepare_shrink_wrap): Likewise.
4441         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
4442         * web.c (union_defs, pass_web::execute): Likewise.
4443         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
4444         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
4445
4446 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
4447
4448         * lra-assign.c (assign_by_spills): Add code to assign vector regs
4449         to inheritance pseudos.
4450         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
4451
4452 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
4453
4454         PR target/61415
4455         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
4456         (BU_MISC_2): Rename to ...
4457         (BU_LDBL128_2): ... this.
4458         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
4459         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
4460         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
4461         RS6000_BTM_LDBL128.
4462         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
4463         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
4464         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
4465         (unpacktf_1): Likewise.
4466         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
4467         (__builtin_longdouble_dw1): Likewise.
4468         * doc/sourcebuild.texi (longdouble128): Document.
4469
4470 2014-06-13  Jeff Law  <law@redhat.com>
4471
4472         PR rtl-optimization/61094
4473         PR rtl-optimization/61446
4474         * ree.c (combine_reaching_defs): Get the mode for the copy from
4475         the extension insn rather than the defining insn.
4476
4477 2014-06-13  Dehao Chen  <dehao@google.com>
4478
4479         * dwarf2out.c (add_linkage_name): Emit more linkage name.
4480
4481 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
4482
4483         * doc/install.texi (--enable-linker-plugin-configure-flags)
4484         (--enable-linker-plugin-flags): Document new flags.
4485
4486 2014-06-13  Martin Jambor  <mjambor@suse.cz>
4487
4488         PR ipa/61186
4489         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
4490         cache_token if returning early.
4491
4492 2014-06-13  Nick Clifton  <nickc@redhat.com>
4493
4494         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
4495         requested alignment is active.
4496         (LABEL_ALIGN): Likewise.
4497         (LOOP_ALIGN): Likewise.
4498
4499 2014-06-13  Richard Biener  <rguenther@suse.de>
4500
4501         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4502         Rewrite to propagate the VN result into all uses where
4503         possible and to remove stmts becoming dead because of that.
4504         (eliminate): Generalize stmt removal handling, remove in
4505         reverse dominator order to support proper debug stmt
4506         generation.  Update stmts before removing stmts.
4507         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
4508
4509 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4510
4511         PR tree-optimization/61375
4512         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
4513         symbolic number cannot be represented in an uint64_t.
4514         (find_bswap_or_nop_1): Likewise.
4515
4516 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
4517
4518         * symtab.c (symtab_node::reset_section): New method.
4519         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
4520         for localization.
4521         * cgraph.h (reset_section): Declare.
4522         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
4523         do not consider comdat locals.
4524         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
4525         for new symbol.
4526         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
4527         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
4528         reset sections of symbols dragged out of the comdats.
4529         (function_and_variable_visibility): Reset sections of
4530         localized symbols.
4531
4532 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
4533
4534         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
4535         to use symtab and decl_binds_to_current_def_p
4536         * tree-vectorizer.c (increase_alignment): Increase alignment
4537         of alias target, too.
4538
4539 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
4540
4541         PR middle-end/61486
4542         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
4543         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
4544         if outer combined construct is distribute.
4545         (gimplify_omp_for): For OMP_DISTRIBUTE set
4546         gimplify_omp_ctxp->distribute.
4547         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
4548         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
4549         mapping into decl map.
4550
4551 2014-06-12  Jason Merrill  <jason@redhat.com>
4552
4553         * common.opt (fabi-version): Change default to 0.
4554
4555 2014-06-12  Jason Merrill  <jason@redhat.com>
4556
4557         * toplev.c (process_options): Reject -fabi-version=1.
4558
4559 2014-06-12  Jeff Law  <law@redhat.com>
4560
4561         PR tree-optimization/61009
4562         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
4563         value when we stop processing a block due to problematic PHIs.
4564
4565 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
4566
4567         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
4568         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
4569         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
4570         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
4571         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
4572         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
4573         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
4574         are not in the spec.
4575
4576 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
4577
4578         PR target/59843
4579         * config/aarch64/aarch64-modes.def: Add V1DFmode.
4580         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
4581         Support V1DFmode.
4582
4583 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4584
4585         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
4586
4587 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
4588
4589         PR target/61443
4590         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
4591         loading from address spaces.
4592
4593 2014-06-12  Martin Liska  <mliska@suse.cz>
4594
4595         PR ipa/61462
4596         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
4597         statement is reachable.
4598
4599 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4600
4601         * symtab.c (section_hash): New hash.
4602         (symtab_unregister_node): Clear section before freeing.
4603         (hash_section_hash_entry): New haser.
4604         (eq_sections): New function.
4605         (symtab_node::set_section_for_node): New method.
4606         (set_section_1): Update.
4607         (symtab_node::set_section): Take string instead of tree as parameter.
4608         (symtab_resolve_alias): Update.
4609         * cgraph.h (section_hash_entry_d): New structure.
4610         (section_hash_entry): New typedef.
4611         (cgraph_node): Change comdat_group_ to x_comdat_group,
4612         change section_ to x_section and turn into section_hash_entry;
4613         update accestors; put set_section_for_node offline.
4614         * tree.c (decl_section_name): Turn into string.
4615         (set_decl_section_name): Change parameter to be string.
4616         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
4617         * sdbout.c (sdbout_one_type): Update.
4618         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
4619         * varasm.c (IN_NAMED_SECTION, get_named_section,
4620         resolve_unique_section, hot_function_section, get_named_text_section,
4621         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
4622         make_decl_rtl, default_unique_section): Update.
4623         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
4624         (c6x_elf_unique_section): Update.
4625         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
4626         * config/pa/pa.c (pa_function_section): Update.
4627         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
4628         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
4629         * config/arc/arc.c (arc_in_small_data_p): Update.
4630         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
4631         * config/mcore/mcore.c (mcore_unique_section): Update.
4632         * config/mips/mips.c (mips16_build_function_stub): Update.
4633         (mips16_build_call_stub): Update.
4634         (mips_function_rodata_section): Update.
4635         (mips_in_small_data_p): Update.
4636         * config/score/score.c (score_in_small_data_p): Update.
4637         * config/rx/rx.c (rx_in_small_data): Update.
4638         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
4639         (rs6000_xcoff_asm_named_section): Update.
4640         (rs6000_xcoff_unique_section): Update.
4641         * config/frv/frv.c (frv_string_begins_with): Update.
4642         (frv_in_small_data_p): Update.
4643         * config/v850/v850.c (v850_encode_data_area): Update.
4644         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
4645         (bfin_handle_l1_data_attribute): Update.
4646         (bfin_handle_l2_attribute): Update.
4647         * config/mep/mep.c (mep_unique_section): Update.
4648         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
4649         Update.
4650         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
4651         (h8300_handle_tiny_data_attribute): Update.
4652         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
4653         (m32r_in_small_data_p): Update.
4654         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
4655         * config/i386/i386.c (ix86_in_large_data_p): Update.
4656         * config/i386/winnt.c (i386_pe_unique_section): Update.
4657         * config/darwin.c (darwin_function_section): Update.
4658         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
4659         * tree-emutls.c (get_emutls_init_templ_addr): Update.
4660         (new_emutls_decl): Update.
4661         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
4662         input_varpool_node): Update.
4663         (ead_string_cst): Turn to ...
4664         (read_string): ... this one.
4665         * dwarf2out.c (secname_for_decl): Update.
4666         * asan.c (asan_protect_global): Update.
4667
4668 2014-06-11  DJ Delorie  <dj@redhat.com>
4669
4670         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
4671         cache lines.
4672         * config/rx/rx.c (rx_option_override): Likewise.
4673         (rx_align_for_label): Likewise.
4674
4675         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
4676
4677 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4678
4679         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
4680         prototype.
4681
4682 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4683
4684         * common.md: New file.
4685         * doc/md.texi: Update description of generic, machine-independent
4686         constraints.
4687         * config/s390/constraints.md (e): Delete.
4688         * Makefile.in (md_file): Include common.md.
4689         * config/m32c/t-m32c (md_file): Likewise.
4690         * genpreds.c (general_mem): New array.
4691         (generic_constraint_letters): Remove constraints now defined by
4692         common.md.
4693         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
4694         Allow the first character to be '<' or '>' as well.
4695         * genoutput.c (general_mem): New array.
4696         (indep_constraints): Remove constraints now defined by common.md.
4697         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
4698         Remove special handling of 'm'.
4699         * ira-costs.c (record_reg_classes): Remove special handling of
4700         constraints now defined by common.md.
4701         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4702         * ira-lives.c (single_reg_class): Likewise.
4703         (ira_implicitly_set_insn_hard_regs): Likewise.
4704         * lra-constraints.c (reg_class_from_constraints): Likewise.
4705         (process_alt_operands, process_address, curr_insn_transform): Likewise.
4706         * postreload.c (reload_cse_simplify_operands): Likewise.
4707         * reload.c (push_secondary_reload, scratch_reload_class)
4708         (find_reloads, alternative_allows_const_pool_ref): Likewise.
4709         * reload1.c (maybe_fix_stack_asms): Likewise.
4710         * targhooks.c (default_secondary_reload): Likewise.
4711         * stmt.c (parse_output_constraint): Likewise.
4712         * recog.c (preprocess_constraints): Likewise.
4713         (constrain_operands, peep2_find_free_register): Likewise.
4714         (asm_operand_ok): Likewise, but add a comment saying why 'o'
4715         must be handled specially.
4716
4717 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4718
4719         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
4720         * genpreds.c (have_const_dbl_constraints): Delete.
4721         (add_constraint): Don't set it.
4722         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
4723         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
4724         constraints using the lookup_constraint logic.
4725         * ira-lives.c (single_reg_class): Likewise.
4726         * ira.c (ira_setup_alts): Likewise.
4727         * lra-constraints.c (process_alt_operands): Likewise.
4728         * recog.c (asm_operand_ok, constrain_operands): Likewise.
4729         * reload.c (find_reloads): Likewise.
4730
4731 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4732
4733         * genpreds.c (const_int_start, const_int_end): New variables.
4734         (choose_enum_order): Output CONST_INT constraints before memory
4735         constraints.
4736         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
4737         Add CT_CONST_INT.
4738         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
4739         * ira.c (ira_setup_alts): Likewise.
4740         * lra-constraints.c (process_alt_operands): Likewise.
4741         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
4742         * reload.c (find_reloads): Likewise.
4743
4744 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4745
4746         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
4747         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
4748         * recog.c (preprocess_constraints): Update accordingly.
4749
4750 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4751
4752         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
4753         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
4754         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
4755         * genpreds.c (print_type_tree): New function.
4756         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
4757         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
4758         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
4759         Write out enum constraint_type and get_constraint_type.
4760         * lra-constraints.c (satisfies_memory_constraint_p): Take a
4761         constraint_num rather than a constraint string.
4762         (satisfies_address_constraint_p): Likewise.
4763         (reg_class_from_constraints): Avoid old constraint macros.
4764         (process_alt_operands, process_address_1): Likewise.
4765         (curr_insn_transform): Likewise.
4766         * ira-costs.c (record_reg_classes): Likewise.
4767         (record_operand_costs): Likewise.
4768         * ira-lives.c (single_reg_class): Likewise.
4769         (ira_implicitly_set_insn_hard_regs): Likewise.
4770         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4771         * postreload.c (reload_cse_simplify_operands): Likewise.
4772         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
4773         (constrain_operands, peep2_find_free_register): Likewise.
4774         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
4775         (find_reloads, alternative_allows_const_pool_ref): Likewise.
4776         * reload1.c (maybe_fix_stack_asms): Likewise.
4777         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4778         * targhooks.c (default_secondary_reload): Likewise.
4779         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
4780         to EXTRA_CONSTRAINT_STR.
4781         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
4782
4783 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4784
4785         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
4786         (write_constraint_satisfied_p_array): ...this new function.
4787         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
4788         an array.
4789         (write_insn_preds_c): Update accordingly.
4790
4791 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4792
4793         * genpreds.c (write_lookup_constraint): Rename to...
4794         (write_lookup_constraint_1): ...this.
4795         (write_lookup_constraint_array): New function.
4796         (write_tm_preds_h): Define lookup_constraint as an inline function
4797         that uses write_lookup_constraint_array where possible.
4798         (write_insn_preds_c): Update for the changes above.
4799
4800 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
4801
4802         * doc/md.texi (regclass_for_constraint): Rename to...
4803         (reg_class_for_constraint): ...this.
4804         * genpreds.c (num_constraints, enum_order, register_start)
4805         (register_end, satisfied_start, memory_start, memory_end)
4806         (address_start, address_end): New variables.
4807         (add_constraint): Count the number of constraints.
4808         (choose_enum_order): New function.
4809         (write_enum_constraint_num): Iterate over enum_order.
4810         (write_regclass_for_constraint): Rename to...
4811         (write_reg_class_for_constraint_1): ...this and update output
4812         accordingly.
4813         (write_constraint_satisfied_p): Rename to...
4814         (write_constraint_satisfied_p_1): ...this and update output
4815         accordingly.  Do nothing if all extra constraints are register
4816         constraints.
4817         (write_insn_extra_memory_constraint): Delete.
4818         (write_insn_extra_address_constraint): Delete.
4819         (write_range_function): New function.
4820         (write_tm_preds_h): Define constraint_satisfied_p and
4821         reg_class_for_constraint as inline functions that do a range check
4822         before calling the out-of-line function.  Use write_range_function
4823         to implement insn_extra_{register,memory,address}_constraint,
4824         the first of which is new.
4825         (write_insn_preds_c): Update after above changes to write_* functions.
4826         (main): Call choose_enum_order.
4827
4828 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4829
4830         PR tree-optimization/61306
4831         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
4832         expression instead of its size.
4833         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
4834         false to prevent optimization when the result is unpredictable due to
4835         arithmetic right shift of signed type with highest byte is set.
4836         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
4837         (init_symbolic_number): Likewise.
4838         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
4839         when the result is unpredictable due to sign extension.
4840
4841 2014-06-11  Terry Guo  <terry.guo@arm.com>
4842
4843         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
4844         (*thumb1_addsi3): Ditto.
4845         (*thumb_subdi3): Ditto.
4846         (thumb1_subsi3_insn): Ditto.
4847         (*thumb_mulsi3): Ditto.
4848         (*thumb_mulsi3_v6): Ditto.
4849         (*thumb1_andsi3_insn): Ditto.
4850         (thumb1_bicsi3): Ditto.
4851         (*thumb1_iorsi3_insn): Ditto.
4852         (*thumb1_xorsi3_insn): Ditto.
4853         (*thumb1_ashlsi3): Ditto.
4854         (*thumb1_ashrsi3): Ditto.
4855         (*thumb1_lshrsi3): Ditto.
4856         (*thumb1_rotrsi3): Ditto.
4857         (*thumb1_negdi2): Ditto.
4858         (*thumb1_negsi2): Ditto.
4859         (*thumb1_abssi2): Ditto.
4860         (*thumb1_neg_abssi2): Ditto.
4861         (*thumb1_one_cmplsi2): Ditto.
4862         (*thumb1_zero_extendhisi2): Ditto.
4863         (*thumb1_zero_extendqisi2): Ditto.
4864         (*thumb1_zero_extendqisi2_v6): Ditto.
4865         (thumb1_extendhisi2): Ditto.
4866         (thumb1_extendqisi2): Ditto.
4867         (*thumb1_movdi_insn): Ditto.
4868         (*thumb1_movsi_insn): Ditto.
4869         (*thumb1_movhi_insn): Ditto.
4870         (thumb_movhi_clobber): Ditto.
4871         (*thumb1_movqi_insn): Ditto.
4872         (*thumb1_movhf): Ditto.
4873         (*thumb1_movsf_insn): Ditto.
4874         (*thumb_movdf_insn): Ditto.
4875         (movmem12b): Ditto.
4876         (movmem8b): Ditto.
4877         (cbranchqi4): Ditto.
4878         (cbranchsi4_insn): Ditto.
4879         (cbranchsi4_scratch): Ditto.
4880         (*negated_cbranchsi4): Ditto.
4881         (*tbit_cbranch): Ditto.
4882         (*tlobits_cbranch): Ditto.
4883         (*tstsi3_cbranch): Ditto.
4884         (*cbranchne_decr1): Ditto.
4885         (*addsi3_cbranch): Ditto.
4886         (*addsi3_cbranch_scratch): Ditto.
4887         (*thumb_cmpdi_zero): Ditto.
4888         (cstoresi_eq0_thumb1): Ditto.
4889         (cstoresi_ne0_thumb1): Ditto.
4890         (*cstoresi_eq0_thumb1_insn): Ditto.
4891         (*cstoresi_ne0_thumb1_insn): Ditto.
4892         (cstoresi_nltu_thumb1): Ditto.
4893         (cstoresi_ltu_thumb1): Ditto.
4894         (thumb1_addsi3_addgeu): Ditto.
4895         (*thumb_jump): Ditto.
4896         (*call_reg_thumb1_v5): Ditto.
4897         (*call_reg_thumb1): Ditto.
4898         (*call_value_reg_thumb1_v5): Ditto.
4899         (*call_value_reg_thumb1): Ditto.
4900         (*call_insn): Ditto.
4901         (*call_value_insn): Ditto.
4902         (thumb1_casesi_internal_pic): Ditto.
4903         (thumb1_casesi_dispatch): Ditto.
4904         (*thumb1_indirect_jump): Ditto.
4905         (prologue_thumb1_interwork): Ditto.
4906         (*epilogue_insns): Ditto.
4907         (consttable_1): Ditto.
4908         (consttable_2): Ditto.
4909         (tablejump): Ditto.
4910         (*thumb1_tablejump): Ditto.
4911         (thumb_eh_return): Ditto.
4912         (define_peephole2): Two of them are thumb1 only and got moved into
4913         new file thumb1.md.
4914         (define_split): Six of them are thumb1 only and got moved into new
4915         file thumb1.md.
4916         * config/arm/thumb1.md: New file comprised of above thumb1 only
4917         patterns.
4918
4919 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4920
4921         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
4922         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
4923         dependencies.
4924         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
4925         (aarch64_crc_builtin_datum): New struct.
4926         (aarch64_crc_builtin_data): New.
4927         (aarch64_init_crc32_builtins): New function.
4928         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
4929         (aarch64_crc32_expand_builtin): New.
4930         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
4931         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4932         __ARM_FEATURE_CRC32 when appropriate.
4933         (TARGET_CRC32): Define.
4934         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
4935         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
4936         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
4937         (aarch64_<crc_variant>): New pattern.
4938         * config/aarch64/arm_acle.h: New file.
4939         * config/aarch64/iterators.md (CRC): New int iterator.
4940         (crc_variant, crc_mode): New int attributes.
4941         * doc/aarch64-acle-intrinsics.texi: New file.
4942         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
4943         Include aarch64-acle-intrinsics.texi.
4944
4945 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
4946
4947         * tree-vect-data-refs.c (vect_grouped_store_supported): New
4948         check for stores group of length 3.
4949         (vect_permute_store_chain): New permutations for stores group of
4950         length 3.
4951         * tree-vect-stmts.c (vect_model_store_cost): Change cost
4952         of vec_perm_shuffle for the new permutations.
4953
4954 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4955
4956         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
4957         table rewriting temporarily on targets not supporting ONE_ONLY.
4958
4959 2014-06-11  Richard Biener  <rguenther@suse.de>
4960
4961         PR middle-end/61437
4962         Revert
4963         2014-06-04  Richard Biener  <rguenther@suse.de>
4964
4965         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
4966         TREE_PUBLIC and DECL_EXTERNAL decls.
4967
4968 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
4969
4970         * varasm.c (set_implicit_section): New function.
4971         (resolve_unique_section): Use it to set implicit section
4972         for aliases, too.
4973         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
4974         (default_function_section): Likewise.
4975         (decl_binds_to_current_def_p): Constify argument.
4976         * varasm.h (decl_binds_to_current_def_p): Update prototype.
4977         * asan.c (asan_protect_global): Use
4978         symtab_get_node (decl)->implicit_section.
4979         * symtab.c (dump_symtab_base): Dump implicit sections.
4980         (verify_symtab_base): Verify sanity of sectoins and comdats.
4981         (symtab_resolve_alias): Alias share the section of its target.
4982         (set_section_1): New function.
4983         (symtab_node::set_section): Move here, recurse to aliases.
4984         (verify_symtab): Check for duplicated symtab lists.
4985         * tree-core.h (implicit_section_name_p): Remove.
4986         * tree-vect-data-refs.c: Include varasm.h.
4987         (vect_can_force_dr_alignment_p): Fix conditional on when
4988         decl bints to current definition; use
4989         symtab_get_node (decl)->implicit_section.
4990         * cgraph.c (cgraph_make_node_local_1): Fix section set.
4991         * cgraph.h (struct symtab_node): Add implicit_section.
4992         (set_section): Rename to ...
4993         (set_section_for_node): ... this one.
4994         (set_section): Declare.
4995         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
4996         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4997         input_overwrite_node, input_varpool_node): Stream implicit_section.
4998         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
4999         removal; it will fail in LTO.
5000
5001 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5002
5003         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
5004         Change second alternative type to f_mcr.
5005         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
5006         and 12th alternatives' types to f_mcr and f_mrc.
5007         (*movdi_aarch64): Same for 12th and 13th alternatives.
5008         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
5009         (aarch64_movtilow_tilow): Change type to fmov.
5010
5011 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
5012
5013         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
5014         (aarch64_save_or_restore_callee_save_registers): Fix layout.
5015
5016 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5017
5018         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
5019         New expander.
5020         (aarch64_sqrdmulh_lane<mode>): Likewise.
5021         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
5022         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
5023         (aarch64_sqdmulh_laneq<mode>): New expander.
5024         (aarch64_sqrdmulh_laneq<mode>): Likewise.
5025         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
5026         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
5027         (aarch64_sqdmulh_lane<mode>): New expander.
5028         (aarch64_sqrdmulh_lane<mode>): Likewise.
5029         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
5030         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
5031         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
5032         (aarch64_sqdmlal_laneq<mode>): Likewise.
5033         (aarch64_sqdmlsl_lane<mode>): Likewise.
5034         (aarch64_sqdmlsl_laneq<mode>): Likewise.
5035         (aarch64_sqdmlal2_lane<mode>): Likewise.
5036         (aarch64_sqdmlal2_laneq<mode>): Likewise.
5037         (aarch64_sqdmlsl2_lane<mode>): Likewise.
5038         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
5039         (aarch64_sqdmull_lane<mode>): Likewise.
5040         (aarch64_sqdmull_laneq<mode>): Likewise.
5041         (aarch64_sqdmull2_lane<mode>): Likewise.
5042         (aarch64_sqdmull2_laneq<mode>): Likewise.
5043
5044 2014-06-10  Richard Biener  <rguenther@suse.de>
5045
5046         PR tree-optimization/61438
5047         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
5048         (eliminate_dom_walker::before_dom_children): Only try to inhibit
5049         insertion of IVs if running PRE.
5050         (eliminate): Adjust.
5051         (pass_pre::execute): Likewise.
5052         (pass_fre::execute): Likewise.
5053
5054 2014-06-10  Richard Biener  <rguenther@suse.de>
5055
5056         PR middle-end/61456
5057         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5058         Do not use the main variant for the type comparison.
5059         (ncr_compar): Likewise.
5060         (nonoverlapping_component_refs_p): Likewise.
5061
5062 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5063
5064         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
5065         REG_CFA_RESTORE mode.
5066
5067 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
5068
5069         * config/i386/i386.c (expand_vec_perm_pblendv): New.
5070         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
5071         expand_vec_perm_pblendv.
5072
5073 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5074
5075         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
5076         available.
5077         Simplify description of __crc32d and __crc32cd intrinsics.
5078         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
5079         availability.
5080
5081 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5082
5083         PR lto/61334
5084         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
5085         * config.in: Regenerate.
5086         * configure: Likewise.
5087
5088 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
5089
5090         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
5091         and public vars.
5092         (intersect_static_var_sets): Remove.
5093         (propagate): Do not prune local statics.
5094
5095 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
5096
5097         PR fortran/60928
5098         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
5099         Set lastprivate_firstprivate even if omp_private_outer_ref
5100         langhook returns true.
5101         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
5102         langhook, call unshare_expr on new_var and call
5103         build_outer_var_ref to get the last argument.
5104
5105 2014-06-10  Marek Polacek  <polacek@redhat.com>
5106
5107         PR c/60988
5108         * doc/extend.texi: Add cindex for transparent_union.
5109
5110 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5111
5112         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
5113         init_symbolic_number ().
5114
5115 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
5116
5117         PR middle-end/61141
5118         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
5119         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
5120         (verify_rtl_sharing): Likewise.
5121
5122 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
5123
5124         PR c++/54442
5125         * tree.c (build_qualified_type): Use a canonical type for
5126         TYPE_CANONICAL.
5127
5128 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5129
5130         * config/arm/arm-modes.def: Remove XFmode.
5131
5132 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
5133
5134         PR target/61062
5135         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
5136         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
5137         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
5138         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
5139         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
5140         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
5141         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
5142         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
5143         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
5144
5145 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
5146
5147         * tree-core.h (tree_decl_with_vis): Remove section_name.
5148
5149 2014-06-09  Kito Cheng  <kito@0xlab.org>
5150
5151         * ira.c (ira): Don't call init_caller_save if LRA enabled
5152         since LRA use its own infrastructure to handle that.
5153
5154 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5155
5156         * symtab.c (dump_symtab_base): Update dumping.
5157         (symtab_make_decl_local): Clear only DECL_COMDAT.
5158         * tree-vect-data-refs.c (Check that variable is static before
5159         tampering with sections.
5160         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
5161         (cgraph_create_virtual_clone): Likewise.
5162         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
5163         (decl_section_name, set_decl_section_name): New accessors.
5164         (find_decls_types_r): Do not walk section name
5165         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
5166         (decl_comdat_group, decl_comdat_group_id): Constify.
5167         (decl_section_name, set_decl_section_name): Update.
5168         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
5169         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
5170         (cgraph_make_node_local_1): Clear section and comdat group.
5171         * cgraph.h (set_comdat_group): Sanity check.
5172         (get_section, set_section): New.
5173         * ipa-comdats.c (ipa_comdats): Use get_section.
5174         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
5175         * lto-streamer-out.c: Do not follow section names.
5176         * c-family/c-common.c (handle_section_attribute): Update.
5177         * lto-cgraph.c (lto_output_node): Output section.
5178         (lto_output_varpool_node): Likewise.
5179         (read_comdat_group): Rename to ...
5180         (read_identifier): ... this one.
5181         (read_string_cst): New function.
5182         (input_node, input_varpool_node): Input section names.
5183         * tree-emutls.c (get_emutls_init_templ_addr): Update.
5184         (new_emutls_decl): Update.
5185         (secname_for_decl): Check section names only of static vars.
5186         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
5187         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5188         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
5189         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
5190         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
5191         * config/mcore/mcore.c (mcore_unique_section): Likewise.
5192         * config/mips/mips.c (mips16_build_function_stub): Likewise.
5193         * config/v850/v850.c (v850_insert_attributes): Likewise.
5194         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
5195         Likewise.
5196         (h8300_handle_tiny_data_attribute): Likewise.
5197         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
5198         (bfin_handle_l2_attribute): Likewise.
5199
5200 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5201
5202         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
5203         remove static initializer.
5204
5205 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5206
5207         * varasm.c (use_blocks_for_decl_p): Check symbol table
5208         instead of alias attribute.
5209         (place_block_symbol): Recurse on aliases.
5210
5211 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5212
5213         * ipa-visibility.c: Include varasm.h
5214         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
5215
5216 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5217
5218         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
5219         outputting aliases.
5220
5221 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
5222
5223         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
5224         from test_insn into GGC space escape via SET_SRC.
5225
5226 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
5227
5228         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
5229         call statement, if any.
5230         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
5231         statements, if any.  Tidy up.
5232
5233 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5234
5235         PR target/61431
5236         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
5237         iterators, VSX_D that handles 64-bit types, and VSX_LE that
5238         handles swapping the two 64-bit double words on little endian
5239         systems.  Include V1TImode and optionally TImode in VSX_LE so that
5240         these types are properly swapped.  Change all of the insns and
5241         splits that do the 64-bit swaps to use VSX_LE.
5242         (vsx_le_perm_load_<mode>): Likewise.
5243         (vsx_le_perm_store_<mode>): Likewise.
5244         (splitters for little endian memory operations): Likewise.
5245         (vsx_xxpermdi2_le_<mode>): Likewise.
5246         (vsx_lxvd2x2_le_<mode>): Likewise.
5247         (vsx_stxvd2x2_le_<mode>): Likewise.
5248
5249 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
5250
5251         PR target/61423
5252         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
5253         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
5254         and corresponding splitters.  Zero extend general register
5255         or memory input operand to XMM temporary.  Enable for
5256         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
5257         (floatunssi<mode>2): Update expander predicate.
5258
5259 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
5260
5261         PR rtl-optimization/61325
5262         * lra-constraints.c (process_address_1): Check scale equal to one
5263         to prevent transformation: base + scale * index => base + new_reg.
5264
5265 2014-06-06  Richard Biener  <rguenther@suse.de>
5266
5267         PR tree-optimization/59299
5268         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
5269         a def operand.
5270         (nearest_common_dominator_of_uses): Likewise.
5271         (statement_sink_location): Adjust.  Support sinking loads.
5272
5273 2014-06-06  Martin Jambor  <mjambor@suse.cz>
5274
5275         * ipa-prop.c (get_place_in_agg_contents_list): New function.
5276         (build_agg_jump_func_from_list): Likewise.
5277         (determine_known_aggregate_parts): Renamed to
5278         determine_locally_known_aggregate_parts.  Moved some functionality
5279         to the two functions above, removed bound checks.
5280
5281 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
5282
5283         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
5284         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
5285         (aarch64_progress_pointer): Likewise.
5286         (aarch64_copy_one_part_and_move_pointers): Likewise.
5287         (aarch64_expand_movmen): Likewise.
5288         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
5289         * config/aarch64/aarch64.md (movmem<mode>): New.
5290
5291 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
5292
5293         * targhooks.c (default_add_stmt_cost): Call target specific
5294         hook instead of default one.
5295
5296 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5297
5298         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
5299         endianness instead of host endianness.
5300         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
5301         comments.
5302
5303 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5304
5305         PR debug/53927
5306         * function.c (instantiate_decls): Process the saved static chain.
5307         (expand_function_start): If not optimizing, save the static chain
5308         onto the stack.
5309         * tree-nested.c (convert_all_function_calls): Always create the static
5310         chain for nested functions if not optimizing.
5311
5312 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5313
5314         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
5315
5316 2014-06-06  Richard Biener  <rguenther@suse.de>
5317
5318         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
5319         (construct_init_block): Likewise.
5320         (construct_exit_block): Likewise.
5321         (pass_expand::execute): Likewise.
5322         * graphite.c (graphite_transforms): Replace check for current_loops
5323         with a check for > 1 loops.
5324         (pass_graphite_transforms::execute): Adjust.
5325         * ipa-split.c (split_function): Remove check for current_loops.
5326         * omp-low.c (expand_parallel_call): Likewise.
5327         (expand_omp_for_init_counts): Likewise.
5328         (extract_omp_for_update_vars): Likewise.
5329         (expand_omp_for_generic): Likewise.
5330         (expand_omp_sections): Likewise.
5331         (expand_omp_target): Likewise.
5332         * tracer.c (tail_duplicate): Likewise.
5333         (pass_tracer::execute): Likewise.
5334         * trans-mem.c (expand_transaction): Likewise.
5335         * tree-complex.c (expand_complex_div_wide): Likewise.
5336         * tree-eh.c (lower_resx): Likewise.
5337         (cleanup_empty_eh_merge_phis): Likewise.
5338         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
5339         current_loops with a check for > 1 loops.
5340         (pass_predcom::execute): Adjust.
5341         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
5342         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
5343         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
5344         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
5345         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5346         * tree-switch-conversion.c (process_switch): Likewise.
5347         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
5348         * tree-vrp.c (vrp_visit_phi_node): Likewise.
5349         (execute_vrp): Likewise.
5350         * ubsan.c (ubsan_expand_null_ifn): Likewise.
5351
5352 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5353
5354         * rtl.h (insn_location): Declare.
5355         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
5356         with UNKNOWN_LOCATION.
5357         * emit-rtl.c (insn_location): New function.
5358         * final.c (notice_source_line): Check that the instruction has a
5359         location before retrieving it and use insn_location.
5360         * modulo-sched.c (loop_single_full_bb_p): Likewise.
5361         * print-rtl.c (print_rtx): Likewise.
5362
5363 2014-06-06  Richard Biener  <rguenther@suse.de>
5364
5365         * passes.def: Move 2nd VRP pass before phi-only-cprop.
5366
5367 2014-06-06  Christian Bruel  <christian.bruel@st.com>
5368
5369         PR tree-optimization/43934
5370         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
5371         cost.
5372
5373 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
5374
5375         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
5376         return NO_REGS for extra address and memory constraints.  Handle
5377         operands that match (or are equivalent to something that matches)
5378         extra constant constraints.  Ignore other non-register operands.
5379
5380 2014-06-06  Alan Modra  <amodra@gmail.com>
5381
5382         PR target/61300
5383         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
5384         * doc/tm.texi: Regenerate.
5385         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
5386         Use throughout in place of REG_PARM_STACK_SPACE.
5387         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
5388         "incoming" param.  Pass to rs6000_function_parms_need_stack.
5389         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
5390         prototype_p when incoming.  Use function decl when incoming
5391         to handle K&R style functions.
5392         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
5393         (INCOMING_REG_PARM_STACK_SPACE): Define.
5394
5395 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5396
5397         PR target/52472
5398         * cfgexpand.c (expand_debug_expr): Use address space of nested
5399         TREE_TYPE for ADDR_EXPR and MEM_REF.
5400
5401 2014-06-05  Jeff Law  <law@redhat.com>
5402
5403         PR tree-optimization/61289
5404         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
5405         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
5406         looking for those which match LHS.  All callers changed.
5407         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
5408         parameters and code which manipulated them.  All callers changed.
5409         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
5410         and DST_MAP parameters.  Simplify invalidation code by just calling
5411         invalidate_equivalences.  All callers changed.
5412         (thread_across_edge): Simplify now that we don't need to maintain
5413         the map of equivalences to invalidate.
5414
5415 2014-06-05  Kai Tietz  <ktietz@redhat.com>
5416             Richard Henderson  <rth@redhat.com>
5417
5418         PR target/46219
5419         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
5420         checking for !TARGET_X32.
5421         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
5422         (sibcall_intern): New define_insn, plus required peepholes.
5423         (sibcall_pop_intern): Likewise.
5424         (sibcall_value_intern): Likewise.
5425         (sibcall_value_pop_intern): Likewise.
5426
5427 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
5428
5429         * tree-inline.c (tree_function_versioning): Check DF info existence
5430         before accessing it.
5431
5432 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5433
5434         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
5435         frame_size.
5436         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
5437         aarch64_frame hard_fp_offset and frame_size.
5438         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
5439         frame_size; remove original_frame_size.
5440         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
5441         (aarch64_initial_elimination_offset): Remove frame_size and
5442         offset.  Use aarch64_frame frame_size.
5443
5444 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5445             Jiong Wang  <jiong.wang@arm.com>
5446             Renlin  <renlin.li@arm.com>
5447
5448         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
5449         initialization of R30 offset.  Update offset.  Iterate core
5450         regisers upto X30.  Remove X29, X30 specific code.
5451
5452 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5453             Jiong Wang  <jiong.wang@arm.com>
5454
5455         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
5456         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
5457         (aarch64_register_saved_on_entry): Adjust test.
5458
5459 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5460
5461         * config/aarch64/aarch64.h (machine_function): Move
5462         saved_varargs_size from here...
5463         (aarch64_frame): ... to here.
5464
5465         * config/aarch64/aarch64.c (aarch64_expand_prologue)
5466         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
5467         (aarch64_initial_elimination_offset)
5468         (aarch64_setup_incoming_varargs): Adjust location of
5469         saved_varargs_size.
5470
5471 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5472
5473         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
5474         layout comment.
5475
5476 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
5477             Prachi Godbole  <Prachi.Godbole@imgtec.com>
5478
5479         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
5480         mips32r5 entry to use PROCESSOR_P5600.
5481         * config/mips/mips-tables.opt: Regenerate.
5482         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
5483         * config/mips/mips.c (mips_fmadd_bypass): New function.
5484         (mips_rtx_cost_data): Add costs for p5600.
5485         (mips_issue_rate): Add support for p5600.
5486         (mips_multipass_dfa_lookahead): Likewise.
5487         * config/mips/mips.h (TUNE_P5600): New define.
5488         (TUNE_MACC_CHAINS): Add TUNE_P5600.
5489         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
5490         * config/mips/mips.md: Include p5600.md.
5491         (processor): Add p5600.
5492         * config/mips/p5600.md: New file.
5493
5494 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
5495
5496         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
5497         * config/i386/predicates.md (palignr_operand): New.
5498         Indicates if permutation is suitable for palignr instruction.
5499
5500 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
5501
5502         PR tree-optimization/61319
5503         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
5504         stmt belongs to loop.
5505
5506 2014-06-05  Richard Biener  <rguenther@suse.de>
5507
5508         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
5509         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
5510         (lookup_tmp_var): Adjust.
5511         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
5512
5513 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5514
5515         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
5516
5517 2014-06-05  Marek Polacek  <polacek@redhat.com>
5518
5519         PR c/49706
5520         * doc/invoke.texi: Document -Wlogical-not-parentheses.
5521
5522 2014-06-04  Tom de Vries  <tom@codesourcery.com>
5523
5524         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
5525         CONST_INT.
5526
5527 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
5528
5529         PR tree-optimization/61385
5530         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
5531
5532 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5533
5534         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
5535         changed to use fatal_error.
5536         (main): Ensure lto_wrapper_cleanup is run atexit.
5537
5538 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5539
5540         * lra-constraints.c (valid_address_p): Move earlier in file.
5541         (address_eliminator): New structure.
5542         (satisfies_memory_constraint_p): New function.
5543         (satisfies_address_constraint_p): Likewise.
5544         (process_alt_operands, process_address, curr_insn_transform): Use them.
5545
5546 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5547
5548         * lra-int.h (lra_static_insn_data): Make operand_alternative a
5549         const pointer.
5550         (target_lra_int, default_target_lra_int, this_target_lra_int)
5551         (op_alt_data): Delete.
5552         * lra.h (lra_init): Delete.
5553         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
5554         (init_insn_code_data_once): Remove op_alt_data handling.
5555         (finish_insn_code_data_once): Likewise.
5556         (init_op_alt_data): Delete.
5557         (get_static_insn_data): Initialize operand_alternative to null.
5558         (free_insn_recog_data): Cast operand_alternative before freeing it.
5559         (setup_operand_alternative): Take the operand_alternative as
5560         parameter and assume it isn't already cached in the static
5561         insn data.
5562         (lra_set_insn_recog_data): Update accordingly.
5563         (lra_init): Delete.
5564         * ira.c (ira_init): Don't call lra_init.
5565         * target-globals.h (this_target_lra_int): Declare.
5566         (target_globals): Remove lra_int.
5567         (restore_target_globals): Update accordingly.
5568         * target-globals.c: Don't include lra-int.h.
5569         (default_target_globals, save_target_globals): Remove lra_int.
5570
5571 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5572
5573         * recog.h (operand_alternative): Convert reg_class, reject,
5574         matched and matches into bitfields.
5575         (preprocess_constraints): New overload.
5576         (preprocess_insn_constraints): New function.
5577         (preprocess_constraints): Take the insn as parameter.
5578         (recog_op_alt): Change into a pointer.
5579         (target_recog): Add x_op_alt.
5580         * recog.c (asm_op_alt): New variable.
5581         (recog_op_alt): Change into a pointer.
5582         (preprocess_constraints): New overload, replacing the old function
5583         definition with one that doesn't use global state.
5584         (preprocess_insn_constraints): New function.
5585         (preprocess_constraints): Use them.  Take the insn as parameter.
5586         Use asm_op_alt for asms.
5587         (recog_init): Free existing x_op_alt entries.
5588         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
5589         pointer const.
5590         (make_early_clobber_and_input_conflicts): Likewise.
5591         (process_bb_node_lives): Pass the insn to process_constraints.
5592         * reg-stack.c (check_asm_stack_operands): Likewise.
5593         (subst_asm_stack_regs): Likewise.
5594         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
5595         * regrename.c (build_def_use): Likewise.
5596         * sched-deps.c (sched_analyze_insn): Likewise.
5597         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
5598         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5599         (note_invalid_constants): Likewise.
5600         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5601         (ix86_legitimate_combined_insn): Make operand_alternative pointer
5602         const.
5603
5604 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5605
5606         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
5607         * ira-lives.c (check_and_make_def_conflict): Check for disabled
5608         alternatives.
5609         (make_early_clobber_and_input_conflicts): Likewise.
5610         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5611
5612 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5613
5614         * recog.h (alternative_class): New function.
5615         (which_op_alt): Return a const recog_op_alt.
5616         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
5617         (subst_asm_stack_regs): Likewise.
5618         * config/arm/arm.c (note_invalid_constants): Likewise.
5619         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
5620         the operand_alternative; use alternative class instead.
5621         * sel-sched.c (get_reg_class): Likewise.
5622         * regrename.c (build_def_use): Likewise.
5623         (hide_operands, restore_operands, record_out_operands): Update type
5624         accordingly.
5625
5626 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
5627
5628         * recog.h (recog_op_alt): Convert to a flat array.
5629         (which_op_alt): New function.
5630         * recog.c (recog_op_alt): Convert to a flat array.
5631         (preprocess_constraints): Update accordingly, grouping all
5632         operands of the same alternative together, rather than the
5633         other way around.
5634         * ira-lives.c (check_and_make_def_conflict): Likewise.
5635         (make_early_clobber_and_input_conflicts): Likewise.
5636         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5637         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
5638         (subst_asm_stack_regs): Likewise.
5639         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
5640         * regrename.c (hide_operands, record_out_operands): Likewise.
5641         (build_def_use): Likewise.
5642         * sel-sched.c (get_reg_class): Likewise.
5643         * config/arm/arm.c (note_invalid_constants): Likewise.
5644
5645 2014-06-04  Jason Merrill  <jason@redhat.com>
5646
5647         PR c++/51253
5648         PR c++/61382
5649         * gimplify.c (gimplify_arg): Non-static.
5650         * gimplify.h: Declare it.
5651
5652 2014-06-04  Richard Biener  <rguenther@suse.de>
5653
5654         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
5655         TREE_PUBLIC and DECL_EXTERNAL decls.
5656
5657 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
5658
5659         * regcprop.c (copyprop_hardreg_forward_1): Account for
5660         HARD_REGNO_CALL_PART_CLOBBERED.
5661
5662 2014-06-04  Richard Biener  <rguenther@suse.de>
5663
5664         * configure.ac: Check whether the underlying type of int64_t
5665         is long or long long.
5666         * configure: Regenerate.
5667         * config.in: Likewise.
5668         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
5669         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
5670
5671 2014-06-04  Richard Biener  <rguenther@suse.de>
5672
5673         PR tree-optimization/60098
5674         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
5675         we hit a kill.
5676         (dse_optimize_stmt): Simplify, now that we found a kill
5677         earlier.
5678
5679 2014-06-04  Richard Biener  <rguenther@suse.de>
5680
5681         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
5682         of accesses with non-invariant address.
5683
5684 2014-06-04  Martin Liska  <mliska@suse.cz>
5685
5686         * cgraph.h (cgraph_make_wrapper): New function introduced.
5687         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
5688         * ipa-inline.h (inline_analyze_function): The function is global.
5689         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
5690
5691 2014-06-04  Martin Liska  <mliska@suse.cz>
5692
5693         * tree.h (private_lookup_attribute_starting): New function.
5694         (lookup_attribute_starting): Likewise.
5695         * tree.c (private_lookup_attribute_starting): Likewise.
5696
5697 2014-06-04  Martin Liska  <mliska@suse.cz>
5698
5699         * cgraph.h (expand_thunk): New argument added.
5700         (address_taken_from_non_vtable_p): New global function.
5701         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
5702         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
5703         * cgraphunit.c (analyze_function): Likewise.
5704         (assemble_thunks_and_aliases): Argument added to call.
5705         (expand_thunk): New argument forces to produce GIMPLE thunk.
5706
5707 2014-06-04  Martin Liska  <mliska@suse.cz>
5708
5709         * coverage.h (coverage_compute_cfg_checksum): Argument added.
5710         * coverage.c (coverage_compute_cfg_checksum): Likewise.
5711         * profile.c (branch_prob): Likewise.
5712
5713 2014-06-04  Martin Jambor  <mjambor@suse.cz>
5714
5715         PR ipa/61340
5716         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
5717         handler for switch on an ipa_ref_use enum.
5718         * ipa-reference.c (analyze_function): Likewise.
5719
5720 2014-06-04  Kai Tietz  <ktietz@redhat.com>
5721
5722         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
5723         from old call-instruction.
5724
5725 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
5726
5727         * config/aarch64/aarch64.c (aarch64_classify_address)
5728         (aarch64_legitimize_reload_address): Support full addressing modes
5729         for vector modes.
5730         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
5731         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
5732
5733 2014-06-03  Andrew Pinski  <apinski@cavium.com>
5734
5735         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
5736         for OP0.
5737
5738 2014-06-03  Andrew Pinski  <apinski@cavium.com>
5739
5740         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
5741         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
5742
5743 2014-06-03  Kai Tietz  <ktietz@redhat.com>
5744
5745         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
5746         for 64-bit ms-abi.
5747
5748 2014-06-03  Dehao Chen  <dehao@google.com>
5749
5750         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
5751         the same loop.
5752
5753 2014-06-03  Marek Polacek  <polacek@redhat.com>
5754
5755         PR c/60439
5756         * doc/invoke.texi: Document -Wswitch-bool.
5757         * function.c (stack_protect_epilogue): Cast controlling expression of
5758         the switch to int.
5759         * gengtype.c (walk_type): Generate switch expression with its
5760         controlling expression cast to int.
5761
5762 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
5763
5764         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
5765         and attiny841.
5766         * config/avr/avr-tables.opt: Regenerate.
5767         * config/avr/t-multilib: Regenerate.
5768         * doc/avr-mmcu.texi: Regenerate.
5769
5770 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
5771             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5772
5773         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
5774         (ata6617c, ata664251): Add new avr35 devices.
5775         (ata6612c): Add new avr4 device.
5776         (ata6613c, ata6614q): Add new avr5 devices.
5777         * config/avr/avr-tables.opt: Regenerate.
5778         * config/avr/t-multilib: Regenerate.
5779         * doc/avr-mmcu.texi: Regenerate.
5780
5781 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
5782
5783         * gcc/config/aarch64/aarch64-builtins.c
5784         (aarch64_types_binop_ssu_qualifiers): New static data.
5785         (TYPES_BINOP_SSU): Define.
5786         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
5787         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
5788         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
5789         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
5790         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
5791         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
5792         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
5793         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
5794         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
5795         suffix to builtin function name, remove cast.
5796         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
5797         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
5798         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
5799
5800 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
5801
5802         * gcc/config/aarch64/aarch64-builtins.c
5803         (aarch64_types_binop_uus_qualifiers,
5804         aarch64_types_shift_to_unsigned_qualifiers,
5805         aarch64_types_unsigned_shiftacc_qualifiers): Define.
5806         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
5807         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
5808         sqshlu_n, uqshl_n): Update qualifiers.
5809         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
5810         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
5811         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
5812         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
5813         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
5814         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
5815         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
5816         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
5817         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
5818         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
5819         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
5820         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
5821         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
5822         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
5823         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
5824         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
5825         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
5826         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
5827         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
5828         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
5829         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
5830         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
5831         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
5832         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
5833         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
5834         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
5835         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
5836
5837 2014-06-03  Teresa Johnson  <tejohnson@google.com>
5838
5839         * tree-sra.c (modify_function): Record caller nodes after rebuild.
5840
5841 2014-06-02  Jason Merrill  <jason@redhat.com>
5842
5843         PR c++/61020
5844         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
5845
5846 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
5847
5848         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
5849         location == 0.
5850
5851 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
5852
5853         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
5854         New pattern.
5855         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
5856         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
5857         * config/aarch64/iterators.md (REVERSE): New iterator.
5858         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
5859         (rev_op): New int_attribute.
5860         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
5861         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
5862         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
5863         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
5864         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
5865         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
5866         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
5867         Replace temporary __asm__ with __builtin_shuffle.
5868
5869 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
5870
5871         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
5872         mips64r5.
5873         * config/mips/mips-tables.opt: Regenerate.
5874         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
5875         to use mips_isa_rev rather than ISA_MIPS32R2.
5876         * config/mips/mips.h (ISA_MIPS32R3): New define.
5877         (ISA_MIPS32R5): New define.
5878         (ISA_MIPS64R3): New define.
5879         (ISA_MIPS64R5): New define.
5880         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
5881         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
5882         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
5883         and mips64r5.
5884         (MIPS_ISA_SYNCI_SPEC): Likewise.
5885         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
5886         (LINK_SPEC): Added mips32r3 and mips32r5.
5887         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
5888         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
5889         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
5890         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
5891         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
5892         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
5893         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
5894
5895 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
5896
5897         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
5898         options.
5899         * config/mips/mips.opt (mxpa): New option.
5900         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
5901         assembler.
5902
5903 2014-06-03  Martin Jambor  <mjambor@suse.cz>
5904
5905         PR ipa/61160
5906         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
5907         thunks.
5908
5909 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5910
5911         PR tree-optimization/61328
5912         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
5913         initialization from find_bswap_or_nop_1.
5914         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
5915         in source_expr2 before using the size value the function sets. Also
5916         make use of init_symbolic_number () in both the old place and
5917         find_bswap_or_nop_load () to avoid reading uninitialized memory when
5918         doing recursion in the GIMPLE_BINARY_RHS case.
5919
5920 2014-06-03  Richard Biener  <rguenther@suse.de>
5921
5922         PR tree-optimization/61383
5923         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
5924         stmts can't trap.
5925
5926 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
5927
5928         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
5929         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
5930         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
5931         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
5932         in this file.
5933         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
5934         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
5935         * system.h: ...here and make it unconditional.
5936         * target.def (conditional_register_usage): Mention
5937         define_register_constraint instead of old-style constraint macros.
5938         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
5939         * doc/tm.texi: Regenerate.
5940         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
5941         protected by !USE_MD_CONSTRAINTS.
5942         * config/frv/frv.md: Remove quote from old version of documentation.
5943         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
5944         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
5945         CONST_DOUBLE_OK_FOR_LETTER.
5946         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
5947
5948 2014-06-02  Andrew Pinski  <apinski@cavium.com>
5949
5950         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
5951         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
5952         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
5953         file whose name depends on -mabi= and -mbig-endian.
5954         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
5955         Handle LP64 better and handle ilp32 too.
5956         (MULTILIB_OPTIONS): Delete.
5957         (MULTILIB_DIRNAMES): Delete.
5958
5959 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
5960
5961         * expr.h: Remove prototypes of functions defined in builtins.c.
5962         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
5963         Remove prototypes of functions defined in builtins.c.
5964         * builtins.h: Update prototype list to include all exported functions.
5965         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
5966         no_c99_libc_has_function): Move to targhooks.c
5967         (build_string_literal, build_call_expr_loc_array,
5968         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
5969         to tree.c.
5970         (expand_builtin_object_size, fold_builtin_object_size): Make static.
5971         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
5972         no_c99_libc_has_function): Relocate from builtins.c.
5973         * tree.c: Include builtins.h.
5974         (build_call_expr_loc_array, build_call_expr_loc_vec,
5975         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
5976         from builtins.c.
5977         * fold-const.h (fold_fma): Move prototype to builtins.h.
5978         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
5979         * asan.c: Include builtins.h.
5980         * cfgexpand.c: Likewise.
5981         * convert.c: Likewise.
5982         * emit-rtl.c: Likewise.
5983         * except.c: Likewise.
5984         * expr.c: Likewise.
5985         * fold-const.c: Likewise.
5986         * gimple-fold.c: Likewise.
5987         * gimple-ssa-strength-reduction.c: Likewise.
5988         * gimplify.c: Likewise.
5989         * ipa-inline.c: Likewise.
5990         * ipa-prop.c: Likewise.
5991         * lto-streamer-out.c: Likewise.
5992         * stmt.c: Likewise.
5993         * tree-inline.c: Likewise.
5994         * tree-object-size.c: Likewise.
5995         * tree-sra.c: Likewise.
5996         * tree-ssa-ccp.c: Likewise.
5997         * tree-ssa-forwprop.c: Likewise.
5998         * tree-ssa-loop-ivcanon.c: Likewise.
5999         * tree-ssa-loop-ivopts.c: Likewise.
6000         * tree-ssa-math-opts.c: Likewise.
6001         * tree-ssa-reassoc.c: Likewise.
6002         * tree-ssa-threadedge.c: Likewise.
6003         * tree-streamer-in.c: Likewise.
6004         * tree-vect-data-refs.c: Likewise.
6005         * tree-vect-patterns.c: Likewise.
6006         * tree-vect-stmts.c: Likewise.
6007         * config/aarch64/aarch64.c: Likewise.
6008         * config/alpha/alpha.c: Likewise.
6009         * config/arc/arc.c: Likewise.
6010         * config/arm/arm.c: Likewise.
6011         * config/avr/avr.c: Likewise.
6012         * config/bfin/bfin.c: Likewise.
6013         * config/c6x/c6x.c: Likewise.
6014         * config/cr16/cr16.c: Likewise.
6015         * config/cris/cris.c: Likewise.
6016         * config/epiphany/epiphany.c: Likewise.
6017         * config/fr30/fr30.c: Likewise.
6018         * config/frv/frv.c: Likewise.
6019         * config/h8300/h8300.c: Likewise.
6020         * config/i386/i386.c: Likewise.
6021         * config/i386/winnt.c: Likewise.
6022         * config/ia64/ia64.c: Likewise.
6023         * config/iq2000/iq2000.c: Likewise.
6024         * config/lm32/lm32.c: Likewise.
6025         * config/m32c/m32c.c: Likewise.
6026         * config/m32r/m32r.c: Likewise.
6027         * config/m68k/m68k.c: Likewise.
6028         * config/mcore/mcore.c: Likewise.
6029         * config/mep/mep.c: Likewise.
6030         * config/microblaze/microblaze.c: Likewise.
6031         * config/mips/mips.c: Likewise.
6032         * config/mmix/mmix.c: Likewise.
6033         * config/mn10300/mn10300.c: Likewise.
6034         * config/moxie/moxie.c: Likewise.
6035         * config/msp430/msp430.c: Likewise.
6036         * config/nds32/nds32.c: Likewise.
6037         * config/pa/pa.c: Likewise.
6038         * config/pdp11/pdp11.c: Likewise.
6039         * config/picochip/picochip.c: Likewise.
6040         * config/rl78/rl78.c: Likewise.
6041         * config/rs6000/rs6000.c: Likewise.
6042         * config/rx/rx.c: Likewise.
6043         * config/s390/s390.c: Likewise.
6044         * config/score/score.c: Likewise.
6045         * config/sh/sh.c: Likewise.
6046         * config/sparc/sparc.c: Likewise.
6047         * config/spu/spu.c: Likewise.
6048         * config/stormy16/stormy16.c: Likewise.
6049         * config/tilegx/tilegx.c: Likewise.
6050         * config/tilepro/tilepro.c: Likewise.
6051         * config/v850/v850.c: Likewise.
6052         * config/vax/vax.c: Likewise.
6053         * config/xtensa/xtensa.c: Likewise.
6054
6055 2014-06-02  Jeff Law  <law@redhat.com>
6056
6057         PR rtl-optimization/61094
6058         * ree.c (combine_reaching_defs): Do not reextend an insn if it
6059         was marked as do_no_reextend.  If a copy is needed to eliminate
6060         an extension, then mark it as do_not_reextend.
6061
6062 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6063
6064         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
6065
6066 2014-06-02  Richard Henderson  <rth@redhat.com>
6067
6068         PR target/61336
6069         * config/alpha/alpha.c (print_operand_address): Allow symbolic
6070         addresses inside asms.  Use output_operand_lossage instead of
6071         gcc_unreachable.
6072
6073 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
6074
6075         PR target/61239
6076         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
6077         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
6078
6079 2014-06-02  Tom de Vries  <tom@codesourcery.com>
6080
6081         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
6082         case that x has VOIDmode.
6083
6084 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
6085
6086         * varasm.c (copy_constant): Delete function.
6087         (build_constant_desc): Don't call it.
6088
6089 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6090
6091         PR target/61154
6092         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
6093         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
6094         with immediate_operand.
6095
6096 2014-06-02  Andreas Schwab  <schwab@suse.de>
6097
6098         * config/ia64/ia64.c
6099         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
6100         pending_data_specs first.
6101
6102 2014-06-02  Richard Biener  <rguenther@suse.de>
6103
6104         PR tree-optimization/61378
6105         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
6106         valueized_anything.
6107
6108 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
6109
6110         * config/i386/constraints.md (Bw): Rename from 'w'.
6111         (Bz): Rename from 'z'.
6112         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
6113
6114 2014-06-01  Kai Tietz  <ktietz@redhat.com>
6115
6116         PR target/61377
6117         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
6118         * config/i386/i386.md (sibcall_insn_operand): Use Bs
6119         instead of m constraint.
6120
6121 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
6122
6123         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
6124         a separate alternative where the scratch operand 2 is marked as
6125         early clobber.
6126
6127 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
6128
6129         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
6130         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
6131         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
6132         and __builtins_arm_get_fpscr.
6133         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6134         __builtins_arm_get_fpscr.
6135         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
6136         __builtins_arm_ldfpscr.
6137         (arm_atomic_assign_expand_fenv): New function.
6138         * config/arm/vfp.md (set_fpscr): New pattern.
6139         (get_fpscr) : Likewise.
6140         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
6141         VUNSPEC_SET_FPSCR.
6142         * doc/extend.texi (AARCH64 Built-in Functions) : Document
6143         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
6144
6145 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
6146
6147         * asan.c (report_error_func): Add SLOW_P argument, use
6148         BUILT_IN_ASAN_*_N if set.
6149         (build_check_stmt): Likewise.
6150         (instrument_derefs): If T has insufficient alignment,
6151         force same handling as for odd sizes.
6152
6153         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
6154         BUILT_IN_ASAN_REPORT_STORE_N): New.
6155         * asan.c (struct asan_mem_ref): Change access_size type to
6156         HOST_WIDE_INT.
6157         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
6158         update_mem_ref_hash_table): Likewise.
6159         (asan_mem_ref_hasher::hash): Hash in a HWI.
6160         (report_error_func): Change size_in_bytes argument to HWI.
6161         Use *_N builtins if size_in_bytes is larger than 16 or not power of
6162         two.
6163         (build_shadow_mem_access): New function.
6164         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
6165         Handle size_in_bytes not power of two or larger than 16.
6166         (instrument_derefs): Don't give up if size_in_bytes is not
6167         power of two or is larger than 16.
6168
6169 2014-05-30  Kai Tietz  <ktietz@redhat.com>
6170
6171         PR target/60104
6172         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
6173         for sibling-tail-calls.
6174         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
6175         to its use.
6176         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
6177         (sibcall_insn_operand): Add check for sibcall_memory_operand.
6178
6179 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6180
6181         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
6182         * config/avr/avr-tables.opt: Regenerate.
6183         * config/avr/t-multilib: Regenerate.
6184         * doc/avr-mmcu.texi: Regenerate.
6185
6186 2014-05-30  Ian Lance Taylor  <iant@google.com>
6187
6188         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
6189         target("sse").
6190
6191 2014-05-30  Tom de Vries  <tom@codesourcery.com>
6192
6193         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6194         Redefine as true.
6195
6196 2014-05-30  Tom de Vries  <tom@codesourcery.com>
6197
6198         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
6199         * lra.c (initialize_lra_reg_info_element): Add init of
6200         actual_call_used_reg_set field.
6201         (lra): Call lra_create_live_ranges before lra_inheritance for
6202         -fuse-caller-save.
6203         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
6204         -fuse-caller-save.
6205         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
6206         instead of call_used_reg_set for -fuse-caller-save.
6207         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
6208
6209 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6210
6211         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
6212         to mov_imm.
6213         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
6214
6215 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
6216
6217         * ira.c (ira_get_dup_out_num): Check for output operands at
6218         the start of the loop.  Handle cases where an included alternative
6219         follows an excluded one.
6220
6221 2014-05-29  Mike Stump  <mikestump@comcast.net>
6222
6223         PR debug/61352
6224         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
6225         post ld passes when lto is used.
6226
6227 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
6228
6229         PR rtl-optimization/61325
6230         * lra-constraints.c (process_address): Rename to process_address_1.
6231         (process_address): New function.
6232
6233 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
6234
6235         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
6236         TYPES_BINOPV): New static data.
6237         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
6238         New builtin.
6239         * config/aarch64/aarch64-simd.md (aarch64_ext,
6240         aarch64_im_lane_boundsi): New patterns.
6241         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
6242         patterns for EXT.
6243         (aarch64_evpc_ext): New function.
6244
6245         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
6246
6247         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
6248         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
6249         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
6250         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
6251         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
6252
6253 2014-05-29  Tom de Vries  <tom@codesourcery.com>
6254
6255         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
6256
6257 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
6258             Richard Sandiford  <rdsandiford@googlemail.com>
6259
6260         * arm/iterators.md (shiftable_ops): New code iterator.
6261         (t2_binop0, arith_shift_insn): New code attributes.
6262         * arm/predicates.md (shift_nomul_operator): New predicate.
6263         * arm/arm.md (insn_enabled): Delete.
6264         (enabled): Remove insn_enabled test.
6265         (*arith_shiftsi): Delete.  Replace with ...
6266         (*<arith_shift_insn>_multsi): ... new pattern.
6267         (*<arith_shift_insn>_shiftsi): ... new pattern.
6268         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
6269
6270 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
6271             Tom de Vries  <tom@codesourcery.com>
6272
6273         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
6274         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
6275         clobber.
6276         (mips_split_call): Use POST_CALL_TMP_REG.
6277         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
6278
6279 2014-05-29  Tom de Vries  <tom@codesourcery.com>
6280
6281         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
6282         with #ifdef STACK_REGS.
6283
6284 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
6285
6286         * varasm.c (get_variable_section): Walk aliases.
6287         (place_block_symbol): Walk aliases.
6288
6289 2014-05-28  Tom de Vries  <tom@codesourcery.com>
6290
6291         Revert:
6292         2014-05-28  Tom de Vries  <tom@codesourcery.com>
6293
6294         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
6295         * lra.c (initialize_lra_reg_info_element): Add init of
6296         actual_call_used_reg_set field.
6297         (lra): Call lra_create_live_ranges before lra_inheritance for
6298         -fuse-caller-save.
6299         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
6300         -fuse-caller-save.
6301         * lra-constraints.c (need_for_call_save_p): Use
6302         actual_call_used_reg_set instead of call_used_reg_set for
6303         -fuse-caller-save.
6304         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
6305
6306 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6307
6308         * doc/md.texi: Document that the % constraint character must
6309         be at the beginning of the string.
6310         * genoutput.c (validate_insn_alternatives): Check that '=',
6311         '+' and '%' only appear at the beginning of a constraint.
6312         * ira.c (commutative_constraint_p): Delete.
6313         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
6314         at the start of the string.
6315         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
6316         duplicate '='s.
6317         * config/arm/neon.md (bicdi3_neon): Likewise.
6318         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
6319         (slt_si, sltu_si): Likewise.
6320         * config/vax/vax.md (sbcdi3): Likewise.
6321         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
6322         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
6323         (mul64): Move '%' to beginning of constraint.
6324         * config/arm/arm.md (*xordi3_insn): Likewise.
6325         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
6326         (xorsi3): Likewise.
6327
6328 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6329
6330         * doc/md.texi: Document the restrictions on the "enabled" attribute.
6331
6332 2014-05-28  Jason Merrill  <jason@redhat.com>
6333
6334         PR c++/47202
6335         * cgraph.h (symtab_node::get_comdat_group_id): New.
6336         * cgraphunit.c (analyze_functions): Call it.
6337         * symtab.c (dump_symtab_node): Likewise.
6338         * tree.c (decl_comdat_group_id): New.
6339         * tree.h: Declare it.
6340         * lto-streamer-out.c (write_symbol): Use it.
6341         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
6342
6343 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6344
6345         PR bootstrap/PR61146
6346         * wide-int.cc: Do not include longlong.h when compiling with clang.
6347
6348 2014-05-28  Richard Biener  <rguenther@suse.de>
6349
6350         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
6351         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
6352         (vrp_visit_assignment_or_call): Print less vertical space.
6353         (vrp_visit_stmt): Likewise.
6354         (vrp_visit_phi_node): Likewise.  For a PHI argument with
6355         VR_VARYING range consider recording it as copy.
6356
6357 2014-05-28  Richard Biener  <rguenther@suse.de>
6358
6359         Revert
6360         2014-05-28  Richard Biener  <rguenther@suse.de>
6361
6362         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
6363
6364 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6365
6366         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
6367         sufficiently aligned and an offset is used at the same time.
6368         (expand_expr_real_1): Likewise.
6369
6370 2014-05-28  Richard Biener  <rguenther@suse.de>
6371
6372         PR middle-end/61045
6373         * fold-const.c (fold_comparison): When folding
6374         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
6375         the sign of the remaining constant operand stays the same.
6376
6377 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
6378
6379         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
6380         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
6381         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
6382         to the assembler.
6383         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
6384         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
6385         (m32bit-doubles) Likewise.
6386         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
6387         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
6388         option for RL78.
6389
6390 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6391
6392         * configure.ac ($gcc_cv_ld_clearcap): New test.
6393         * configure: Regenerate.
6394         * config.in: Regenerate.
6395         * config/sol2.opt (mclear-hwcap): New option.
6396         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
6397         * config/sol2-clearcap.map: Moved here from
6398         testsuite/gcc.target/i386/clearcap.map.
6399         * config/sol2-clearcapv2.map: Move here from
6400         gcc.target/i386/clearcapv2.map.
6401         * config/t-sol2 (install): Depend on install-clearcap-map.
6402         (install-clearcap-map): New target.
6403         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
6404         -mclear-hwcap.
6405
6406 2014-05-28  Richard Biener  <rguenther@suse.de>
6407
6408         * hwint.h (*_HALF_WIDE_INT*): Move to ...
6409         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
6410         ... here and remove the rest.
6411         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
6412
6413 2014-05-28  Richard Biener  <rguenther@suse.de>
6414
6415         PR tree-optimization/61335
6416         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
6417         new range fails, drop to varying.
6418
6419 2014-05-28  Olivier Hainque  <hainque@adacore.com>
6420
6421         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
6422         (CPP_SPEC): Add entry for -mcpu=8548.
6423         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
6424         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
6425
6426 2014-05-28  Tom de Vries  <tom@codesourcery.com>
6427
6428         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
6429         * lra.c (initialize_lra_reg_info_element): Add init of
6430         actual_call_used_reg_set field.
6431         (lra): Call lra_create_live_ranges before lra_inheritance for
6432         -fuse-caller-save.
6433         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
6434         -fuse-caller-save.
6435         * lra-constraints.c (need_for_call_save_p): Use
6436         actual_call_used_reg_set instead of call_used_reg_set for
6437         -fuse-caller-save.
6438         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
6439
6440 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
6441             Tom de Vries  <tom@codesourcery.com>
6442
6443         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
6444         to gccoptlist.
6445         (@item -fuse-caller-save): New item.
6446
6447 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
6448             Tom de Vries  <tom@codesourcery.com>
6449
6450         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
6451         OPT_fuse_caller_save.
6452
6453 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
6454             Tom de Vries  <tom@codesourcery.com>
6455
6456         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
6457         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
6458         get_call_reg_set_usage.
6459         * resource.c (mark_set_resources, mark_target_live_regs): Use
6460         get_call_reg_set_usage.
6461         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
6462         field.
6463         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
6464         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
6465         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6466         * ira-build.c (ira_create_allocno): Init
6467         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6468         (create_cap_allocno, propagate_allocno_info)
6469         (propagate_some_info_from_allocno)
6470         (copy_info_to_removed_store_destinations): Handle
6471         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6472         * ira-costs.c (ira_tune_allocno_costs): Use
6473         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
6474
6475 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
6476             Tom de Vries  <tom@codesourcery.com>
6477
6478         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
6479         and function_used_regs_valid fields.
6480         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
6481         find_all_hard_reg_sets.
6482         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
6483         (get_call_reg_set_usage): New function.
6484         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
6485         * regs.h (get_call_reg_set_usage): Declare.
6486
6487 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
6488
6489         PR libgcc/61152
6490         * config/dbx.h (License): Add Runtime Library Exception.
6491         * config/newlib-stdint.h (License): Same.
6492         * config/rtems.h (License): Same
6493         * config/initfini-array.h (License): Same
6494         * config/v850/v850.h (License): Same.
6495         * config/v850/v850-opts.h (License): Same
6496         * config/v850/rtems.h (License): Same.
6497
6498 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
6499
6500         PR target/61044
6501         * doc/extend.texi (Local Labels): Note that label differences are
6502         not supported for AVR.
6503
6504 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6505             Olivier Hainque  <hainque@adacore.com>
6506
6507         * rtl.h (set_for_reg_notes): Declare.
6508         * emit-rtl.c (set_for_reg_notes): New function.
6509         (set_unique_reg_note): Use it.
6510         * optabs.c (add_equal_note): Likewise
6511
6512 2014-05-27  Andrew Pinski  <apinski@cavium.com>
6513
6514         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
6515         Use <w> for the register in assembly template.
6516         (stack_protect_test): Use the mode of operands[0] for the result.
6517         (stack_protect_test_<mode>): Use <w> for the register
6518         in assembly template.
6519
6520 2014-05-27  DJ Delorie  <dj@redhat.com>
6521
6522         * config/rx/rx.c (add_vector_labels): New.
6523         (rx_output_function_prologue): Call it.
6524         (rx_handle_func_attribute): Don't require empty arguments.
6525         (rx_handle_vector_attribute): New.
6526         (rx_attribute_table): Add "vector" attribute.
6527         * doc/extend.texi (interrupt, vector): Document new/changed
6528         RX-specific attributes.
6529
6530         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
6531
6532 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6533
6534         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
6535         predicate to detect a negative quotient.
6536
6537 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6538
6539         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
6540         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
6541         Add X - Y CMP 0 to X CMP Y transformation.
6542         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
6543
6544 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
6545
6546         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
6547         before printing.
6548
6549 2014-05-27  Steve Ellcey  <sellcey@mips.com>
6550
6551         * config/mips/mips.c: Add include of cgraph.h.
6552
6553 2014-05-27  Richard Biener  <rguenther@suse.de>
6554
6555         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
6556
6557 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
6558
6559         PR libgcc/61152
6560         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
6561         * config/arm/arm-cores.def (License): Same.
6562         * config/arm/arm-opts.h (License): Same.
6563         * config/arm/aout.h (License): Same.
6564         * config/arm/bpabi.h (License): Same.
6565         * config/arm/elf.h (License): Same.
6566         * config/arm/linux-elf.h (License): Same.
6567         * config/arm/linux-gas.h (License): Same.
6568         * config/arm/netbsd-elf.h (License): Same.
6569         * config/arm/uclinux-eabi.h (License): Same.
6570         * config/arm/uclinux-elf.h (License): Same.
6571         * config/arm/vxworks.h (License): Same.
6572
6573 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6574
6575         * config/arm/neon.md (neon_bswap<mode>): New pattern.
6576         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
6577         (arm_init_neon_builtins): Handle NEON_BSWAP.
6578         Define required type nodes.
6579         (arm_expand_neon_builtin): Handle NEON_BSWAP.
6580         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
6581         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
6582         * config/arm/iterators.md (VDQHSD): New mode iterator.
6583
6584 2014-05-27  Richard Biener  <rguenther@suse.de>
6585
6586         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
6587         Try using literal operands when comparing value-ranges failed.
6588
6589 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
6590
6591         * ira.c (commutative_operand): Adjust for change to recog_data.
6592         [Missing from previous commit.]
6593
6594 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
6595
6596         * system.h (TEST_BIT): New macro.
6597         * recog.h (alternative_mask): New type.
6598         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
6599         (recog_data_d): Replace alternative_enabled_p array with
6600         enabled_alternatives.
6601         (target_recog): New structure.
6602         (default_target_recog, this_target_recog): Declare.
6603         (get_enabled_alternatives, recog_init): Likewise.
6604         * recog.c (default_target_recog, this_target_recog): New variables.
6605         (get_enabled_alternatives): New function.
6606         (extract_insn): Use it.
6607         (recog_init): New function.
6608         (preprocess_constraints, constrain_operands): Adjust for change to
6609         recog_data.
6610         * postreload.c (reload_cse_simplify_operands): Likewise.
6611         * reload.c (find_reloads): Likewise.
6612         * ira-costs.c (record_reg_classes): Likewise.
6613         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
6614         all alternatives after a disabled one would be skipped.
6615         (ira_implicitly_set_insn_hard_regs): Likewise.
6616         * ira.c (ira_setup_alts): Adjust for change to recog_data.
6617         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
6618         with enabled_alternatives.
6619         * lra.c (free_insn_recog_data): Update accordingly.
6620         (lra_update_insn_recog_data): Likewise.
6621         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
6622         * lra-constraints.c (process_alt_operands): Likewise.  Handle
6623         only_alternative as part of the enabled mask.
6624         * target-globals.h (this_target_recog): Declare.
6625         (target_globals): Add a recog field.
6626         (restore_target_globals): Restore this_target_recog.
6627         * target-globals.c: Include recog.h.
6628         (default_target_globals): Initialize recog field.
6629         (save_target_globals): Likewise.
6630         * reginfo.c (reinit_regs): Call recog_init.
6631         * toplev.c (backend_init_target): Likewise.
6632
6633 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
6634
6635         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
6636         rather than any named insn's code.
6637
6638 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
6639
6640         PR libgcc/61152
6641         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
6642         * config/arm/arm-cores.def (License): Same.
6643
6644 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
6645
6646         * tree.h (decl_comdat_group): Declare.
6647         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
6648         * tree.c (decl_comdat_group): Here.
6649
6650 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
6651
6652         PR rtl-optimization/61222
6653         * combine.c (simplify_shift_const_1): When moving a PLUS outside
6654         the shift, truncate the PLUS operand to the result mode.
6655
6656 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
6657
6658         PR target/61271
6659         * config/i386/i386.c (ix86_rtx_costs)
6660         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
6661         Fix condition.
6662
6663 2014-05-26  Martin Jambor  <mjambor@suse.cz>
6664
6665         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
6666         subreg uses.
6667
6668 2014-05-26  Richard Biener  <rguenther@suse.de>
6669
6670         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
6671         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
6672         Provide specializations.
6673         (wi::int_traits <HOST_WIDE_INT>,
6674         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
6675
6676 2014-05-26  Alan Modra  <amodra@gmail.com>
6677
6678         PR target/61098
6679         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
6680         params and return a bool.  Remove dead code.  Update comment.
6681         Assert we have a const_int source.  Remove bogus code from
6682         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
6683         handling of constants > 2G and reg_equal note, from..
6684         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
6685         return value.  Update comment.  If we can, use a new pseudo
6686         for intermediate calculations.
6687         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
6688         prototype.
6689         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
6690         call to rs6000_emit_set_const in splitter.
6691         (movdi_internal64+2, +3): Likewise.
6692
6693 2014-05-26  Richard Biener  <rguenther@suse.de>
6694
6695         * system.h: Define __STDC_FORMAT_MACROS before
6696         including inttypes.h.
6697         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
6698         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
6699         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
6700         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
6701         HOST_WIDEST_INT_C): Remove.
6702         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
6703         if C99 inttypes.h is not available.
6704         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
6705         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
6706         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
6707         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
6708         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
6709         (struct output_info): Likewise.
6710         (print_statistics): Adjust.
6711         (dump_bitmap_statistics): Likewise.
6712         * bt-load.c (migrate_btr_defs): Print with PRId64.
6713         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
6714         (MAX_SAFE_MULTIPLIER): Adjust.
6715         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
6716         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
6717         dump_cgraph_node): Likewise.
6718         * final.c (dump_basic_block_info): Likewise.
6719         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
6720         * gcov.c (format_gcov): Likewise.
6721         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
6722         for calculation.
6723         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
6724         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
6725         (inline_small_functions, dump_overall_stats, dump_inline_stats):
6726         Use PRId64 for dumping.
6727         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
6728         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
6729         (add_allocno_hard_regs): Adjust.
6730         * loop-doloop.c (doloop_modify): Print using PRId64.
6731         * loop-iv.c (inverse): Compute in uint64_t.
6732         (determine_max_iter, iv_number_of_iterations): Likewise.
6733         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
6734         Print using PRId64.
6735         * lto-streamer-out.c (write_symbol): Use uint64_t.
6736         * mcf.c (CAP_INFINITY): Use int64_t maximum.
6737         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
6738         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
6739         * modulo-sched.c (const_iteration_count): Use int64_t.
6740         (sms_schedule): Dump using PRId64.
6741         * predict.c (dump_prediction): Likewise.
6742         * pretty-print.h (pp_widest_integer): Remove.
6743         * profile.c (get_working_sets, is_edge_inconsistent,
6744         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
6745         * tree-pretty-print.c (pp_double_int): Remove case handling
6746         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
6747         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
6748         and adjust users.
6749         (pass_optimize_bswap::execute): Remove restriction on hosts.
6750         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
6751         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
6752         * tree.c (widest_int_cst_value): Remove.
6753         * tree.h (widest_int_cst_value): Likewise.
6754         * value-prof.c (dump_histogram_value): Print using PRId64.
6755         * gengtype.c (main): Also inject int64_t.
6756         * ggc-page.c (struct max_alignment): Use int64_t.
6757         * alloc-pool.c (struct allocation_object_def): Likewise.
6758         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
6759         for computation.
6760         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
6761         * doc/tm.texi: Regenerated.
6762         * gengtype-lex.l (IWORD): Handle [u]int64_t.
6763         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
6764         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
6765         mmix_output_register_setting): Use [u]int64_t in prototypes.
6766         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
6767         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
6768         mmix_output_octa, mmix_output_shifted_value): Adjust.
6769         (mmix_intval): Adjust.  Remove unreachable case.
6770         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
6771
6772 2014-05-26  Richard Biener  <rguenther@suse.de>
6773
6774         * configure.ac: Drop __int64 type check.  Insist that we
6775         found uint64_t and int64_t.
6776         * hwint.h (HOST_BITS_PER___INT64): Remove.
6777         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
6778         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
6779         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
6780         (HOST_WIDEST_FAST_INT): Remove __int64 case.
6781         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
6782         for dst_q_src_df_rms_cdt.
6783         * configure: Regenerate.
6784         * config.in: Likewise.
6785
6786 2014-05-26  Michael Tautschnig  <mt@debian.org>
6787
6788         PR target/61249
6789         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
6790         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
6791
6792 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6793
6794         PR rtl-optimization/61278
6795         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
6796
6797 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6798
6799         PR rtl-optimization/61220
6800         Part of PR rtl-optimization/61225
6801         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
6802         insn; skip split_edge for a block with only one successor.
6803
6804 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6805
6806         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
6807         for variables.
6808
6809 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6810
6811         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
6812         (update_vtable_references): New function.
6813         (function_and_variable_visibility): Rewrite also vtable initializers.
6814         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
6815
6816 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6817
6818         * ggc.h (ggc_grow): New function.
6819         * ggc-none.c (ggc_grow): New function.
6820         * ggc-page.c (ggc_grow): Likewise.
6821
6822 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6823
6824         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
6825         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
6826         comdat_can_be_unshared_p, cgraph_externally_visible_p,
6827         varpool_externally_visible_p, can_replace_by_local_alias,
6828         update_visibility_by_resolution_info, function_and_variable_visibility,
6829         pass_data_ipa_function_and_variable_visibility,
6830         make_pass_ipa_function_and_variable_visibility,
6831         whole_program_function_and_variable_visibility,
6832         pass_data_ipa_whole_program_visibility,
6833         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
6834         * cgraph.h (cgraph_local_node_p): Declare.
6835         * ipa-visibility.c: New file.
6836         * Makefile.in (OBJS): Add ipa-visiblity.o
6837
6838 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6839
6840         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
6841         that var decl is available.
6842
6843 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6844
6845         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
6846         symtab_node pointer.
6847         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
6848         (find_decls_types_r): Do not walk COMDAT_GROUP.
6849         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
6850         * varasm.c (make_decl_one_only): Use set_comdat_group;
6851         create node if needed.
6852         * ipa-inline-transform.c (save_inline_function_body): Update
6853         way we decl->symtab mapping.
6854         * symtab.c (symtab_hash, hash_node, eq_node
6855         symtab_insert_node_to_hashtable): Remove.
6856         (symtab_register_node): Update.
6857         (symtab_unregister_node): Update.
6858         (symtab_get_node): Reimplement as inline function.
6859         (symtab_add_to_same_comdat_group): Update.
6860         (symtab_dissolve_same_comdat_group_list): Update.
6861         (dump_symtab_base): Update.
6862         (verify_symtab_base): Update.
6863         (symtab_make_decl_local): Update.
6864         (fixup_same_cpp_alias_visibility): Update.
6865         (symtab_nonoverwritable_alias): Update.
6866         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
6867         * ipa.c (update_visibility_by_resolution_info): UPdate.
6868         * bb-reorder.c: Include cgraph.h
6869         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
6870         with comdat groups.
6871         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
6872         * cgraph.c (cgraph_get_create_node): Update.
6873         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
6874         and comdat_group_.
6875         (symtab_get_node): Make inline.
6876         (symtab_insert_node_to_hashtable): Remove.
6877         (symtab_can_be_discarded): Update.
6878         (decl_comdat_group): New function.
6879         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
6880         Update.
6881         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
6882         comdat group name.
6883         (read_comdat_group): New function.
6884         (input_node, input_varpool_node): Use it.
6885         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
6886         comdat groups.
6887         * mips.c (mips_start_unique_function): Likewise.
6888         (ix86_code_end): Likewise.
6889         (rs6000_code_end): Likweise.
6890         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
6891
6892 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6893
6894         * gengtype-state.c (fatal_reading_state): Bring offline.
6895         * optabs.c (widening_optab_handler): Bring offline.
6896         * optabs.h (widening_optab_handler): Likewise.
6897         * final.c (get_attr_length_1): Likewise.
6898
6899 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
6900
6901         * sched-int.h (sd_iterator_cond): Manually tail recurse.
6902
6903 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
6904
6905         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
6906         (ppc440-compare): Include shift with dot.
6907         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
6908         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
6909         without dot.
6910         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
6911         without dot.
6912         (e6500_sfx2): Include it.
6913         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
6914         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6915         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
6916         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
6917         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
6918         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
6919         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
6920         *lshiftrt_internal1le, *lshiftrt_internal1be,
6921         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
6922         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
6923         *rotldi3_internal10le, *rotldi3_internal10be,
6924         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
6925         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
6926         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
6927         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
6928         define_insns): Use type "shift" in the appropriate alternatives.
6929
6930 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
6931
6932         * config/rs6000/rs6000.md (type): Add "logical".  Delete
6933         "fast_compare".
6934         (dot): Adjust comment.
6935         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
6936         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
6937         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
6938         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
6939         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
6940         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
6941         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
6942         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
6943
6944         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
6945         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
6946         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
6947         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
6948         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
6949         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
6950         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
6951         * config/rs6000/8540.md (ppc8540_su): Adjust.
6952         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6953         cell-cmp-microcoded): Adjust.
6954         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
6955         * config/rs6000/e500mc.md (e500mc_su): Adjust.
6956         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
6957         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
6958         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
6959         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
6960         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
6961         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
6962         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
6963         Adjust.
6964         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
6965         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
6966         Adjust.  Adjust comment.
6967         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
6968         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
6969
6970 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
6971
6972         * config/rs6000/rs6000.md (type): Add "add".
6973         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
6974         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
6975         define_insns): Use it.
6976         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
6977
6978         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
6979         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
6980         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
6981         * config/rs6000/601.md (ppc601-integer): Adjust.
6982         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
6983         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
6984         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
6985         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
6986         * config/rs6000/8540.md (ppc8540_su): Adjust.
6987         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6988         cell-cmp-microcoded): Adjust.
6989         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
6990         * config/rs6000/e500mc.md (e500mc_su): Adjust.
6991         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
6992         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
6993         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
6994         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
6995         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
6996         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
6997         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
6998         Adjust.
6999         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
7000         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
7001         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
7002         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
7003
7004 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7005
7006         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
7007         "delayed_compare", "var_delayed_compare".
7008         (var_shift): New attribute.
7009         (cell_micro): Adjust.
7010         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
7011         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
7012         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
7013         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7014         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7015         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7016         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7017         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
7018         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
7019         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7020         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
7021         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
7022         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
7023         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
7024         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
7025         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
7026         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
7027         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
7028         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
7029         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
7030         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
7031         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
7032         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
7033         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7034         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7035
7036         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
7037         * config/rs6000/440.md (ppc440-integer): Adjust.
7038         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
7039         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
7040         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
7041         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
7042         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
7043         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
7044         * config/rs6000/8540.md (ppc8540_su): Adjust.
7045         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7046         cell-cmp-microcoded): Adjust.
7047         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
7048         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7049         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
7050         e500mc64_delayed): Adjust.
7051         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
7052         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
7053         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
7054         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
7055         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
7056         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
7057         power6-delayed-compare, power6-var-delayed-compare): Adjust.
7058         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
7059         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
7060         Adjust comment.
7061         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
7062         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
7063
7064 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7065
7066         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
7067         (bits): New mode_attr.
7068         (idiv_ldiv): Delete mode_attr.
7069         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
7070         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7071         rs6000_adjust_priority, is_nonpipeline_insn,
7072         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7073
7074         * config/rs6000/40x.md (ppc403-idiv): Adjust.
7075         * config/rs6000/440.md (ppc440-idiv): Adjust.
7076         * config/rs6000/476.md (ppc476-idiv): Adjust.
7077         * config/rs6000/601.md (ppc601-idiv): Adjust.
7078         * config/rs6000/603.md (ppc603-idiv): Adjust.
7079         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
7080         ppc620-ldiv): Adjust.
7081         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
7082         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
7083         * config/rs6000/8540.md (ppc8540_divide): Adjust.
7084         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
7085         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
7086         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
7087         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
7088         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
7089         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
7090         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
7091         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
7092         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
7093         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
7094         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
7095         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
7096         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
7097         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
7098         * config/rs6000/titan.md (titan_fxu_div): Adjust.
7099
7100 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7101
7102         * config/rs6000/rs6000.md (type): Delete "insert_word",
7103         "insert_dword".  Add "insert".
7104         (size): Update comment.
7105         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7106         insn_must_be_first_in_group): Adjust.
7107         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7108         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7109         *insvsi_internal6, insvdi_internal): Adjust.
7110
7111         * config/rs6000/40x.md (ppc403-integer): Adjust.
7112         * config/rs6000/440.md (ppc440-integer): Adjust.
7113         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
7114         * config/rs6000/601.md (ppc601-integer): Adjust.
7115         * config/rs6000/603.md (ppc603-integer): Adjust.
7116         * config/rs6000/6xx.md (ppc604-integer): Adjust.
7117         * config/rs6000/7450.md (ppc7450-integer): Adjust.
7118         * config/rs6000/7xx.md (ppc750-integer): Adjust.
7119         * config/rs6000/8540.md (ppc8540_su): Adjust.
7120         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
7121         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
7122         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7123         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
7124         * config/rs6000/e5500.md (e5500_sfx): Adjust.
7125         * config/rs6000/e6500.md (e6500_sfx): Adjust.
7126         * config/rs6000/mpc.md (mpccore-integer): Adjust.
7127         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
7128         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
7129         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
7130         * config/rs6000/power7.md (power7-integer): Adjust.
7131         * config/rs6000/power8.md (power8-1cyc): Adjust.
7132         * config/rs6000/rs64.md (rs64a-integer): Adjust.
7133         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
7134
7135 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7136
7137         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
7138         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
7139         (size): New attribute.
7140         (dot): New attribute.
7141         (cell_micro): Adjust.
7142         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
7143         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
7144         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
7145         umuldi3_highpart): Adjust.
7146         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7147         rs6000_adjust_priority, is_nonpipeline_insn,
7148         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7149
7150         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
7151         ppc405-imul3): Adjust.
7152         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
7153         * config/rs6000/476.md (ppc476-imul): Adjust.
7154         * config/rs6000/601.md (ppc601-imul): Adjust.
7155         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
7156         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
7157         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
7158         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
7159         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
7160         Adjust.
7161         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
7162         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
7163         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
7164         cell-imul): Adjust.
7165         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
7166         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
7167         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
7168         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
7169         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
7170         * config/rs6000/mpc.md (mpccore-imul): Adjust.
7171         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
7172         power4-lmul, power4-imul, power4-imul3): Adjust.
7173         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
7174         power5-lmul, power5-imul, power5-imul3): Adjust.
7175         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
7176         power6-lmul, power6-imul, power6-imul3): Adjust.
7177         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
7178         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
7179
7180         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
7181         rs64a-lmul): Adjust.
7182         * config/rs6000/titan.md (titan_imul): Adjust.
7183
7184 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7185
7186         * config/rs6000/rs6000.md (type): Add new value "halfmul".
7187         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
7188         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
7189         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
7190         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
7191         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
7192         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
7193         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
7194         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
7195         * config/rs6000/titan.md: Delete nonsensical comment.
7196         (titan_imul): Add type imul3.
7197         (titan_mulhw): Remove type imul3; add type halfmul.
7198
7199 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7200
7201         * config/rs6000/rs6000.md (type): Reorder, reformat.
7202
7203 2014-05-23  Martin Jambor  <mjambor@suse.cz>
7204
7205         PR tree-optimization/53787
7206         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
7207         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
7208         analysis_done, update all uses.
7209         * ipa-prop.c: Include domwalk.h
7210         (param_analysis_info): Removed.
7211         (param_aa_status): New type.
7212         (ipa_bb_info): Likewise.
7213         (func_body_info): Likewise.
7214         (ipa_get_bb_info): New function.
7215         (aa_overwalked): Likewise.
7216         (find_dominating_aa_status): Likewise.
7217         (parm_bb_aa_status_for_bb): Likewise.
7218         (parm_preserved_before_stmt_p): Changed to use new param AA info.
7219         (load_from_unmodified_param): Accept func_body_info as a parameter
7220         instead of parms_ainfo.
7221         (parm_ref_data_preserved_p): Changed to use new param AA info.
7222         (parm_ref_data_pass_through_p): Likewise.
7223         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
7224         (compute_complex_assign_jump_func): Changed to use new param AA info.
7225         (compute_complex_ancestor_jump_func): Likewise.
7226         (ipa_compute_jump_functions_for_edge): Likewise.
7227         (ipa_compute_jump_functions): Removed.
7228         (ipa_compute_jump_functions_for_bb): New function.
7229         (ipa_analyze_indirect_call_uses): Likewise, moved variable
7230         declarations down.
7231         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
7232         and info, moved variable declarations down.
7233         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
7234         node and info.
7235         (ipa_analyze_stmt_uses): Likewise.
7236         (ipa_analyze_params_uses): Removed.
7237         (ipa_analyze_params_uses_in_bb): New function.
7238         (ipa_analyze_controlled_uses): Likewise.
7239         (free_ipa_bb_info): Likewise.
7240         (analysis_dom_walker): New class.
7241         (ipa_analyze_node): Handle node-specific forbidden analysis,
7242         initialize and free func_body_info, use dominator walker.
7243         (ipcp_modif_dom_walker): New class.
7244         (ipcp_transform_function): Create and free func_body_info, use
7245         ipcp_modif_dom_walker, moved a lot of functionality there.
7246
7247 2014-05-23  Marek Polacek  <polacek@redhat.com>
7248             Jakub Jelinek  <jakub@redhat.com>
7249
7250         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
7251         * gcc.c (sanitize_spec_function): Likewise.
7252         * convert.c (convert_to_integer): Include "ubsan.h".  Add
7253         floating-point to integer instrumentation.
7254         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
7255         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
7256         SANITIZE_NONDEFAULT.
7257         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
7258         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
7259         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
7260         * ubsan.c: Include "realmpfr.h" and "dfp.h".
7261         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
7262         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
7263         float/double/long double.
7264         (ubsan_instrument_float_cast): New function.
7265         * ubsan.h (ubsan_instrument_float_cast): Declare.
7266
7267 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
7268
7269         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
7270         predicate.
7271         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
7272         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
7273         Adjust for tailcalling through registers.
7274         * config/aarch64/aarch64.h (enum reg_class): New caller save
7275         register class.
7276         (REG_CLASS_NAMES): Likewise.
7277         (REG_CLASS_CONTENTS): Likewise.
7278         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
7279         Allow tailcalling without decls.
7280
7281 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7282
7283         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
7284         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
7285
7286         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
7287         gsi, and variables v_* to v*.
7288
7289 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7290
7291         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
7292
7293 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7294
7295         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
7296         * omp-low.c: Update accordingly.
7297
7298         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
7299         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
7300         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
7301         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
7302         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
7303         GF_OMP_TARGET_KIND_UPDATE.
7304
7305         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
7306         Explicitly enumerate the expected region types.
7307
7308 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7309
7310         PR other/56955
7311         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
7312         documentation; the old documentation didn't clearly state the
7313         constraints on the contents of the pointed-to storage.
7314
7315 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7316
7317         Fix bootstrap error on ia64
7318         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
7319         Return default value.
7320
7321 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7322
7323         PR tree-optimization/54733
7324         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
7325         (CMPNOP): Define.
7326         (find_bswap_or_nop_load): New.
7327         (find_bswap_1): Renamed to ...
7328         (find_bswap_or_nop_1): This. Also add support for memory source.
7329         (find_bswap): Renamed to ...
7330         (find_bswap_or_nop): This. Also add support for memory source and
7331         detection of bitwise operations equivalent to load in target
7332         endianness.
7333         (execute_optimize_bswap): Likewise. Also move its leading comment back
7334         in place and split statement transformation into ...
7335         (bswap_replace): This.
7336
7337 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
7338
7339         PR rtl-optimization/61215
7340         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
7341         simplify_gen_subreg until final substitution.
7342
7343 2014-05-23  Alan Modra  <amodra@gmail.com>
7344
7345         PR target/61231
7346         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
7347         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
7348         Use "Y" constraint rather than "m".
7349
7350 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7351
7352         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
7353         define.
7354         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
7355         New function declaration.
7356         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
7357         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
7358         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
7359         (aarch64_init_builtins) : Initialize builtins
7360         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
7361         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
7362         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
7363         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
7364         and __builtins_aarch64_set_fpsr.
7365         (aarch64_atomic_assign_expand_fenv): New function.
7366         * config/aarch64/aarch64.md (set_fpcr): New pattern.
7367         (get_fpcr) : Likewise.
7368         (set_fpsr) : Likewise.
7369         (get_fpsr) : Likewise.
7370         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
7371          and UNSPECV_SET_FPSR.
7372         * doc/extend.texi (AARCH64 Built-in Functions) : Document
7373         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
7374         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
7375
7376 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
7377
7378         PR rtl-optimization/60969
7379         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
7380         constraints.  Set up mem cost for NO_REGS case.
7381
7382 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
7383
7384         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
7385
7386 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
7387
7388         * config/darwin.c: Include "lto-section-names.h".
7389         (LTO_SEGMENT_NAME): Don't define.
7390         * config/i386/winnt.c: Include "lto-section-names.h".
7391         * lto-streamer.c: Include "lto-section-names.h".
7392         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
7393         * lto-wrapper.c: Include "lto-section-names.h".
7394         (LTO_SECTION_NAME_PREFIX): Don't define.
7395         * lto-section-names.h: New file.
7396         * cgraphunit.c: Include "lto-section-names.h".
7397
7398 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
7399
7400         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
7401
7402 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
7403
7404         PR target/61208
7405         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
7406
7407 2014-05-22  Nick Clifton  <nickc@redhat.com>
7408
7409         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
7410
7411 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7412
7413         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
7414         -> (T)A transformation to integer types.
7415
7416 2014-05-22  Teresa Johnson  <tejohnson@google.com>
7417
7418         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
7419         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
7420         (gcov_rewrite): Use gcov_nonruntime_assert.
7421         (gcov_open): Ditto.
7422         (gcov_write_words): Ditto.
7423         (gcov_write_length): Ditto.
7424         (gcov_read_words): Use gcov_nonruntime_assert, and remove
7425         gcc_assert from IN_LIBGCOV code.
7426         (gcov_read_summary): Use gcov_error to flag profile corruption.
7427         (gcov_sync): Use gcov_nonruntime_assert.
7428         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
7429         (gcov_histo_index): Use gcov_nonruntime_assert.
7430         (static void gcov_histogram_merge): Ditto.
7431         (compute_working_sets): Ditto.
7432         * gcov-io.h (gcov_nonruntime_assert): Define.
7433         (gcov_error): Define for !IN_LIBGCOV
7434
7435 2014-05-22  Richard Biener  <rguenther@suse.de>
7436
7437         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7438         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
7439         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
7440         and deallocation site.
7441         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7442         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
7443         passing through the incoming points-to set.
7444         (handle_lhs_call): Use flags argument instead of recomputing it.
7445         (find_func_aliases_for_call): Call handle_lhs_call with proper
7446         call return flags.
7447
7448 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
7449
7450         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
7451         all padding bits in REAL_VALUE_TYPE are cleared.
7452
7453 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7454
7455         Cleanup and improve multipass_dfa_lookahead_guard
7456         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
7457         (core2i7_first_cycle_multipass_begin,)
7458         (core2i7_first_cycle_multipass_issue,)
7459         (core2i7_first_cycle_multipass_backtrack): Update signature.
7460         * config/ia64/ia64.c
7461         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
7462         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
7463         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
7464         hook definition.
7465         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
7466         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
7467         values.
7468         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
7469         return values.
7470         * doc/tm.texi: Regenerate.
7471         * doc/tm.texi.in
7472         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
7473         * haifa-sched.c (ready_try): Make signed to allow negative values.
7474         (rebug_ready_list_1): Update.
7475         (choose_ready): Simplify.
7476         (sched_extend_ready_list): Update.
7477
7478 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7479
7480         Remove IA64 speculation tweaking flags
7481         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
7482         speculation tuning flags.
7483         (msched-prefer-non-data-spec-insns,)
7484         (msched-prefer-non-control-spec-insns): Obsolete options.
7485         * haifa-sched.c (choose_ready): Remove handling of
7486         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
7487         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
7488         and PREFER_NON_DATA_SPEC.
7489         * sel-sched.c (process_spec_exprs): Remove handling of
7490         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
7491
7492 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7493
7494         Improve scheduling debug output
7495         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
7496         (advance_one_cycle): Update.
7497         (schedule_insn, queue_to_ready): Add debug printouts.
7498         (debug_ready_list_1): New static function.
7499         (debug_ready_list): Update.
7500         (max_issue): Add debug printouts.
7501         (dump_insn_stream): New static function.
7502         (schedule_block): Use it.  Also better indent printouts.
7503
7504 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7505
7506         Fix sched_insn debug counter
7507         * haifa-sched.c (schedule_insn): Update.
7508         (struct haifa_saved_data): Add nonscheduled_insns_begin.
7509         (save_backtrack_point, restore_backtrack_point): Update.
7510         (first_nonscheduled_insn): New static function.
7511         (queue_to_ready, choose_ready): Use it.
7512         (schedule_block): Init nonscheduled_insns_begin.
7513         (sched_emit_insn): Update.
7514
7515
7516 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7517
7518         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
7519         to GENERAL_REGS.
7520         (aarch64_secondary_reload) : LikeWise.
7521         (aarch64_class_max_nregs) : Remove CORE_REGS.
7522         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
7523         (REG_CLASS_NAMES) : Likewise.
7524         (REG_CLASS_CONTENTS) : LikeWise.
7525         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
7526
7527 2014-05-21  Guozhi Wei  <carrot@google.com>
7528
7529         PR target/61202
7530         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
7531         constraint.
7532         (vqdmulhq_n_s16): Likewise.
7533
7534 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
7535
7536         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
7537
7538 2014-05-21  Marek Polacek  <polacek@redhat.com>
7539
7540         PR sanitizer/61272
7541         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
7542
7543 2014-05-21  Martin Jambor  <mjambor@suse.cz>
7544
7545         * doc/invoke.texi (Optimize Options): Document parameters
7546         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
7547         ipa-cp-array-index-hint-bonus.
7548
7549 2014-05-21  Mark Wielaard  <mjw@redhat.com>
7550
7551         PR debug/16063
7552         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
7553         version >= 3 or not strict DWARF.
7554         * langhooks.h (struct lang_hooks_for_types): Add
7555         enum_underlying_base_type.
7556         * langhooks.c (lhd_enum_underlying_base_type): New function.
7557         * gcc/langhooks.h (struct lang_hooks_for_types): Add
7558         enum_underlying_base_type.
7559         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
7560         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
7561         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
7562
7563 2014-05-21  Richard Biener  <rguenther@suse.de>
7564
7565         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
7566
7567 2014-05-21  John Marino  <gnugcc@marino.st>
7568
7569         * config.gcc (*-*-dragonfly*): New target.
7570         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
7571         * configure: Regenerate.
7572         * config/dragonfly-stdint.h: New.
7573         * config/dragonfly.h: New.
7574         * config/dragonfly.opt: New.
7575         * config/i386/dragonfly.h: New.
7576         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
7577
7578 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7579
7580         * tree.def (VOID_CST): New.
7581         * tree-core.h (TI_VOID): New.
7582         * tree.h (void_node): New.
7583         * tree.c (tree_node_structure_for_code, tree_code_size)
7584         (iterative_hash_expr): Handle VOID_CST.
7585         (build_common_tree_nodes): Initialize void_node.
7586
7587 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
7588
7589         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
7590         functions.
7591         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
7592
7593         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
7594         more places.
7595
7596         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
7597         flag_reorder_blocks_and_partition.
7598         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
7599
7600 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
7601
7602         PR target/54236
7603         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
7604         constraints.
7605         (*addc_r_t): Add new insn_and_split.
7606
7607 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
7608
7609         PR middle-end/61252
7610         * omp-low.c (handle_simd_reference): New function.
7611         (lower_rec_input_clauses): Use it.  Defer adding reference
7612         initialization even for reduction without placeholder if in simd,
7613         handle it properly later on.
7614
7615 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
7616
7617         PR tree-optimization/60899
7618         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
7619         assume all static symbols will have definition wile parsing and
7620         check the do have definition later in compilation; check that
7621         variable referring symbol will be output before concluding that
7622         reference is safe; be conservative for referring local statics;
7623         be more precise about when comdat is output in other partition.
7624
7625 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
7626
7627         PR bootstrap/60984
7628         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
7629         parameter.
7630         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
7631         (ipa_inline): Loop inline_to_all_callers until no more aliases
7632         are removed.
7633
7634 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
7635
7636         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
7637         set writeonly flag only for vars actually written to.
7638
7639 2014-05-20  Dehao Chen  <dehao@google.com>
7640
7641         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
7642         and callee count to get clone count.
7643         * tree-inline.c (expand_call_inline): Use callee count instead of bb
7644         count in copy_body.
7645
7646 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
7647
7648         PR rtl-optimization/61243
7649         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
7650
7651 2014-05-20  Xinliang David Li  <davidxl@google.com>
7652
7653         * cgraphunit.c (walk_polymorphic_call_targets): Add
7654         dbgcnt and fopt-info support.
7655         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
7656         * ipa-devirt.c (ipa_devirt): Ditto.
7657         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
7658         * ipa.c (walk_polymorphic_call_targets): Ditto.
7659         * gimple-fold.c (fold_gimple_assign): Ditto.
7660         (gimple_fold_call): Ditto.
7661         * dbgcnt.def: New counter.
7662
7663 2014-05-20  DJ Delorie  <dj@redhat.com>
7664
7665         * config/msp430/msp430.md (split): Don't allow subregs when
7666         splitting SImode adds.
7667         (andneghi): Fix subtraction logic.
7668         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
7669
7670 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
7671
7672         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
7673         symbols.
7674         * except.c (switch_to_exception_section, resolve_unique_section,
7675         get_named_text_section, default_function_rodata_section,
7676         align_variable, get_block_for_decl, default_section_type_flags):
7677         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
7678         * symtab.c (symtab_add_to_same_comdat_group,
7679         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
7680         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
7681         Likewise.
7682         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
7683         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
7684         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7685         (c6x_function_in_section_p): Likewise.
7686         * config/darwin.c (machopic_select_section): Likewise.
7687         * config/arm/arm.c (arm_function_in_section_p): Likewise.
7688         * config/mips/mips.c (mips_function_rodata_section): Likewise.
7689         * config/mep/mep.c (mep_select_section): LIkewise.
7690         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7691
7692 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7693
7694         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
7695         EH region of calls to pure functions that can throw an exception.
7696         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
7697         (copy_reference_ops_from_call): Also copy the EH region of the call if
7698         it can throw an exception.
7699
7700 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7701
7702         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
7703         nested VEC_SELECTs that are inverses of each other.
7704
7705 2014-05-20  Richard Biener  <rguenther@suse.de>
7706
7707         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
7708         (extract_and_process_scc_for_name): not here.
7709         (cond_dom_walker::before_dom_children): Only process
7710         stmts that end the BB in interesting ways.
7711         (run_scc_vn): Mark param uses as visited.
7712
7713 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7714
7715         * config/arm/arm.md (arith_shiftsi): Do not predicate for
7716         arm_restrict_it.
7717
7718 2014-05-20  Nick Clifton  <nickc@redhat.com>
7719
7720         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
7721         (msp430_gimplify_va_arg_expr): New function.
7722         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
7723
7724         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
7725         operand 0 in order to prevent confusion about the number of
7726         registers involved.
7727
7728 2014-05-20  Richard Biener  <rguenther@suse.de>
7729
7730         PR tree-optimization/61221
7731         * tree-ssa-pre.c (el_to_update): Remove.
7732         (eliminate_dom_walker::before_dom_children): Handle released
7733         VDEFs by value-numbering them to the associated VUSE.  Update
7734         stmt immediately for substituted call address.
7735         (eliminate): Remove delayed stmt updating code.
7736         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
7737         possibly late re-numbered vuses.
7738         (vn_reference_lookup_2): Adjust.
7739         (vn_reference_lookup_pieces): Likewise.
7740         (vn_reference_lookup): Likewise.
7741
7742 2014-05-20  Richard Biener  <rguenther@suse.de>
7743
7744         * config.gcc: Remove need_64bit_hwint.
7745         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
7746         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
7747         it to be true.
7748         * config.in: Regenerate.
7749         * configure: Likewise.
7750
7751 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
7752
7753         * doc/extend.texi: Create Label Attributes section,
7754         move all label attributes into it and reference it.
7755
7756 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
7757
7758         * arm.c (thumb1_reorg): When scanning backwards skip anything
7759         that's not a proper insn.
7760
7761 2014-05-19  Richard Biener  <rguenther@suse.de>
7762
7763         PR tree-optimization/61221
7764         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7765         Do nothing for unreachable blocks.
7766         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
7767         Improve unreachability detection.
7768
7769 2014-05-19  Richard Biener  <rguenther@suse.de>
7770
7771         PR tree-optimization/61209
7772         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
7773
7774 2014-05-19  Nick Clifton  <nickc@redhat.com>
7775
7776         * except.c (init_eh): Fix computation of builtin setjmp buffer
7777         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
7778
7779 2014-05-19  Richard Biener  <rguenther@suse.de>
7780
7781         PR tree-optimization/61184
7782         * tree-vrp.c (is_negative_overflow_infinity): Use
7783         TREE_OVERFLOW_P and do that check first.
7784         (is_positive_overflow_infinity): Likewise.
7785         (is_overflow_infinity): Likewise.
7786         (vrp_operand_equal_p): Properly treat operands with
7787         differing overflow as not equal.
7788
7789 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
7790
7791         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
7792         shift simplification where it was intended.
7793
7794 2014-05-19  Christian Bruel  <christian.bruel@st.com>
7795
7796         PR target/61195
7797         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
7798
7799 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
7800
7801         PR target/61084
7802         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
7803         than wide_int.
7804
7805 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
7806
7807         * reg-notes.def (CROSSING_JUMP): Likewise.
7808         * rtl.h (rtx_def): Update comment for jump flag.
7809         (CROSSING_JUMP_P): Define.
7810         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
7811         of a REG_CROSSING_JUMP note.
7812         * cfghooks.c (tidy_fallthru_edges): Likewise.
7813         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
7814         * emit-rtl.c (try_split): Likewise.
7815         * haifa-sched.c (sched_create_recovery_edges): Likewise.
7816         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
7817         * jump.c (redirect_jump_2): Likewise.
7818         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
7819         (relax_delay_slots): Likewise.
7820         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
7821         (bbit_di): Likewise.
7822         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
7823         * config/sh/sh.md (jump_compact): Likewise.
7824         * bb-reorder.c (rotate_loop): Likewise.
7825         (pass_duplicate_computed_gotos::execute): Likewise.
7826         (add_reg_crossing_jump_notes): Rename to...
7827         (update_crossing_jump_flags): ...this.
7828         (pass_partition_blocks::execute): Update accordingly.
7829
7830 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
7831
7832         * tree.h: Remove extraneous template <>.
7833
7834 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
7835
7836         * ipa.c (symtab_remove_unreachable_nodes): Remove
7837         symbol from comdat group if its body was eliminated.
7838         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
7839         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
7840         (symtab_unregister_node): ... this one.
7841         (verify_symtab_base): More strict checking of comdats.
7842         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
7843
7844 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
7845
7846         * tree-pass.h (make_pass_ipa_comdats): New pass.
7847         * timevar.def (TV_IPA_COMDATS): New timevar.
7848         * passes.def (pass_ipa_comdats): Add.
7849         * Makefile.in (OBJS): Add ipa-comdats.o
7850         * ipa-comdats.c: New file.
7851
7852 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
7853
7854         * ipa.c (update_visibility_by_resolution_info): New function.
7855         (function_and_variable_visibility): Use it.
7856
7857 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
7858
7859         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
7860         New functions.
7861         (FOR_EACH_DEFINED_SYMBOL): New macro.
7862         (varpool_first_static_initializer, varpool_next_static_initializer,
7863         varpool_first_defined_variable, varpool_next_defined_variable):
7864         Fix comments.
7865         (symtab_in_same_comdat_p): Correctly deal with inline functions.
7866
7867 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
7868
7869         * ggc-page.c (ggc_handle_finalizers): Add comment.
7870
7871 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
7872
7873         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
7874         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
7875         (ggc_internal_cleared_alloc): Likewise.
7876         * ggc-page.c (finalizer): New class.
7877         (vec_finalizer): Likewise.
7878         (globals::finalizers): New member.
7879         (globals::vec_finalizers): Likewise.
7880         (ggc_internal_alloc): Record the finalizer if any for the block being
7881         allocated.
7882         (ggc_handle_finalizers): New function.
7883         (ggc_collect): Call ggc_handle_finalizers.
7884         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
7885         finalizer.
7886         (ggc_internal_cleared_alloc): Likewise.
7887         (finalize): New function.
7888         (need_finalization_p): Likewise.
7889         (ggc_alloc): Install the type's destructor as the finalizer if it
7890         might do something.
7891         (ggc_cleared_alloc): Likewise.
7892         (ggc_vec_alloc): Likewise.
7893         (ggc_cleared_vec_alloc): Likewise.
7894
7895 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
7896
7897         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
7898
7899 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
7900
7901         * alias.c (record_alias_subset): Adjust.
7902         * bitmap.c (bitmap_element_allocate): Likewise.
7903         (bitmap_gc_alloc_stat): Likewise.
7904         * cfg.c (init_flow): Likewise.
7905         (alloc_block): Likewise.
7906         (unchecked_make_edge): Likewise.
7907         * cfgloop.c (alloc_loop): Likewise.
7908         (flow_loops_find): Likewise.
7909         (rescan_loop_exit): Likewise.
7910         * cfgrtl.c (init_rtl_bb_info): Likewise.
7911         * cgraph.c (insert_new_cgraph_node_version): Likewise.
7912         (cgraph_allocate_node): Likewise.
7913         (cgraph_create_edge_1): Likewise.
7914         (cgraph_allocate_init_indirect_info): Likewise.
7915         * cgraphclones.c (cgraph_clone_edge): Likewise.
7916         * cgraphunit.c (add_asm_node): Likewise.
7917         (init_lowered_empty_function): Likewise.
7918         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
7919         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7920         (alpha_use_linkage): Likewise.
7921         * config/arc/arc.c (arc_init_machine_status): Likewise.
7922         * config/arm/arm.c (arm_init_machine_status): Likewise.
7923         * config/avr/avr.c (avr_init_machine_status): Likewise.
7924         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
7925         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
7926         * config/cris/cris.c (cris_init_machine_status): Likewise.
7927         * config/darwin.c (machopic_indirection_name): Likewise.
7928         (darwin_build_constant_cfstring): Likewise.
7929         (darwin_enter_string_into_cfstring_table): Likewise.
7930         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
7931         * config/frv/frv.c (frv_init_machine_status): Likewise.
7932         * config/i386/i386.c (get_dllimport_decl): Likewise.
7933         (ix86_init_machine_status): Likewise.
7934         (assign_386_stack_local): Likewise.
7935         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
7936         (i386_pe_maybe_record_exported_symbol): Likewise.
7937         (i386_pe_record_stub): Likewise.
7938         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
7939         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
7940         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
7941         (m32c_note_pragma_address): Likewise.
7942         * config/mep/mep.c (mep_init_machine_status): Likewise.
7943         (mep_note_pragma_flag): Likewise.
7944         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
7945         (mips16_local_alias): Likewise.
7946         (mips_init_machine_status): Likewise.
7947         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
7948         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
7949         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
7950         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
7951         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
7952         * config/pa/pa.c (pa_init_machine_status): Likewise.
7953         (pa_get_deferred_plabel): Likewise.
7954         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
7955         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
7956         (rs6000_init_machine_status): Likewise.
7957         (output_toc): Likewise.
7958         * config/s390/s390.c (s390_init_machine_status): Likewise.
7959         * config/score/score.c (score_output_external): Likewise.
7960         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
7961         * config/spu/spu.c (spu_init_machine_status): Likewise.
7962         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
7963         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
7964         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7965         * coverage.c (coverage_end_function): Likewise.
7966         * dbxout.c (dbxout_init): Likewise.
7967         * doc/gty.texi: Don't mention variable_size attribute.
7968         * dwarf2cfi.c (new_cfi): Adjust.
7969         (new_cfi_row): Likewise.
7970         (copy_cfi_row): Likewise.
7971         (create_cie_data): Likewise.
7972         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
7973         (new_loc_descr): Likewise.
7974         (find_AT_string_in_table): Likewise.
7975         (add_addr_table_entry): Likewise.
7976         (new_die): Likewise.
7977         (add_var_loc_to_decl): Likewise.
7978         (clone_die): Likewise.
7979         (clone_as_declaration): Likewise.
7980         (break_out_comdat_types): Likewise.
7981         (new_loc_list): Likewise.
7982         (add_loc_descr_to_each): Likewise.
7983         (add_location_or_const_value_attribute): Likewise.
7984         (add_linkage_name): Likewise.
7985         (lookup_filename): Likewise.
7986         (dwarf2out_var_location): Likewise.
7987         (new_line_info_table): Likewise.
7988         (dwarf2out_init): Likewise.
7989         (mem_loc_descriptor): Likewise.
7990         (loc_descriptor): Likewise.
7991         (add_const_value_attribute): Likewise.
7992         (tree_add_const_value_attribute): Likewise.
7993         (comp_dir_string): Likewise.
7994         (dwarf2out_vms_debug_main_pointer): Likewise.
7995         (string_cst_pool_decl): Likewise.
7996         * emit-rtl.c (set_mem_attrs): Likewise.
7997         (get_reg_attrs): Likewise.
7998         (start_sequence): Likewise.
7999         (init_emit): Likewise.
8000         (init_emit_regs): Likewise.
8001         * except.c (init_eh_for_function): Likewise.
8002         (gen_eh_region): Likewise.
8003         (gen_eh_region_catch): Likewise.
8004         (gen_eh_landing_pad): Likewise.
8005         (add_call_site): Likewise.
8006         * function.c (add_frame_space): Likewise.
8007         (insert_temp_slot_address): Likewise.
8008         (assign_stack_temp_for_type): Likewise.
8009         (get_hard_reg_initial_val): Likewise.
8010         (allocate_struct_function): Likewise.
8011         (prepare_function_start): Likewise.
8012         (types_used_by_var_decl_insert): Likewise.
8013         * gengtype.c (variable_size_p): Remove function.
8014         (enum alloc_quantity): Remove enum.
8015         (write_typed_alloc_def): Remove function.
8016         (write_typed_struct_alloc_def): Likewise.
8017         (write_typed_typedef_alloc_def): Likewise.
8018         (write_typed_alloc_defns): Likewise.
8019         (main): Adjust.
8020         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
8021         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
8022         * ggc.h (ggc_alloc): new function.
8023         (ggc_cleared_alloc): Likewise.
8024         (ggc_vec_alloc): Template on type of vector element, and remove
8025         element size argument.
8026         (ggc_cleared_vec_alloc): Likewise.
8027         * gimple.c (gimple_build_omp_for): Adjust.
8028         (gimple_copy): Likewise.
8029         * ipa-cp.c (get_replacement_map): Likewise.
8030         (find_aggregate_values_for_callers_subset): Likewise.
8031         (known_aggs_to_agg_replacement_list): Likewise.
8032         * ipa-devirt.c (get_odr_type): Likewise.
8033         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
8034         (read_agg_replacement_chain): Likewise.
8035         * loop-iv.c (get_simple_loop_desc): Likewise.
8036         * lto-cgraph.c (input_node_opt_summary): Likewise.
8037         * lto-section-in.c (lto_new_in_decl_state): Likewise.
8038         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8039         (input_eh_region): Likewise.
8040         (input_eh_lp): Likewise.
8041         (input_cfg): Likewise.
8042         * optabs.c (set_optab_libfunc): Likewise.
8043         (init_tree_optimization_optabs): Likewise.
8044         (set_conv_libfunc): Likewise.
8045         * passes.c (do_per_function_toporder): Likewise.
8046         * rtl.h: Don't use variable_size gty attribute.
8047         * sese.c (if_region_set_false_region): Adjust.
8048         * stringpool.c (gt_pch_save_stringpool): Likewise.
8049         * target-globals.c (save_target_globals): Likewise.
8050         * toplev.c (general_init): Likewise.
8051         * trans-mem.c (record_tm_replacement): Likewise.
8052         (split_bb_make_tm_edge): Likewise.
8053         * tree-cfg.c (move_sese_region_to_fn): Likewise.
8054         * tree-data-ref.h (lambda_vector_new): Likewise.
8055         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8056         * tree-iterator.c (tsi_link_before): Likewise.
8057         (tsi_link_after): Likewise.
8058         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8059         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8060         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8061         * tree-ssa-operands.h: Don't use variable_size gty attribute.
8062         * tree-ssa.c (init_tree_ssa): Adjust.
8063         * tree-ssanames.c (set_range_info): Likewise.
8064         (get_ptr_info): Likewise.
8065         (duplicate_ssa_name_ptr_info): Likewise.
8066         (duplicate_ssa_name_range_info): Likewise.
8067         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
8068         (unpack_ts_fixed_cst_value_fields): Likewise.
8069         * tree.c (build_fixed): Likewise.
8070         (build_real): Likewise.
8071         (build_string): Likewise.
8072         (decl_priority_info): Likewise.
8073         (decl_debug_expr_insert): Likewise.
8074         (decl_value_expr_insert): Likewise.
8075         (decl_debug_args_insert): Likewise.
8076         (type_hash_add): Likewise.
8077         (build_omp_clause): Likewise.
8078         * ubsan.c (decl_for_type_insert): Likewise.
8079         * varasm.c (get_unnamed_section): Likewise.
8080         (get_noswitch_section): Likewise.
8081         (get_section): Likewise.
8082         (get_block_for_section): Likewise.
8083         (create_block_symbol): Likewise.
8084         (build_constant_desc): Likewise.
8085         (create_constant_pool): Likewise.
8086         (force_const_mem): Likewise.
8087         (record_tm_clone_pair): Likewise.
8088         * varpool.c (varpool_create_empty_node): Likewise.
8089
8090 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8091
8092         * dwarf2out.c (tree_add_const_value_attribute): Call
8093         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
8094         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
8095         instead of ggc_internal_<x>alloc_stat.
8096         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
8097         (ggc_realloc): Likewise.
8098         * ggc-none.c (ggc_internal_alloc): Likewise.
8099         (ggc_internal_cleared_alloc): Likewise.
8100         * ggc-page.c: Likewise.
8101         * ggc.h (ggc_internal_alloc_stat): Likewise.
8102         (ggc_internal_alloc): Remove macro.
8103         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
8104         (ggc_internal_cleared_alloc): Remove macro.
8105         (GGC_RESIZEVEC): Adjust.
8106         (ggc_resizevar): Remove macro.
8107         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
8108         (ggc_internal_cleared_vec_alloc_stat): Likewise.
8109         (ggc_internal_vec_cleared_alloc): Remove macro.
8110         (ggc_alloc_atomic_stat): Drop _stat suffix.
8111         (ggc_alloc_atomic): Remove macro.
8112         (ggc_alloc_cleared_atomic): Remove macro.
8113         (ggc_alloc_string_stat): Drop _stat suffix.
8114         (ggc_alloc_string): Remove macro.
8115         (ggc_alloc_rtx_def_stat): Adjust.
8116         (ggc_alloc_tree_node_stat): Likewise.
8117         (ggc_alloc_cleared_tree_node_stat): Likewise.
8118         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
8119         (ggc_alloc_cleared_simd_clone_stat): Likewise.
8120         * gimple.c (gimple_build_omp_for): Likewise.
8121         (gimple_copy): Likewise.
8122         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
8123         * toplev.c (realloc_for_line_map): Adjust.
8124         * tree-data-ref.h (lambda_vector_new): Likewise.
8125         * tree-phinodes.c (allocate_phi_node): Likewise.
8126         * tree.c (grow_tree_vec_stat): Likewise.
8127         * vec.h (va_gc::reserve): Adjust.
8128
8129 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
8130
8131         * config/microblaze/microblaze.c (break_handler): New Declaration.
8132         (microblaze_break_function_p,microblaze_is_break_handler): New.
8133         (compute_frame_size): Use microblaze_break_function_p.
8134         Add the test of break_handler.
8135         (microblaze_function_prologue) : Add the test of variable
8136         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
8137         (microblaze_function_epilogue) : Add the test of break_handler.
8138         (microblaze_globalize_label) : Add the test of break_handler.
8139         Check the name by BREAK_HANDLER_NAME.
8140
8141         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
8142
8143         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
8144         microblaze_is_break_handler test.
8145         (call_internal1,call_value_intern): Use microblaze_break_function_p.
8146         Use SYMBOL_REF_DECL.
8147
8148         * config/microblaze/microblaze-protos.h
8149         (microblaze_break_function_p,microblaze_is_break_handler):
8150         New Declaration.
8151
8152         * doc/extend.texi (MicroBlaze break_handler Functions): Document
8153         new MicroBlaze break_handler functions.
8154
8155 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
8156
8157         * doc/extend.texi (Size of an asm): Move node text according
8158         to its @menu entry position.
8159
8160 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
8161
8162         PR tree-optimization/61140
8163         PR tree-optimization/61150
8164         PR tree-optimization/61197
8165         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
8166
8167 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
8168
8169         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
8170
8171 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
8172
8173         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
8174         __SIZEOF_INT128__ is defined.
8175
8176 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8177
8178         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
8179         (rs6000_delegitimize_address): Use it.
8180
8181 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8182
8183         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
8184         inplace argument.  Store the new address in the original MEM when true.
8185         * emit-rtl.c (change_address_1): Likewise.
8186         (adjust_address_1, adjust_automodify_address_1, offset_address):
8187         Update accordingly.
8188         * rtl.h (plus_constant): Add an inplace argument.
8189         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
8190         when true.  Avoid generating (plus X (const_int 0)).
8191         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
8192         in-place.  Pass true to plus_constant.
8193         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
8194
8195 2014-05-16  Dehao Chen  <dehao@google.com>
8196
8197         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
8198
8199 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
8200
8201         PR target/54089
8202         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
8203         patterns.
8204         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
8205
8206 2014-05-16  Dehao Chen  <dehao@google.com>
8207
8208         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
8209         optimize_function_for_size_p.
8210         * regs.h (REG_FREQ_FROM_BB): Likewise.
8211
8212 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
8213
8214         PR target/51244
8215         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
8216         negt_reg_operand cases.
8217         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
8218         predicate.
8219         * config/sh/predicates.md (cbranch_treg_value): Simplify.
8220
8221 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
8222
8223         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
8224         target variants.
8225
8226 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
8227
8228         Revert:
8229         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
8230
8231         * tree-cfg.c (dump_function_to_file): Dump the return type of
8232         functions, in a line to itself before the function body, mimicking
8233         the layout of a C function.
8234
8235 2014-05-16  Dehao Chen  <dehao@google.com>
8236
8237         * cfghooks.c (make_forwarder_block): Use direct computation to
8238         get fall-through edge's count and frequency.
8239
8240 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
8241
8242         * config/arc/arc.c (arc_init): Fix typo in error message.
8243         * config/i386/i386.c (ix86_expand_builtin): Likewise.
8244         (split_stack_prologue_scratch_regno): Likewise.
8245         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
8246         word from error message.
8247
8248 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8249
8250         * ira-costs.c: Fix typo in comment.
8251
8252 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
8253
8254         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
8255
8256 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
8257
8258         * varpool.c (dump_varpool_node): Dump write-only flag.
8259         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
8260         write-only flag.
8261         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
8262         write-only variables.
8263         * ipa.c (process_references): New function.
8264         (set_readonly_bit): New function.
8265         (set_writeonly_bit): New function.
8266         (clear_addressable_bit): New function.
8267         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
8268         fix handling of aliases.
8269         * cgraph.h (struct varpool_node): Add writeonly flag.
8270
8271 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
8272
8273         PR rtl-optimization/60969
8274         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
8275         Calculate costs for this case.
8276
8277 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8278
8279         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
8280         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
8281
8282 2014-05-16  Richard Biener  <rguenther@suse.de>
8283
8284         PR tree-optimization/61194
8285         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
8286         bool patterns ending in a COND_EXPR.
8287
8288 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8289
8290         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
8291
8292 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8293
8294         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
8295         where we were unable to cost an RTX.
8296
8297 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8298
8299         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
8300         HIGH, LO_SUM.
8301
8302 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8303             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8304
8305         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
8306
8307 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8308             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8309
8310         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
8311         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
8312
8313 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8314             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8315
8316         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
8317         operators.
8318
8319 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8320             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8321
8322         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
8323         DIV/MOD.
8324
8325 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8326             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8327
8328         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
8329         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
8330
8331 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8332             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8333
8334         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
8335         rotates and shifts.
8336
8337 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8338             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8339
8340         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
8341         ZERO_EXTEND and SIGN_EXTEND better.
8342
8343 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8344             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8345
8346         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
8347         logical operations.
8348
8349 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8350             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8351
8352         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
8353         costs when costing loads and stores to memory.
8354
8355 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8356             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
8357
8358         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
8359         for SET RTX.
8360
8361 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8362
8363         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
8364
8365 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8366             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8367
8368         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
8369         to...
8370         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
8371         well formed.
8372         (aarch64_rtx_mult_cost): New.
8373         (aarch64_rtx_costs): Use it, refactor as appropriate.
8374
8375 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8376             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8377
8378         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
8379         emit instructions, return number of instructions which would
8380         be emitted.
8381         (aarch64_add_constant): Update call to aarch64_build_constant.
8382         (aarch64_output_mi_thunk): Likewise.
8383         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
8384         a CONST_DOUBLE.
8385
8386 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8387
8388         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
8389         (TARGET_RTX_COSTS): Call it.
8390
8391 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8392
8393         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
8394         (cortexa57_vector_cost): Likewise.
8395         (cortexa57_tunings): Use them.
8396
8397 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8398
8399         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
8400         (cpu_addrcost_table): Use it.
8401         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
8402         (aarch64_address_cost): Rewrite using aarch64_classify_address,
8403         move it.
8404
8405 2014-05-16  Richard Biener  <rguenther@suse.de>
8406
8407         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
8408         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
8409         (visit_phi): Ignore edges marked as not executable.
8410         (class cond_dom_walker): New.
8411         (cond_dom_walker::before_dom_children): Value-number
8412         control statements and mark successor edges as not
8413         executable if possible.
8414         (run_scc_vn): First walk all control statements in
8415         dominator order, marking edges as not executable.
8416         * tree-inline.c (copy_edges_for_bb): Be not confused
8417         about random edge flags.
8418
8419 2014-05-16  Richard Biener  <rguenther@suse.de>
8420
8421         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
8422
8423 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
8424
8425         PR target/61193
8426         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
8427         (__TM_simple_begin): Use it.
8428         (__TM_begin): Likewise.
8429
8430 2014-05-15  Martin Jambor  <mjambor@suse.cz>
8431
8432         PR ipa/61085
8433         * ipa-prop.c (update_indirect_edges_after_inlining): Check
8434         type_preserved flag when the indirect edge is polymorphic.
8435
8436 2014-05-15  Martin Jambor  <mjambor@suse.cz>
8437
8438         PR tree-optimization/61090
8439         * tree-sra.c (sra_modify_expr): Pass the current gsi to
8440         build_ref_for_model.
8441
8442 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8443
8444         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
8445         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
8446
8447 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
8448
8449         PR tree-optimization/61158
8450         * fold-const.c (fold_binary_loc): If X is zero-extended and
8451         shiftc >= prec, make sure zerobits is all ones instead of
8452         invoking undefined behavior.
8453
8454 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8455
8456         * regcprop.h: New file.
8457         * regcprop.c (skip_debug_insn_p): New decl.
8458         (replace_oldest_value_reg): Check skip_debug_insn_p.
8459         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
8460         * shrink-wrap.c: Include regcprop.h.
8461         (prepare_shrink_wrap): Call
8462         copyprop_hardreg_forward_bb_without_debug_insn.
8463
8464 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8465
8466         * shrink-wrap.h: Update comment.
8467         * shrink-wrap.c: Update comment.
8468         (next_block_for_reg): Rename to live_edge_for_reg.
8469         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
8470         (move_insn_for_shrink_wrap): Split live_edge.
8471         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
8472
8473 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8474
8475         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
8476         Delete.
8477         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
8478         * config/sparc/sparc.md (fptype_ut699): New attribute.
8479         (in_branch_delay): Return false if -mfix-ut699 is specified and
8480         fptype_ut699 is set to single.
8481         (truncdfsf2): Add fptype_ut699 attribute.
8482         (fix_truncdfsi2): Likewise.
8483         (floatsisf2): Change fptype attribute.
8484         (fix_truncsfsi2): Likewise.
8485         (negtf2_notv9): Delete.
8486         (negtf2_v9): Likewise.
8487         (negtf2_hq): New instruction.
8488         (negtf2): New instruction and splitter.
8489         (negdf2_notv9): Rewrite.
8490         (abstf2_notv9): Delete.
8491         (abstf2_hq_v9): Likewise.
8492         (abstf2_v9): Likewise.
8493         (abstf2_hq): New instruction.
8494         (abstf2): New instruction and splitter.
8495         (absdf2_notv9): Rewrite.
8496
8497 2014-05-14  Cary Coutant  <ccoutant@google.com>
8498
8499         PR debug/61013
8500         * opts.c (common_handle_option): Don't special-case "-g".
8501         (set_debug_level): Default to at least level 2 with "-g".
8502
8503 2014-05-14  DJ Delorie  <dj@redhat.com>
8504
8505         * config/msp430/msp430.c (msp430_builtin): Add
8506         MSP430_BUILTIN_DELAY_CYCLES.
8507         (msp430_init_builtins): Register void __delay_cycles(long long).
8508         (msp430_builtin_decl): Add it.
8509         (cg_magic_constant): New.
8510         (msp430_expand_delay_cycles): New.
8511         (msp430_expand_builtin): Call it.
8512         (msp430_print_operand_raw): Change integer printing from "int" to
8513         HOST_WIDE_INT.
8514         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
8515         (delay_cycles_start): New.
8516         (delay_cycles_end): New.
8517         (delay_cycles_32): New.
8518         (delay_cycles_32x): New.
8519         (delay_cycles_16): New.
8520         (delay_cycles_16x): New.
8521         (delay_cycles_2): New.
8522         (delay_cycles_1): New.
8523         * doc/extend.texi: Document __delay_cycles().
8524
8525 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
8526
8527         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
8528         length attribute computation.
8529
8530 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
8531
8532         PR debug/61188
8533         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
8534
8535 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
8536
8537         PR target/61084
8538         * config/sparc/sparc.md: Fix types of low and high in DI constant
8539         splitter.  Use gen_int_mode in some other splitters.
8540
8541 2014-05-14  Martin Jambor  <mjambor@suse.cz>
8542
8543         PR ipa/60897
8544         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
8545
8546 2014-05-14  James Norris  <jnorris@codesourcery.com>
8547
8548         * omp-low.c (expand_parallel_call): Remove shadow variable.
8549         (expand_omp_taskreg): Likewise.
8550
8551 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
8552
8553         * common/config/i386/i386-common.c
8554         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
8555         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
8556         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
8557         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
8558         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
8559         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
8560         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
8561         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
8562         xsavecintrin.h, xsavesintrin.h.
8563         (x86_64-*-*): Ditto.
8564         * config/i386/clflushoptintrin.h: New.
8565         * config/i386/xsavecintrin.h: Ditto.
8566         * config/i386/xsavesintrin.h: Ditto.
8567         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
8568         (bit_XSAVES): Ditto.
8569         (bit_XSAVES): Ditto.
8570         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8571         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
8572         -mno-clflushopt.
8573         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8574         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
8575         OPTION_MASK_ISA_XSAVES.
8576         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
8577         -mxsavec, -mxsaves.
8578         (PTA_CLFLUSHOPT) Define.
8579         (PTA_XSAVEC): Ditto.
8580         (PTA_XSAVES): Ditto.
8581         (ix86_option_override_internal): Handle new options.
8582         (ix86_valid_target_attribute_inner_p): Ditto.
8583         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
8584         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
8585         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
8586         (bdesc_special_args): Add __builtin_ia32_xsaves,
8587         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
8588         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
8589         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
8590         (ix86_expand_builtin): Handle new builtins.
8591         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
8592         (TARGET_CLFLUSHOPT_P): Ditto.
8593         (TARGET_XSAVEC): Ditto.
8594         (TARGET_XSAVEC_P): Ditto.
8595         (TARGET_XSAVES): Ditto.
8596         (TARGET_XSAVES_P): Ditto.
8597         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
8598         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
8599         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
8600         (ANY_XRSTOR): New.
8601         (ANY_XRSTOR64): Ditto.
8602         (xrstor): Ditto.
8603         (xrstor): Change into <xrstor>.
8604         (xrstor_rex64): Change into <xrstor>_rex64.
8605         (xrstor64): Change into <xrstor>64
8606         (clflushopt): New.
8607         * config/i386/i386.opt (mclflushopt): New.
8608         (mxsavec): Ditto.
8609         (mxsaves): Ditto.
8610         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
8611         xsavecintrin.h.
8612         * doc/invoke.texi: Document new options.
8613
8614 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
8615
8616         PR rtl-optimization/60866
8617         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
8618         Default it to -1.  Pass it down to init_simplejump_data.
8619         (init_simplejump_data): New parameter old_seqno.  Pass it down
8620         to get_seqno_for_a_jump.
8621         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
8622         initializing new jump seqno as a last resort.  Add comment.
8623         (sel_redirect_edge_and_branch): Save old seqno of the conditional
8624         jump and pass it down to sel_init_new_insn.
8625         (sel_redirect_edge_and_branch_force): Likewise.
8626
8627 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
8628
8629         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
8630         shifted values to avoid build warning.
8631
8632 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8633
8634         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
8635         * cfgrtl.c (rtl_merge_blocks): Fix comment.
8636         (cfg_layout_merge_blocks): Likewise.
8637         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
8638
8639 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
8640
8641         PR rtl-optimization/60901
8642         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
8643         bb predecessor belongs to the same scheduling region.  Adjust comment.
8644
8645 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
8646
8647         * doc/sourcebuild.texi: (dfp_hw): Document.
8648         (p8vector_hw): Likewise.
8649         (powerpc_eabi_ok): Likewise.
8650         (powerpc_elfv2): Likewise.
8651         (powerpc_htm_ok): Likewise.
8652         (ppc_recip_hw): Likewise.
8653         (vsx_hw): Likewise.
8654
8655 2014-05-13  Cary Coutant  <ccoutant@google.com>
8656
8657         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
8658
8659 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
8660
8661         * gengtype-parse.c (require3): Eliminate in favor of...
8662         (require4): New.
8663         (require_template_declaration): Update to support optional single *
8664         on a type.
8665
8666         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
8667         (create_user_defined_type): Handle a single level of explicit
8668         pointerness within template arguments.
8669         (struct write_types_data): Add field "kind".
8670         (filter_type_name): Handle "*" character.
8671         (write_user_func_for_structure_ptr): Require a write_types_data
8672         rather than just a prefix string, so that we can look up the kind
8673         of the wtd and use it as an index into wrote_user_func_for_ptr,
8674         ensuring that such functions are written at most once.  Support
8675         subclasses by invoking the marking function of the ultimate base class.
8676         (write_user_func_for_structure_body): Require a write_types_data
8677         rather than just a prefix string, so that we can pass this to
8678         write_user_func_for_structure_ptr.
8679         (write_func_for_structure): Likewise.
8680         (ggc_wtd): Add initializer of new "kind" field.
8681         (pch_wtd): Likewise.
8682
8683         * gengtype.h (enum write_types_kinds): New.
8684         (struct type): Add field wrote_user_func_for_ptr to the "s"
8685         union member.
8686
8687 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
8688
8689         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
8690         instead of const_binop.
8691         (fold_binary_loc): Likewise.
8692
8693 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
8694
8695         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
8696         calculation to match get_ref_base_and_extent.
8697
8698 2014-05-13  Catherine Moore  <clm@codesourcery.com>
8699             Sandra Loosemore  <sandra@codesourcery.com>
8700
8701         * configure.ac: Fix assembly for explicit JALR relocation check.
8702         * configure: Regenerate.
8703
8704 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8705
8706         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
8707         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
8708         Remove associated type declarations and initialisations.
8709         (arm_expand_neon_builtin): Likewise.
8710         (neon_emit_pair_result_insn): Delete.
8711         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
8712         * config/arm/neon.md (neon_vtrn<mode>): Delete.
8713         (neon_vzip<mode>): Likewise.
8714         (neon_vuzp<mode>): Likewise.
8715
8716 2014-05-13  Richard Biener  <rguenther@suse.de>
8717
8718         PR ipa/60973
8719         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
8720         it needs revisiting whether the call still may be tail-called.
8721
8722 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8723
8724         * rtl.def (SYMBOL_REF): Remove middle "0" field.
8725         * rtl.h (block_symbol): Reduce number of fields to 2.
8726         (rtx_def): Add u2.symbol_ref_flags.
8727         (SYMBOL_REF_FLAGS): Use it.
8728         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
8729         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
8730         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
8731         Lower index of SYMBOL_REF_DATA.
8732         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
8733         Print SYMBOL_REF_FLAGS at the same time.
8734         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
8735
8736 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8737
8738         * rtl.def (VAR_LOCATION): Remove "i" field.
8739         * rtl.h (rtx_def): Add u2.var_location_status.
8740         (PAT_VAR_LOCATION_STATUS): Use it.
8741         (gen_rtx_VAR_LOCATION): Declare.
8742         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
8743         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
8744         * var-tracking.c (emit_note_insn_var_location): Remove casts.
8745
8746 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8747
8748         * rtl.def (scratch): Fix outdated comment and remove "0" field.
8749         * gengtype.c (adjust_field_rtx_def): Update accordingly.
8750
8751 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8752
8753         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
8754         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
8755         * rtl.h (rtx_def): Add insn_uid to u2 field.
8756         (RTX_FLAG_CHECK8): Delete in favor of...
8757         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
8758         (INSN_DELETED_P): Update accordingly.
8759         (INSN_UID): Use u2.insn_uid.
8760         (INSN_CHAIN_CODE_P): Define.
8761         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
8762         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
8763         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
8764         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
8765         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
8766         indices accordingly.
8767         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
8768         Update indices for insn-chain rtxes.
8769         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
8770         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
8771         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
8772         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
8773         * combine.c (try_combine): Likewise.
8774         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8775
8776 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8777
8778         * rtl.def (REG): Remove middle field.
8779         * rtl.h (rtx_def): Add orignal_regno to u2.
8780         (ORIGINAL_REGNO): Use it instead of field 1.
8781         (REG_ATTRS): Lower field index accordingly.
8782         * gengtype.c (adjust_field_rtx_def): Remove handling of
8783         ORIGINAL_REGNO.  Move REG_ATTRS index down.
8784         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
8785         code that prints the REGNO.
8786
8787 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8788
8789         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
8790         GENERATOR_FILE.
8791
8792 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
8793
8794         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
8795
8796 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
8797
8798         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
8799         (alloc_iv): Lower base expressions containing ADDR_EXPR.
8800
8801 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
8802
8803         * config/aarch64/aarch64-protos.h
8804         (aarch64_hard_regno_caller_save_mode): New prototype.
8805         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
8806         New function.
8807         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
8808
8809 2014-05-13  Christian Bruel  <christian.bruel@st.com>
8810
8811         * target.def (mode_switching): New hook vector.
8812         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
8813         (mode_exit, modepriority_to_mode): Likewise.
8814         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
8815         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8816         * target.h: Include tm.h and hard-reg-set.h.
8817         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
8818         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
8819         * doc/tm.texi Regenerate.
8820         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
8821         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8822         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
8823         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
8824         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
8825         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8826         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
8827         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
8828         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
8829         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
8830         (ix86_emit_mode_set): Hookify.
8831         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
8832         Delete.
8833         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
8834         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
8835         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
8836         (epiphany_mode_priority_to_mode): Remove declaration.
8837         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
8838         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
8839         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
8840         Likewise.
8841         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
8842         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
8843         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
8844
8845 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
8846
8847         PR target/61060
8848         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
8849         is const0_rtx, return immediately.  Don't test count == 0 when
8850         it is always true.
8851
8852 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8853
8854         * Makefile.in: add shrink-wrap.o.
8855         * config/i386/i386.c: include "shrink-wrap.h"
8856         * function.c: Likewise.
8857         (requires_stack_frame_p, next_block_for_reg,
8858         move_insn_for_shrink_wrap, prepare_shrink_wrap,
8859         dup_block_and_redirect): Move to shrink-wrap.c
8860         (thread_prologue_and_epilogue_insns): Extract three code segments
8861         as functions in shrink-wrap.c
8862         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
8863         shrink-wrap.h
8864         * shrink-wrap.c: New file.
8865         * shrink-wrap.h: New file.
8866
8867 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
8868
8869         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
8870         reference to Solaris.
8871
8872 2014-05-12  Mike Stump  <mikestump@comcast.net>
8873
8874         PR other/31778
8875         * genattrtab.c (filename): Add.
8876         (convert_set_attr_alternative): Improve error message.
8877         (check_defs): Restore read_md_filename for error messages.
8878         (gen_insn): Save filename.
8879
8880 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
8881
8882         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
8883         -fno-local-ivars and -fivar-visibility.
8884         * c-family/c.opt: Make -Wshadow also implicitly enable
8885         -Wshadow-ivar.
8886
8887 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
8888
8889         * doc/tm.texi: Remove reference to deleted macro.
8890         * doc/tm.texi.in: Likewise.
8891
8892 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8893
8894         PR target/60991
8895         * config/avr/avr.c (avr_out_store_psi): Use correct constant
8896         to restore Y.
8897
8898 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
8899
8900         PR libgcc/61152
8901         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
8902         * config/arm/aout.h (License): Same.
8903         * config/arm/bpabi.h (License): Same.
8904         * config/arm/elf.h (License): Same.
8905         * config/arm/linux-elf.h (License): Same.
8906         * config/arm/linux-gas.h (License): Same.
8907         * config/arm/netbsd-elf.h (License): Same.
8908         * config/arm/uclinux-eabi.h (License): Same.
8909         * config/arm/uclinux-elf.h (License): Same.
8910         * config/arm/vxworks.h (License): Same.
8911
8912 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
8913
8914         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
8915         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
8916         number of operands to 3.
8917         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
8918         * tree-nested.c (convert_nonlocal_omp_clauses,
8919         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
8920         * gimplify.c (gimplify_scan_omp_clauses): Handle
8921         OMP_CLAUSE_LINEAR_STMT.
8922         * omp-low.c (lower_rec_input_clauses): Fix typo.
8923         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
8924         cast between Fortran boolean_type_node and C _Bool if
8925         needed.
8926
8927 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
8928
8929         PR tree-optimization/61136
8930         * wide-int.h (multiple_of_p): Define a version that doesn't return
8931         the quotient.
8932         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
8933         integer_zerop/const_binop pair.
8934         (multiple_of_p): Likewise, converting both operands to widest_int
8935         precision.
8936
8937 2014-05-09  Teresa Johnson  <tejohnson@google.com>
8938
8939         * cgraphunit.c (analyze_functions): Use correct dump file.
8940
8941 2014-05-09  Florian Weimer  <fweimer@redhat.com>
8942
8943         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
8944         expand_used_vars.
8945         (stack_protect_return_slot_p): New function.
8946         (expand_used_vars): Call stack_protect_decl_p and
8947         stack_protect_return_slot_p for -fstack-protector-strong.
8948
8949 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
8950         Andrew Haley <aph@redhat.com>
8951         Richard Sandiford <rdsandiford@googlemail.com>
8952
8953         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
8954         pages.
8955
8956 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
8957
8958         PR middle-end/61111
8959         * fold-const.c (fold_binary_loc): Changed width of mask.
8960
8961 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
8962
8963         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
8964         unsigned int initializers for regno_in, regno_out.
8965
8966 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
8967
8968         PR target/61055
8969         * config/avr/avr.md (cc): Add new attribute set_vzn.
8970         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
8971         Set cc insn attribute to set_vzn instead of set_zn for alternatives
8972         with INC, DEC or NEG.
8973         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
8974         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
8975         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
8976
8977 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8978
8979         Revert:
8980         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8981
8982         * wide-int.cc (UTItype): Define.
8983         (UDWtype): Define for appropriate W_TYPE_SIZE.
8984
8985 2014-05-09  Richard Biener  <rguenther@suse.de>
8986
8987         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
8988         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
8989         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
8990         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
8991         ssa_propagate): Adjust.
8992
8993 2014-05-08  Jeff Law  <law@redhat.com>
8994
8995         PR tree-optimization/61009
8996         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
8997         tri-state rather than a boolean.  When a block is too big to
8998         thread through, inform caller via negative return value.
8999         (thread_across_edge): If a block was too big for normal threading,
9000         then it's too big for a joiner too, so remove temporary equivalences
9001         and return immediately.
9002
9003 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9004             Matthias Klose  <doko@ubuntu.com>
9005
9006         PR driver/61106
9007         * optc-gen.awk: Fix option handling for -Wunused-parameter.
9008
9009 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
9010
9011         PR target/59952
9012         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
9013
9014 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
9015
9016         PR target/61092
9017         * config/alpha/alpha.c: Include gimple-iterator.h.
9018         (alpha_gimple_fold_builtin): New function.  Move
9019         ALPHA_BUILTIN_UMULH folding from ...
9020         (alpha_fold_builtin): ... here.
9021         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
9022
9023 2014-05-08  Wei Mi  <wmi@google.com>
9024
9025         PR target/58066
9026         * config/i386/i386.c (ix86_compute_frame_layout): Update
9027         preferred_stack_boundary for call, expanded from tls descriptor.
9028         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
9029         to depend on SP register.
9030         (*tls_local_dynamic_base_32_gnu): Ditto.
9031         (*tls_local_dynamic_32_once): Ditto.
9032         (tls_global_dynamic_64_<mode>): Set
9033         ix86_tls_descriptor_calls_expanded_in_cfun.
9034         (tls_local_dynamic_base_64_<mode>): Ditto.
9035         (tls_global_dynamic_32): Set
9036         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
9037         to depend on SP register.
9038         (tls_local_dynamic_base_32): Ditto.
9039
9040 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9041
9042         * config/arm/arm_neon.h: Update comment.
9043         * config/arm/neon-docgen.ml: Delete.
9044         * config/arm/neon-gen.ml: Delete.
9045         * doc/arm-neon-intrinsics.texi: Update comment.
9046
9047 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9048
9049         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
9050         and v4sf versions.
9051         (vand, vorr, veor, vorn, vbic): Remove.
9052         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
9053         iterator.
9054         (neon_vsub_unspec): Likewise.
9055         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
9056
9057 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9058
9059         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
9060         (vadd_s16): Likewise.
9061         (vadd_s32): Likewise.
9062         (vadd_f32): Likewise.
9063         (vadd_u8): Likewise.
9064         (vadd_u16): Likewise.
9065         (vadd_u32): Likewise.
9066         (vadd_s64): Likewise.
9067         (vadd_u64): Likewise.
9068         (vaddq_s8): Likewise.
9069         (vaddq_s16): Likewise.
9070         (vaddq_s32): Likewise.
9071         (vaddq_s64): Likewise.
9072         (vaddq_f32): Likewise.
9073         (vaddq_u8): Likewise.
9074         (vaddq_u16): Likewise.
9075         (vaddq_u32): Likewise.
9076         (vaddq_u64): Likewise.
9077         (vmul_s8): Likewise.
9078         (vmul_s16): Likewise.
9079         (vmul_s32): Likewise.
9080         (vmul_f32): Likewise.
9081         (vmul_u8): Likewise.
9082         (vmul_u16): Likewise.
9083         (vmul_u32): Likewise.
9084         (vmul_p8): Likewise.
9085         (vmulq_s8): Likewise.
9086         (vmulq_s16): Likewise.
9087         (vmulq_s32): Likewise.
9088         (vmulq_f32): Likewise.
9089         (vmulq_u8): Likewise.
9090         (vmulq_u16): Likewise.
9091         (vmulq_u32): Likewise.
9092         (vsub_s8): Likewise.
9093         (vsub_s16): Likewise.
9094         (vsub_s32): Likewise.
9095         (vsub_f32): Likewise.
9096         (vsub_u8): Likewise.
9097         (vsub_u16): Likewise.
9098         (vsub_u32): Likewise.
9099         (vsub_s64): Likewise.
9100         (vsub_u64): Likewise.
9101         (vsubq_s8): Likewise.
9102         (vsubq_s16): Likewise.
9103         (vsubq_s32): Likewise.
9104         (vsubq_s64): Likewise.
9105         (vsubq_f32): Likewise.
9106         (vsubq_u8): Likewise.
9107         (vsubq_u16): Likewise.
9108         (vsubq_u32): Likewise.
9109         (vsubq_u64): Likewise.
9110         (vand_s8): Likewise.
9111         (vand_s16): Likewise.
9112         (vand_s32): Likewise.
9113         (vand_u8): Likewise.
9114         (vand_u16): Likewise.
9115         (vand_u32): Likewise.
9116         (vand_s64): Likewise.
9117         (vand_u64): Likewise.
9118         (vandq_s8): Likewise.
9119         (vandq_s16): Likewise.
9120         (vandq_s32): Likewise.
9121         (vandq_s64): Likewise.
9122         (vandq_u8): Likewise.
9123         (vandq_u16): Likewise.
9124         (vandq_u32): Likewise.
9125         (vandq_u64): Likewise.
9126         (vorr_s8): Likewise.
9127         (vorr_s16): Likewise.
9128         (vorr_s32): Likewise.
9129         (vorr_u8): Likewise.
9130         (vorr_u16): Likewise.
9131         (vorr_u32): Likewise.
9132         (vorr_s64): Likewise.
9133         (vorr_u64): Likewise.
9134         (vorrq_s8): Likewise.
9135         (vorrq_s16): Likewise.
9136         (vorrq_s32): Likewise.
9137         (vorrq_s64): Likewise.
9138         (vorrq_u8): Likewise.
9139         (vorrq_u16): Likewise.
9140         (vorrq_u32): Likewise.
9141         (vorrq_u64): Likewise.
9142         (veor_s8): Likewise.
9143         (veor_s16): Likewise.
9144         (veor_s32): Likewise.
9145         (veor_u8): Likewise.
9146         (veor_u16): Likewise.
9147         (veor_u32): Likewise.
9148         (veor_s64): Likewise.
9149         (veor_u64): Likewise.
9150         (veorq_s8): Likewise.
9151         (veorq_s16): Likewise.
9152         (veorq_s32): Likewise.
9153         (veorq_s64): Likewise.
9154         (veorq_u8): Likewise.
9155         (veorq_u16): Likewise.
9156         (veorq_u32): Likewise.
9157         (veorq_u64): Likewise.
9158         (vbic_s8): Likewise.
9159         (vbic_s16): Likewise.
9160         (vbic_s32): Likewise.
9161         (vbic_u8): Likewise.
9162         (vbic_u16): Likewise.
9163         (vbic_u32): Likewise.
9164         (vbic_s64): Likewise.
9165         (vbic_u64): Likewise.
9166         (vbicq_s8): Likewise.
9167         (vbicq_s16): Likewise.
9168         (vbicq_s32): Likewise.
9169         (vbicq_s64): Likewise.
9170         (vbicq_u8): Likewise.
9171         (vbicq_u16): Likewise.
9172         (vbicq_u32): Likewise.
9173         (vbicq_u64): Likewise.
9174         (vorn_s8): Likewise.
9175         (vorn_s16): Likewise.
9176         (vorn_s32): Likewise.
9177         (vorn_u8): Likewise.
9178         (vorn_u16): Likewise.
9179         (vorn_u32): Likewise.
9180         (vorn_s64): Likewise.
9181         (vorn_u64): Likewise.
9182         (vornq_s8): Likewise.
9183         (vornq_s16): Likewise.
9184         (vornq_s32): Likewise.
9185         (vornq_s64): Likewise.
9186         (vornq_u8): Likewise.
9187         (vornq_u16): Likewise.
9188         (vornq_u32): Likewise.
9189         (vornq_u64): Likewise.
9190
9191 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9192
9193         * wide-int.cc (UTItype): Define.
9194         (UDWtype): Define for appropriate W_TYPE_SIZE.
9195
9196 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
9197
9198         PR tree-optimization/59100
9199         * tree-ssa-phiopt.c: Include tree-inline.h.
9200         (neutral_element_p, absorbing_element_p): New functions.
9201         (value_replacement): Handle conditional binary operations with a
9202         neutral or absorbing element.
9203
9204 2014-05-08  Richard Biener  <rguenther@suse.de>
9205
9206         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
9207         folding the expression.
9208         (valueize_expr): Remove.
9209         (visit_reference_op_load): Do not valueize the result of
9210         vn_get_expr_for.
9211         (simplify_binary_expression): Likewise.
9212         (simplify_unary_expression): Likewise.
9213
9214 2014-05-08  Richard Biener  <rguenther@suse.de>
9215
9216         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
9217         looking at TYPE_ARG_TYPES.
9218
9219 2014-05-08  Richard Biener  <rguenther@suse.de>
9220
9221         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9222         pointer propagation special-case.
9223
9224 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
9225
9226         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
9227         core part of address expressions.
9228
9229 2014-05-08  Alan Modra  <amodra@gmail.com>
9230
9231         PR target/60737
9232         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
9233         loads and stores when -mno-strict-align at any alignment.
9234         (expand_block_clear): Similarly.  Also correct calculation of
9235         instruction count.
9236
9237 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9238
9239         PR middle-end/39246
9240         * tree-complex.c (expand_complex_move): Keep line info when expanding
9241         complex move.
9242         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
9243         of complex expression. Use new argument to display correct location
9244         for values coming from phi statement.
9245         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
9246         (warn_uninitialized_phi): Pass location of phi argument to
9247         warn_uninit.
9248         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
9249         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
9250
9251 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
9252
9253         * config/rs6000/predicates.md (indexed_address_mem): New.
9254         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
9255         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
9256         fpstore_ux, fpstore_u.
9257         (sign_extend, indexed, update): New.
9258         (cell_micro): Adjust.
9259         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
9260         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
9261         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
9262         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
9263         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9264         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
9265         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
9266         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
9267         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
9268         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
9269         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
9270         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
9271         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
9272         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
9273         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
9274
9275         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
9276         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
9277         *vsx_extract_<mode>_store): Adjust.
9278         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
9279         is_cracked_insn, insn_must_be_first_in_group,
9280         insn_must_be_last_in_group): Adjust.
9281
9282         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
9283         Adjust.
9284         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
9285         ppc440-fpstore): Adjust.
9286         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
9287         ppc476-fpstore): Adjust.
9288         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
9289         ppc601-fpstore): Adjust.
9290         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
9291         Adjust.
9292         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
9293         Adjust.
9294         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
9295         ppc7450-fpstore): Adjust.
9296         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
9297         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
9298         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
9299         Adjust.
9300         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
9301         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
9302         cell-fpstore, cell-fpstore-update): Adjust.
9303         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
9304         ppce300c3_store, ppce300c3_fpstore): Adjust.
9305         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
9306         e500mc_fpstore): Adjust.
9307         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
9308         e500mc64_store, e500mc64_fpstore): Adjust.
9309         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
9310         e5500_fpstore): Adjust.
9311         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
9312         e6500_fpstore): Adjust.
9313         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
9314         Adjust.
9315         * config/rs6000/power4.md (power4-load, power4-load-ext,
9316         power4-load-ext-update, power4-load-ext-update-indexed,
9317         power4-load-update-indexed, power4-load-update, power4-fpload,
9318         power4-fpload-update, power4-store, power4-store-update,
9319         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
9320         Adjust.
9321         * config/rs6000/power5.md (power5-load, power5-load-ext,
9322         power5-load-ext-update, power5-load-ext-update-indexed,
9323         power5-load-update-indexed, power5-load-update, power5-fpload,
9324         power5-fpload-update, power5-store, power5-store-update,
9325         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
9326         Adjust.
9327         * config/rs6000/power6.md (power6-load, power6-load-ext,
9328         power6-load-update, power6-load-update-indexed,
9329         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
9330         power6-fpload-update, power6-store, power6-store-update,
9331         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
9332         Adjust.
9333         * config/rs6000/power7.md (power7-load, power7-load-ext,
9334         power7-load-update, power7-load-update-indexed,
9335         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
9336         power7-fpload-update, power7-store, power7-store-update,
9337         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
9338         Adjust.
9339         * config/rs6000/power8.md (power8-load, power8-load-update,
9340         power8-load-ext, power8-load-ext-update, power8-fpload,
9341         power8-fpload-update, power8-store, power8-store-update-indexed,
9342         power8-fpstore, power8-fpstore-update): Adjust.
9343         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
9344         Adjust.
9345         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
9346         titan_lsu_store, titan_lsu_fpstore): Adjust.
9347         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
9348
9349 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
9350
9351         PR target/60884
9352         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
9353         unrolled byte insns.  Emit address increments after move insns.
9354
9355 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
9356
9357         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
9358         const_gimple, rather than a gimple.
9359         (gimple_call_builtin_p): Likewise, for the three variants.
9360
9361         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
9362         (gimple_call_builtin_p): Likewise, for the three variants.
9363
9364 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
9365
9366         PR tree-optimization/61095
9367         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
9368
9369 2014-05-07  Richard Biener  <rguenther@suse.de>
9370
9371         PR tree-optimization/61034
9372         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
9373         (maybe_skip_until): Use translate to take into account
9374         lattices when trying to do disambiguations.
9375         (get_continuation_for_phi_1): Likewise.
9376         (get_continuation_for_phi): Adjust for added translate arguments.
9377         (walk_non_aliased_vuses): Likewise.
9378         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
9379         (walk_non_aliased_vuses): Likewise.
9380         (call_may_clobber_ref_p_1): Declare.
9381         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
9382         calls.  Stop early if we are only supposed to disambiguate.
9383         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
9384
9385 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
9386
9387         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
9388         Emit an error when the function has arguments.
9389
9390 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9391
9392         * cfgloop.h (unswitch_loops): Remove.
9393         * doc/passes.texi: Remove references to loop-unswitch.c
9394         * timevar.def (TV_LOOP_UNSWITCH): Remove.
9395
9396 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
9397
9398         * tree-vect-data-refs.c (vect_grouped_load_supported): New
9399         check for loads group of length 3.
9400         (vect_permute_load_chain): New permutations for loads group of
9401         length 3.
9402         * tree-vect-stmts.c (vect_model_load_cost): Change cost
9403         of vec_perm_shuffle for the new permutations.
9404
9405 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
9406
9407         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
9408         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
9409         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
9410         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
9411         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
9412         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
9413         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
9414         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
9415
9416 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9417
9418         * loop-unswitch.c: Delete.
9419
9420 2014-05-07  Richard Biener  <rguenther@suse.de>
9421
9422         * config.gcc: Always set need_64bit_hwint to yes.
9423
9424 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
9425
9426         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
9427         of using optimize_size.
9428
9429 2014-05-06  Mike Stump  <mikestump@comcast.net>
9430
9431         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
9432
9433 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
9434
9435         * config/i386/sse.md (*mov<mode>_internal)
9436         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
9437         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
9438         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
9439         (*<code><mode>3, *andnot<mode>3<mask_name>)
9440         (<mask_codefor><code><mode>3<mask_name>): Only consider
9441         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
9442
9443 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
9444
9445         Revert:
9446         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
9447
9448         * lra-constraints.c (valid_address_p): Move earlier in file.
9449         Add a constraint argument to the address_info version.
9450         (satisfies_memory_constraint_p): New function.
9451         (satisfies_address_constraint_p): Likewise.
9452         (process_alt_operands, curr_insn_transform): Use them.
9453         (process_address): Pass the constraint to valid_address_p when
9454         checking address operands.
9455
9456 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
9457
9458         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
9459         to their respective blocks.  Fix inadvertent use of "node".
9460
9461 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
9462
9463         * emit-rtl.c (init_derived_machine_modes): New functionm, split
9464         out from...
9465         (init_emit_once): ...here.
9466         * rtl.h (init_derived_machine_modes): Declare.
9467         * toplev.c (do_compile): Call it even if no_backend.
9468
9469 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
9470             Mike Stump  <mikestump@comcast.net>
9471             Richard Sandiford  <rdsandiford@googlemail.com>
9472             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9473
9474         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
9475         (rtx_equal_for_memref_p): Update comment.
9476         (adjust_offset_for_component_ref): Use wide-int interfaces.
9477         * builtins.c (get_object_alignment_2): Likewise.
9478         (c_readstr): Likewise.
9479         (target_char_cast): Add comment.
9480         (determine_block_size): Use wide-int interfaces.
9481         (expand_builtin_signbit): Likewise.
9482         (fold_builtin_int_roundingfn): Likewise.
9483         (fold_builtin_bitop): Likewise.
9484         (fold_builtin_bswap): Likewise.
9485         (fold_builtin_logarithm): Use signop.
9486         (fold_builtin_pow): Likewise.
9487         (fold_builtin_memory_op): Use wide-int interfaces.
9488         (fold_builtin_object_size): Likewise.
9489         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
9490         nb_iterations_estimate.
9491         (record_niter_bound): Use wide-int interfaces.
9492         (get_estimated_loop_iterations_int): Likewise.
9493         (get_estimated_loop_iterations): Likewise.
9494         (get_max_loop_iterations): Likewise.
9495         * cfgloop.h: Include wide-int.h.
9496         (struct nb_iter_bound): Change bound to widest_int.
9497         (struct loop): Change nb_iterations_upper_bound and
9498         nb_iterations_estimate to widest_int.
9499         (record_niter_bound): Switch to use widest_int.
9500         (get_estimated_loop_iterations): Likewise.
9501         (get_max_loop_iterations): Likewise.
9502         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
9503         update for wide-int.
9504         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
9505         * combine.c (try_combine): Likewise.
9506         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
9507         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
9508         interfaces.
9509         (aarch64_float_const_representable_p): Likewise.
9510         * config/arc/arc.c: Include wide-int.h.
9511         (arc_can_use_doloop_p): Use wide-int interfaces.
9512         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
9513         (vfp3_const_double_index): Likewise.
9514         * config/avr/avr.c (avr_out_round): Likewise.
9515         (avr_fold_builtin): Likewise.
9516         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
9517         (bfin_can_use_doloop_p): Likewise.
9518         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
9519         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
9520         * config/i386/i386.c: Include wide-int.h.
9521         (ix86_data_alignment): Use wide-int interfaces.
9522         (ix86_local_alignment): Likewise.
9523         (ix86_emit_swsqrtsf): Update real_from_integer.
9524         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
9525         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
9526         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
9527         (zero_constant): Likewise.
9528         (input_operand): Likewise.
9529         (splat_input_operand): Likewise.
9530         (non_logical_cint_operand): Change const_double to const_wide_int.
9531         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
9532         (easy_altivec_constant): Remove comment.
9533         (paired_expand_vector_init): Use CONSTANT_P.
9534         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
9535         (rs6000_emit_move): Update checks.
9536         (rs6000_aggregate_candidate): Use wide-int interfaces.
9537         (rs6000_expand_ternop_builtin): Likewise.
9538         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
9539         (rs6000_assemble_integer): Likewise.
9540         (rs6000_hash_constant): Likewise.
9541         (output_toc): Likewise.
9542         (rs6000_rtx_costs): Likewise.
9543         (rs6000_emit_swrsqrt); Update call to real_from_integer.
9544         * config/rs6000/rs6000-c.c: Include wide-int.h.
9545         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
9546         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
9547         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
9548         Handle CONST_WIDE_INT.
9549         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
9550         Use tree_fits_uhwi_p.
9551         * config/sparc/sparc.c: Include wide-int.h.
9552         (sparc_fold_builtin): Use wide-int interfaces.
9553         * config/vax/vax.c: Include wide-int.h.
9554         (vax_float_literal): Use real_from_integer.
9555         * coretypes.h (struct hwivec_def): New.
9556         (hwivec): New.
9557         (const_hwivec): New.
9558         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
9559         (equiv_constant): Handle CONST_WIDE_INT.
9560         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
9561         (cselib_hash_rtx): Handle CONST_WIDE_INT.
9562         * dbxout.c (stabstr_U): Use wide-int interfaces.
9563         (dbxout_type): Update to use cst_fits_shwi_p.
9564         * defaults.h (LOG2_BITS_PER_UNIT): Define.
9565         (TARGET_SUPPORTS_WIDE_INT): Add default.
9566         * dfp.c: Include wide-int.h.
9567         (decimal_real_to_integer2): Use wide-int interfaces and rename to
9568         decimal_real_to_integer.
9569         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
9570         decimal_real_to_integer.
9571         * doc/generic.texi (Constant expressions): Update for wide_int.
9572         * doc/rtl.texi (const_double): Likewise.
9573         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
9574         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
9575         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
9576         (REAL_VALUE_FROM_INT): Remove.
9577         (TARGET_SUPPORTS_WIDE_INT): New.
9578         * doc/tm.texi: Regenerate.
9579         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
9580         * double-int.h: Include wide-int.h.
9581         (struct wi::int_traits): New.
9582         * dwarf2out.c (get_full_len): New.
9583         (dw_val_equal_p): Add case dw_val_class_wide_int.
9584         (size_of_loc_descr): Likewise.
9585         (output_loc_operands): Likewise.
9586         (insert_double): Remove.
9587         (insert_wide_int): New.
9588         (add_AT_wide): New.
9589         (print_die): Add case dw_val_class_wide_int.
9590         (attr_checksum): Likewise.
9591         (attr_checksum_ordered): Likewise.
9592         (same_dw_val_p): Likewise.
9593         (size_of_die): Likewise.
9594         (value_format): Likewise.
9595         (output_die): Likewise.
9596         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
9597         Use wide-int.
9598         (clz_loc_descriptor): Use wide-int interfaces.
9599         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
9600         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
9601         (round_up_to_align): Use wide-int interfaces.
9602         (field_byte_offset): Likewise.
9603         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
9604         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
9605         CONST_DOUBLE handling.  Use wide-int interfaces.
9606         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
9607         (gen_enumeration_type_die): Use add_AT_wide.
9608         (hash_loc_operands): Add case dw_val_class_wide_int.
9609         (compare_loc_operands): Likewise.
9610         * dwarf2out.h: Include wide-int.h.
9611         (wide_int_ptr): New.
9612         (enum dw_val_class): Add dw_val_class_wide_int.
9613         (struct dw_val_struct): Add val_wide.
9614         * emit-rtl.c (const_wide_int_htab): New.
9615         (const_wide_int_htab_hash): New.
9616         (const_wide_int_htab_eq): New.
9617         (lookup_const_wide_int): New.
9618         (const_double_htab_hash): Use wide-int interfaces.
9619         (const_double_htab_eq): Likewise.
9620         (rtx_to_double_int): Conditionally compile for wide-int.
9621         (immed_double_int_const): Rename to immed_wide_int_const and
9622         update for wide-int.
9623         (immed_double_const): Conditionally compile for wide-int.
9624         (init_emit_once): Use wide-int interfaces.
9625         * explow.c (plus_constant): Likewise.
9626         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
9627         (lshift_value): Use wide-int interfaces.
9628         (expand_mult): Likewise.
9629         (choose_multiplier): Likewise.
9630         (expand_smod_pow2): Likewise.
9631         (make_tree): Likewise.
9632         * expr.c (convert_modes): Consolidate handling of constants.
9633         Use wide-int interfaces.
9634         (emit_group_load_1): Add note.
9635         (store_expr): Update comment.
9636         (get_inner_reference): Use wide-int interfaces.
9637         (expand_constructor): Update comment.
9638         (expand_expr_real_2): Use wide-int interfaces.
9639         (expand_expr_real_1): Likewise.
9640         (reduce_to_bit_field_precision): Likewise.
9641         (const_vector_from_tree): Likewise.
9642         * final.c: Include wide-int-print.h.
9643         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
9644         * fixed-value.c: Include wide-int.h.
9645         (fixed_from_string): Use wide-int interfaces.
9646         (fixed_to_decimal): Likewise.
9647         (fixed_convert_from_real): Likewise.
9648         (real_convert_from_fixed): Likewise.
9649         * fold-const.h (mem_ref_offset): Return an offset_int.
9650         (div_if_zero_remainder): Remove code parameter.
9651         * fold-const.c (div_if_zero_remainder): Remove code parameter.
9652         Use wide-int interfaces.
9653         (may_negate_without_overflow_p): Use wide-int interfaces.
9654         (negate_expr_p): Likewise.
9655         (fold_negate_expr): Likewise.
9656         (int_const_binop_1): Likewise.
9657         (const_binop): Likewise.
9658         (fold_convert_const_int_from_int): Likewise.
9659         (fold_convert_const_int_from_real): Likewise.
9660         (fold_convert_const_int_from_fixed): Likewise.
9661         (fold_convert_const_fixed_from_int): Likewise.
9662         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
9663         (sign_bit_p): Use wide-int interfaces.
9664         (make_range_step): Likewise.
9665         (build_range_check): Likewise.  Pass an integer of the correct type
9666         instead of using integer_one_node.
9667         (range_predecessor): Pass an integer of the correct type instead
9668         of using integer_one_node.
9669         (range_successor): Likewise.
9670         (merge_ranges): Likewise.
9671         (unextend): Use wide-int interfaces.
9672         (extract_muldiv_1): Likewise.
9673         (fold_div_compare): Likewise.
9674         (fold_single_bit_test): Likewise.
9675         (fold_sign_changed_comparison): Likewise.
9676         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
9677         (fold_plusminus_mult_expr): Use wide-int interfaces.
9678         (native_encode_int): Likewise.
9679         (native_interpret_int): Likewise.
9680         (fold_unary_loc): Likewise.
9681         (pointer_may_wrap_p): Likewise.
9682         (size_low_cst): Likewise.
9683         (mask_with_tz): Likewise.
9684         (fold_binary_loc): Likewise.
9685         (fold_ternary_loc): Likewise.
9686         (multiple_of_p): Likewise.
9687         (tree_call_nonnegative_warnv_p): Update calls to
9688         tree_int_cst_min_precision and real_from_integer.
9689         (fold_negate_const): Use wide-int interfaces.
9690         (fold_abs_const): Likewise.
9691         (fold_relational_const): Use tree_int_cst_lt.
9692         (round_up_loc): Use wide-int interfaces.
9693         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
9694         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
9695         * gengtype.c: Remove include of double-int.h.
9696         (do_typedef): Use wide-int interfaces.
9697         (open_base_files): Add wide-int.h.
9698         (main): Add offset_int and widest_int typedefs.
9699         * gengtype-lex.l: Handle "^".
9700         (CXX_KEYWORD): Add "static".
9701         * gengtype-parse.c (require3): New.
9702         (require_template_declaration): Handle constant template arguments
9703         and nested templates.
9704         * gengtype-state.c: Don't include "double-int.h".
9705         * genpreds.c (write_one_predicate_function): Update comment.
9706         (write_tm_constrs_h): Add check for hval and lval use in
9707         CONST_WIDE_INT.
9708         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
9709         (add_to_sequence): Likewise.
9710         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
9711         and const_double_operand.
9712         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
9713         interfaces.
9714         * gimple-fold.c (get_base_constructor): Likewise.
9715         (fold_array_ctor_reference): Likewise.
9716         (fold_nonarray_ctor_reference): Likewise.
9717         (fold_const_aggregate_ref_1): Likewise.
9718         (gimple_val_nonnegative_real_p): Likewise.
9719         (gimple_fold_indirect_ref): Likewise.
9720         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
9721         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
9722         (struct slsr_cand_d): Change index to be widest_int.
9723         (struct incr_info_d): Change incr to be widest_int.
9724         (alloc_cand_and_find_basis): Use wide-int interfaces.
9725         (slsr_process_phi): Likewise.
9726         (backtrace_base_for_ref): Likewise.  Return a widest_int.
9727         (restructure_reference): Take a widest_int instead of a double_int.
9728         (slsr_process_ref): Use wide-int interfaces.
9729         (create_mul_ssa_cand): Likewise.
9730         (create_mul_imm_cand): Likewise.
9731         (create_add_ssa_cand): Likewise.
9732         (create_add_imm_cand): Take a widest_int instead of a double_int.
9733         (slsr_process_add): Use wide-int interfaces.
9734         (slsr_process_cast): Likewise.
9735         (slsr_process_copy): Likewise.
9736         (dump_candidate): Likewise.
9737         (dump_incr_vec): Likewise.
9738         (replace_ref): Likewise.
9739         (cand_increment): Likewise.  Return a widest_int.
9740         (cand_abs_increment): Likewise.
9741         (replace_mult_candidate): Take a widest_int instead of a double_int.
9742         (replace_unconditional_candidate): Use wide-int interfaces.
9743         (incr_vec_index): Take a widest_int instead of a double_int.
9744         (create_add_on_incoming_edge): Likewise.
9745         (create_phi_basis): Use wide-int interfaces.
9746         (replace_conditional_candidate): Likewise.
9747         (record_increment): Take a widest_int instead of a double_int.
9748         (record_phi_increments): Use wide-int interfaces.
9749         (phi_incr_cost): Take a widest_int instead of a double_int.
9750         (lowest_cost_path): Likewise.
9751         (total_savings): Likewise.
9752         (analyze_increments): Use wide-int interfaces.
9753         (ncd_with_phi): Take a widest_int instead of a double_int.
9754         (ncd_of_cand_and_phis): Likewise.
9755         (nearest_common_dominator_for_cands): Likewise.
9756         (insert_initializers): Use wide-int interfaces.
9757         (all_phi_incrs_profitable): Likewise.
9758         (replace_one_candidate): Likewise.
9759         (replace_profitable_candidates): Likewise.
9760         * godump.c: Include wide-int-print.h.
9761         (go_output_typedef): Use wide-int interfaces.
9762         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
9763         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
9764         (build_loop_iteration_domains): Likewise.
9765         * hooks.h: Include wide-int.h rather than double-int.h.
9766         (hook_bool_dint_dint_uint_bool_true): Delete.
9767         (hook_bool_wint_wint_uint_bool_true): Declare.
9768         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
9769         (hook_bool_wint_wint_uint_bool_true): New.
9770         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
9771         interfaces.
9772         (ubsan_expand_si_overflow_mul_check): Likewise.
9773         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
9774         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
9775         (get_ancestor_addr_info): Likewise.
9776         (ipa_modify_call_arguments): Likewise.
9777         * loop-doloop.c (doloop_modify): Likewise.
9778         (doloop_optimize): Likewise.
9779         * loop-iv.c (iv_number_of_iterations): Likewise.
9780         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
9781         (unroll_loop_constant_iterations): Likewise.
9782         (decide_unroll_runtime_iterations): Likewise.
9783         (unroll_loop_runtime_iterations): Likewise.
9784         (decide_peel_simple): Likewise.
9785         (decide_unroll_stupid): Likewise.
9786         * lto-streamer-in.c (streamer_read_wi): Add.
9787         (input_cfg): Use wide-int interfaces.
9788         (lto_input_tree_1): Likewise.
9789         * lto-streamer-out.c (streamer_write_wi): Add.
9790         (hash_tree): Use wide-int interfaces.
9791         (output_cfg): Likewise.
9792         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
9793         (GTFILES): Add wide-int.h and signop.h.
9794         (TAGS): Look for .cc files too.
9795         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
9796         * optabs.c (expand_subword_shift): Likewise.
9797         (expand_doubleword_shift): Likewise.
9798         (expand_absneg_bit): Likewise.
9799         (expand_copysign_absneg): Likewise.
9800         (expand_copysign_bit): Likewise.
9801         * postreload.c (reload_cse_simplify_set): Likewise.
9802         * predict.c (predict_iv_comparison): Likewise.
9803         * pretty-print.h: Include wide-int-print.h.
9804         (pp_wide_int) New.
9805         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
9806         * print-tree.c: Include wide-int-print.h.
9807         (print_node_brief): Use wide-int interfaces.
9808         (print_node): Likewise.
9809         * read-rtl.c (validate_const_wide_int): New.
9810         (read_rtx_code): Add CONST_WIDE_INT case.
9811         * real.c: Include wide-int.h.
9812         (real_to_integer2): Delete.
9813         (real_to_integer): New function, returning a wide_int.
9814         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
9815         (ten_to_ptwo): Update call to real_from_integer.
9816         (real_digit): Likewise.
9817         * real.h: Include signop.h, wide-int.h and insn-modes.h.
9818         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
9819         (REAL_VALUE_TO_INT): Delete.
9820         (real_to_integer): Declare a wide-int form.
9821         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
9822         * recog.c (const_int_operand): Improve comment.
9823         (const_scalar_int_operand): New.
9824         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
9825         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
9826         (split_double): Likewise.
9827         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
9828         (rtx_size): Likewise.
9829         (rtx_alloc_stat_v): New.
9830         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
9831         (cwi_output_hex): New.
9832         (iterative_hash_rtx): Handle CONST_WIDE_INT.
9833         (cwi_check_failed_bounds): New.
9834         * rtl.def (CONST_WIDE_INT): New.
9835         * rtl.h: Include <utility> and wide-int.h.
9836         (struct hwivec_def): New.
9837         (CWI_GET_NUM_ELEM): New.
9838         (CWI_PUT_NUM_ELEM): New.
9839         (struct rtx_def): Add num_elem and hwiv.
9840         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
9841         (CASE_CONST_UNIQUE): Likewise.
9842         (CASE_CONST_ANY): Likewise.
9843         (CONST_SCALAR_INT_P): Likewise.
9844         (CONST_WIDE_INT_P): New.
9845         (CWI_ELT): New.
9846         (HWIVEC_CHECK): New.
9847         (cwi_check_failed_bounds): New.
9848         (CWI_ELT): New.
9849         (HWIVEC_CHECK): New.
9850         (CONST_WIDE_INT_VEC) New.
9851         (CONST_WIDE_INT_NUNITS) New.
9852         (CONST_WIDE_INT_ELT) New.
9853         (rtx_mode_t): New type.
9854         (wi::int_traits <rtx_mode_t>): New.
9855         (wi::shwi): New.
9856         (wi::min_value): New.
9857         (wi::max_value): New.
9858         (rtx_alloc_v) New.
9859         (const_wide_int_alloc): New.
9860         (immed_wide_int_const): New.
9861         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
9862         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
9863         * signop.h: New file.
9864         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
9865         (simplify_const_unary_operation): Use wide-int interfaces.
9866         (simplify_binary_operation_1): Likewise.
9867         (simplify_const_binary_operation): Likewise.
9868         (simplify_const_relational_operation): Likewise.
9869         (simplify_immed_subreg): Likewise.
9870         * stmt.c (expand_case): Likewise.
9871         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
9872         signop rather than a bool.
9873         * stor-layout.c (layout_type): Use wide-int interfaces.
9874         (initialize_sizetypes): Update calls to
9875         set_min_and_max_values_for_integral_type.
9876         (set_min_and_max_values_for_integral_type): Take a signop rather
9877         than a bool.  Use wide-int interfaces.
9878         (fixup_signed_type): Update accordingly.  Remove
9879         HOST_BITS_PER_DOUBLE_INT limit.
9880         (fixup_unsigned_type): Likewise.
9881         * system.h (STATIC_CONSTANT_P): New.
9882         (STATIC_ASSERT): New.
9883         * target.def (can_use_doloop_p): Take widest_ints rather than
9884         double_ints.
9885         * target.h: Include wide-int.h rather than double-int.h.
9886         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
9887         than double_ints.
9888         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
9889         rather than INT_CST_LT_UNSIGNED.
9890         (can_use_doloop_if_innermost): Take widest_ints rather than
9891         double_ints.
9892         * tree-affine.c: Include wide-int-print.h.
9893         (double_int_ext_for_comb): Delete.
9894         (wide_int_ext_for_comb): New.
9895         (aff_combination_zero): Use wide-int interfaces.
9896         (aff_combination_const): Take a widest_int instead of a double_int.
9897         (aff_combination_elt): Use wide-int interfaces.
9898         (aff_combination_scale): Take a widest_int instead of a double_int.
9899         (aff_combination_add_elt): Likewise.
9900         (aff_combination_add_cst): Likewise.
9901         (aff_combination_add): Use wide-int interfaces.
9902         (aff_combination_convert): Likewise.
9903         (tree_to_aff_combination): Likewise.
9904         (add_elt_to_tree): Take a widest_int instead of a double_int.
9905         (aff_combination_to_tree): Use wide-int interfaces.
9906         (aff_combination_remove_elt): Likewise.
9907         (aff_combination_add_product): Take a widest_int instead of
9908         a double_int.
9909         (aff_combination_mult): Use wide-int interfaces.
9910         (aff_combination_expand): Likewise.
9911         (double_int_constant_multiple_p): Delete.
9912         (wide_int_constant_multiple_p): New.
9913         (aff_combination_constant_multiple_p): Take a widest_int pointer
9914         instead of a double_int pointer.
9915         (print_aff): Use wide-int interfaces.
9916         (get_inner_reference_aff): Take a widest_int pointer
9917         instead of a double_int pointer.
9918         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
9919         * tree-affine.h: Include wide-int.h.
9920         (struct aff_comb_elt): Change type of coef to widest_int.
9921         (struct affine_tree_combination): Change type of offset to widest_int.
9922         (double_int_ext_for_comb): Delete.
9923         (wide_int_ext_for_comb): New.
9924         (aff_combination_const): Use widest_int instead of double_int.
9925         (aff_combination_scale): Likewise.
9926         (aff_combination_add_elt): Likewise.
9927         (aff_combination_constant_multiple_p): Likewise.
9928         (get_inner_reference_aff): Likewise.
9929         (aff_comb_cannot_overlap_p): Likewise.
9930         (aff_combination_zero_p): Use wide-int interfaces.
9931         * tree.c: Include tree.h.
9932         (init_ttree): Use make_int_cst.
9933         (tree_code_size): Removed code for INTEGER_CST case.
9934         (tree_size): Add INTEGER_CST case.
9935         (make_node_stat): Update comment.
9936         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
9937         (build_int_cst_type): Use wide-int interfaces.
9938         (double_int_to_tree): Likewise.
9939         (double_int_fits_to_tree_p): Delete.
9940         (force_fit_type_double): Delete.
9941         (force_fit_type): New.
9942         (int_cst_hash_hash): Use wide-int interfaces.
9943         (int_cst_hash_eq): Likewise.
9944         (build_int_cst_wide): Delete.
9945         (wide_int_to_tree): New.
9946         (cache_integer_cst): Use wide-int interfaces.
9947         (build_low_bits_mask): Likewise.
9948         (cst_and_fits_in_hwi): Likewise.
9949         (real_value_from_int_cst): Likewise.
9950         (make_int_cst_stat): New.
9951         (integer_zerop): Use wide_int interfaces.
9952         (integer_onep): Likewise.
9953         (integer_all_onesp): Likewise.
9954         (integer_pow2p): Likewise.
9955         (integer_nonzerop): Likewise.
9956         (tree_log2): Likewise.
9957         (tree_floor_log2): Likewise.
9958         (tree_ctz): Likewise.
9959         (int_size_in_bytes): Likewise.
9960         (mem_ref_offset): Return an offset_int rather than a double_int.
9961         (build_type_attribute_qual_variant): Use wide_int interfaces.
9962         (type_hash_eq): Likewise
9963         (tree_int_cst_equal): Likewise.
9964         (tree_int_cst_lt): Delete.
9965         (tree_int_cst_compare): Likewise.
9966         (tree_fits_shwi_p): Use wide_int interfaces.
9967         (tree_fits_uhwi_p): Likewise.
9968         (tree_int_cst_sign_bit): Likewise.
9969         (tree_int_cst_sgn): Likewise.
9970         (tree_int_cst_min_precision): Take a signop rather than a bool.
9971         (simple_cst_equal): Use wide_int interfaces.
9972         (compare_tree_int): Likewise.
9973         (iterative_hash_expr): Likewise.
9974         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
9975         INT_CST_LT.
9976         (get_type_static_bounds): Use wide_int interfaces.
9977         (tree_int_cst_elt_check_failed): New.
9978         (build_common_tree_nodes): Reordered to set prec before filling in
9979         value.
9980         (int_cst_value): Check cst_and_fits_in_hwi.
9981         (widest_int_cst_value): Use wide_int interfaces.
9982         (upper_bound_in_type): Likewise.
9983         (lower_bound_in_type): Likewise.
9984         (num_ending_zeros): Likewise.
9985         (drop_tree_overflow): Likewise.
9986         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
9987         (gen_conditions_for_pow_cst_base): Likewise.
9988         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
9989         (group_case_labels_stmt): Use wide-int interfaces.
9990         (verify_gimple_assign_binary): Likewise.
9991         (print_loop): Likewise.
9992         * tree-chrec.c (tree_fold_binomial): Likewise.
9993         * tree-core.h (struct tree_base): Add int_length.
9994         (struct tree_int_cst): Change rep of value.
9995         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
9996         (dr_may_alias_p): Likewise.
9997         (max_stmt_executions_tree): Likewise.
9998         * tree.def (INTEGER_CST): Update comment.
9999         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
10000         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
10001         * tree-dump.c: Include wide-int.h and wide-int-print.h.
10002         (dequeue_and_dump): Use wide-int interfaces.
10003         * tree.h: Include wide-int.h.
10004         (NULL_TREE): Moved to earlier loc in file.
10005         (TREE_INT_CST_ELT_CHECK): New.
10006         (tree_int_cst_elt_check_failed): New.
10007         (TYPE_SIGN): New.
10008         (TREE_INT_CST): Delete.
10009         (TREE_INT_CST_LOW): Use wide-int interfaces.
10010         (TREE_INT_CST_HIGH): Delete.
10011         (TREE_INT_CST_NUNITS): New.
10012         (TREE_INT_CST_EXT_NUNITS): Likewise.
10013         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
10014         (TREE_INT_CST_ELT): Likewise.
10015         (INT_CST_LT): Delete.
10016         (tree_int_cst_elt_check): New (two forms).
10017         (type_code_size): Update comment.
10018         (make_int_cst_stat, make_int_cst): New.
10019         (tree_to_double_int): Delete.
10020         (double_int_fits_to_tree_p): Delete.
10021         (force_fit_type_double): Delete.
10022         (build_int_cstu): Replace with out-of-line function.
10023         (build_int_cst_wide): Delete.
10024         (tree_int_cst_lt): Define inline.
10025         (tree_int_cst_le): New.
10026         (tree_int_cst_compare): Define inline.
10027         (tree_int_cst_min_precision): Take a signop rather than a bool.
10028         (wi::int_traits <const_tree>): New.
10029         (wi::int_traits <tree>): New.
10030         (wi::extended_tree): New.
10031         (wi::int_traits <wi::extended_tree>): New.
10032         (wi::to_widest): New.
10033         (wi::to_offset): New.
10034         (wi::fits_to_tree_p): New.
10035         (wi::min_value): New.
10036         (wi::max_value): New.
10037         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
10038         (copy_tree_body_r): Likewise.
10039         * tree-object-size.c (compute_object_offset): Likewise.
10040         (addr_object_size): Likewise.
10041         * tree-predcom.c: Include wide-int-print.h.
10042         (struct dref_d): Change type of offset to widest_int.
10043         (dump_dref): Call wide-int printer.
10044         (aff_combination_dr_offset): Use wide-int interfaces.
10045         (determine_offset): Take a widest_int pointer rather than a
10046         double_int pointer.
10047         (split_data_refs_to_components): Use wide-int interfaces.
10048         (suitable_component_p): Likewise.
10049         (order_drefs): Likewise.
10050         (add_ref_to_chain): Likewise.
10051         (valid_initializer_p): Likewise.
10052         (determine_roots_comp): Likewise.
10053         * tree-pretty-print.c: Include wide-int-print.h.
10054         (dump_generic_node): Use wide-int interfaces.
10055         * tree-sra.c (sra_ipa_modify_expr): Likewise.
10056         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
10057         (move_fixed_address_to_symbol): Likewise.
10058         (move_hint_to_base): Likewise.
10059         (move_pointer_to_base): Likewise.
10060         (move_variant_to_index): Likewise.
10061         (most_expensive_mult_to_index): Likewise.
10062         (addr_to_parts): Likewise.
10063         (copy_ref_info): Likewise.
10064         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
10065         (indirect_refs_may_alias_p): Likewise.
10066         (stmt_kills_ref_p_1): Likewise.
10067         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10068         * tree-ssa-ccp.c: Update comment at top of file.  Include
10069         wide-int-print.h.
10070         (struct prop_value_d): Change type of mask to widest_int.
10071         (extend_mask): New function.
10072         (dump_lattice_value): Use wide-int interfaces.
10073         (get_default_value): Likewise.
10074         (set_constant_value): Likewise.
10075         (set_value_varying): Likewise.
10076         (valid_lattice_transition): Likewise.
10077         (set_lattice_value): Likewise.
10078         (value_to_double_int): Delete.
10079         (value_to_wide_int): New.
10080         (get_value_from_alignment): Use wide-int interfaces.
10081         (get_value_for_expr): Likewise.
10082         (do_dbg_cnt): Likewise.
10083         (ccp_finalize): Likewise.
10084         (ccp_lattice_meet): Likewise.
10085         (bit_value_unop_1): Use widest_ints rather than double_ints.
10086         (bit_value_binop_1): Likewise.
10087         (bit_value_unop): Use wide-int interfaces.
10088         (bit_value_binop): Likewise.
10089         (bit_value_assume_aligned): Likewise.
10090         (evaluate_stmt): Likewise.
10091         (ccp_fold_stmt): Likewise.
10092         (visit_cond_stmt): Likewise.
10093         (ccp_visit_stmt): Likewise.
10094         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10095         (constant_pointer_difference): Likewise.
10096         (associate_pointerplus): Likewise.
10097         (combine_conversions): Likewise.
10098         * tree-ssa-loop.h: Include wide-int.h.
10099         (struct tree_niter_desc): Change type of max to widest_int.
10100         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
10101         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
10102         (remove_redundant_iv_tests): Likewise.
10103         (canonicalize_loop_induction_variables): Likewise.
10104         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
10105         (constant_multiple_of): Take a widest_int pointer instead of
10106         a double_int pointer.
10107         (get_computation_aff): Use wide-int interfaces.
10108         (ptr_difference_cost): Likewise.
10109         (difference_cost): Likewise.
10110         (get_loop_invariant_expr_id): Likewise.
10111         (get_computation_cost_at): Likewise.
10112         (iv_elimination_compare_lt): Likewise.
10113         (may_eliminate_iv): Likewise.
10114         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
10115         instead of double_int.
10116         (max_loop_iterations): Likewise.
10117         (max_stmt_executions): Likewise.
10118         (estimated_stmt_executions): Likewise.
10119         * tree-ssa-loop-niter.c: Include wide-int-print.h.
10120         (split_to_var_and_offset): Use wide-int interfaces.
10121         (determine_value_range): Likewise.
10122         (bound_difference_of_offsetted_base): Likewise.
10123         (bounds_add): Take a widest_int instead of a double_int.
10124         (number_of_iterations_ne_max): Use wide-int interfaces.
10125         (number_of_iterations_ne): Likewise.
10126         (number_of_iterations_lt_to_ne): Likewise.
10127         (assert_loop_rolls_lt): Likewise.
10128         (number_of_iterations_lt): Likewise.
10129         (number_of_iterations_le): Likewise.
10130         (number_of_iterations_cond): Likewise.
10131         (number_of_iterations_exit): Likewise.
10132         (finite_loop_p): Likewise.
10133         (derive_constant_upper_bound_assign): Likewise.
10134         (derive_constant_upper_bound): Return a widest_int.
10135         (derive_constant_upper_bound_ops): Likewise.
10136         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
10137         (record_estimate): Take a widest_int rather than a double_int.
10138         (record_nonwrapping_iv): Use wide-int interfaces.
10139         (double_int_cmp): Delete.
10140         (wide_int_cmp): New.
10141         (bound_index): Take a widest_int rather than a double_int.
10142         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
10143         (maybe_lower_iteration_bound): Likewise.
10144         (estimate_numbers_of_iterations_loop): Likewise.
10145         (estimated_loop_iterations): Take a widest_int pointer than than
10146         a double_int pointer.
10147         (estimated_loop_iterations_int): Use wide-int interfaces.
10148         (max_loop_iterations): Take a widest_int pointer than than
10149         a double_int pointer.
10150         (max_loop_iterations_int): Use wide-int interfaces.
10151         (max_stmt_executions): Take a widest_int pointer than than
10152         a double_int pointer.
10153         (estimated_stmt_executions): Likewise.
10154         (n_of_executions_at_most): Use wide-int interfaces.
10155         (scev_probably_wraps_p): Likewise.
10156         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
10157         to real_to_integer.
10158         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
10159         interfaces.
10160         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
10161         double_ints.  Adjust for trailing_wide_ints <3> representation.
10162         (set_nonzero_bits): Likewise.
10163         (get_range_info): Return wide_ints rather than double_ints.
10164         Adjust for trailing_wide_ints <3> representation.
10165         (get_nonzero_bits): Likewise.
10166         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
10167         representation.
10168         * tree-ssanames.h (struct range_info_def): Replace min, max and
10169         nonzero_bits with a trailing_wide_ints <3>.
10170         (set_range_info): Use wide_int_refs rather than double_ints.
10171         (set_nonzero_bits): Likewise.
10172         (get_range_info): Return wide_ints rather than double_ints.
10173         (get_nonzero_bits): Likewise.
10174         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
10175         * tree-ssa-pre.c (phi_translate_1): Likewise.
10176         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
10177         (acceptable_pow_call): Likewise.
10178         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
10179         interfaces.
10180         (vn_reference_fold_indirect): Likewise.
10181         (vn_reference_maybe_forwprop_address): Likewise.
10182         (valueize_refs_1): Likewise.
10183         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
10184         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
10185         tree_int_cst_lt and tree_int_cst_le.
10186         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
10187         interfaces.
10188         (streamer_alloc_tree): Likewise.
10189         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
10190         (streamer_write_tree_header): Likewise.
10191         (streamer_write_integer_cst): Likewise.
10192         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10193         (build_constructors): Likewise.
10194         (array_value_type): Likewise.
10195         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
10196         (vect_check_gather): Likewise.
10197         * tree-vect-generic.c (build_replicated_const): Likewise.
10198         (expand_vector_divmod): Likewise.
10199         * tree-vect-loop.c (vect_transform_loop): Likewise.
10200         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
10201         (vect_do_peeling_for_alignment): Likewise.
10202         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
10203         * tree-vrp.c: Include wide-int.h.
10204         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
10205         (extract_range_from_assert): Use wide-int interfaces.
10206         (vrp_int_const_binop): Likewise.
10207         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
10208         double_int pointers.
10209         (ranges_from_anti_range): Use wide-int interfaces.
10210         (quad_int_cmp): Delete.
10211         (quad_int_pair_sort): Likewise.
10212         (extract_range_from_binary_expr_1): Use wide-int interfaces.
10213         (extract_range_from_unary_expr_1): Likewise.
10214         (adjust_range_with_scev): Likewise.
10215         (masked_increment): Take and return wide_ints rather than double_ints.
10216         (register_edge_assert_for_2): Use wide-int interfaces.
10217         (check_array_ref): Likewise.
10218         (search_for_addr_array): Likewise.
10219         (maybe_set_nonzero_bits): Likewise.
10220         (union_ranges): Pass an integer of the correct type instead of
10221         using integer_one_node.
10222         (intersect_ranges): Likewise.
10223         (simplify_truth_ops_using_ranges): Likewise.
10224         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
10225         (range_fits_type_p): Likewise.
10226         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
10227         a bool.
10228         (simplify_conversion_using_ranges): Use wide-int interfaces.
10229         (simplify_float_conversion_using_ranges): Likewise.
10230         (vrp_finalize): Likewise.
10231         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
10232         (gimple_stringops_transform): Likewise.
10233         * varasm.c (decode_addr_const): Likewise.
10234         (const_hash_1): Likewise.
10235         (const_rtx_hash_1): Likewise
10236         (output_constant): Likewise.
10237         (array_size_for_constructor): Likewise.
10238         (output_constructor_regular_field): Likewise.
10239         (output_constructor_bitfield): Likewise.
10240         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
10241         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
10242         GENERATOR_FILEs.
10243         * gencheck.c: Define BITS_PER_UNIT.
10244         * wide-int.cc: New.
10245         * wide-int.h: New.
10246         * wide-int-print.cc: New.
10247         * wide-int-print.h: New.
10248
10249 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10250
10251         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
10252
10253 2014-05-06  Richard Biener  <rguenther@suse.de>
10254
10255         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
10256         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
10257         (TODO_verify_all): Adjust.
10258         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
10259         TODO_verify_stmts and TODO_verify_rtl_sharing.
10260         * bb-reorder.c: Likewise.
10261         * cfgexpand.c: Likewise.
10262         * cprop.c: Likewise.
10263         * cse.c: Likewise.
10264         * function.c: Likewise.
10265         * fwprop.c: Likewise.
10266         * gcse.c: Likewise.
10267         * gimple-ssa-isolate-paths.c: Likewise.
10268         * gimple-ssa-strength-reduction.c: Likewise.
10269         * ipa-split.c: Likewise.
10270         * loop-init.c: Likewise.
10271         * loop-unroll.c: Likewise.
10272         * lower-subreg.c: Likewise.
10273         * modulo-sched.c: Likewise.
10274         * postreload-gcse.c: Likewise.
10275         * predict.c: Likewise.
10276         * recog.c: Likewise.
10277         * sched-rgn.c: Likewise.
10278         * store-motion.c: Likewise.
10279         * tracer.c: Likewise.
10280         * trans-mem.c: Likewise.
10281         * tree-call-cdce.c: Likewise.
10282         * tree-cfg.c: Likewise.
10283         * tree-cfgcleanup.c: Likewise.
10284         * tree-complex.c: Likewise.
10285         * tree-eh.c: Likewise.
10286         * tree-emutls.c: Likewise.
10287         * tree-if-conv.c: Likewise.
10288         * tree-into-ssa.c: Likewise.
10289         * tree-loop-distribution.c: Likewise.
10290         * tree-object-size.c: Likewise.
10291         * tree-parloops.c: Likewise.
10292         * tree-pass.h: Likewise.
10293         * tree-sra.c: Likewise.
10294         * tree-ssa-ccp.c: Likewise.
10295         * tree-ssa-copy.c: Likewise.
10296         * tree-ssa-copyrename.c: Likewise.
10297         * tree-ssa-dce.c: Likewise.
10298         * tree-ssa-dom.c: Likewise.
10299         * tree-ssa-dse.c: Likewise.
10300         * tree-ssa-forwprop.c: Likewise.
10301         * tree-ssa-ifcombine.c: Likewise.
10302         * tree-ssa-loop-ch.c: Likewise.
10303         * tree-ssa-loop-ivcanon.c: Likewise.
10304         * tree-ssa-loop.c: Likewise.
10305         * tree-ssa-math-opts.c: Likewise.
10306         * tree-ssa-phiopt.c: Likewise.
10307         * tree-ssa-phiprop.c: Likewise.
10308         * tree-ssa-pre.c: Likewise.
10309         * tree-ssa-reassoc.c: Likewise.
10310         * tree-ssa-sink.c: Likewise.
10311         * tree-ssa-strlen.c: Likewise.
10312         * tree-ssa-tail-merge.c: Likewise.
10313         * tree-ssa-uncprop.c: Likewise.
10314         * tree-switch-conversion.c: Likewise.
10315         * tree-tailcall.c: Likewise.
10316         * tree-vect-generic.c: Likewise.
10317         * tree-vectorizer.c: Likewise.
10318         * tree-vrp.c: Likewise.
10319         * tsan.c: Likewise.
10320         * var-tracking.c: Likewise.
10321         * bt-load.c: Likewise.
10322         * cfgcleanup.c: Likewise.
10323         * combine-stack-adj.c: Likewise.
10324         * combine.c: Likewise.
10325         * compare-elim.c: Likewise.
10326         * config/epiphany/resolve-sw-modes.c: Likewise.
10327         * config/i386/i386.c: Likewise.
10328         * config/mips/mips.c: Likewise.
10329         * config/s390/s390.c: Likewise.
10330         * config/sh/sh_treg_combine.cc: Likewise.
10331         * config/sparc/sparc.c: Likewise.
10332         * dce.c: Likewise.
10333         * dse.c: Likewise.
10334         * final.c: Likewise.
10335         * ifcvt.c: Likewise.
10336         * mode-switching.c: Likewise.
10337         * passes.c: Likewise.
10338         * postreload.c: Likewise.
10339         * ree.c: Likewise.
10340         * reg-stack.c: Likewise.
10341         * regcprop.c: Likewise.
10342         * regrename.c: Likewise.
10343         * web.c: Likewise.
10344
10345 2014-05-06  Richard Biener  <rguenther@suse.de>
10346
10347         PR middle-end/61070
10348         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
10349         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
10350
10351 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
10352
10353         PR ipa/60965
10354         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
10355
10356 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
10357             Tom de Vries  <tom@codesourcery.com>
10358
10359         * target.def (call_fusage_contains_non_callee_clobbers): New
10360         DEFHOOKPOD.
10361         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
10362         Hooks to @menu.
10363         (@node Miscellaneous Register Hooks): New node.
10364         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
10365         * doc/tm.texi: Regenerate.
10366
10367 2014-05-05  Marek Polacek  <polacek@redhat.com>
10368
10369         PR driver/61065
10370         * opts.c (common_handle_option): Call error_at instead of warning_at.
10371
10372 2014-05-05  Richard Biener  <rguenther@suse.de>
10373
10374         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
10375         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
10376         under the TODO_verify_il umbrella.
10377
10378 2014-05-05  Richard Biener  <rguenther@suse.de>
10379
10380         * passes.c (execute_function_todo): Move TODO_verify_flow under
10381         the TODO_verify_ul umbrella.
10382
10383 2014-05-05  Richard Biener  <rguenther@suse.de>
10384
10385         PR middle-end/61010
10386         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
10387         X & CST away from a CST that is the mask of a mode.
10388
10389 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10390
10391         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
10392         int argument to enum machine_mode.
10393         (picochip_class_max_nregs): Ditto.
10394         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
10395         (picochip_class_max_nregs): Ditto.
10396
10397 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10398
10399         * target.def: Add new target hook.
10400         * doc/tm.texi: Regenerate.
10401         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
10402         * targhooks.c (default_keep_leaf_when_profiled): New function.
10403
10404         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
10405         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
10406
10407 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
10408
10409         PR tree-optimization/60363
10410         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
10411         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
10412         (update_destination_phis): New parameter.
10413         (create_edge_and_update_destination_phis): Ditto.
10414         (ssa_fix_duplicate_block_edges): Pass new arguments.
10415         (thread_single_edge): Ditto.
10416
10417 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
10418
10419         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
10420         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
10421         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
10422         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
10423         Use RS6000_BTM_HARD_FLOAT.
10424         (BU_MISC_2): Likewise.
10425         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
10426         RS6000_BTM_HARD_FLOAT.
10427         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
10428         is explicitly used.
10429         (rs6000_invalid_builtin): Add hard floating builtin support.
10430         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
10431         hard float builtins.
10432         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
10433
10434 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10435
10436         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
10437         Add missing function* argument.
10438
10439 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
10440
10441         * lra-constraints.c (valid_address_p): Move earlier in file.
10442         Add a constraint argument to the address_info version.
10443         (satisfies_memory_constraint_p): New function.
10444         (satisfies_address_constraint_p): Likewise.
10445         (process_alt_operands, curr_insn_transform): Use them.
10446         (process_address): Pass the constraint to valid_address_p when
10447         checking address operands.
10448
10449 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
10450
10451         * config/mips/mips.c (mips_isa_rev): New variable.
10452         (mips_set_architecture): Set it.
10453         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
10454         from mips_isa_rev.
10455         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
10456         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
10457         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
10458         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
10459         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
10460         conditions in terms of mips_isa_rev.
10461         (mips_isa_rev): Declare.
10462
10463 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10464
10465         * config/sh/sh-mem.cc: Use tabs instead of spaces.
10466         (prob_unlikely, prob_likely): Make variables const.
10467
10468 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
10469
10470         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
10471
10472 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10473
10474         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
10475
10476 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10477
10478         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
10479         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
10480         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
10481         functions.
10482         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
10483         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
10484         sh_pass_in_reg_p.
10485         Replace usage of ROUND_REG with sh_round_reg.
10486         Use CEIL instead of ROUND_ADVANCE.
10487
10488 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10489
10490         PR target/61026
10491         * config/sh/sh.c: Include stdlib headers before everything else.
10492
10493 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
10494
10495         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
10496         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
10497         (gimplify_adjust_omp_clauses): Simd region is never
10498         directly nested in combined parallel.  Instead, for linear
10499         with copyin/copyout, if in combined for simd loop, make decl
10500         firstprivate/lastprivate on OMP_FOR.
10501         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
10502         expand_omp_for_static_chunk): When setting endvar, also set
10503         fd->loop.v to the same value.
10504
10505 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10506
10507         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
10508
10509 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
10510
10511         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
10512         expression.
10513
10514 2014-05-02  Marek Polacek  <polacek@redhat.com>
10515
10516         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
10517
10518 2014-05-02  Kito Cheng  <kito@0xlab.org>
10519
10520         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
10521         to a C expression marco.
10522         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
10523         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
10524         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
10525         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
10526         HONOR_REG_ALLOC_ORDER.
10527         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
10528
10529 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10530
10531         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
10532
10533 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10534
10535         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
10536
10537 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
10538
10539         * tree-if-conv.c (is_cond_scalar_reduction): New function.
10540         (convert_scalar_cond_reduction): Likewise.
10541         (predicate_scalar_phi): Add recognition and transformation
10542         of simple conditioanl reduction to be vectorizable.
10543
10544 2014-05-01  Marek Polacek  <polacek@redhat.com>
10545
10546         PR c/43245
10547         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
10548
10549 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
10550
10551         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
10552         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
10553         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
10554         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
10555         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
10556         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
10557         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
10558         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
10559
10560 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10561
10562         * config/arc/arc.opt (mlra): Move comment above option name
10563         to avoid mis-parsing as language options.
10564
10565 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10566
10567         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
10568         * config/sol2.h: ... here.
10569         * config/sol2-10.h: Remove.
10570
10571         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
10572         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
10573         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
10574         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
10575         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
10576         * config/sol2.h: ... here.
10577         (SECTION_NAME_FORMAT): Don't redefine.
10578         (STARTFILE_ARCH32_SPEC): Rename to ...
10579         (STARTFILE_ARCH_SPEC): ... this.
10580         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
10581         * config/sparc/sol2.h: ... here.
10582         (SECTION_NAME_FORMAT): Don't undef.
10583         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
10584         (SUBTARGET_EXTRA_SPECS): Remove.
10585         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10586
10587         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
10588         (MD_STARTFILE_PREFIX): Remove.
10589         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
10590         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
10591         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
10592         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
10593         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
10594         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
10595         * config/i386/sol2.h: ... here.
10596         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
10597         * config/i386/sol2-bi.h: Remove.
10598         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
10599         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
10600
10601         * config/i386/t-sol2-64: Rename to ...
10602         * config/i386/t-sol2: ... this.
10603         * config/sparc/t-sol2-64: Rename to ...
10604         * config/sparc/t-sol2: ... this.
10605
10606         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
10607         sol2_tm_file_head, sol2_tm_file_tail.
10608         Include ${cpu_type}/sol2.h before sol2.h.
10609         Remove sol2-10.h.
10610         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
10611         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
10612         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
10613         Reflect i386/t-sol2-64 renaming.
10614         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
10615         Reflect sparc/t-sol2-64 renaming.
10616
10617 2014-04-30  Richard Biener  <rguenther@suse.de>
10618
10619         * passes.c (execute_function_todo): Move TODO_verify_stmts
10620         and TODO_verify_ssa under the TODO_verify_il umbrella.
10621         * tree-ssa.h (verify_ssa): Adjust prototype.
10622         * tree-ssa.c (verify_ssa): Add parameter to tell whether
10623         we should verify SSA operands.
10624         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
10625         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
10626         whether we should verify whether not throwing stmts have EH info.
10627         * graphite-scop-detection.c (create_sese_edges): Adjust.
10628         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
10629         * tree-eh.c (lower_try_finally_switch): Do not add the
10630         default case label twice.
10631
10632 2014-04-30  Marek Polacek  <polacek@redhat.com>
10633
10634         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
10635         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
10636         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
10637         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
10638
10639 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
10640
10641         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
10642         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
10643         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
10644         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
10645         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
10646         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
10647         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
10648         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
10649
10650 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
10651
10652         * tree-cfg.c (dump_function_to_file): Dump the return type of
10653         functions, in a line to itself before the function body, mimicking
10654         the layout of a C function.
10655
10656 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
10657
10658         PR tree-optimization/60971
10659         * tree-tailcall.c (process_assignment): Reject conversions which
10660         reduce precision.
10661
10662 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
10663
10664         * calls.c (initialize_argument_information): Always treat
10665         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
10666         (expand_call): Likewise.
10667         (emit_library_call_calue_1): Likewise.
10668         * expr.c (PUSH_ARGS_REVERSED): Do not define.
10669         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
10670         code accordingly.
10671
10672 2014-04-29  Nick Clifton  <nickc@redhat.com>
10673
10674         * config/msp430/msp430.md (umulsidi): Fix typo.
10675         (mulhisi3): Enable even inside interrupt handlers.
10676         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
10677         bigger return address pushed in large mode.
10678
10679 2014-04-29  Nick Clifton  <nickc@redhat.com>
10680
10681         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
10682         (arc_init_reg_tables): Use a machine_mode enum to iterate over
10683         available modes.
10684         * config/m32r/m32r.c (init_reg_tables): Likewise.
10685         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
10686         enum to hold the modes.
10687
10688 2014-04-29  Richard Biener  <rguenther@suse.de>
10689
10690         * dominance.c (free_dominance_info): Add overload with
10691         function parameter.
10692         (dom_info_state): Likewise.
10693         (dom_info_available_p): Likewise.
10694         * basic-block.h (free_dominance_info, dom_info_state,
10695         dom_info_available_p): Declare overloads.
10696         * passes.c (execute_function_todo): Verify that verifiers
10697         don't change dominator info state.  Drop dominator info
10698         for IPA pass invocations.
10699         * cgraph.c (release_function_body): Restore asserts that
10700         dominator information is released.
10701
10702 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
10703
10704         * doc/invoke.texi: Fix typo.
10705         * tree-vrp.c: Fix typos.
10706         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
10707
10708 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10709
10710         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
10711
10712 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
10713
10714         * config/aarch64/aarch64-builtins.c
10715         (aarch64_types_storestruct_lane_qualifiers): New.
10716         (TYPES_STORESTRUCT_LANE): Likewise.
10717         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
10718         (st3_lane): Likewise.
10719         (st4_lane): Likewise.
10720         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
10721         (vec_store_lanesci_lane<mode>): Likewise.
10722         (vec_store_lanesxi_lane<mode>): Likewise.
10723         (aarch64_st2_lane<VQ:mode>): Likewise.
10724         (aarch64_st3_lane<VQ:mode>): Likewise.
10725         (aarch64_st4_lane<VQ:mode>): Likewise.
10726         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
10727         * config/aarch64/arm_neon.h
10728         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
10729         use new macro arguments.
10730         (__ST3_LANE_FUNC): Likewise.
10731         (__ST4_LANE_FUNC): Likewise.
10732         * config/aarch64/iterators.md (V_TWO_ELEM): New.
10733         (V_THREE_ELEM): Likewise.
10734         (V_FOUR_ELEM): Likewise.
10735
10736 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
10737
10738         * doc/gimple.texi: Replace the description of the now-defunct
10739         union gimple_statement_d with a diagram showing the
10740         gimple_statement_base class hierarchy and its relationships to
10741         the GSS_ and GIMPLE_ enums.
10742
10743 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
10744
10745         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
10746         * config/aarch64/aarch64.c
10747         (aarch64_cannot_change_mode_class): Weaken conditions.
10748         (aarch64_modes_tieable_p): New.
10749         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
10750
10751 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
10752
10753         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10754         (loadsync_<mode>): Change mode.
10755         (load_quadpti, store_quadpti): New.
10756         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10757         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10758
10759 2014-04-28  Martin Jambor  <mjambor@suse.cz>
10760
10761         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
10762         same alias type as the original statement.
10763         (subreplacement_assignment_data): New type.
10764         (handle_unscalarized_data_in_subtree): New type of parameter,
10765         generate new memory accesses with same alias type as the original
10766         statement.
10767         (load_assign_lhs_subreplacements): Likewise.
10768         (sra_modify_constructor_assign): Generate new memory accesses with
10769         same alias type as the original statement.
10770
10771 2014-04-28  Richard Biener  <rguenther@suse.de>
10772
10773         * tree-pass.h (TODO_verify_il): Define.
10774         (TODO_verify_all): Complete properly.
10775         * passes.c (execute_function_todo): Move existing loop-closed
10776         SSA verification under TODO_verify_il.
10777         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
10778         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
10779         Fix tree sharing issue.
10780
10781 2014-04-28  Richard Biener  <rguenther@suse.de>
10782
10783         PR middle-end/60092
10784         * builtins.def (DEF_C11_BUILTIN): Add.
10785         (BUILT_IN_ALIGNED_ALLOC): Likewise.
10786         * coretypes.h (enum function_class): Add function_c11_misc.
10787         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10788         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
10789         (call_may_clobber_ref_p_1): Likewise.
10790         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10791         (mark_all_reaching_defs_necessary_1): Likewise.
10792         (propagate_necessity): Likewise.
10793         (eliminate_unnecessary_stmts): Likewise.
10794         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
10795
10796 2014-04-28  Richard Biener  <rguenther@suse.de>
10797
10798         * tree-vrp.c (vrp_var_may_overflow): Remove.
10799         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
10800         with overflow immediately bump to one before that value and
10801         let iteration figure out overflow status.
10802
10803 2014-04-28  Richard Biener  <rguenther@suse.de>
10804
10805         * configure.ac: Do valgrind header checks unconditionally.
10806         Add --enable-valgrind-annotations.
10807         * system.h: Guard valgrind header inclusion with
10808         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
10809         * alloc-pool.c (pool_alloc, pool_free): Use
10810         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
10811         to guard possibly dead code.
10812         * config.in: Regenerated.
10813         * configure: Likewise.
10814
10815 2014-04-28  Jeff Law  <law@redhat.com>
10816
10817         PR tree-optimization/60902
10818         * tree-ssa-threadedge.c
10819         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
10820         over real defs when invalidating outputs from statements that do not
10821         produce useful outputs for threading.
10822
10823 2014-04-28  Richard Biener  <rguenther@suse.de>
10824
10825         PR tree-optimization/60979
10826         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
10827         SCOPs that end in a block with a successor with abnormal
10828         predecessors.
10829
10830 2014-04-28  Richard Biener  <rguenther@suse.de>
10831
10832         * tree-pass.h (execute_pass_list): Adjust prototype.
10833         * passes.c (pass_manager::execute_early_local_passes): Adjust.
10834         (do_per_function): Change callback signature, push all actual
10835         work to the callbals.
10836         (do_per_function_toporder): Likewise.
10837         (execute_function_dump): Adjust.
10838         (execute_function_todo): Likewise.
10839         (clear_last_verified): Likewise.
10840         (verify_curr_properties): Likewise.
10841         (update_properties_after_pass): Likewise.
10842         (execute_pass_list_1): Split out from ...
10843         (execute_pass_list): ... here.  Adjust.
10844         (execute_ipa_pass_list): Likewise.
10845         * cgraphunit.c (cgraph_add_new_function): Adjust.
10846         (analyze_function): Likewise.
10847         (expand_function): Likewise.
10848         * cgraph.c (release_function_body): Free dominance info
10849         here instead of asserting it was magically freed elsewhere.
10850
10851 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10852
10853         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
10854         * configure: Regenerate.
10855         * config/sparc/sparc.opt (muser-mode): New option.
10856         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
10857         for LEON3.
10858         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
10859         * doc/invoke.texi (SPARC options): Document -muser-mode.
10860
10861 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
10862
10863         * cselib.c (find_slot_memmode): Delete.
10864         (cselib_hasher): Change compare_type to a struct.
10865         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
10866         constants.
10867         (preserve_constants_and_equivs): Adjust for new compare_type.
10868         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
10869         (wrap_constant): Delete.
10870         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
10871
10872 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10873
10874         * doc/install.texi (Building with profile feedback): Remove
10875         outdated sentence.
10876
10877 2014-04-26  Tom de Vries  <tom@codesourcery.com>
10878
10879         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
10880         array accesses.
10881
10882 2014-04-25  Cary Coutant  <ccoutant@google.com>
10883
10884         PR debug/60929
10885         * dwarf2out.c (should_move_die_to_comdat): A type definition
10886         can contain a subprogram definition, but don't move it to a
10887         comdat unit.
10888         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
10889         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
10890         from original DIE.
10891         (clone_tree_hash): Rename to...
10892         (clone_tree_partial): ...this; change callers.  Copy
10893         DW_TAG_subprogram DIEs as declarations.
10894         (copy_decls_walk): Don't copy children of a declaration into a
10895         type unit.
10896
10897 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
10898
10899         PR target/60969
10900         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
10901         alternative 12.
10902
10903 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
10904
10905         * config/arm/predicates.md (call_insn_operand): Add long_call check.
10906         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
10907         reg for long_call.
10908         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
10909         restriction.
10910
10911 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10912
10913         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
10914
10915 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10916
10917         PR tree-optimization/60930
10918         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
10919         creating a multiply candidate by folding two constant
10920         multiplicands when the result overflows.
10921
10922 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
10923
10924         PR tree-optimization/60960
10925         * tree-vect-generic.c (expand_vector_operation): Only call
10926         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
10927
10928 2014-04-25  Tom de Vries  <tom@codesourcery.com>
10929
10930         * expr.c (clobber_reg_mode): New function.
10931         * expr.h (clobber_reg): New function.
10932
10933 2014-04-25  Tom de Vries  <tom@codesourcery.com>
10934
10935         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
10936         clobbers.
10937
10938 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
10939             Tom de Vries  <tom@codesourcery.com>
10940
10941         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
10942         handle.
10943         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
10944         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
10945         new argument to find_all_hard_reg_sets call.
10946
10947 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10948
10949         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
10950         Use HOST_WIDE_INT_C for mask literal.
10951         (aarch_rev16_shleft_mask_imm_p): Likewise.
10952
10953 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
10954
10955         PR target/60941
10956         * config/sparc/sparc.md (ashlsi3_extend): Delete.
10957
10958 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
10959
10960         PR preprocessor/56540
10961         * config/i386/i386-c.c (ix86_target_macros): Define
10962         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
10963
10964 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10965
10966         * configure.ac (tga_func): Remove.
10967         (LIB_TLS_SPEC): Remove.
10968         * configure: Regenerate.
10969         * config.in: Regenerate.
10970         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
10971
10972 2014-04-25  Richard Biener  <rguenther@suse.de>
10973
10974         PR ipa/60912
10975         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
10976         call stmt use/clobber sets during stmt walk instead of
10977         walking the possibly incomplete set of caller edges.
10978
10979 2014-04-25  Richard Biener  <rguenther@suse.de>
10980
10981         PR ipa/60911
10982         * passes.c (apply_ipa_transforms): Inline into only caller ...
10983         (execute_one_pass): ... here.  Properly bring in function
10984         bodies for nodes we want to apply IPA transforms to.
10985
10986 2014-04-24  Cong Hou  <congh@google.com>
10987
10988         PR tree-optimization/60896
10989         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
10990         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
10991         (vect_mark_pattern_stmts): Set the def type of all statements in
10992         PATTERN_DEF_SEQ as vect_internal_def.
10993
10994 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10995
10996         * doc/extend.texi (PowerPC Built-in Functions): Document new
10997         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
10998         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
10999
11000         * config/rs6000/predicates.md (const_0_to_3_operand): New
11001         predicate to match 0..3 integer constants.
11002
11003         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
11004         to support adding miscellaneous builtin functions.
11005         (BU_DFP_MISC_2): Likewise.
11006         (BU_P7_MISC_1): Likewise.
11007         (BU_P7_MISC_2): Likewise.
11008         (BU_P8V_MISC_3): Likewise.
11009         (BU_MISC_1): Likewise.
11010         (BU_MISC_2): Likewise.
11011         (DIVWE): Add extended divide builtin functions.
11012         (DIVWEO): Likewise.
11013         (DIVWEU): Likewise.
11014         (DIVWEUO): Likewise.
11015         (DIVDE): Likewise.
11016         (DIVDEO): Likewise.
11017         (DIVDEU): Likewise.
11018         (DIVDEUO): Likewise.
11019         (DXEX): Add decimal floating-point builtin functions.
11020         (DXEXQ): Likewise.
11021         (DDEDPD): Likewise.
11022         (DDEDPDQ): Likewise.
11023         (DENBCD): Likewise.
11024         (DENBCDQ): Likewise.
11025         (DIEX): Likewise.
11026         (DIEXQ): Likewise.
11027         (DSCLI): Likewise.
11028         (DSCLIQ): Likewise.
11029         (DSCRI): Likewise.
11030         (DSCRIQ): Likewise.
11031         (CDTBCD): Add new BCD builtin functions.
11032         (CBCDTD): Likewise.
11033         (ADDG6S): Likewise.
11034         (BCDADD): Likewise.
11035         (BCDADD_LT): Likewise.
11036         (BCDADD_EQ): Likewise.
11037         (BCDADD_GT): Likewise.
11038         (BCDADD_OV): Likewise.
11039         (BCDSUB): Likewise.
11040         (BCDSUB_LT): Likewise.
11041         (BCDSUB_EQ): Likewise.
11042         (BCDSUB_GT): Likewise.
11043         (BCDSUB_OV): Likewise.
11044         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
11045         (UNPACK_TD): Likewise.
11046         (PACK_TF): Likewise.
11047         (UNPACK_TF): Likewise.
11048         (UNPACK_TF_0): Likewise.
11049         (UNPACK_TF_1): Likewise.
11050         (PACK_V1TI): Likewise.
11051         (UNPACK_V1TI): Likewise.
11052
11053         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11054         support for decimal floating point builtin functions.
11055         (rs6000_expand_ternop_builtin): Add checks for the new builtin
11056         functions that take constant arguments.
11057         (rs6000_invalid_builtin): Add decimal floating point builtin support.
11058         (rs6000_init_builtins): Setup long double, _Decimal64, and
11059         _Decimal128 types for new builtin functions.
11060         (builtin_function_type): Set the unsigned flags appropriately for
11061         the new builtin functions.
11062         (rs6000_opt_masks): Add support for decimal floating point builtin
11063         functions.
11064
11065         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
11066         floating point builtin functions.
11067         (RS6000_BTM_COMMON): Likewise.
11068         (RS6000_BTI_long_double): Likewise.
11069         (RS6000_BTI_dfloat64): Likewise.
11070         (RS6000_BTI_dfloat128): Likewise.
11071         (long_double_type_internal_node): Likewise.
11072         (dfloat64_type_internal_node): Likewise.
11073         (dfloat128_type_internal_node): Likewise.
11074
11075         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
11076         2.07 bcd arithmetic instructions.
11077         (UNSPEC_BCDSUB): Likewise.
11078         (UNSPEC_BCD_OVERFLOW): Likewise.
11079         (UNSPEC_BCD_ADD_SUB): Likewise.
11080         (bcd_add_sub): Likewise.
11081         (BCD_TEST): Likewise.
11082         (bcd<bcd_add_sub>): Likewise.
11083         (bcd<bcd_add_sub>_test): Likewise.
11084         (bcd<bcd_add_sub>_test2): Likewise.
11085         (bcd<bcd_add_sub>_<code>): Likewise.
11086         (peephole2 for combined bcd ops): Likewise.
11087
11088         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
11089         decimal floating point builtin functions.
11090         (UNSPEC_DENBCD): Likewise.
11091         (UNSPEC_DXEX): Likewise.
11092         (UNSPEC_DIEX): Likewise.
11093         (UNSPEC_DSCLI): Likewise.
11094         (UNSPEC_DSCRI): Likewise.
11095         (D64_D128): Likewise.
11096         (dfp_suffix): Likewise.
11097         (dfp_ddedpd_<mode>): Likewise.
11098         (dfp_denbcd_<mode>): Likewise.
11099         (dfp_dxex_<mode>): Likewise.
11100         (dfp_diex_<mode>): Likewise.
11101         (dfp_dscli_<mode>): Likewise.
11102         (dfp_dscri_<mode>): Likewise.
11103
11104         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
11105         builtin functions.
11106         (UNSPEC_CDTBCD): Likewise.
11107         (UNSPEC_CBCDTD): Likewise.
11108         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
11109         (UNSPEC_DIVEO): Likewise.
11110         (UNSPEC_DIVEU): Likewise.
11111         (UNSPEC_DIVEUO): Likewise.
11112         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
11113         pack/unpack 128-bit types.
11114         (UNSPEC_PACK_128BIT): Likewise.
11115         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
11116         (udiv<mode>3): Use idiv_ldiv mode attribute.
11117         (div<mode>3): Likewise.
11118         (addg6s): Add new BCD builtin functions.
11119         (cdtbcd): Likewise.
11120         (cbcdtd): Likewise.
11121         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
11122         (div_extend): Likewise.
11123         (div<div_extend>_<mode>"): Likewise.
11124         (FP128_64): Add support for new builtin functions to pack/unpack
11125         128-bit types.
11126         (unpack<mode>): Likewise.
11127         (unpacktf_0): Likewise.
11128         (unpacktf_1): Likewise.
11129         (unpack<mode>_dm): Likewise.
11130         (unpack<mode>_nodm): Likewise.
11131         (pack<mode>): Likewise.
11132         (unpackv1ti): Likewise.
11133         (packv1ti): Likewise.
11134
11135 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
11136
11137         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
11138         is disabled.
11139
11140 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
11141
11142         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
11143         * gimplify.c (omp_is_private): Change last argument's type to int.
11144         Only diagnose lastprivate if the simd argument is 1, only diagnose
11145         linear if the simd argument is 2.
11146         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
11147         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
11148         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
11149         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
11150         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
11151         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
11152         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
11153         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
11154         * tree-nested.c (convert_nonlocal_omp_clauses,
11155         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
11156
11157 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
11158
11159         PR target/60822
11160         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
11161         operand 1.
11162
11163 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
11164
11165         * flag-types.h (enum ivar_visibility): Add.
11166
11167 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
11168
11169         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
11170         function * argument.
11171
11172 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
11173
11174         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
11175
11176 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
11177             Tom de Vries  <tom@codesourcery.com>
11178
11179         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
11180         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
11181         reg-note.
11182         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
11183         * emit-rtl.c (try_split): Same.
11184
11185 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
11186             Tom de Vries  <tom@codesourcery.com>
11187
11188         * common.opt (fuse-caller-save): New option.
11189
11190 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
11191
11192         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
11193         elements for big-endian.
11194
11195 2014-04-24  Richard Biener  <rguenther@suse.de>
11196
11197         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
11198         during TER and instead use the sepops interface for expanding
11199         non-GIMPLE_SINGLE_RHS.
11200
11201 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11202
11203         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
11204         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
11205
11206 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11207
11208         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
11209         assembler 64-bit option.
11210         * configure: Regenerate.
11211
11212 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11213
11214         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
11215         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
11216         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
11217         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
11218         (TARGET_CRYPTO): Take TARGET_SIMD into account.
11219
11220 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11221
11222         * config/aarch64/aarch64-builtins.c
11223         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
11224         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
11225         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
11226         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
11227         builtins.
11228         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
11229         (Vrevsuff): New mode attribute.
11230
11231 2014-04-24  Terry Guo  <terry.guo@arm.com>
11232
11233         * config/arm/arm.h (machine_function): Define variable
11234         after_arm_reorg here.
11235         * config/arm/arm.c (after_arm_reorg): Remove the definition.
11236         (arm_split_constant): Update the way to access variable
11237         after_arm_reorg.
11238         (arm_reorg): Ditto.
11239         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
11240
11241 2014-04-23  Tom de Vries  <tom@codesourcery.com>
11242
11243         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
11244
11245 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
11246
11247         * is-a.h: Update comments to reflect the following changes to the
11248         "pointerness" of the API, making the template parameter match the
11249         return type, allowing use of is-a.h with typedefs of pointers.
11250         (is_a_helper::cast): Return a T rather then a pointer to a T, so
11251         that the return type matches the parameter to the is_a_helper.
11252         (as_a): Likewise.
11253         (dyn_cast): Likewise.
11254
11255         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
11256         pointer from the is-a.h API.
11257
11258         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
11259         (is_a_helper <cgraph_node *>::test): ...this, matching change to
11260         is-a.h API.
11261         (is_a_helper <varpool_node>::test): Likewise, convert to...
11262         (is_a_helper <varpool_node *>::test): ...this.
11263
11264         (varpool_first_variable): Update for removal of implicit pointer
11265         from the is-a.h API.
11266         (varpool_next_variable): Likewise.
11267         (varpool_first_static_initializer): Likewise.
11268         (varpool_next_static_initializer): Likewise.
11269         (varpool_first_defined_variable): Likewise.
11270         (varpool_next_defined_variable): Likewise.
11271         (cgraph_first_defined_function): Likewise.
11272         (cgraph_next_defined_function): Likewise.
11273         (cgraph_first_function): Likewise.
11274         (cgraph_next_function): Likewise.
11275         (cgraph_first_function_with_gimple_body): Likewise.
11276         (cgraph_next_function_with_gimple_body): Likewise.
11277         (cgraph_alias_target): Likewise.
11278         (varpool_alias_target): Likewise.
11279         (cgraph_function_or_thunk_node): Likewise.
11280         (varpool_variable_node): Likewise.
11281         (symtab_real_symbol_p): Likewise.
11282         * cgraphunit.c (referred_to_p): Likewise.
11283         (analyze_functions): Likewise.
11284         (handle_alias_pairs): Likewise.
11285         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11286         * gimple-ssa.h (gimple_vuse_op): Likewise.
11287         (gimple_vdef_op): Likewise.
11288         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
11289         * gimple.c (gimple_build_asm_1): Likewise.
11290         (gimple_build_try): Likewise.
11291         (gimple_build_resx): Likewise.
11292         (gimple_build_eh_dispatch): Likewise.
11293         (gimple_build_omp_for): Likewise.
11294         (gimple_omp_for_set_clauses): Likewise.
11295
11296         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
11297         (is_a_helper <gimple_statement_asm *>::test): ...this.
11298         (is_a_helper <gimple_statement_bind>::test): Convert to...
11299         (is_a_helper <gimple_statement_bind *>::test): ...this.
11300         (is_a_helper <gimple_statement_call>::test): Convert to...
11301         (is_a_helper <gimple_statement_call *>::test): ...this.
11302         (is_a_helper <gimple_statement_catch>::test): Convert to...
11303         (is_a_helper <gimple_statement_catch *>::test): ...this.
11304         (is_a_helper <gimple_statement_resx>::test): Convert to...
11305         (is_a_helper <gimple_statement_resx *>::test): ...this.
11306         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
11307         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
11308         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
11309         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
11310         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
11311         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
11312         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
11313         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
11314         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
11315         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
11316         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
11317         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
11318         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
11319         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
11320         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
11321         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
11322         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
11323         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
11324         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
11325         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
11326         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
11327         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
11328         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
11329         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
11330         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
11331         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
11332         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
11333         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
11334         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
11335         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
11336         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
11337         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
11338         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
11339         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
11340         (is_a_helper <gimple_statement_phi>::test): Convert to...
11341         (is_a_helper <gimple_statement_phi *>::test): ...this.
11342         (is_a_helper <gimple_statement_transaction>::test): Convert to...
11343         (is_a_helper <gimple_statement_transaction *>::test): ...this.
11344         (is_a_helper <gimple_statement_try>::test): Convert to...
11345         (is_a_helper <gimple_statement_try *>::test): ...this.
11346         (is_a_helper <gimple_statement_wce>::test): Convert to...
11347         (is_a_helper <gimple_statement_wce *>::test): ...this.
11348         (is_a_helper <const gimple_statement_asm>::test): Convert to...
11349         (is_a_helper <const gimple_statement_asm *>::test): ...this.
11350         (is_a_helper <const gimple_statement_bind>::test): Convert to...
11351         (is_a_helper <const gimple_statement_bind *>::test): ...this.
11352         (is_a_helper <const gimple_statement_call>::test): Convert to...
11353         (is_a_helper <const gimple_statement_call *>::test): ...this.
11354         (is_a_helper <const gimple_statement_catch>::test): Convert to...
11355         (is_a_helper <const gimple_statement_catch *>::test): ...this.
11356         (is_a_helper <const gimple_statement_resx>::test): Convert to...
11357         (is_a_helper <const gimple_statement_resx *>::test): ...this.
11358         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
11359         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
11360         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
11361         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
11362         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
11363         Convert to...
11364         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
11365         ...this.
11366         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
11367         Convert to...
11368         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
11369         ...this.
11370         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
11371         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
11372         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
11373         to...
11374         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
11375         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
11376         to...
11377         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
11378         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
11379         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
11380         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
11381         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
11382         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
11383         to...
11384         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
11385         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
11386         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
11387         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
11388         to...
11389         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
11390         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
11391         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
11392         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
11393         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
11394         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
11395         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
11396         (is_a_helper <const gimple_statement_phi>::test): Convert to...
11397         (is_a_helper <const gimple_statement_phi *>::test): ...this.
11398         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
11399         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
11400         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
11401         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
11402         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
11403         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
11404         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
11405         to...
11406         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
11407         ...this.
11408         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
11409         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
11410
11411         (gimple_use_ops): Update for removal of implicit pointer from the
11412         is-a.h API.
11413         (gimple_set_use_ops): Likewise.
11414         (gimple_vuse): Likewise.
11415         (gimple_vdef): Likewise.
11416         (gimple_vuse_ptr): Likewise.
11417         (gimple_vdef_ptr): Likewise.
11418         (gimple_set_vuse): Likewise.
11419         (gimple_set_vdef): Likewise.
11420         (gimple_omp_return_set_lhs): Likewise.
11421         (gimple_omp_return_lhs): Likewise.
11422         (gimple_omp_return_lhs_ptr): Likewise.
11423         (gimple_call_fntype): Likewise.
11424         (gimple_call_set_fntype): Likewise.
11425         (gimple_call_set_internal_fn): Likewise.
11426         (gimple_call_use_set): Likewise.
11427         (gimple_call_clobber_set): Likewise.
11428         (gimple_bind_vars): Likewise.
11429         (gimple_bind_set_vars): Likewise.
11430         (gimple_bind_body_ptr): Likewise.
11431         (gimple_bind_set_body): Likewise.
11432         (gimple_bind_add_stmt): Likewise.
11433         (gimple_bind_block): Likewise.
11434         (gimple_bind_set_block): Likewise.
11435         (gimple_asm_ninputs): Likewise.
11436         (gimple_asm_noutputs): Likewise.
11437         (gimple_asm_nclobbers): Likewise.
11438         (gimple_asm_nlabels): Likewise.
11439         (gimple_asm_input_op): Likewise.
11440         (gimple_asm_input_op_ptr): Likewise.
11441         (gimple_asm_output_op): Likewise.
11442         (gimple_asm_output_op_ptr): Likewise.
11443         (gimple_asm_set_output_op): Likewise.
11444         (gimple_asm_clobber_op): Likewise.
11445         (gimple_asm_set_clobber_op): Likewise.
11446         (gimple_asm_label_op): Likewise.
11447         (gimple_asm_set_label_op): Likewise.
11448         (gimple_asm_string): Likewise.
11449         (gimple_catch_types): Likewise.
11450         (gimple_catch_types_ptr): Likewise.
11451         (gimple_catch_handler_ptr): Likewise.
11452         (gimple_catch_set_types): Likewise.
11453         (gimple_catch_set_handler): Likewise.
11454         (gimple_eh_filter_types): Likewise.
11455         (gimple_eh_filter_types_ptr): Likewise.
11456         (gimple_eh_filter_failure_ptr): Likewise.
11457         (gimple_eh_filter_set_types): Likewise.
11458         (gimple_eh_filter_set_failure): Likewise.
11459         (gimple_eh_must_not_throw_fndecl): Likewise.
11460         (gimple_eh_must_not_throw_set_fndecl): Likewise.
11461         (gimple_eh_else_n_body_ptr): Likewise.
11462         (gimple_eh_else_e_body_ptr): Likewise.
11463         (gimple_eh_else_set_n_body): Likewise.
11464         (gimple_eh_else_set_e_body): Likewise.
11465         (gimple_try_eval_ptr): Likewise.
11466         (gimple_try_cleanup_ptr): Likewise.
11467         (gimple_try_set_eval): Likewise.
11468         (gimple_try_set_cleanup): Likewise.
11469         (gimple_wce_cleanup_ptr): Likewise.
11470         (gimple_wce_set_cleanup): Likewise.
11471         (gimple_phi_capacity): Likewise.
11472         (gimple_phi_num_args): Likewise.
11473         (gimple_phi_result): Likewise.
11474         (gimple_phi_result_ptr): Likewise.
11475         (gimple_phi_set_result): Likewise.
11476         (gimple_phi_arg): Likewise.
11477         (gimple_phi_set_arg): Likewise.
11478         (gimple_resx_region): Likewise.
11479         (gimple_resx_set_region): Likewise.
11480         (gimple_eh_dispatch_region): Likewise.
11481         (gimple_eh_dispatch_set_region): Likewise.
11482         (gimple_omp_critical_name): Likewise.
11483         (gimple_omp_critical_name_ptr): Likewise.
11484         (gimple_omp_critical_set_name): Likewise.
11485         (gimple_omp_for_clauses): Likewise.
11486         (gimple_omp_for_clauses_ptr): Likewise.
11487         (gimple_omp_for_set_clauses): Likewise.
11488         (gimple_omp_for_collapse): Likewise.
11489         (gimple_omp_for_index): Likewise.
11490         (gimple_omp_for_index_ptr): Likewise.
11491         (gimple_omp_for_set_index): Likewise.
11492         (gimple_omp_for_initial): Likewise.
11493         (gimple_omp_for_initial_ptr): Likewise.
11494         (gimple_omp_for_set_initial): Likewise.
11495         (gimple_omp_for_final): Likewise.
11496         (gimple_omp_for_final_ptr): Likewise.
11497         (gimple_omp_for_set_final): Likewise.
11498         (gimple_omp_for_incr): Likewise.
11499         (gimple_omp_for_incr_ptr): Likewise.
11500         (gimple_omp_for_set_incr): Likewise.
11501         (gimple_omp_for_pre_body_ptr): Likewise.
11502         (gimple_omp_for_set_pre_body): Likewise.
11503         (gimple_omp_parallel_clauses): Likewise.
11504         (gimple_omp_parallel_clauses_ptr): Likewise.
11505         (gimple_omp_parallel_set_clauses): Likewise.
11506         (gimple_omp_parallel_child_fn): Likewise.
11507         (gimple_omp_parallel_child_fn_ptr): Likewise.
11508         (gimple_omp_parallel_set_child_fn): Likewise.
11509         (gimple_omp_parallel_data_arg): Likewise.
11510         (gimple_omp_parallel_data_arg_ptr): Likewise.
11511         (gimple_omp_parallel_set_data_arg): Likewise.
11512         (gimple_omp_task_clauses): Likewise.
11513         (gimple_omp_task_clauses_ptr): Likewise.
11514         (gimple_omp_task_set_clauses): Likewise.
11515         (gimple_omp_task_child_fn): Likewise.
11516         (gimple_omp_task_child_fn_ptr): Likewise.
11517         (gimple_omp_task_set_child_fn): Likewise.
11518         (gimple_omp_task_data_arg): Likewise.
11519         (gimple_omp_task_data_arg_ptr): Likewise.
11520         (gimple_omp_task_set_data_arg): Likewise.
11521         (gimple_omp_taskreg_clauses): Likewise.
11522         (gimple_omp_taskreg_clauses_ptr): Likewise.
11523         (gimple_omp_taskreg_set_clauses): Likewise.
11524         (gimple_omp_taskreg_child_fn): Likewise.
11525         (gimple_omp_taskreg_child_fn_ptr): Likewise.
11526         (gimple_omp_taskreg_set_child_fn): Likewise.
11527         (gimple_omp_taskreg_data_arg): Likewise.
11528         (gimple_omp_taskreg_data_arg_ptr): Likewise.
11529         (gimple_omp_taskreg_set_data_arg): Likewise.
11530         (gimple_omp_task_copy_fn): Likewise.
11531         (gimple_omp_task_copy_fn_ptr): Likewise.
11532         (gimple_omp_task_set_copy_fn): Likewise.
11533         (gimple_omp_task_arg_size): Likewise.
11534         (gimple_omp_task_arg_size_ptr): Likewise.
11535         (gimple_omp_task_set_arg_size): Likewise.
11536         (gimple_omp_task_arg_align): Likewise.
11537         (gimple_omp_task_arg_align_ptr): Likewise.
11538         (gimple_omp_task_set_arg_align): Likewise.
11539         (gimple_omp_single_clauses): Likewise.
11540         (gimple_omp_single_clauses_ptr): Likewise.
11541         (gimple_omp_single_set_clauses): Likewise.
11542         (gimple_omp_target_clauses): Likewise.
11543         (gimple_omp_target_clauses_ptr): Likewise.
11544         (gimple_omp_target_set_clauses): Likewise.
11545         (gimple_omp_target_child_fn): Likewise.
11546         (gimple_omp_target_child_fn_ptr): Likewise.
11547         (gimple_omp_target_set_child_fn): Likewise.
11548         (gimple_omp_target_data_arg): Likewise.
11549         (gimple_omp_target_data_arg_ptr): Likewise.
11550         (gimple_omp_target_set_data_arg): Likewise.
11551         (gimple_omp_teams_clauses): Likewise.
11552         (gimple_omp_teams_clauses_ptr): Likewise.
11553         (gimple_omp_teams_set_clauses): Likewise.
11554         (gimple_omp_sections_clauses): Likewise.
11555         (gimple_omp_sections_clauses_ptr): Likewise.
11556         (gimple_omp_sections_set_clauses): Likewise.
11557         (gimple_omp_sections_control): Likewise.
11558         (gimple_omp_sections_control_ptr): Likewise.
11559         (gimple_omp_sections_set_control): Likewise.
11560         (gimple_omp_for_set_cond): Likewise.
11561         (gimple_omp_for_cond): Likewise.
11562         (gimple_omp_atomic_store_set_val): Likewise.
11563         (gimple_omp_atomic_store_val): Likewise.
11564         (gimple_omp_atomic_store_val_ptr): Likewise.
11565         (gimple_omp_atomic_load_set_lhs): Likewise.
11566         (gimple_omp_atomic_load_lhs): Likewise.
11567         (gimple_omp_atomic_load_lhs_ptr): Likewise.
11568         (gimple_omp_atomic_load_set_rhs): Likewise.
11569         (gimple_omp_atomic_load_rhs): Likewise.
11570         (gimple_omp_atomic_load_rhs_ptr): Likewise.
11571         (gimple_omp_continue_control_def): Likewise.
11572         (gimple_omp_continue_control_def_ptr): Likewise.
11573         (gimple_omp_continue_set_control_def): Likewise.
11574         (gimple_omp_continue_control_use): Likewise.
11575         (gimple_omp_continue_control_use_ptr): Likewise.
11576         (gimple_omp_continue_set_control_use): Likewise.
11577         (gimple_transaction_body_ptr): Likewise.
11578         (gimple_transaction_label): Likewise.
11579         (gimple_transaction_label_ptr): Likewise.
11580         (gimple_transaction_set_body): Likewise.
11581         (gimple_transaction_set_label): Likewise.
11582
11583         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
11584         * ipa-inline-analysis.c (inline_write_summary): Likewise.
11585         * ipa-ref.c (ipa_record_reference): Likewise.
11586         * ipa-reference.c (analyze_function): Likewise.
11587         (ipa_reference_write_optimization_summary): Likewise.
11588         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
11589         (address_taken_from_non_vtable_p): Likewise.
11590         (comdat_can_be_unshared_p_1): Likewise.
11591         * lto-cgraph.c (lto_output_ref): Likewise.
11592         (add_references): Likewise.
11593         (compute_ltrans_boundary): Likewise.
11594         (output_symtab): Likewise.
11595         (input_ref): Likewise.
11596         (input_cgraph_1): Likewise.
11597         (output_cgraph_opt_summary): Likewise.
11598         * lto-streamer-out.c (lto_output): Likewise.
11599         (output_symbol_p): Likewise.
11600         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
11601         (lsei_start_function_in_partition): Likewise.
11602         (lsei_next_variable_in_partition): Likewise.
11603         (lsei_start_variable_in_partition): Likewise.
11604         * symtab.c (insert_to_assembler_name_hash): Likewise.
11605         (unlink_from_assembler_name_hash): Likewise.
11606         (symtab_unregister_node): Likewise.
11607         (symtab_remove_node): Likewise.
11608         (dump_symtab_node): Likewise.
11609         (verify_symtab_base): Likewise.
11610         (verify_symtab_node): Likewise.
11611         (symtab_make_decl_local): Likewise.
11612         (symtab_alias_ultimate_target): Likewise.
11613         (symtab_resolve_alias): Likewise.
11614         (symtab_get_symbol_partitioning_class): Likewise.
11615         * tree-phinodes.c (allocate_phi_node): Likewise.
11616         (reserve_phi_args_for_new_edge): Likewise.
11617         (remove_phi_args): Likewise.
11618         * varpool.c (varpool_node_for_asm): Likewise.
11619         (varpool_remove_unreferenced_decls): Likewise.
11620
11621 2014-04-23  Jeff Law  <law@redhat.com>
11622
11623         PR tree-optimization/60902
11624         * tree-ssa-threadedge.c
11625         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
11626         invalidate outputs from statements that do not produce useful
11627         outputs for threading.
11628
11629 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
11630
11631         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
11632         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
11633         machine descriptions for Stack Smashing Protector.
11634
11635 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
11636
11637         * aarch64.md (<optab>_rol<mode>3): New pattern.
11638         (<optab>_rolsi3_uxtw): Likewise.
11639         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
11640
11641 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
11642
11643         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
11644         (arm_cortex_a12_tune): Likewise.
11645
11646 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11647
11648         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
11649
11650 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11651
11652         * config/arm/arm.md (arm_rev16si2): New pattern.
11653         (arm_rev16si2_alt): Likewise.
11654         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
11655
11656 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11657
11658         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
11659         (rev16<mode>2_alt): Likewise.
11660         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
11661         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
11662         (aarch_rev16_shleft_mask_imm_p): Likewise.
11663         (aarch_rev16_p_1): Likewise.
11664         (aarch_rev16_p): Likewise.
11665         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
11666         (aarch_rev16_shright_mask_imm_p): Likewise.
11667         (aarch_rev16_shleft_mask_imm_p): Likewise.
11668
11669 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11670
11671         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
11672         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
11673         rev cost.
11674         (cortex_a53_extra_costs): Likewise.
11675         (cortex_a57_extra_costs): Likewise.
11676         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
11677         (cortexa7_extra_costs): Likewise.
11678         (cortexa8_extra_costs): Likewise.
11679         (cortexa12_extra_costs): Likewise.
11680         (cortexa15_extra_costs): Likewise.
11681         (v7m_extra_costs): Likewise.
11682         (arm_new_rtx_costs): Handle BSWAP.
11683
11684 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11685
11686         * config/arm/arm.c (cortexa8_extra_costs): New table.
11687         (arm_cortex_a8_tune): New tuning struct.
11688         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
11689
11690 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11691
11692         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
11693
11694 2014-04-23  Richard Biener  <rguenther@suse.de>
11695
11696         * Makefile.in (OBJS): Remove loop-unswitch.o.
11697         * tree-pass.h (make_pass_rtl_unswitch): Remove.
11698         * passes.def (pass_rtl_unswitch): Likewise.
11699         * loop-init.c (gate_rtl_unswitch): Likewise.
11700         (rtl_unswitch): Likewise.
11701         (pass_data_rtl_unswitch): Likewise.
11702         (pass_rtl_unswitch): Likewise.
11703         (make_pass_rtl_unswitch): Likewise.
11704         * rtl.h (reversed_condition): Likewise.
11705         (compare_and_jump_seq): Likewise.
11706         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
11707         and make static.
11708         * loop-unroll.c (compare_and_jump_seq): Likewise.
11709
11710 2014-04-23  Richard Biener  <rguenther@suse.de>
11711
11712         PR tree-optimization/60903
11713         * tree-ssa-loop-im.c (analyze_memory_references): Remove
11714         commented code block.
11715         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
11716         loop flags to newly created BBs and edges.
11717
11718 2014-04-23  Nick Clifton  <nickc@redhat.com>
11719
11720         * config/msp430/msp430.c (msp430_handle_option): Move function
11721         to msp430-common.c
11722         (msp430_option_override): Simplify mcu and mcpu option handling.
11723         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
11724         support for -mhwmult command line option.
11725         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
11726         -mhwmult command line option.
11727         (msp430_hwmult_enabled): Delete.
11728         (msp43o_output_labelref): Add support for -mhwmult command line option.
11729         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
11730         (umulsidi3): Likewise.
11731         * config/msp430/msp430.opt (mmcu): Add Report attribute.
11732         (mcpu, mlarge, msmall): Likewise.
11733         (mhwmult): New option.
11734         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
11735         prototype.
11736         (msp430_is_f5_mcu): Remove prototype.
11737         (msp430_use_f5_series_hwmult): Add prototype.
11738         * config/msp430/msp430-opts.h: New file.
11739         * common/config/msp430: New directory.
11740         * common/config/msp430/msp430-common.c: New file.
11741         * config.gcc (msp430): Remove target_has_targetm_common.
11742         * doc/invoke.texi: Document -mhwmult command line option.
11743
11744 2014-04-23  Nick Clifton  <nickc@redhat.com>
11745
11746         * config/i386/cygwin.h (ENDFILE_SPEC): Include
11747         default-manifest.o if it can be found in the search path.
11748         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
11749
11750 2014-04-23  Terry Guo  <terry.guo@arm.com>
11751
11752         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
11753
11754 2014-04-23  Richard Biener  <rguenther@suse.de>
11755
11756         PR middle-end/60895
11757         * tree-inline.c (declare_return_variable): Use mark_addressable.
11758
11759 2014-04-23  Richard Biener  <rguenther@suse.de>
11760
11761         PR middle-end/60891
11762         * loop-init.c (loop_optimizer_init): Make sure to apply
11763         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
11764
11765 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
11766
11767         PR sanitizer/60275
11768         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
11769         New options.
11770         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
11771         if flag_sanitize_undefined_trap_on_error.
11772         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
11773         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
11774         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
11775         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
11776         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
11777         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
11778         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
11779         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
11780         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
11781         * ubsan.c (ubsan_instrument_unreachable): Return
11782         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
11783         (ubsan_expand_null_ifn): Emit __builtin_trap ()
11784         if flag_sanitize_undefined_trap_on_error and
11785         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
11786         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
11787         instrument_bool_enum_load): Emit __builtin_trap () if
11788         flag_sanitize_undefined_trap_on_error and
11789         __builtin_handle_*_abort () if !flag_sanitize_recover.
11790         * doc/invoke.texi (-fsanitize-recover,
11791         -fsanitize-undefined-trap-on-error): Document.
11792
11793 2014-04-22  Christian Bruel  <christian.bruel@st.com>
11794
11795         * config/sh/sh.md (mov<mode>): Replace movQIHI.
11796          Force immediates to SImode.
11797
11798 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
11799
11800         * config/nios2/nios2.md (UNSPEC_ROUND): New.
11801         (lroundsfsi2): New.
11802         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
11803         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
11804         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
11805         (nios2_fpu_insn): Add entry for round.
11806         (N2FPU_NO_ERRNO_P): Define.
11807         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
11808         flag_errno_math.
11809         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
11810
11811 2014-04-22  Richard Henderson  <rth@redhat.com>
11812
11813         * config/aarch64/aarch64 (addti3, subti3): New expanders.
11814         (add<GPI>3_compare0): Remove leading * from name.
11815         (add<GPI>3_carryin): Likewise.
11816         (sub<GPI>3_compare0): Likewise.
11817         (sub<GPI>3_carryin): Likewise.
11818         (<su_optab>mulditi3): New expander.
11819         (multi3): New expander.
11820         (madd<GPI>): Remove leading * from name.
11821
11822 2014-04-22  Martin Jambor  <mjambor@suse.cz>
11823
11824         * cgraphclones.c (cgraph_function_versioning): Copy
11825         ipa_transforms_to_apply instead of asserting it is empty.
11826
11827 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
11828
11829         PR target/60868
11830         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
11831         on count_exp to get mode.
11832
11833 2014-04-22  Andrew Pinski  <apinski@cavium.com>
11834
11835         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11836         Handle TLS for ILP32.
11837         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
11838         (tlsie_small_<mode>): this and handle PTR.
11839         (tlsie_small_sidi): New pattern.
11840         (tlsle_small): Change to an expand to handle ILP32.
11841         (tlsle_small_<mode>): New pattern.
11842         (tlsdesc_small): Rename to ...
11843         (tlsdesc_small_<mode>): this and handle PTR.
11844
11845 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11846
11847         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
11848
11849 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
11850
11851         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
11852         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
11853         (aarch64_types_signed_poly_qualifiers): Likewise.
11854         (aarch64_types_unsigned_signed_qualifiers): Likewise.
11855         (aarch64_types_poly_signed_qualifiers): Likewise.
11856         (TYPES_REINTERP_SS): Type macro added.
11857         (TYPES_REINTERP_SU): Likewise.
11858         (TYPES_REINTERP_SP): Likewise.
11859         (TYPES_REINTERP_US): Likewise.
11860         (TYPES_REINTERP_PS): Likewise.
11861         (aarch64_fold_builtin): New expression folding added.
11862         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
11863         Declarations removed.
11864         (REINTERP_SS): Declarations added.
11865         (REINTERP_US): Likewise.
11866         (REINTERP_PS): Likewise.
11867         (REINTERP_SU): Likewise.
11868         (REINTERP_SP): Likewise.
11869         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
11870         (vreinterpretq_p8_f64): Likewise.
11871         (vreinterpret_p16_f64): Likewise.
11872         (vreinterpretq_p16_f64): Likewise.
11873         (vreinterpret_f32_f64): Likewise.
11874         (vreinterpretq_f32_f64): Likewise.
11875         (vreinterpret_f64_f32): Likewise.
11876         (vreinterpret_f64_p8): Likewise.
11877         (vreinterpret_f64_p16): Likewise.
11878         (vreinterpret_f64_s8): Likewise.
11879         (vreinterpret_f64_s16): Likewise.
11880         (vreinterpret_f64_s32): Likewise.
11881         (vreinterpret_f64_s64): Likewise.
11882         (vreinterpret_f64_u8): Likewise.
11883         (vreinterpret_f64_u16): Likewise.
11884         (vreinterpret_f64_u32): Likewise.
11885         (vreinterpret_f64_u64): Likewise.
11886         (vreinterpretq_f64_f32): Likewise.
11887         (vreinterpretq_f64_p8): Likewise.
11888         (vreinterpretq_f64_p16): Likewise.
11889         (vreinterpretq_f64_s8): Likewise.
11890         (vreinterpretq_f64_s16): Likewise.
11891         (vreinterpretq_f64_s32): Likewise.
11892         (vreinterpretq_f64_s64): Likewise.
11893         (vreinterpretq_f64_u8): Likewise.
11894         (vreinterpretq_f64_u16): Likewise.
11895         (vreinterpretq_f64_u32): Likewise.
11896         (vreinterpretq_f64_u64): Likewise.
11897         (vreinterpret_s64_f64): Likewise.
11898         (vreinterpretq_s64_f64): Likewise.
11899         (vreinterpret_u64_f64): Likewise.
11900         (vreinterpretq_u64_f64): Likewise.
11901         (vreinterpret_s8_f64): Likewise.
11902         (vreinterpretq_s8_f64): Likewise.
11903         (vreinterpret_s16_f64): Likewise.
11904         (vreinterpretq_s16_f64): Likewise.
11905         (vreinterpret_s32_f64): Likewise.
11906         (vreinterpretq_s32_f64): Likewise.
11907         (vreinterpret_u8_f64): Likewise.
11908         (vreinterpretq_u8_f64): Likewise.
11909         (vreinterpret_u16_f64): Likewise.
11910         (vreinterpretq_u16_f64): Likewise.
11911         (vreinterpret_u32_f64): Likewise.
11912         (vreinterpretq_u32_f64): Likewise.
11913
11914 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
11915
11916         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
11917         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
11918         (vreinterpret_p8_s8): Likewise.
11919         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
11920         (vreinterpret_p8_s16): Likewise.
11921         (vreinterpret_p8_s32): Likewise.
11922         (vreinterpret_p8_s64): Likewise.
11923         (vreinterpret_p8_f32): Likewise.
11924         (vreinterpret_p8_u8): Likewise.
11925         (vreinterpret_p8_u16): Likewise.
11926         (vreinterpret_p8_u32): Likewise.
11927         (vreinterpret_p8_u64): Likewise.
11928         (vreinterpret_p8_p16): Likewise.
11929         (vreinterpretq_p8_s8): Likewise.
11930         (vreinterpretq_p8_s16): Likewise.
11931         (vreinterpretq_p8_s32): Likewise.
11932         (vreinterpretq_p8_s64): Likewise.
11933         (vreinterpretq_p8_f32): Likewise.
11934         (vreinterpretq_p8_u8): Likewise.
11935         (vreinterpretq_p8_u16): Likewise.
11936         (vreinterpretq_p8_u32): Likewise.
11937         (vreinterpretq_p8_u64): Likewise.
11938         (vreinterpretq_p8_p16): Likewise.
11939         (vreinterpret_p16_s8): Likewise.
11940         (vreinterpret_p16_s16): Likewise.
11941         (vreinterpret_p16_s32): Likewise.
11942         (vreinterpret_p16_s64): Likewise.
11943         (vreinterpret_p16_f32): Likewise.
11944         (vreinterpret_p16_u8): Likewise.
11945         (vreinterpret_p16_u16): Likewise.
11946         (vreinterpret_p16_u32): Likewise.
11947         (vreinterpret_p16_u64): Likewise.
11948         (vreinterpret_p16_p8): Likewise.
11949         (vreinterpretq_p16_s8): Likewise.
11950         (vreinterpretq_p16_s16): Likewise.
11951         (vreinterpretq_p16_s32): Likewise.
11952         (vreinterpretq_p16_s64): Likewise.
11953         (vreinterpretq_p16_f32): Likewise.
11954         (vreinterpretq_p16_u8): Likewise.
11955         (vreinterpretq_p16_u16): Likewise.
11956         (vreinterpretq_p16_u32): Likewise.
11957         (vreinterpretq_p16_u64): Likewise.
11958         (vreinterpretq_p16_p8): Likewise.
11959         (vreinterpret_f32_s8): Likewise.
11960         (vreinterpret_f32_s16): Likewise.
11961         (vreinterpret_f32_s32): Likewise.
11962         (vreinterpret_f32_s64): Likewise.
11963         (vreinterpret_f32_u8): Likewise.
11964         (vreinterpret_f32_u16): Likewise.
11965         (vreinterpret_f32_u32): Likewise.
11966         (vreinterpret_f32_u64): Likewise.
11967         (vreinterpret_f32_p8): Likewise.
11968         (vreinterpret_f32_p16): Likewise.
11969         (vreinterpretq_f32_s8): Likewise.
11970         (vreinterpretq_f32_s16): Likewise.
11971         (vreinterpretq_f32_s32): Likewise.
11972         (vreinterpretq_f32_s64): Likewise.
11973         (vreinterpretq_f32_u8): Likewise.
11974         (vreinterpretq_f32_u16): Likewise.
11975         (vreinterpretq_f32_u32): Likewise.
11976         (vreinterpretq_f32_u64): Likewise.
11977         (vreinterpretq_f32_p8): Likewise.
11978         (vreinterpretq_f32_p16): Likewise.
11979         (vreinterpret_s64_s8): Likewise.
11980         (vreinterpret_s64_s16): Likewise.
11981         (vreinterpret_s64_s32): Likewise.
11982         (vreinterpret_s64_f32): Likewise.
11983         (vreinterpret_s64_u8): Likewise.
11984         (vreinterpret_s64_u16): Likewise.
11985         (vreinterpret_s64_u32): Likewise.
11986         (vreinterpret_s64_u64): Likewise.
11987         (vreinterpret_s64_p8): Likewise.
11988         (vreinterpret_s64_p16): Likewise.
11989         (vreinterpretq_s64_s8): Likewise.
11990         (vreinterpretq_s64_s16): Likewise.
11991         (vreinterpretq_s64_s32): Likewise.
11992         (vreinterpretq_s64_f32): Likewise.
11993         (vreinterpretq_s64_u8): Likewise.
11994         (vreinterpretq_s64_u16): Likewise.
11995         (vreinterpretq_s64_u32): Likewise.
11996         (vreinterpretq_s64_u64): Likewise.
11997         (vreinterpretq_s64_p8): Likewise.
11998         (vreinterpretq_s64_p16): Likewise.
11999         (vreinterpret_u64_s8): Likewise.
12000         (vreinterpret_u64_s16): Likewise.
12001         (vreinterpret_u64_s32): Likewise.
12002         (vreinterpret_u64_s64): Likewise.
12003         (vreinterpret_u64_f32): Likewise.
12004         (vreinterpret_u64_u8): Likewise.
12005         (vreinterpret_u64_u16): Likewise.
12006         (vreinterpret_u64_u32): Likewise.
12007         (vreinterpret_u64_p8): Likewise.
12008         (vreinterpret_u64_p16): Likewise.
12009         (vreinterpretq_u64_s8): Likewise.
12010         (vreinterpretq_u64_s16): Likewise.
12011         (vreinterpretq_u64_s32): Likewise.
12012         (vreinterpretq_u64_s64): Likewise.
12013         (vreinterpretq_u64_f32): Likewise.
12014         (vreinterpretq_u64_u8): Likewise.
12015         (vreinterpretq_u64_u16): Likewise.
12016         (vreinterpretq_u64_u32): Likewise.
12017         (vreinterpretq_u64_p8): Likewise.
12018         (vreinterpretq_u64_p16): Likewise.
12019         (vreinterpret_s8_s16): Likewise.
12020         (vreinterpret_s8_s32): Likewise.
12021         (vreinterpret_s8_s64): Likewise.
12022         (vreinterpret_s8_f32): Likewise.
12023         (vreinterpret_s8_u8): Likewise.
12024         (vreinterpret_s8_u16): Likewise.
12025         (vreinterpret_s8_u32): Likewise.
12026         (vreinterpret_s8_u64): Likewise.
12027         (vreinterpret_s8_p8): Likewise.
12028         (vreinterpret_s8_p16): Likewise.
12029         (vreinterpretq_s8_s16): Likewise.
12030         (vreinterpretq_s8_s32): Likewise.
12031         (vreinterpretq_s8_s64): Likewise.
12032         (vreinterpretq_s8_f32): Likewise.
12033         (vreinterpretq_s8_u8): Likewise.
12034         (vreinterpretq_s8_u16): Likewise.
12035         (vreinterpretq_s8_u32): Likewise.
12036         (vreinterpretq_s8_u64): Likewise.
12037         (vreinterpretq_s8_p8): Likewise.
12038         (vreinterpretq_s8_p16): Likewise.
12039         (vreinterpret_s16_s8): Likewise.
12040         (vreinterpret_s16_s32): Likewise.
12041         (vreinterpret_s16_s64): Likewise.
12042         (vreinterpret_s16_f32): Likewise.
12043         (vreinterpret_s16_u8): Likewise.
12044         (vreinterpret_s16_u16): Likewise.
12045         (vreinterpret_s16_u32): Likewise.
12046         (vreinterpret_s16_u64): Likewise.
12047         (vreinterpret_s16_p8): Likewise.
12048         (vreinterpret_s16_p16): Likewise.
12049         (vreinterpretq_s16_s8): Likewise.
12050         (vreinterpretq_s16_s32): Likewise.
12051         (vreinterpretq_s16_s64): Likewise.
12052         (vreinterpretq_s16_f32): Likewise.
12053         (vreinterpretq_s16_u8): Likewise.
12054         (vreinterpretq_s16_u16): Likewise.
12055         (vreinterpretq_s16_u32): Likewise.
12056         (vreinterpretq_s16_u64): Likewise.
12057         (vreinterpretq_s16_p8): Likewise.
12058         (vreinterpretq_s16_p16): Likewise.
12059         (vreinterpret_s32_s8): Likewise.
12060         (vreinterpret_s32_s16): Likewise.
12061         (vreinterpret_s32_s64): Likewise.
12062         (vreinterpret_s32_f32): Likewise.
12063         (vreinterpret_s32_u8): Likewise.
12064         (vreinterpret_s32_u16): Likewise.
12065         (vreinterpret_s32_u32): Likewise.
12066         (vreinterpret_s32_u64): Likewise.
12067         (vreinterpret_s32_p8): Likewise.
12068         (vreinterpret_s32_p16): Likewise.
12069         (vreinterpretq_s32_s8): Likewise.
12070         (vreinterpretq_s32_s16): Likewise.
12071         (vreinterpretq_s32_s64): Likewise.
12072         (vreinterpretq_s32_f32): Likewise.
12073         (vreinterpretq_s32_u8): Likewise.
12074         (vreinterpretq_s32_u16): Likewise.
12075         (vreinterpretq_s32_u32): Likewise.
12076         (vreinterpretq_s32_u64): Likewise.
12077         (vreinterpretq_s32_p8): Likewise.
12078         (vreinterpretq_s32_p16): Likewise.
12079         (vreinterpret_u8_s8): Likewise.
12080         (vreinterpret_u8_s16): Likewise.
12081         (vreinterpret_u8_s32): Likewise.
12082         (vreinterpret_u8_s64): Likewise.
12083         (vreinterpret_u8_f32): Likewise.
12084         (vreinterpret_u8_u16): Likewise.
12085         (vreinterpret_u8_u32): Likewise.
12086         (vreinterpret_u8_u64): Likewise.
12087         (vreinterpret_u8_p8): Likewise.
12088         (vreinterpret_u8_p16): Likewise.
12089         (vreinterpretq_u8_s8): Likewise.
12090         (vreinterpretq_u8_s16): Likewise.
12091         (vreinterpretq_u8_s32): Likewise.
12092         (vreinterpretq_u8_s64): Likewise.
12093         (vreinterpretq_u8_f32): Likewise.
12094         (vreinterpretq_u8_u16): Likewise.
12095         (vreinterpretq_u8_u32): Likewise.
12096         (vreinterpretq_u8_u64): Likewise.
12097         (vreinterpretq_u8_p8): Likewise.
12098         (vreinterpretq_u8_p16): Likewise.
12099         (vreinterpret_u16_s8): Likewise.
12100         (vreinterpret_u16_s16): Likewise.
12101         (vreinterpret_u16_s32): Likewise.
12102         (vreinterpret_u16_s64): Likewise.
12103         (vreinterpret_u16_f32): Likewise.
12104         (vreinterpret_u16_u8): Likewise.
12105         (vreinterpret_u16_u32): Likewise.
12106         (vreinterpret_u16_u64): Likewise.
12107         (vreinterpret_u16_p8): Likewise.
12108         (vreinterpret_u16_p16): Likewise.
12109         (vreinterpretq_u16_s8): Likewise.
12110         (vreinterpretq_u16_s16): Likewise.
12111         (vreinterpretq_u16_s32): Likewise.
12112         (vreinterpretq_u16_s64): Likewise.
12113         (vreinterpretq_u16_f32): Likewise.
12114         (vreinterpretq_u16_u8): Likewise.
12115         (vreinterpretq_u16_u32): Likewise.
12116         (vreinterpretq_u16_u64): Likewise.
12117         (vreinterpretq_u16_p8): Likewise.
12118         (vreinterpretq_u16_p16): Likewise.
12119         (vreinterpret_u32_s8): Likewise.
12120         (vreinterpret_u32_s16): Likewise.
12121         (vreinterpret_u32_s32): Likewise.
12122         (vreinterpret_u32_s64): Likewise.
12123         (vreinterpret_u32_f32): Likewise.
12124         (vreinterpret_u32_u8): Likewise.
12125         (vreinterpret_u32_u16): Likewise.
12126         (vreinterpret_u32_u64): Likewise.
12127         (vreinterpret_u32_p8): Likewise.
12128         (vreinterpret_u32_p16): Likewise.
12129         (vreinterpretq_u32_s8): Likewise.
12130         (vreinterpretq_u32_s16): Likewise.
12131         (vreinterpretq_u32_s32): Likewise.
12132         (vreinterpretq_u32_s64): Likewise.
12133         (vreinterpretq_u32_f32): Likewise.
12134         (vreinterpretq_u32_u8): Likewise.
12135         (vreinterpretq_u32_u16): Likewise.
12136         (vreinterpretq_u32_u64): Likewise.
12137         (vreinterpretq_u32_p8): Likewise.
12138         (vreinterpretq_u32_p16): Likewise.
12139
12140 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
12141
12142         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
12143         Pattern extended.
12144         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
12145         (sqabs): Likewise.
12146         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
12147         (vqnegd_s64): Likewise.
12148         (vqabs_s64): Likewise.
12149         (vqabsd_s64): Likewise.
12150
12151 2014-04-22  Richard Henderson  <rth@redhat.com>
12152
12153         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
12154         computation to the top of the loop.
12155
12156 2014-04-22  Renlin  <renlin.li@arm.com>
12157             Jiong Wang  <jiong.wang@arm.com>
12158
12159         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
12160         * config/aarch64/aarch64.c (aarch64_layout_frame)
12161         (aarch64_initial_elimination_offset): Likewise.
12162
12163 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12164
12165         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
12166         Fix indentation.
12167
12168 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
12169
12170         * machmode.h (bitwise_mode_for_mode): Declare.
12171         * stor-layout.h (bitwise_type_for_mode): Likewise.
12172         * stor-layout.c (bitwise_mode_for_mode): New function.
12173         (bitwise_type_for_mode): Likewise.
12174         * builtins.c (fold_builtin_memory_op): Use it instead of
12175         int_mode_for_mode and build_nonstandard_integer_type.
12176
12177 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12178
12179         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
12180         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
12181         (*-*-solaris2*): Simplify.
12182         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
12183         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
12184         *-*-solaris2.9* handling.
12185
12186         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
12187         as bug.
12188         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
12189         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
12190         handling, simplify.
12191         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
12192         * configure: Regenerate.
12193
12194         * config/i386/sol2-9.h: Remove.
12195
12196         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
12197         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
12198         Remove Solaris 9 references.
12199
12200 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
12201
12202         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
12203         (floatuns<GPI:mode><GPF:mode>2): Remove.
12204         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
12205         and floatuns conversions.
12206         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
12207         and floatuns conversions.
12208         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
12209         (w1,w2): New mode attributes for inequal width conversions.
12210
12211 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
12212
12213         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
12214         the output asm format.
12215
12216 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
12217
12218         * config/aarch64/aarch64-simd.md
12219         (aarch64_cm<optab>di): Always split.
12220         (*aarch64_cm<optab>di): New.
12221         (aarch64_cmtstdi): Always split.
12222         (*aarch64_cmtstdi): New.
12223
12224 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
12225
12226         PR tree-optimization/60823
12227         * omp-low.c (ipa_simd_modify_function_body): Go through
12228         all SSA_NAMEs and for those refering to vector arguments
12229         which are going to be replaced adjust SSA_NAME_VAR and,
12230         if it is a default definition, change it into a non-default
12231         definition assigned at the beginning of function from new_decl.
12232         (ipa_simd_modify_stmt_ops): Rewritten.
12233         * tree-dfa.c (set_ssa_default_def): When removing default def,
12234         check for NULL loc instead of NULL *loc.
12235
12236 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12237
12238         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
12239         restrictions on core registers for DImode values in Thumb2.
12240
12241 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
12242
12243         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
12244         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
12245
12246 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
12247
12248         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
12249         (*iordi_notzesidi_di): Likewise.
12250         (*iordi_notsesidi_di): Likewise.
12251
12252 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
12253
12254         * config/arm/arm-protos.h (tune_params): New struct members.
12255         * config/arm/arm.c: Initialise tune_params per processor.
12256         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
12257         for speed, based on new tune_params.
12258
12259 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
12260
12261         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
12262         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
12263         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
12264         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
12265         * config/aarch64/arm_neon.h (vrnd_f64): Added.
12266         (vrnda_f64): Likewise.
12267         (vrndi_f64): Likewise.
12268         (vrndm_f64): Likewise.
12269         (vrndn_f64): Likewise.
12270         (vrndp_f64): Likewise.
12271         (vrndx_f64): Likewise.
12272
12273 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12274
12275         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
12276         GET_MODE_SIZE argument is enum machine_mode.
12277
12278 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
12279
12280         PR target/60910
12281         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
12282         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
12283
12284 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
12285
12286         PR middle-end/60281
12287         * asan.c (asan_emit_stack_protection): Force the base to align to
12288         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
12289         appropriate bits if STRICT_ALIGNMENT.
12290         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
12291         when asan is on.
12292         (expand_used_vars): Leave a space in the stack frame for alignment
12293         if STRICT_ALIGNMENT.
12294
12295 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
12296
12297         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
12298         than a gimple.
12299         (gimple_store_p): Likewise.
12300         (gimple_assign_load_p): Likewise.
12301         (gimple_assign_cast_p): Likewise.
12302         (gimple_clobber_p): Likewise.
12303
12304         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
12305         rather than a gimple.
12306         (gimple_assign_cast_p): Likewise.
12307
12308 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12309
12310         PR target/60735
12311         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
12312         If mode is DDmode and TARGET_E500_DOUBLE allow move.
12313
12314         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
12315         more debug information for E500 if -mdebug=reg.
12316
12317 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
12318
12319         PR target/60909
12320         * config/i386/i386.c (ix86_expand_builtin)
12321         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
12322         register for target RTX.
12323         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
12324
12325 2014-04-18  Cong Hou  <congh@google.com>
12326
12327         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
12328         the widen-mult pattern by handling two operands with different sizes,
12329         and operands whose size is smaller than half of the result type.
12330
12331 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
12332
12333         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
12334         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
12335         (do_estimate_edge_time): Compute it.
12336         * ipa-inline.c (want_inline_small_function_p): Bypass
12337         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
12338
12339 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
12340
12341         * ipa-inline.c (spec_rem): New static variable.
12342         (dump_overall_stats): New function.
12343         (dump_inline_stats): New function.
12344
12345 2014-04-18  Richard Henderson  <rth@redhat.com>
12346
12347         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
12348         to GET_MODE_SIZE, not a reg_class_t.
12349
12350 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12351
12352         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
12353         (vsx_xxmrglw_<mode>): Likewise.
12354
12355 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
12356
12357         PR target/60876
12358         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
12359         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
12360         (rs6000_init_hard_regno_mode_ok): Likewise.
12361
12362 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
12363
12364         * ipa-inline.c (inline_small_functions): Account only non-cold
12365         functions.
12366         * doc/invoke.texi (inline-unit-growth): Update documentation.
12367
12368 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
12369
12370         * config/rs6000/rs6000.md (addti3, subti3): New.
12371
12372 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
12373
12374         PR target/60863
12375         * config/i386/i386.c (ix86_expand_clear): Remove outdated
12376         comment.  Check optimize_insn_for_size_p instead of
12377         optimize_insn_for_speed_p.
12378
12379 2014-04-17  Martin Jambor  <mjambor@suse.cz>
12380
12381         * gimple-iterator.c (gsi_start_edge): New function.
12382         * gimple-iterator.h (gsi_start_edge): Declare.
12383         * tree-sra.c (single_non_eh_succ): New function.
12384         (disqualify_ops_if_throwing_stmt): Renamed to
12385         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
12386         having one non-EH successor BB.
12387         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
12388         generate loads into replacements.
12389         (sra_modify_assign): Likewise and and also use the simple path for
12390         such statements.
12391         (sra_modify_function_body): Commit statements on edges.
12392
12393 2014-04-17  Richard Biener  <rguenther@suse.de>
12394
12395         PR middle-end/60849
12396         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
12397         comparison results and add clarifying comment.
12398
12399 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
12400
12401         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
12402         (blank_mode): Initialize it.
12403         (emit_mode_size_inline, emit_mode_nunits_inline,
12404         emit_mode_inner_inline): New functions.
12405         (emit_insn_modes_h): Call them and surround their output with
12406         #if GCC_VERSION >= 4001 ... #endif.
12407         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
12408         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
12409         mode_* arrays if the argument is __builtin_constant_p.
12410         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
12411         is enum machine_mode.
12412
12413 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12414
12415         * passes.c (opt_pass::execute): Adjust.
12416         (pass_manager::execute_pass_mode_switching): Likewise.
12417         (early_local_passes::execute): Likewise.
12418         (execute_one_pass): Pass cfun to the pass's execute method.
12419         * tree-pass.h (opt_pass::execute): Add function * argument.
12420         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12421         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12422         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12423         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12424         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12425         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
12426         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
12427         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
12428         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
12429         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
12430         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
12431         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
12432         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
12433         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
12434         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
12435         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
12436         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
12437         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
12438         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12439         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12440         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12441         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12442         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12443         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12444         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12445         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12446         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12447         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12448         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
12449         Adjust.
12450
12451 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12452
12453         * passes.c (opt_pass::gate): Take function * argument.
12454         (gate_all_early_local_passes): Merge into
12455         (early_local_passes::gate): this.
12456         (gate_all_early_optimizations): Merge into
12457         (all_early_optimizations::gate): this.
12458         (gate_all_optimizations): Mege into
12459         (all_optimizations::gate): this.
12460         (gate_all_optimizations_g): Merge into
12461         (all_optimizations_g::gate): this.
12462         (gate_rest_of_compilation): Mege into
12463         (rest_of_compilation::gate): this.
12464         (gate_postreload): Merge into
12465         (postreload::gate): this.
12466         (dump_one_pass): Pass cfun to the pass's gate method.
12467         (execute_ipa_summary_passes): Likewise.
12468         (execute_one_pass): Likewise.
12469         (ipa_write_summaries_2): Likewise.
12470         (ipa_write_optimization_summaries_1): Likewise.
12471         (ipa_read_summaries_1): Likewise.
12472         (ipa_read_optimization_summaries_1): Likewise.
12473         (execute_ipa_stmt_fixups): Likewise.
12474         * tree-pass.h (opt_pass::gate): Add function * argument.
12475         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
12476         combine-stack-adj.c, combine.c, compare-elim.c,
12477         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12478         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
12479         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
12480         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
12481         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
12482         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
12483         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
12484         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
12485         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12486         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
12487         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
12488         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
12489         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
12490         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
12491         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12492         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12493         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12494         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12495         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12496         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12497         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12498         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12499         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12500         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
12501         var-tracking.c, vtable-verify.c, web.c: Adjust.
12502
12503 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12504
12505         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
12506         * configure: Regenerate.
12507
12508 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12509
12510         * passes.c (dump_one_pass): don't check pass->has_gate.
12511         (execute_ipa_summary_passes): Likewise.
12512         (execute_one_pass): Likewise.
12513         (ipa_write_summaries_2): Likewise.
12514         (ipa_write_optimization_summaries_1): Likewise.
12515         (ipa_read_optimization_summaries_1): Likewise.
12516         (execute_ipa_stmt_fixups): Likewise.
12517         * tree-pass.h (pass_data::has_gate): Remove.
12518         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12519         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12520         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12521         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12522         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12523         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12524         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12525         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12526         gimple-low.c, gimple-ssa-isolate-paths.c,
12527         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12528         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12529         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
12530         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
12531         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
12532         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
12533         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
12534         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
12535         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
12536         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
12537         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
12538         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12539         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12540         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12541         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12542         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12543         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12544         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12545         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12546         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12547         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12548         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
12549         Adjust.
12550
12551 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12552
12553         * pass_manager.h (pass_manager::register_dump_files_1): Remove
12554         declaration.
12555         * passes.c (pass_manager::register_dump_files_1): Merge into
12556         (pass_manager::register_dump_files): this, and remove its handling of
12557         properties since the pass always has the properties anyway.
12558         (pass_manager::pass_manager): Adjust.
12559
12560 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
12561
12562         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
12563         * passes.c (pass_manager::register_dump_files_1): Remove dead code
12564         dealing with properties.
12565         (pass_manager::register_dump_files): Adjust.
12566
12567 2014-03-20  Mark Wielaard  <mjw@redhat.com>
12568
12569         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
12570         then represent the bound as normal constant value.
12571
12572 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
12573
12574         PR target/60847
12575         Forward port from 4.8 branch
12576         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
12577
12578         * config/i386/bmiintrin.h (_blsi_u32): New.
12579         (_blsi_u64): Ditto.
12580         (_blsr_u32): Ditto.
12581         (_blsr_u64): Ditto.
12582         (_blsmsk_u32): Ditto.
12583         (_blsmsk_u64): Ditto.
12584         (_tzcnt_u32): Ditto.
12585         (_tzcnt_u64): Ditto.
12586
12587 2014-04-17  Kito Cheng  <kito@0xlab.org>
12588
12589         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
12590
12591 2014-04-17  Richard Biener  <rguenther@suse.de>
12592
12593         PR middle-end/60849
12594         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
12595         boolean results for comparisons.
12596
12597 2014-04-17  Richard Biener  <rguenther@suse.de>
12598
12599         PR tree-optimization/60836
12600         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
12601         initial PHI args to be gimple values.
12602
12603 2014-04-17  Richard Biener  <rguenther@suse.de>
12604
12605         PR tree-optimization/60841
12606         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
12607         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
12608         of stmts to SLP build.
12609         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
12610         (vect_analyze_slp): Likewise.
12611         (vect_analyze_slp_instance): Likewise.
12612         (vect_build_slp_tree): Limit overall SLP tree growth.
12613         * tree-vectorizer.h (vect_analyze_data_refs,
12614         vect_analyze_slp): Adjust prototypes.
12615
12616 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
12617
12618         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
12619         Silvermont.
12620
12621 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
12622
12623         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
12624         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
12625         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
12626         for TARGET_SLOW_PSHUFB
12627
12628 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
12629
12630         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
12631         * config/i386/i386.c (intel_cost): Ditto.
12632
12633 2014-04-17  Joey Ye  <joey.ye@arm.com>
12634
12635         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
12636
12637 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
12638
12639         * opts.c (common_handle_option): Disable -fipa-reference coorectly
12640         with -fuse-profile.
12641
12642 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
12643
12644         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
12645         (type_all_derivations_known_p): New predicate.
12646         (type_all_ctors_visible_p): New predicate.
12647         (type_possibly_instantiated_p): New predicate.
12648         (get_odr_type): Compute all_derivations_known.
12649         (dump_odr_type): Dump the flag.
12650         (maybe_record_type): Cleanup.
12651         (record_target_from_binfo): Add bases_to_consider array;
12652         record bases for types w/o instances and skip CXX destructor.
12653         (possible_polymorphic_call_targets_1): Add bases_to_consider
12654         and consider_construction parameters; check if type may have instance.
12655         (get_polymorphic_call_info): Set maybe_in_construction to true
12656         when we know nothing.
12657         (record_targets_from_bases): Skip CXX destructors; they are
12658         never called for types in construction.
12659         (possible_polymorphic_call_targets): Do not record target when
12660         type may not have instance.
12661
12662 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
12663
12664         PR ipa/60854
12665         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
12666         external aliases alive, too.
12667
12668 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
12669
12670         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
12671         definition.
12672
12673 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
12674
12675         * final.c (compute_alignments): Do not apply loop alignment to a block
12676         falling through to the exit.
12677
12678 2014-04-16  Catherine Moore  <clm@codesourcery.com>
12679
12680         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
12681         Adjust constraints for microMIPS store patterns.
12682
12683 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
12684
12685         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
12686
12687 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
12688
12689         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
12690         (append_use): Run at -O0.
12691         (append_vdef): Likewise.
12692         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
12693         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
12694
12695 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
12696
12697         PR tree-optimization/60844
12698         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
12699         (propagate_op_to_single_use, remove_visited_stmt_chain,
12700         linearize_expr, repropagate_negates, reassociate_bb): Use it
12701         instead of gsi_remove.
12702
12703 2014-04-16  Martin Jambor  <mjambor@suse.cz>
12704
12705         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
12706         ipa_transforms_to_apply.
12707         (cgraph_function_versioning): Assert that old_node has empty
12708         ipa_transforms_to_apply.
12709         * trans-mem.c (ipa_tm_create_version): Likewise.
12710         * tree-inline.c (tree_function_versioning): Do not duplicate
12711         ipa_transforms_to_apply.
12712
12713 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12714
12715         PR target/60817
12716         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
12717         x86_64-*-* cases.
12718         Pass necessary as flags on 64-bit Solaris/x86.
12719         Use lowercase relocs for x86_64-*-*.
12720         * configure: Regenerate.
12721
12722 2014-04-15  Jan Hubicka  <jh@suse.cz>
12723
12724         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
12725         (maybe_record_node, likely_target_p): Use it.
12726
12727 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12728
12729         PR target/60839
12730         Revert following patch
12731
12732         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12733
12734         PR target/60735
12735         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
12736         software floating point or no floating point registers, do not
12737         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
12738         in GPRs that occurs after we tested for GPRs that would never be
12739         true.
12740
12741         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
12742         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
12743         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
12744         specifically allow DDmode, since that does not use the SPE SIMD
12745         instructions.
12746
12747 2014-03-21  Mark Wielaard  <mjw@redhat.com>
12748
12749         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
12750         as unsigned or int depending on type and value used.
12751
12752 2014-04-15  Richard Biener  <rguenther@suse.de>
12753
12754         PR rtl-optimization/56965
12755         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
12756         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
12757         ... here.
12758         * alias.c (true_dependence_1): Do not call
12759         nonoverlapping_component_refs_p.
12760         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
12761         nonoverlapping_component_refs_p.
12762         (indirect_refs_may_alias_p): Likewise.
12763
12764 2014-04-15  Teresa Johnson  <tejohnson@google.com>
12765
12766         * cfg.c (dump_bb_info): Fix flags check.
12767         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
12768
12769 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12770
12771         PR rtl-optimization/60663
12772         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
12773         avoid 0 cost.
12774
12775 2014-04-15  Richard Biener  <rguenther@suse.de>
12776
12777         * lto-streamer.h (LTO_major_version): Bump to 4.
12778
12779 2014-04-15  Richard Biener  <rguenther@suse.de>
12780
12781         * common.opt (lto_partition_model): New enum.
12782         (flto-partition=): Merge separate options with a single with argument,
12783         add -flto-partition=one support.
12784         * flag-types.h (enum lto_partition_model): Declare.
12785         * opts.c (finish_options): Remove duplicate -flto-partition=
12786         option check.
12787         * lto-wrapper.c (run_gcc): Adjust.
12788
12789 2014-04-15  Richard Biener  <rguenther@suse.de>
12790
12791         * alias.c (ncr_compar): New function.
12792         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
12793
12794 2014-04-15  Richard Biener  <rguenther@suse.de>
12795
12796         * alias.c (record_component_aliases): Do not walk BINFOs.
12797
12798 2014-04-15  Richard Biener  <rguenther@suse.de>
12799
12800         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12801         Add struct function argument and adjust.
12802         (find_func_aliases_for_call): Likewise.
12803         (find_func_aliases): Likewise.
12804         (find_func_clobbers): Likewise.
12805         (intra_create_variable_infos): Likewise.
12806         (compute_points_to_sets): Likewise.
12807         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
12808
12809 2014-04-15  Richard Biener  <rguenther@suse.de>
12810
12811         * tree.c (iterative_hash_expr): Use enum tree_code_class
12812         to store TREE_CODE_CLASS.
12813         (tree_block): Likewise.
12814         (tree_set_block): Likewise.
12815         * tree.h (fold_build_pointer_plus_loc): Use
12816         convert_to_ptrofftype_loc.
12817
12818 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
12819
12820         PR plugins/59335
12821         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
12822         added in 4.9.
12823
12824 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12825
12826         * cfgloop.h (struct loop): Move force_vectorize down.
12827         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
12828         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
12829         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
12830         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
12831         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
12832         * tree-core.h (enum annot_expr_kind): Add new kind values.
12833         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
12834         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
12835         kinds.
12836         * tree.def (ANNOTATE_EXPR): Tweak comment.
12837
12838 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
12839
12840         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
12841         cxa_pure_virtual).
12842
12843 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
12844
12845         * tree.h (TYPE_IDENTIFIER): Declare.
12846         * tree.c (subrange_type_for_debug_p): Use it.
12847         * godump.c (go_format_type): Likewise.
12848         * dwarf2out.c (is_cxx_auto, modified_type_die,
12849         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
12850         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
12851
12852 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
12853
12854         PR lto/60820
12855         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
12856
12857 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
12858
12859         * config/i386/i386.c (examine_argument): Return bool.  Return true if
12860         parameter should be passed in memory.
12861         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
12862         (construct_container): Update calls to examine_argument.
12863         (function_arg_advance_64): Ditto.
12864         (return_in_memory_32): Merge with ix86_return_in_memory.
12865         (return_in_memory_64): Ditto.
12866         (return_in_memory_ms_64): Ditto.
12867
12868 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
12869
12870         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
12871         * coverage.c (coverage_compute_profile_id): Handle externally visible
12872         symbols.
12873
12874 2014-04-14  Martin Jambor  <mjambor@suse.cz>
12875
12876         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
12877         DECL_DISREGARD_INLINE_LIMITS functions.
12878
12879 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12880
12881         PR target/60827
12882         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
12883
12884 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12885
12886         PR target/60827
12887         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
12888         optimize_insn_for_speed_p instead of
12889         optimize_function_for_speed_p.
12890
12891 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
12892
12893         * doc/invoke.texi (free): Document AArch64.
12894
12895 2014-04-14  Richard Biener  <rguenther@suse.de>
12896
12897         PR tree-optimization/60042
12898         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
12899         (insert_into_preds_of_block): Do not prevent PHI insertion
12900         for REFERENCE exprs here ...
12901         (eliminate_dom_walker::before_dom_children): ... but prevent
12902         their use here under similar conditions when applied to the
12903         IL after PRE optimizations.
12904
12905 2014-04-14  Richard Biener  <rguenther@suse.de>
12906
12907         * passes.def: Move early points-to after early SRA.
12908
12909 2014-04-14  Richard Biener  <rguenther@suse.de>
12910
12911         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
12912         check for which sign-changes we allow when forwarding
12913         a converted value into a switch.
12914
12915 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
12916
12917         * stor-layout.c (place_field): Finalize non-constant offset for the
12918         field, if any.
12919
12920 2014-04-14  Richard Biener  <rguenther@suse.de>
12921
12922         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
12923         as argument.
12924         (expand_switch_using_bit_tests_p): Likewise.
12925         (process_switch): Compute and pass on speed_p based on the
12926         switch stmt.
12927         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12928         optimize_bb_for_speed_p.
12929
12930 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
12931
12932         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
12933         * function.h (struct function): Rename has_force_vect_loops into
12934         has_force_vectorize_loops.
12935         * lto-streamer-in.c (input_cfg): Adjust for renaming.
12936         (input_struct_function_base): Likewise.
12937         * lto-streamer-out.c (output_cfg): Likewise.
12938         (output_struct_function_base): Likewise.
12939         * omp-low.c (expand_omp_simd): Likewise.
12940         * tree-cfg.c (move_sese_region_to_fn): Likewise.
12941         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
12942         (version_loop_for_if_conversion): Likewise.
12943         (tree_if_conversion): Likewise.
12944         (main_tree_if_conversion): Likewise.
12945         (gate_tree_if_conversion): Likewise.
12946         * tree-inline.c (copy_loops): Likewise.
12947         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
12948         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
12949         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12950         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
12951         * tree-vectorizer.c (vectorize_loops): Likewise.
12952         * tree-vectorizer.h (unlimited_cost_model): Likewise.
12953
12954 2014-04-14  Richard Biener  <rguenther@suse.de>
12955
12956         PR lto/60720
12957         * lto-streamer-out.c (wrap_refs): New function.
12958         (lto_output): Wrap symbol references in global initializes in
12959         type-preserving MEM_REFs.
12960
12961 2014-04-14  Christian Bruel  <christian.bruel@st.com>
12962
12963         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
12964
12965 2014-04-14  Christian Bruel  <christian.bruel@st.com>
12966
12967         * config/sh/sh.md (setmemqi): New expand pattern.
12968         * config/sh/sh.h (CLEAR_RATIO): Define.
12969         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
12970         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
12971
12972 2014-04-14  Richard Biener  <rguenther@suse.de>
12973
12974         PR middle-end/55022
12975         * fold-const.c (negate_expr_p): Don't negate directional rounding
12976         division.
12977         (fold_negate_expr): Likewise.
12978
12979 2014-04-14  Richard Biener  <rguenther@suse.de>
12980
12981         PR tree-optimization/59817
12982         PR tree-optimization/60453
12983         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
12984         recursion to catch all CHRECs in the scalar evolution and restrict
12985         the predicate for the remains appropriately.
12986
12987 2014-04-12  Catherine Moore  <clm@codesourcery.com>
12988
12989         * config/mips/constraints.md: Add new register constraint "kb".
12990         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
12991         (*movhi_internal): Likewise.
12992         (*movqi_internal): Likewise.
12993         * config/mips/mips.h (M16_STORE_REGS): New register class.
12994         (REG_CLASS_NAMES): Add M16_STORE_REGS.
12995         (REG_CLASS_CONTENTS): Likewise.
12996         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
12997
12998 2014-04-11  Tobias Burnus  <burnus@net-b.de>
12999
13000         PR c/60194
13001         * doc/invoke.texi (-Wformat-signedness): Document it.
13002         (Wformat=2): Mention that this enables -Wformat-signedness.
13003
13004 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13005
13006         * common/config/epiphany/epiphany-common.c
13007         (epiphany_option_optimization_table): Enable section anchors by
13008         default at -O1 or higher.
13009         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
13010         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
13011         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
13012         carries no extra cost.
13013         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
13014         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
13015         * config/epiphany/predicates.md (memclob_operand): New predicate.
13016         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
13017         Use memclob_operand predicate and X constraint for operand 3.
13018
13019 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13020
13021         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
13022         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
13023         its operands.
13024
13025 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13026
13027         PR rtl-optimization/60651
13028         * mode-switching.c (optimize_mode_switching): Make sure to emit
13029         sets of a lower numbered entity before sets of a higher numbered
13030         entity to a mode of the same or lower priority.
13031         When creating a seginfo for a basic block that starts with a code
13032         label, move the insertion point past the code label.
13033         (new_seginfo): Document and enforce requirement that
13034         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
13035         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
13036         * doc/tm.texi: Regenerate.
13037
13038 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13039
13040         PR target/60811
13041         * config/arc/arc.c (arc_save_restore): Fix assert typo.
13042
13043 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
13044
13045         * BASE-VER: Set to 4.10.0.
13046
13047 2014-04-11  Tobias Burnus  <burnus@net-b.de>
13048
13049         PR other/59055
13050         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
13051         * doc/gcc.texi (Service): Update description in the @menu
13052         * doc/invoke.texi (Option Summary): Remove misplaced and
13053         duplicated @menu.
13054
13055 2014-04-11  Steve Ellcey  <sellcey@mips.com>
13056             Jakub Jelinek  <jakub@redhat.com>
13057
13058         PR middle-end/60556
13059         * expr.c (convert_move): Use emit_store_flag_force instead of
13060         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
13061         argument to it.
13062
13063 2014-04-11  Richard Biener  <rguenther@suse.de>
13064
13065         PR middle-end/60797
13066         * varasm.c (assemble_alias): Avoid endless error reporting
13067         recursion by setting TREE_ASM_WRITTEN.
13068
13069 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13070
13071         * config/s390/s390.md: Add a splitter for NOT rtx.
13072
13073 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
13074
13075         PR rtl-optimization/60663
13076         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
13077
13078 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
13079             Jakub Jelinek  <jakub@redhat.com>
13080
13081         PR lto/60567
13082         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
13083         flag from decl_node to node.
13084
13085 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13086
13087         PR debug/60655
13088         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
13089         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
13090         ameliorating the cases where it can be.
13091
13092 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
13093
13094         Revert
13095         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
13096
13097         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13098         (loadsync_<mode>): Change mode.
13099         (load_quadpti, store_quadpti): New.
13100         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13101         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13102         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
13103
13104 2014-04-09  Cong Hou  <congh@google.com>
13105
13106         PR testsuite/60773
13107         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
13108         documentation.
13109
13110 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13111
13112         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
13113         instead of vnor to exploit possible fusion opportunity in the
13114         future.
13115         (altivec_expand_vec_perm_const_le): Likewise.
13116
13117 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
13118
13119         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13120         (loadsync_<mode>): Change mode.
13121         (load_quadpti, store_quadpti): New.
13122         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13123         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13124
13125 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
13126
13127         PR target/60763
13128         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
13129         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
13130         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
13131
13132 2014-04-08  Richard Biener  <rguenther@suse.de>
13133
13134         PR middle-end/60706
13135         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
13136         a 64bit widest int print double-int similar to on HWI64 hosts.
13137
13138 2014-04-08  Richard Biener  <rguenther@suse.de>
13139
13140         PR tree-optimization/60785
13141         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
13142         default defs properly.
13143
13144 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
13145
13146         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
13147         (Weffc++): Likewise.
13148
13149 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
13150
13151         * ipa-devirt.c (maybe_record_node): When node is not recorded,
13152         set completep to false rather than true.
13153
13154 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
13155
13156         PR target/60504
13157         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
13158         ARM_TARGET2_DWARF_FORMAT.
13159
13160 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
13161
13162         PR target/60609
13163         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
13164         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
13165         ADDR_DIFF_VEC.
13166
13167 2014-04-07  Richard Biener  <rguenther@suse.de>
13168
13169         PR tree-optimization/60766
13170         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
13171         (may_eliminate_iv): Convert cand_value_at result to desired type.
13172
13173 2014-04-07  Jason Merrill  <jason@redhat.com>
13174
13175         PR c++/60731
13176         * common.opt (-fno-gnu-unique): Add.
13177         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
13178
13179 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13180
13181         * haifa-sched.c: Fix outdated function reference and minor
13182         grammar errors in introductory comment.
13183
13184 2014-04-07  Richard Biener  <rguenther@suse.de>
13185
13186         PR middle-end/60750
13187         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
13188         for noreturn calls.
13189         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
13190
13191 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
13192
13193         PR debug/55794
13194         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
13195         size accounting for thunks.
13196         (pa_asm_output_mi_thunk): Use final_start_function() and
13197         final_end_function() to output function start and end directives.
13198
13199 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
13200
13201         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
13202         device specific ISA/ feature information. Remove short_sp and
13203         errata_skip ds.  Add avr_device_specific_features enum to have device
13204         specific info.
13205         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
13206         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
13207         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
13208         updated device specific info.
13209         * config/avr/avr-mcus.def: Merge device specific details to
13210         dev_attribute field.
13211         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
13212         errata_skip.
13213         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
13214         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
13215         assembler if RMW isa supported by current device.
13216         * config/avr/genmultilib.awk: Update as device info structure changed.
13217         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
13218
13219 2014-04-04  Cong Hou  <congh@google.com>
13220
13221         PR tree-optimization/60656
13222         * tree-vect-stmts.c (supportable_widening_operation):
13223         Fix a bug that elements in a vector with vect_used_by_reduction
13224         property are incorrectly reordered when the operation on it is not
13225         consistant with the one in reduction operation.
13226
13227 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
13228
13229         PR rtl-optimization/60155
13230         * gcse.c (record_set_data): New function.
13231         (single_set_gcse): New function.
13232         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
13233         (hoist_code): Likewise.
13234         (get_pressure_class_and_nregs): Likewise.
13235
13236 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
13237
13238         * explow.c (probe_stack_range): Emit a final optimization blockage.
13239
13240 2014-04-04  Anthony Green  <green@moxielogic.com>
13241
13242         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
13243         typos.
13244
13245 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
13246
13247         PR ipa/59626
13248         * lto-cgraph.c (input_overwrite_node): Check that partitioning
13249         flags are set only during streaming.
13250         * ipa.c (process_references, walk_polymorphic_call_targets,
13251         symtab_remove_unreachable_nodes): Drop bodies of always inline
13252         after early inlining.
13253         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
13254
13255 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
13256         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13257
13258         PR debug/60655
13259         * dwarf2out.c (const_ok_for_output_1): Reject expressions
13260         containing a NOT.
13261
13262 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13263
13264         PR bootstrap/60743
13265         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
13266         duration.
13267         (cortex_a53_fdivd): Likewise.
13268
13269 2014-04-04  Martin Jambor  <mjambor@suse.cz>
13270
13271         PR ipa/60640
13272         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
13273         Adjust all callers.
13274         * cgraph.c (clone_of_p): Also return true if thunks match.
13275         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
13276         cgraph_function_or_thunk_node and an obsolete comment.
13277         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
13278         file.
13279         (build_function_decl_skip_args): Likewise.
13280         (set_new_clone_decl_and_node_flags): New function.
13281         (duplicate_thunk_for_node): Likewise.
13282         (redirect_edge_duplicating_thunks): Likewise.
13283         (cgraph_clone_node): New parameter args_to_skip, pass it to
13284         redirect_edge_duplicating_thunks which is called instead of
13285         cgraph_redirect_edge_callee.
13286         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
13287         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
13288
13289 2014-04-04  Jeff Law  <law@redhat.com>
13290
13291         PR target/60657
13292         * config/arm/predicates.md (const_int_I_operand): New predicate.
13293         (const_int_M_operand): Similarly.
13294         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
13295         const_int_operand.
13296         (insv_t2, extv_reg, extzv_t2): Likewise.
13297         (load_multiple_with_writeback): Similarly for const_int_I_operand.
13298         (pop_multiple_with_writeback_and_return): Likewise.
13299         (vfp_pop_multiple_with_writeback): Likewise
13300
13301 2014-04-04  Richard Biener  <rguenther@suse.de>
13302
13303         PR ipa/60746
13304         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
13305         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
13306         non-GIMPLE_LABELs.
13307         * gimplify.h (gimple_add_tmp_var_fn): Declare.
13308         * gimplify.c (gimple_add_tmp_var_fn): New function.
13309         * gimple-expr.h (create_tmp_reg_fn): Declare.
13310         * gimple-expr.c (create_tmp_reg_fn): New function.
13311         * gimple-low.c (record_vars_into): Don't change cfun.
13312         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
13313         code generation without cfun.
13314
13315 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
13316
13317         PR bootstrap/60719
13318         * Makefile.in (install-driver): Fix shell scripting.
13319
13320 2014-04-03  Cong Hou  <congh@google.com>
13321
13322         PR tree-optimization/60505
13323         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
13324         threshold of number of iterations below which no vectorization
13325         will be done.
13326         * tree-vect-loop.c (new_loop_vec_info):
13327         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
13328         * tree-vect-loop.c (vect_analyze_loop_operations):
13329         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
13330         * tree-vect-loop.c (vect_transform_loop):
13331         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
13332         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
13333         of iterations of the loop and see if we should build the epilogue.
13334
13335 2014-04-03  Richard Biener  <rguenther@suse.de>
13336
13337         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
13338         (streamer_tree_cache_create): Adjust.
13339         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
13340         to allow optional nodes array.
13341         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
13342         (streamer_tree_cache_append): Likewise.
13343         (streamer_tree_cache_create): Create nodes array optionally
13344         as specified by parameter.
13345         * lto-streamer-out.c (create_output_block): Avoid maintaining
13346         the node array in the writer cache.
13347         (DFS_write_tree): Remove assertion.
13348         (produce_asm_for_decls): Free the out decl state hash table early.
13349         * lto-streamer-in.c (lto_data_in_create): Adjust for
13350         streamer_tree_cache_create prototype change.
13351
13352 2014-04-03  Richard Biener  <rguenther@suse.de>
13353
13354         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
13355         set TREE_CHAIN to NULL_TREE.
13356
13357 2014-04-03  Richard Biener  <rguenther@suse.de>
13358
13359         PR tree-optimization/60740
13360         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
13361         over all GIMPLE_COND operands.
13362
13363 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
13364
13365         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
13366         (Weffc++): Remove Scott's numbering, merge lists and reference
13367         Wnon-virtual-dtor.
13368
13369 2014-04-03  Nick Clifton  <nickc@redhat.com>
13370
13371         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
13372         properly.
13373
13374 2014-04-03  Martin Jambor  <mjambor@suse.cz>
13375
13376         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
13377         mention gcc_unreachable before failing.
13378         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
13379         removed symbols.
13380
13381 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
13382
13383         PR ipa/60659
13384         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
13385         inconsistent code and instead mark the context inconsistent.
13386         (possible_polymorphic_call_targets): For inconsistent contexts
13387         return empty complete list.
13388
13389 2014-04-02  Anthony Green  <green@moxielogic.com>
13390
13391         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
13392         (extendqisi2, extendhisi2): Define.
13393         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
13394         (WCHAR_TYPE): Change to unsigned int.
13395
13396 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13397
13398         PR tree-optimization/60733
13399         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
13400         insertion point for PHI candidates to be the end of the feeding
13401         block for the PHI argument.
13402
13403 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
13404
13405         PR rtl-optimization/60650
13406         * lra-constraints.c (process_alt_operands): Decrease reject for
13407         earlyclobber matching.
13408
13409 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13410
13411         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
13412
13413 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13414
13415         * config/spu/spu.c (pad_bb): Do not crash when the last
13416         insn is CODE_FOR_blockage.
13417
13418 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13419
13420         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
13421         lies outside the target mode.
13422
13423 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13424
13425         PR target/60735
13426         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
13427         software floating point or no floating point registers, do not
13428         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
13429         in GPRs that occurs after we tested for GPRs that would never be
13430         true.
13431
13432         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
13433         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
13434         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
13435         specifically allow DDmode, since that does not use the SPE SIMD
13436         instructions.
13437
13438 2014-04-02  Richard Biener  <rguenther@suse.de>
13439
13440         PR middle-end/60729
13441         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
13442         MODE_INTs.  Properly use negv_optab.
13443         (expand_abs): Likewise.
13444
13445 2014-04-02  Richard Biener  <rguenther@suse.de>
13446
13447         PR bootstrap/60719
13448         * Makefile.in (install-driver): Guard extra installs with special
13449         names properly.
13450
13451 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13452
13453         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13454         Document vec_vgbbd.
13455
13456 2014-04-01  Richard Henderson  <rth@redhat.com>
13457
13458         PR target/60704
13459         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
13460         alternative enabled before register allocation.
13461
13462 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
13463
13464         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
13465         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
13466         typo.
13467         (nios2_large_got_address): Remove unneeded 'sym' parameter.
13468         (nios2_got_address): Update nios2_large_got_address call site.
13469         (nios2_delegitimize_address): New function.
13470         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
13471         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
13472         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
13473
13474 2014-04-01  Martin Husemann  <martin@duskware.de>
13475
13476         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
13477         for -mabi=32.
13478
13479 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
13480
13481         PR rtl-optimization/60604
13482         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
13483         check from register_operand.
13484         (register_operand): Redefine in terms of general_operand.
13485         (nonmemory_operand): Use register_operand for the non-constant cases.
13486
13487 2014-04-01  Richard Biener  <rguenther@suse.de>
13488
13489         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
13490
13491 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13492
13493         * doc/invoke.texi (mapp-regs): Clarify.
13494
13495 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
13496
13497         * config/i386/avx512fintrin.h (__v32hi): Define type.
13498         (__v64qi): Likewise.
13499         (_mm512_set1_epi8): Define.
13500         (_mm512_set1_epi16): Define.
13501         (_mm512_set4_epi32): Define.
13502         (_mm512_set4_epi64): Define.
13503         (_mm512_set4_pd): Define.
13504         (_mm512_set4_ps): Define.
13505         (_mm512_setr4_epi64): Define.
13506         (_mm512_setr4_epi32): Define.
13507         (_mm512_setr4_pd): Define.
13508         (_mm512_setr4_ps): Define.
13509         (_mm512_setzero_epi32): Define.
13510
13511 2014-03-31  Martin Jambor  <mjambor@suse.cz>
13512
13513         PR middle-end/60647
13514         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
13515         callsite_arguments_match_p.  Updated all callers.  Also check types of
13516         corresponding formal parameters and actual arguments.
13517         (not_all_callers_have_enough_arguments_p) Renamed to
13518         some_callers_have_mismatched_arguments_p.
13519
13520 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
13521
13522         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
13523
13524 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
13525
13526         PR target/60034
13527         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
13528         section anchor.
13529
13530 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
13531
13532         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
13533         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
13534         Split out
13535         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
13536         Use FMAMODE_NOVF512 mode iterator.
13537         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
13538         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
13539         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
13540         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
13541         Split out
13542         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
13543         Use VF_128_256 mode iterator.
13544         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
13545         Ditto.
13546
13547 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
13548
13549         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
13550         static chain if needed.
13551
13552 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
13553
13554         PR target/60697
13555         * lra-constraints.c (index_part_to_reg): New.
13556         (process_address): Use it.
13557
13558 2014-03-27  Jeff Law  <law@redhat.com>
13559             Jakub Jelinek  <jakub@redhat.com>
13560
13561         PR target/60648
13562         * expr.c (do_tablejump): Use simplify_gen_binary rather than
13563         gen_rtx_{PLUS,MULT} to build up the address expression.
13564
13565         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
13566         creating non-canonical RTL.
13567
13568 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
13569
13570         PR ipa/60243
13571         * ipa-inline.c (want_inline_small_function_p): Short circuit large
13572         functions; reorganize to make cheap checks first.
13573         (inline_small_functions): Do not estimate growth when dumping;
13574         it is expensive.
13575         * ipa-inline.h (inline_summary): Add min_size.
13576         (growth_likely_positive): New function.
13577         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
13578         (set_cond_stmt_execution_predicate): Cleanup.
13579         (estimate_edge_size_and_time): Compute min_size.
13580         (estimate_calls_size_and_time): Likewise.
13581         (estimate_node_size_and_time): Likewise.
13582         (inline_update_overall_summary): Update min_size.
13583         (do_estimate_edge_time): Likewise.
13584         (do_estimate_edge_size): Update.
13585         (do_estimate_edge_hints): Update.
13586         (growth_likely_positive): New function.
13587
13588 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
13589
13590         PR target/60693
13591         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
13592         also if addr has VOIDmode.
13593
13594 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13595
13596         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
13597         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
13598         Declare extern.
13599         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
13600         instructions as well as AdvancedSIMD loads.
13601
13602 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13603
13604         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
13605         Use crypto_aese type.
13606         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
13607         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
13608         crypto_aese, crypto_aesmc.  Move to types.md.
13609         * config/arm/types.md (crypto_aes): Split into crypto_aese,
13610         crypto_aesmc.
13611         * config/arm/iterators.md (crypto_type): Likewise.
13612
13613 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
13614
13615         * cgraph.c: Include expr.h and tree-dfa.h.
13616         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
13617         remove LHS.
13618
13619 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
13620
13621         PR target/60675
13622         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
13623         regs from checking multi-reg pseudos.
13624
13625 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13626
13627         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
13628
13629 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13630
13631         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
13632         if it would clobber the stack pointer, even temporarily.
13633
13634 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13635
13636         * mode-switching.c: Make small adjustments to the top comment.
13637
13638 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13639
13640         * config/rs6000/constraints.md (wD constraint): New constraint to
13641         match the constant integer to get the top DImode/DFmode out of a
13642         vector in a VSX register.
13643
13644         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
13645         match the constant integer to get the top DImode/DFmode out of a
13646         vector in a VSX register.
13647
13648         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
13649         for ISA 2.07.
13650
13651         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13652         vbpermq builtins.
13653
13654         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
13655         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
13656
13657         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
13658         Optimize vec_extract of 64-bit values, where the value being
13659         extracted is in the top word, where we can use scalar
13660         instructions.  Add direct move and store support.  Combine the big
13661         endian/little endian vector select load support into a single insn.
13662         (vsx_extract_<mode>_internal1): Likewise.
13663         (vsx_extract_<mode>_internal2): Likewise.
13664         (vsx_extract_<mode>_load): Likewise.
13665         (vsx_extract_<mode>_store): Likewise.
13666         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
13667         combined into vsx_extract_<mode>_load.
13668         (vsx_extract_<mode>_one_le): Likewise.
13669
13670         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
13671         define the top 64-bit vector element.
13672
13673         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
13674         constraint.
13675
13676         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13677         Document vec_vbpermq builtin.
13678
13679         PR target/60672
13680         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
13681         enable use of xxsldwi and xxpermdi builtin functions.
13682         (vec_xxpermdi): Likewise.
13683
13684         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13685         Document use of vec_xxsldwi and vec_xxpermdi builtins.
13686
13687 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
13688
13689         PR rtl-optimization/60650
13690         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
13691         first_p.  Use it.
13692         (find_spills_for): New.
13693         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
13694         Spill all pseudos on the second iteration.
13695
13696 2014-03-27  Marek Polacek  <polacek@redhat.com>
13697
13698         PR c/50347
13699         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
13700         types.
13701
13702 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13703
13704         * config/s390/s390.c (s390_can_use_return_insn): Check for
13705         call-saved FPRs on 31 bit.
13706
13707 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
13708
13709         PR middle-end/60682
13710         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
13711         if they need regimplification, just drop them instead of
13712         calling gimple_regimplify_operands on them.
13713
13714 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13715
13716         PR target/60580
13717         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
13718         (aarch64_frame_pointer_required): Adjust logic.
13719         (aarch64_can_eliminate): Adjust logic.
13720         (aarch64_override_options_after_change): Adjust logic.
13721
13722 2014-03-27  Dehao Chen  <dehao@google.com>
13723
13724         * ipa-inline.c (early_inliner): Update node's inline info.
13725
13726 2014-03-26  Dehao Chen  <dehao@google.com>
13727
13728         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
13729         compiler inserted conditional jumps for NAN float check.
13730
13731 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
13732
13733         * ubsan.h (ubsan_create_data): Change second argument's type
13734         to const location_t *.
13735         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
13736         _("<unknown>").
13737         (ubsan_create_data): Change second argument to const location_t *PLOC.
13738         Create Loc field whenever PLOC is non-NULL.
13739         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
13740         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
13741         callers.
13742
13743         PR other/59545
13744         * real.c (real_to_integer2): Change type of low to UHWI.
13745
13746 2014-03-26  Tobias Burnus  <burnus@net-b.de>
13747
13748         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
13749         (CILK_SELF_SPECS): New define.
13750         (driver_self_specs): Use it.
13751
13752 2014-03-26  Richard Biener  <rguenther@suse.de>
13753
13754         * tree-pretty-print.c (percent_K_format): Implement special
13755         case for LTO and its stripped down BLOCK tree.
13756
13757 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
13758
13759         PR sanitizer/60636
13760         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
13761
13762         * tree-vrp.c (simplify_internal_call_using_ranges): If only
13763         one range is range_int_cst_p, but not both, at least optimize
13764         addition/subtraction of 0 and multiplication by 0 or 1.
13765         * gimple-fold.c (gimple_fold_call): Fold
13766         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
13767         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
13768         INTEGER_CSTs, try to fold at least x * 0 and y - y.
13769
13770 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13771
13772         PR rtl-optimization/60452
13773         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
13774         <case REG>: Return 1 for invalid offsets from the frame pointer.
13775
13776 2014-03-26  Marek Polacek  <polacek@redhat.com>
13777
13778         PR c/37428
13779         * doc/extend.texi (C Extensions): Mention variable-length arrays in
13780         a structure/union.
13781
13782 2014-03-26  Marek Polacek  <polacek@redhat.com>
13783
13784         PR c/39525
13785         * doc/extend.texi (Designated Inits): Describe what happens to omitted
13786         field members.
13787
13788 2014-03-26  Marek Polacek  <polacek@redhat.com>
13789
13790         PR other/59545
13791         * ira-color.c (update_conflict_hard_regno_costs): Perform the
13792         multiplication in unsigned type.
13793
13794 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
13795
13796         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
13797
13798 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
13799
13800         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
13801
13802 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
13803
13804         PR ipa/60315
13805         * cif-code.def (UNREACHABLE) New code.
13806         * ipa-inline.c (inline_small_functions): Skip edges to
13807         __builtlin_unreachable.
13808         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
13809         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
13810         predicate to __bulitin_unreachable.
13811         (set_cond_stmt_execution_predicate): Fix issue when
13812         invert_tree_comparison returns ERROR_MARK.
13813         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
13814         propagate to inline clones.
13815         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
13816         to unreachable.
13817         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
13818         * cgraphclones.c (cgraph_clone_node): If call destination is already
13819         ureachable, do not redirect it back.
13820         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
13821         unreachable.
13822
13823 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
13824
13825         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
13826         Do not modify inline clones.
13827
13828 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
13829
13830         * config/i386/i386.md (general_sext_operand): New mode attr.
13831         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
13832         don't generate (sign_extend (const_int)).
13833         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
13834         operands[2].  Use We constraint instead of <i> and
13835         <general_sext_operand> predicate instead of <general_operand>.
13836         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
13837         * config/i386/constraints.md (We): New constraint.
13838         * config/i386/predicates.md (x86_64_sext_operand,
13839         sext_operand): New predicates.
13840
13841 2014-03-25  Martin Jambor  <mjambor@suse.cz>
13842
13843         PR ipa/60600
13844         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
13845         inconsistent devirtualizations to __builtin_unreachable.
13846
13847 2014-03-25  Marek Polacek  <polacek@redhat.com>
13848
13849         PR c/35449
13850         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
13851
13852 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
13853
13854         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
13855         order of elements for big-endian.
13856
13857 2014-03-25  Richard Biener  <rguenther@suse.de>
13858
13859         PR middle-end/60635
13860         * gimplify-me.c (gimple_regimplify_operands): Update the
13861         re-gimplifed stmt.
13862
13863 2014-03-25  Martin Jambor  <mjambor@suse.cz>
13864
13865         PR ipa/59176
13866         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
13867         (lto_output_varpool_node): Likewise.
13868         (input_overwrite_node): Likewise.
13869         (input_varpool_node): Likewise.
13870
13871 2014-03-25  Richard Biener  <rguenther@suse.de>
13872
13873         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
13874         (run_gcc): Likewise.
13875
13876 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
13877
13878         * combine.c (simplify_compare_const): Add MODE argument.
13879         Handle mode_width 0 as very large mode_width.
13880         (try_combine, simplify_comparison): Adjust callers.
13881
13882         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
13883         type to avoid signed integer overflow.
13884         * explow.c (plus_constant): Likewise.
13885
13886 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13887
13888         * doc/generic.texi: Correct typos.
13889
13890 2014-03-24  Tobias Burnus  <burnus@net-b.de>
13891
13892         * doc/invoke.texi (-flto): Expand section about
13893         using static libraries with LTO.
13894
13895 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13896
13897         PR rtl-optimization/60501
13898         * optabs.def (addptr3_optab): New optab.
13899         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
13900         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
13901         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
13902
13903         * lra.c (emit_add3_insn): Use the addptr pattern if available.
13904
13905         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
13906
13907 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
13908
13909         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
13910         _mm512_set1_pd.
13911
13912         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
13913         (_mm256_undefined_ps): Define.
13914         (_mm256_undefined_pd): Define.
13915         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
13916         (_mm_undefined_pd): Define.
13917         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
13918         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
13919         (_mm512_undefined_ps): Define.
13920         (_mm512_undefined_pd): Define.
13921         Use _mm*_undefined_*.
13922         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
13923
13924 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
13925
13926         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
13927         (lshr_simd): DI mode added.
13928         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
13929         (aarch64_ushr_simddi): Likewise.
13930         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
13931         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
13932         (vshrd_n_u64): Likewise.
13933
13934 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13935
13936         * Makefile.in (s-macro_list): Depend on cc1.
13937
13938 2014-03-23  Teresa Johnson  <tejohnson@google.com>
13939
13940         * ipa-utils.c (ipa_print_order): Use specified dump file.
13941
13942 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
13943
13944         PR rtl-optimization/60601
13945         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
13946
13947         * gcc.c (eval_spec_function): Initialize save_growing_value.
13948
13949 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
13950
13951         PR sanitizer/60613
13952         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
13953         code == MINUS_EXPR, never swap op0 with op1.
13954
13955         * toplev.c (init_local_tick): Avoid signed integer multiplication
13956         overflow.
13957         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
13958         shift by first operand's bitsize.
13959
13960 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
13961
13962         PR target/60610
13963         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
13964         redefine to 1 or 0.
13965         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
13966         TARGET_ISA_64BIT_P(x).
13967
13968 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13969
13970         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
13971         pattern for vector nor instead of subtract from splat(-1).
13972         (altivec_expand_vec_perm_const_le): Likewise.
13973
13974 2014-03-21  Richard Henderson  <rth@twiddle.net>
13975
13976         PR target/60598
13977         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
13978         related insns after epilogue_completed.
13979
13980 2014-03-21  Martin Jambor  <mjambor@suse.cz>
13981
13982         PR ipa/59176
13983         * cgraph.h (symtab_node): New flag body_removed.
13984         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
13985         when removing bodies.
13986         * symtab.c (dump_symtab_base): Dump body_removed flag.
13987         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
13988         had their bodies removed.
13989
13990 2014-03-21  Martin Jambor  <mjambor@suse.cz>
13991
13992         PR ipa/60419
13993         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
13994         in the border.
13995
13996 2014-03-21  Richard Biener  <rguenther@suse.de>
13997
13998         PR tree-optimization/60577
13999         * tree-core.h (struct tree_base): Document nothrow_flag use
14000         in DECL_NONALIASED.
14001         * tree.h (DECL_NONALIASED): New.
14002         (may_be_aliased): Adjust.
14003         * coverage.c (build_var): Set DECL_NONALIASED.
14004
14005 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14006
14007         * expr.c (expand_expr_real_1): Remove outdated comment.
14008
14009 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
14010
14011         PR middle-end/60597
14012         * ira.c (adjust_cleared_regs): Call copy_rtx on
14013         *reg_equiv[REGNO (loc)].src_p before passing it to
14014         simplify_replace_fn_rtx.
14015
14016         PR target/60568
14017         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
14018         into CONST, put pic register as first operand of PLUS.  Use
14019         gen_const_mem for both 32-bit and 64-bit PIC got loads.
14020
14021 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14022
14023         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
14024
14025 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14026
14027         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
14028         around for store forwarding issue in the FPU on the UT699.
14029         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
14030         loads and operations if -mfix-ut699 is specified.
14031         (divtf3_hq): Tweak attribute.
14032         (sqrttf2_hq): Likewise.
14033
14034 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14035
14036         * calls.c (store_one_arg): Remove incorrect const qualification on the
14037         type of the temporary.
14038         * cfgexpand.c (expand_return): Likewise.
14039         * expr.c (expand_constructor): Likewise.
14040         (expand_expr_real_1): Likewise.
14041
14042 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14043
14044         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
14045         of parts.
14046
14047 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14048
14049         PR target/60039
14050         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
14051
14052 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
14053
14054         * config/arm/aarch-common-protos.h
14055         (alu_cost_table): Fix spelling of "extend".
14056         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
14057
14058 2014-03-19  Richard Biener  <rguenther@suse.de>
14059
14060         PR middle-end/60553
14061         * tree-core.h (tree_type_common): Re-order pointer members
14062         to reduce recursion depth during GC walks.
14063
14064 2014-03-19  Marek Polacek  <polacek@redhat.com>
14065
14066         PR sanitizer/60569
14067         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
14068         before accessing it.
14069
14070 2014-03-19  Richard Biener  <rguenther@suse.de>
14071
14072         PR lto/59543
14073         * lto-streamer-in.c (input_function): In WPA stage do not drop
14074         debug stmts.
14075
14076 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
14077
14078         PR tree-optimization/60559
14079         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
14080         with build_zero_cst assignment.
14081
14082 2014-03-18  Kai Tietz  <ktietz@redhat.com>
14083
14084         PR rtl-optimization/56356
14085         * sdbout.c (sdbout_parms): Verify that parms'
14086         incoming argument is valid.
14087         (sdbout_reg_parms): Likewise.
14088
14089 2014-03-18  Richard Henderson  <rth@redhat.com>
14090
14091         PR target/60562
14092         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
14093         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
14094         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
14095
14096 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
14097
14098         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
14099         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
14100         Italicize plugin event names in description.  Explain that
14101         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
14102         Remind that no GCC functions should be called after PLUGIN_FINISH.
14103         Explain what pragmas with expansion are.
14104
14105 2014-03-18  Martin Liska  <mliska@suse.cz>
14106
14107         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
14108         gimple call statement is update.
14109         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
14110         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
14111
14112 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
14113
14114         PR sanitizer/60557
14115         * ubsan.c (ubsan_instrument_unreachable): Call
14116         initialize_sanitizer_builtins.
14117         (ubsan_pass): Likewise.
14118
14119         PR sanitizer/60535
14120         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
14121         varpool_finalize_decl instead of rest_of_decl_compilation.
14122
14123 2014-03-18  Richard Biener  <rguenther@suse.de>
14124
14125         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
14126         by using bitmap_and_compl instead of bitmap_and_compl_into.
14127         (df_rd_transfer_function): Likewise.
14128
14129 2014-03-18  Richard Biener  <rguenther@suse.de>
14130
14131         * doc/lto.texi (fresolution): Fix typo.
14132
14133 2014-03-18  Richard Biener  <rguenther@suse.de>
14134
14135         * doc/invoke.texi (flto): Update for changes in 4.9.
14136
14137 2014-03-18  Richard Biener  <rguenther@suse.de>
14138
14139         * doc/loop.texi: Remove section on the removed lambda framework.
14140         Update loop docs with recent changes in preserving loop structure.
14141
14142 2014-03-18  Richard Biener  <rguenther@suse.de>
14143
14144         * doc/lto.texi (-fresolution): Document.
14145
14146 2014-03-18  Richard Biener  <rguenther@suse.de>
14147
14148         * doc/contrib.texi: Adjust my name.
14149
14150 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
14151
14152         PR ipa/58721
14153         * internal-fn.c: Include diagnostic-core.h.
14154         (expand_BUILTIN_EXPECT): New function.
14155         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
14156         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
14157         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
14158         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
14159         IFN_BUILTIN_EXPECT.
14160         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
14161         Revert 3 argument __builtin_expect code.
14162         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
14163         * gimple-fold.c (gimple_fold_call): Likewise.
14164         * tree.h (fold_builtin_expect): New prototype.
14165         * builtins.c (build_builtin_expect_predicate): Add predictor
14166         argument, if non-NULL, create 3 argument __builtin_expect.
14167         (fold_builtin_expect): No longer static.  Add ARG2 argument,
14168         pass it through to build_builtin_expect_predicate.
14169         (fold_builtin_2): Adjust caller.
14170         (fold_builtin_3): Handle BUILT_IN_EXPECT.
14171         * internal-fn.def (BUILTIN_EXPECT): New.
14172
14173 2014-03-18  Tobias Burnus  <burnus@net-b.de>
14174
14175         PR ipa/58721
14176         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
14177         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
14178         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
14179
14180 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
14181
14182         PR ipa/58721
14183         * predict.c (combine_predictions_for_bb): Fix up formatting.
14184         (expr_expected_value_1, expr_expected_value): Add predictor argument,
14185         fill what it points to if non-NULL.
14186         (tree_predict_by_opcode): Adjust caller, use the predictor.
14187         * predict.def (PRED_COMPARE_AND_SWAP): Add.
14188
14189 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
14190
14191         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
14192         proper constant for the store mode.
14193
14194 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
14195
14196         * symtab.c (change_decl_assembler_name): Fix transparent alias
14197         chain construction.
14198
14199 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
14200
14201         * config/aarch64/aarch64.c: Correct the comments about the
14202         aarch64 stack layout.
14203
14204 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
14205
14206         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
14207         check for GF_OMP_FOR_KIND_FOR.
14208
14209 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
14210
14211         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
14212         ymm and zmm register names.
14213
14214 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
14215
14216         PR target/60516
14217         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
14218         note creation for the 2010-08-31 changes.
14219
14220 2014-03-17  Marek Polacek  <polacek@redhat.com>
14221
14222         PR middle-end/60534
14223         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
14224         as -fno-tree-loop-vectorize.
14225         (expand_omp_simd): Likewise.
14226
14227 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
14228
14229         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
14230         (eligible_for_call_delay): New prototype.
14231         * config/sparc/sparc.c (tls_call_delay): Rename into...
14232         (eligible_for_call_delay): ...this.  Return false if the instruction
14233         cannot be put in the delay slot of a branch.
14234         (eligible_for_restore_insn): Simplify.
14235         (eligible_for_return_delay): Return false if the instruction cannot be
14236         put in the delay slot of a branch and simplify.
14237         (eligible_for_sibcall_delay): Return false if the instruction cannot be
14238         put in the delay slot of a branch.
14239         * config/sparc/sparc.md (fix_ut699): New attribute.
14240         (tls_call_delay): Delete.
14241         (in_call_delay): Reimplement.
14242         (eligible_for_sibcall_delay): Rename into...
14243         (in_sibcall_delay): ...this.
14244         (eligible_for_return_delay): Rename into...
14245         (in_return_delay): ...this.
14246         (in_branch_delay): Reimplement.
14247         (in_uncond_branch_delay): Delete.
14248         (in_annul_branch_delay): Delete.
14249
14250 2014-03-14  Richard Henderson  <rth@redhat.com>
14251
14252         PR target/60525
14253         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
14254         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
14255         (*floathi<X87MODEF>2_i387_with_temp): Remove.
14256         (floathi splitters): Remove.
14257         (float<SWI48x>xf2): New pattern.
14258         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
14259         code that tried to handle DImode for 32-bit, but which was excluded
14260         by the pattern's condition.  Drop allocation of stack temporary.
14261         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
14262         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
14263         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
14264         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
14265         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
14266         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
14267         (*float<SWI48><MODEF>2_sse_interunit): Remove.
14268         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
14269         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
14270         (*float<SWI48x><X87MODEF>2_i387): Remove.
14271         (all float _with_temp splitters): Remove.
14272         (*float<SWI48x><MODEF>2_i387): New pattern.
14273         (*float<SWI48><MODEF>2_sse): New pattern.
14274         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
14275         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
14276
14277 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
14278             Marek Polacek  <polacek@redhat.com>
14279
14280         PR middle-end/60484
14281         * common.opt (dump_base_name_prefixed): New Variable.
14282         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
14283         if x_dump_base_name_prefixed is already set, set it at the end.
14284
14285 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
14286
14287         PR rtl-optimization/60508
14288         * lra-constraints.c (get_reload_reg): Add new parameter
14289         in_subreg_p.
14290         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
14291         Pass the new parameter values.
14292
14293 2014-03-14  Richard Biener  <rguenther@suse.de>
14294
14295         * common.opt: Revert unintented changes from r205065.
14296         * opts.c: Likewise.
14297
14298 2014-03-14  Richard Biener  <rguenther@suse.de>
14299
14300         PR middle-end/60518
14301         * cfghooks.c (split_block): Properly adjust all loops the
14302         block was a latch of.
14303
14304 2014-03-14  Martin Jambor  <mjambor@suse.cz>
14305
14306         PR lto/60461
14307         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
14308         and simplify it.
14309
14310 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
14311
14312         PR target/59396
14313         * config/avr/avr.c (avr_set_current_function): Pass function name
14314         through default_strip_name_encoding before sanity checking instead
14315         of skipping the first char of the assembler name.
14316
14317 2014-03-13  Richard Henderson  <rth@redhat.com>
14318
14319         PR debug/60438
14320         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
14321         (ix86_force_to_memory, ix86_free_from_memory): Remove.
14322         * config/i386/i386-protos.h: Likewise.
14323         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
14324         in the expander instead of a splitter.
14325         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
14326         any possibility of requiring a memory.
14327         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
14328         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
14329         (fp branch splitters): Update for ix86_split_fp_branch.
14330         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
14331         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
14332         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
14333         (*fop_<MODEF>_2_i387): Remove f/r alternative.
14334         (*fop_<MODEF>_3_i387): Likewise.
14335         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
14336         (splitters for the fop_* register patterns): Remove.
14337         (fscalexf4_i387): Rename from *fscalexf4_i387.
14338         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
14339
14340 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
14341
14342         PR tree-optimization/59779
14343         * tree-dfa.c (get_ref_base_and_extent): Use double_int
14344         type for bitsize and maxsize instead of HOST_WIDE_INT.
14345
14346 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
14347
14348         PR rtl-optimization/57320
14349         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
14350         the CFG after thread_prologue_and_epilogue_insns.
14351
14352 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
14353
14354         PR rtl-optimization/57189
14355         * lra-constraints.c (process_alt_operands): Disfavor spilling
14356         vector pseudos.
14357
14358 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
14359
14360         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
14361
14362 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
14363
14364         PR tree-optimization/59025
14365         PR middle-end/60418
14366         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
14367         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
14368
14369 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
14370
14371         PR target/60486
14372         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
14373         calls of avr_out_plus_1.
14374
14375 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
14376
14377         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
14378         BB's single pred and update the father loop's latch info later.
14379
14380 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14381
14382         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
14383         (VEC_M): Likewise.
14384         (VEC_N): Likewise.
14385         (VEC_R): Likewise.
14386         (VEC_base): Likewise.
14387         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
14388         registers, we need to swap double words in little endian mode.
14389
14390         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
14391         to be a container mode for 128-bit integer operations added in ISA
14392         2.07.  Unlike TImode and PTImode, the preferred register set is
14393         the Altivec/VMX registers for the 128-bit operations.
14394
14395         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
14396         declarations.
14397         (rs6000_split_128bit_ok_p): Likewise.
14398
14399         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
14400         macros for creating ISA 2.07 normal and overloaded builtin
14401         functions with 3 arguments.
14402         (BU_P8V_OVERLOAD_3): Likewise.
14403         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
14404         for use as overloaded functions.
14405         (VPERM_1TI_UNS): Likewise.
14406         (VSEL_1TI): Likewise.
14407         (VSEL_1TI_UNS): Likewise.
14408         (ST_INTERNAL_1ti): Likewise.
14409         (LD_INTERNAL_1ti): Likewise.
14410         (XXSEL_1TI): Likewise.
14411         (XXSEL_1TI_UNS): Likewise.
14412         (VPERM_1TI): Likewise.
14413         (VPERM_1TI_UNS): Likewise.
14414         (XXPERMDI_1TI): Likewise.
14415         (SET_1TI): Likewise.
14416         (LXVD2X_V1TI): Likewise.
14417         (STXVD2X_V1TI): Likewise.
14418         (VEC_INIT_V1TI): Likewise.
14419         (VEC_SET_V1TI): Likewise.
14420         (VEC_EXT_V1TI): Likewise.
14421         (EQV_V1TI): Likewise.
14422         (NAND_V1TI): Likewise.
14423         (ORC_V1TI): Likewise.
14424         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
14425         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
14426         overloaded builtin.
14427         (VADDUQM): Likewise.
14428         (VSUBCUQ): Likewise.
14429         (VADDEUQM): Likewise.
14430         (VADDECUQ): Likewise.
14431         (VSUBEUQM): Likewise.
14432         (VSUBECUQ): Likewise.
14433
14434         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
14435         __int128_t and __uint128_t types.
14436         (__uint128_type): Likewise.
14437         (altivec_categorize_keyword): Add support for vector __int128_t,
14438         vector __uint128_t, vector __int128, and vector unsigned __int128
14439         as a container type for TImode operations that need to be done in
14440         VSX/Altivec registers.
14441         (rs6000_macro_to_expand): Likewise.
14442         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
14443         to support 128-bit integer instructions vaddcuq, vadduqm,
14444         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
14445         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
14446
14447         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
14448         for V1TImode, and set up preferences to use VSX/Altivec registers.
14449         Setup VSX reload handlers.
14450         (rs6000_debug_reg_global): Likewise.
14451         (rs6000_init_hard_regno_mode_ok): Likewise.
14452         (rs6000_preferred_simd_mode): Likewise.
14453         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
14454         (easy_altivec_constant): Likewise.
14455         (output_vec_const_move): Likewise.
14456         (rs6000_expand_vector_set): Convert V1TImode set and extract to
14457         simple move.
14458         (rs6000_expand_vector_extract): Likewise.
14459         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
14460         addressing.
14461         (rs6000_const_vec): Add support for V1TImode.
14462         (rs6000_emit_le_vsx_load): Swap double words when loading or
14463         storing TImode/V1TImode.
14464         (rs6000_emit_le_vsx_store): Likewise.
14465         (rs6000_emit_le_vsx_move): Likewise.
14466         (rs6000_emit_move): Add support for V1TImode.
14467         (altivec_expand_ld_builtin): Likewise.
14468         (altivec_expand_st_builtin): Likewise.
14469         (altivec_expand_vec_init_builtin): Likewise.
14470         (altivec_expand_builtin): Likewise.
14471         (rs6000_init_builtins): Add support for V1TImode type.  Add
14472         support for ISA 2.07 128-bit integer builtins.  Define type names
14473         for the VSX/Altivec vector types.
14474         (altivec_init_builtins): Add support for overloaded vector
14475         functions with V1TImode type.
14476         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
14477         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
14478         external function.
14479         (rs6000_split_128bit_ok_p): Likewise.
14480         (rs6000_handle_altivec_attribute): Create V1TImode from vector
14481         __int128_t and vector __uint128_t.
14482
14483         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
14484         and mode attributes.
14485         (VSX_M): Likewise.
14486         (VSX_M2): Likewise.
14487         (VSm): Likewise.
14488         (VSs): Likewise.
14489         (VSr): Likewise.
14490         (VSv): Likewise.
14491         (VS_scalar): Likewise.
14492         (VS_double): Likewise.
14493         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
14494
14495         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
14496         we support the ISA 2.07 128-bit integer arithmetic instructions.
14497         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
14498         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
14499         and TImode types for use with the builtin functions.
14500         (V1TI_type_node): Likewise.
14501         (unsigned_V1TI_type_node): Likewise.
14502         (intTI_type_internal_node): Likewise.
14503         (uintTI_type_internal_node): Likewise.
14504
14505         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
14506         128-bit builtin functions.
14507         (UNSPEC_VADDEUQM): Likewise.
14508         (UNSPEC_VADDECUQ): Likewise.
14509         (UNSPEC_VSUBCUQ): Likewise.
14510         (UNSPEC_VSUBEUQM): Likewise.
14511         (UNSPEC_VSUBECUQ): Likewise.
14512         (VM): Add V1TImode to vector mode iterators.
14513         (VM2): Likewise.
14514         (VI_unit): Likewise.
14515         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
14516         (altivec_vaddcuq): Likewise.
14517         (altivec_vsubuqm): Likewise.
14518         (altivec_vsubcuq): Likewise.
14519         (altivec_vaddeuqm): Likewise.
14520         (altivec_vaddecuq): Likewise.
14521         (altivec_vsubeuqm): Likewise.
14522         (altivec_vsubecuq): Likewise.
14523
14524         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
14525         mode iterators.
14526         (BOOL_128): Likewise.
14527         (BOOL_REGS_OUTPUT): Likewise.
14528         (BOOL_REGS_OP1): Likewise.
14529         (BOOL_REGS_OP2): Likewise.
14530         (BOOL_REGS_UNARY): Likewise.
14531         (BOOL_REGS_AND_CR0): Likewise.
14532
14533         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
14534         128-bit integer builtin support.
14535         (vec_vadduqm): Likewise.
14536         (vec_vaddecuq): Likewise.
14537         (vec_vaddeuqm): Likewise.
14538         (vec_vsubecuq): Likewise.
14539         (vec_vsubeuqm): Likewise.
14540         (vec_vsubcuq): Likewise.
14541         (vec_vsubuqm): Likewise.
14542
14543         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14544         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
14545         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
14546         128-bit integer add/subtract to ISA 2.07.
14547
14548 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
14549
14550         * config/arc/arc.c (arc_predicate_delay_insns):
14551         Fix third argument passed to conditionalize_nonjump.
14552
14553 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
14554
14555         * config/aarch64/aarch64-builtins.c
14556         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
14557         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
14558         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
14559         instead of __builtin_lfloor.
14560         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
14561
14562 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
14563
14564         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
14565         (tree_ssa_ifcombine_bb_1): New function.
14566         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
14567         is an empty forwarder block to then_bb or vice versa and then_bb
14568         and else_bb are effectively swapped.
14569
14570 2014-03-12  Christian Bruel  <christian.bruel@st.com>
14571
14572         PR target/60264
14573         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
14574         REG_CFA_DEF_CFA note.
14575         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
14576         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
14577
14578 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14579
14580         PR tree-optimization/60454
14581         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
14582
14583 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14584
14585         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
14586         Do not define target_cpu_default2 to generic.
14587         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
14588         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
14589         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
14590
14591 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
14592             Marc Glisse  <marc.glisse@inria.fr>
14593
14594         PR tree-optimization/60502
14595         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
14596         instead of build_low_bits_mask.
14597
14598 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
14599
14600         PR middle-end/60482
14601         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
14602         if there are multiple uses, but op doesn't live on E edge.
14603         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
14604         clobber stmts before __builtin_unreachable.
14605
14606 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
14607
14608         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
14609         hard_frame_pointer_rtx.
14610         * cse.c (cse_insn): Remove volatile check.
14611         * cselib.c (cselib_process_insn): Likewise.
14612         * dse.c (scan_insn): Likewise.
14613
14614 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14615
14616         * config/arc/arc.c (conditionalize_nonjump): New function,
14617         broken out of ...
14618         (arc_ifcvt): ... this.
14619         (arc_predicate_delay_insns): Use it.
14620
14621 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14622
14623         * config/arc/predicates.md (extend_operand): During/after reload,
14624         allow const_int_operand.
14625         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
14626         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
14627         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
14628         to "i".
14629         (umulsi3_highpart_i): Likewise.
14630
14631 2014-03-11  Richard Biener  <rguenther@suse.de>
14632
14633         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14634         Add asserts to guard possible wrong-code bugs.
14635
14636 2014-03-11  Richard Biener  <rguenther@suse.de>
14637
14638         PR tree-optimization/60429
14639         PR tree-optimization/60485
14640         * tree-ssa-structalias.c (set_union_with_increment): Properly
14641         take into account all fields that overlap the shifted vars.
14642         (do_sd_constraint): Likewise.
14643         (do_ds_constraint): Likewise.
14644         (get_constraint_for_ptr_offset): Likewise.
14645
14646 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
14647
14648         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
14649         (nios2_compute_frame_layout):
14650         Add calculation of cfun->machine->fp_save_offset.
14651         (nios2_expand_prologue): Correct setting of frame pointer register
14652         in prologue.
14653         (nios2_expand_epilogue): Update recovery of stack pointer from
14654         frame pointer accordingly.
14655         (nios2_initial_elimination_offset): Update calculation of offset
14656         for eliminating to HARD_FRAME_POINTER_REGNUM.
14657
14658 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
14659
14660         PR ipa/60457
14661         * ipa.c (symtab_remove_unreachable_nodes): Don't call
14662         cgraph_get_create_node on VAR_DECLs.
14663
14664 2014-03-10  Richard Biener  <rguenther@suse.de>
14665
14666         PR middle-end/60474
14667         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
14668
14669 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
14670
14671         * config/vms/vms.opt (vms_float_format): New variable.
14672
14673 2014-03-08  Tobias Burnus  <burnus@net-b.de>
14674
14675         * doc/invoke.texi (-fcilkplus): Update implementation status.
14676
14677 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
14678             Richard Biener  <rguenther@suse.de>
14679
14680         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
14681         consistently accross all TUs.
14682         (run_gcc): Enable -fshort-double automatically at link at link-time
14683         and disallow override.
14684
14685 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
14686
14687         PR target/58271
14688         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
14689         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
14690         if they can't be used.
14691
14692 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14693
14694         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
14695         for Solaris 11/x86 ld.
14696         * configure: Regenerate.
14697
14698 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14699
14700         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
14701         (LIB_TLS_SPEC): Save as ld_tls_libs.
14702         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
14703         (HAVE_AS_IX86_TLSLDM): New test.
14704         * configure, config.in: Regenerate.
14705         * config/i386/i386.c (legitimize_tls_address): Fall back to
14706         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
14707         cannot support TLS_MODEL_LOCAL_DYNAMIC.
14708         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
14709         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
14710
14711 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
14712
14713         * common.opt (fira-loop-pressure): Mark as optimization.
14714
14715 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
14716
14717         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
14718         an OpenMP mappable type.
14719
14720 2014-03-06  Matthias Klose  <doko@ubuntu.com>
14721
14722         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
14723         MULTILIB_OSDIRNAMES is not defined.
14724
14725 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
14726             Meador Inge  <meadori@codesourcery.com>
14727
14728         PR target/58595
14729         * config/arm/arm.c (arm_tls_symbol_p): Remove.
14730         (arm_legitimize_address): Call legitimize_tls_address for any
14731         arm_tls_referenced_p expression, handle constant addend.  Call it
14732         before testing for !TARGET_ARM.
14733         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
14734
14735 2014-03-06  Richard Biener  <rguenther@suse.de>
14736
14737         PR middle-end/60445
14738         PR lto/60424
14739         PR lto/60427
14740         Revert
14741         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
14742
14743         * tree-streamer.c (record_common_node): Assert we don't record
14744         nodes with type double.
14745         (preload_common_node): Skip type double, complex double and double
14746         pointer since it is now frontend dependent due to fshort-double option.
14747
14748 2014-03-06  Richard Biener  <rguenther@suse.de>
14749
14750         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
14751         or -fno-lto is specified and the linker has full plugin support.
14752         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
14753         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
14754         * lto-wrapper.c (merge_and_complain): Merge compile-time
14755         optimization levels.
14756         (run_gcc): And pass it through to the link options.
14757
14758 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
14759
14760         PR debug/60381
14761         Revert:
14762         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
14763         PR debug/59992
14764         * cselib.c (remove_useless_values): Skip to avoid quadratic
14765         behavior if the condition moved from...
14766         (cselib_process_insn): ... here holds.
14767
14768 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
14769
14770         PR plugins/59335
14771         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
14772         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
14773
14774         PR plugins/59335
14775         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
14776         (TM_H): Add x86-tune.def.
14777
14778 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14779
14780         * config/aarch64/aarch64.c (generic_tunings):
14781         Use cortexa57_extra_costs.
14782
14783 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
14784
14785         PR lto/60404
14786         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
14787         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
14788         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
14789         cost for in_lto_p.
14790
14791 2014-03-04  Heiher  <r@hev.cc>
14792
14793         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
14794         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
14795
14796 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
14797
14798         * config/i386/predicates.md (const2356_operand): Change to ...
14799         (const2367_operand): ... this.
14800         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
14801         const2367_operand.
14802         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
14803         (*avx512pf_scatterpf<mode>sf): Ditto.
14804         (avx512pf_scatterpf<mode>df): Ditto.
14805         (*avx512pf_scatterpf<mode>df_mask): Ditto.
14806         (*avx512pf_scatterpf<mode>df): Ditto.
14807         * config/i386/i386.c (ix86_expand_builtin): Update
14808         incorrect hint operand error message.
14809
14810 2014-03-04  Richard Biener  <rguenther@suse.de>
14811
14812         * lto-section-in.c (lto_get_section_data): Fix const cast.
14813
14814 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
14815
14816         * tree-streamer.c (record_common_node): Assert we don't record
14817         nodes with type double.
14818         (preload_common_node): Skip type double, complex double and double
14819         pointer since it is now frontend dependent due to fshort-double option.
14820
14821 2014-03-04  Richard Biener  <rguenther@suse.de>
14822
14823         PR lto/60405
14824         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
14825         (lto_input_toplevel_asms): Likewise.
14826         * lto-section-in.c (lto_get_section_data): Instead do it here
14827         for every section.
14828
14829 2014-03-04  Richard Biener  <rguenther@suse.de>
14830
14831         PR tree-optimization/60382
14832         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
14833         dead PHIs a reduction.
14834
14835 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
14836
14837         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
14838         hint value.
14839         (_mm_prefetch): Move out of GCC target("sse") pragma.
14840         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
14841         GCC target("prfchw") pragma.
14842         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
14843         for locality <= 2.
14844         * config/i386/i386.c (ix86_option_override_internal): Enable
14845         -mprfchw with -mprefetchwt1.
14846
14847 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
14848
14849         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
14850         Mark as varying.
14851
14852 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
14853
14854         * opts.h (CL_PCH_IGNORE): Define.
14855         * targhooks.c (option_affects_pch_p):
14856         Return false for options that have CL_PCH_IGNORE set.
14857         * opt-functions.awk: Process PchIgnore.
14858         * doc/options.texi: Document PchIgnore.
14859
14860         * config/arc/arc.opt (misize): Add PchIgnore property.
14861
14862 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14863
14864         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
14865         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
14866         constraint on constants to permit them being loaded into
14867         GENERAL_REGS or BASE_REGS.
14868
14869 2014-03-03  Nick Clifton  <nickc@redhat.com>
14870
14871         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
14872         anti-cacnonical alternatives.
14873         (negandhi3_real): New pattern.
14874         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
14875
14876 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14877
14878         * config/avr/avr-mcus.def: Remove atxmega16x1.
14879         * config/avr/avr-tables.opt: Regenerate.
14880         * config/avr/t-multilib: Regenerate.
14881         * doc/avr-mmcu.texi: Regenerate.
14882
14883 2014-03-03  Tobias Grosser  <tobias@grosser.es>
14884             Mircea Namolaru  <mircea.namolaru@inria.fr>
14885
14886         PR tree-optimization/58028
14887         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
14888         scalar dimensions.
14889
14890 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14891
14892         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
14893         not handled by recognizers.
14894
14895 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
14896
14897         PR middle-end/60175
14898         * function.c (expand_function_end): Don't emit
14899         clobber_return_register sequence if clobber_after is a BARRIER.
14900         * cfgexpand.c (construct_exit_block): Append instructions before
14901         return_label to prev_bb.
14902
14903 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14904
14905         * config/rs6000/constraints.md: Document reserved use of "wc".
14906
14907 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
14908
14909         PR ipa/60150
14910         * ipa.c (function_and_variable_visibility): When dissolving comdat
14911         group, also set all symbols to local.
14912
14913 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
14914
14915         PR ipa/60306
14916
14917         Revert:
14918         2013-12-14  Jan Hubicka  <jh@suse.cz>
14919         PR middle-end/58477
14920         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
14921
14922 2014-03-02  Jon Beniston  <jon@beniston.com>
14923
14924         PR bootstrap/48230
14925         PR bootstrap/50927
14926         PR bootstrap/52466
14927         PR target/46898
14928         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
14929           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
14930         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
14931         (simple_return, *simple_return): New patterns
14932         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
14933         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
14934
14935 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
14936
14937         * dwarf2out.c (gen_subprogram_die): Tidy.
14938
14939 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
14940
14941         PR target/60071
14942         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
14943         (*mov_t_msb_neg_negc): ... this new insn.
14944
14945 2014-02-28  Jason Merrill  <jason@redhat.com>
14946
14947         PR c++/58678
14948         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
14949         function.
14950
14951 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
14952
14953         PR c++/60314
14954         * dwarf2out.c (decltype_auto_die): New static.
14955         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
14956         (gen_type_die_with_usage): Handle 'decltype(auto)'.
14957         (is_cxx_auto): Likewise.
14958
14959 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
14960
14961         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
14962         we are not using general regs only.
14963
14964 2014-02-28  Richard Biener  <rguenther@suse.de>
14965
14966         PR target/60280
14967         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
14968         previous fix and only allow to remove trivial pre-headers
14969         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
14970         (remove_forwarder_block): Properly update the latch of a loop.
14971
14972 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
14973
14974         PR debug/59992
14975         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
14976         (cselib_preserved_hash_table): New.
14977         (preserve_constants_and_equivs): Move preserved vals to it.
14978         (cselib_find_slot): Look it up first.
14979         (cselib_init): Initialize it.
14980         (cselib_finish): Release it.
14981         (dump_cselib_table): Dump it.
14982
14983 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
14984
14985         PR debug/59992
14986         * cselib.c (remove_useless_values): Skip to avoid quadratic
14987         behavior if the condition moved from...
14988         (cselib_process_insn): ... here holds.
14989
14990 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
14991
14992         PR debug/57232
14993         * var-tracking.c (vt_initialize): Apply the same condition to
14994         preserve the CFA base value.
14995
14996 2014-02-28  Joey Ye  <joey.ye@arm.com>
14997
14998         PR target/PR60169
14999         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
15000         if reload in progress or completed.
15001
15002 2014-02-28  Tobias Burnus  <burnus@net-b.de>
15003
15004         PR middle-end/60147
15005         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
15006         NAMELIST_DECL.
15007
15008 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15009
15010         * doc/tm.texi.in (Condition Code Status): Update documention for
15011         relative locations of cc0-setter and cc0-user.
15012
15013 2014-02-27  Jeff Law  <law@redhat.com>
15014
15015         PR rtl-optimization/52714
15016         * combine.c (try_combine): When splitting an unrecognized PARALLEL
15017         into two independent simple sets, if I3 is a jump, ensure the
15018         pattern we place into I3 is a (set (pc) ...).
15019
15020 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
15021             Jeff Law  <law@redhat.com>
15022
15023         PR rtl-optimization/49847
15024         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
15025         are in different blocks.
15026         * doc/tm.texi (Condition Code Status): Update documention for
15027         relative locations of cc0-setter and cc0-user.
15028
15029 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
15030
15031         PR target/59222
15032         * lra.c (lra_emit_add): Check SUBREG too.
15033
15034 2014-02-27  Andreas Schwab  <schwab@suse.de>
15035
15036         * config/m68k/m68k.c (m68k_option_override): Disable
15037         -flive-range-shrinkage for classic m68k.
15038         (m68k_override_options_after_change): Likewise.
15039
15040 2014-02-27  Marek Polacek  <polacek@redhat.com>
15041
15042         PR middle-end/59223
15043         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
15044         -Wmaybe-uninitialized.
15045
15046 2014-02-27  Alan Modra  <amodra@gmail.com>
15047
15048         PR target/57936
15049         * reload1.c (emit_input_reload_insns): When reload_override_in,
15050         set old to rl->in_reg when rl->in_reg is a subreg.
15051
15052 2014-02-26  Richard Biener  <rguenther@suse.de>
15053
15054         PR bootstrap/60343
15055         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
15056
15057 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
15058
15059         * common/config/i386/predicates.md (const1256_operand): Remove.
15060         (const2356_operand): New.
15061         (const_1_to_2_operand): Remove.
15062         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
15063         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
15064         (*avx512pf_gatherpf<mode>sf): Ditto.
15065         (avx512pf_gatherpf<mode>df): Ditto.
15066         (*avx512pf_gatherpf<mode>df_mask): Ditto.
15067         (*avx512pf_gatherpf<mode>df): Ditto.
15068         (avx512pf_scatterpf<mode>sf): Ditto.
15069         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15070         (*avx512pf_scatterpf<mode>sf): Ditto.
15071         (avx512pf_scatterpf<mode>df): Ditto.
15072         (*avx512pf_scatterpf<mode>df_mask): Ditto.
15073         (*avx512pf_scatterpf<mode>df): Ditto.
15074         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
15075
15076 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
15077
15078         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
15079         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
15080         (_mm512_mask_testn_epi64_mask): Move to ...
15081         * config/i386/avx512cdintrin.h: Here.
15082         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
15083         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
15084         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
15085         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
15086         TARGET_AVX512F from TARGET_AVX512CD.
15087
15088 2014-02-26  Richard Biener  <rguenther@suse.de>
15089
15090         PR ipa/60327
15091         * ipa.c (walk_polymorphic_call_targets): Properly guard
15092         call to inline_update_overall_summary.
15093
15094 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
15095
15096         PR target/60280
15097         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
15098         and latches only if requested.  Fix latch if it is removed.
15099         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
15100         LOOPS_HAVE_PREHEADERS.
15101
15102 2014-02-25  Andrew Pinski  <apinski@cavium.com>
15103
15104         * builtins.c (expand_builtin_thread_pointer): Create a new target
15105         when the target is NULL.
15106
15107 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
15108
15109         PR rtl-optimization/60317
15110         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
15111         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
15112         * lra-assigns.c: Include params.h.
15113         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
15114         other reload pseudos considerations.
15115
15116 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15117
15118         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
15119         to use canonical form for nor<mode>3.
15120
15121 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15122
15123         PR target/55426
15124         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
15125         conversions.
15126
15127 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
15128
15129         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
15130         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
15131         (ix86_handle_option): Handle OPT_mprefetchwt1.
15132         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
15133         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15134         PREFETCHWT1 CPUID.
15135         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15136         OPTION_MASK_ISA_PREFETCHWT1.
15137         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
15138         (PTA_PREFETCHWT1): New.
15139         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
15140         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
15141         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
15142         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
15143         (*prefetch_avx512pf_<mode>_: Change into ...
15144         (*prefetch_prefetchwt1_<mode>: This.
15145         * config/i386/i386.opt (mprefetchwt1): New.
15146         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
15147         (_mm_prefetch): Handle intent to write.
15148         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
15149
15150 2014-02-25  Richard Biener  <rguenther@suse.de>
15151
15152         PR middle-end/60291
15153         * emit-rtl.c (mem_attrs_htab): Remove.
15154         (mem_attrs_htab_hash): Likewise.
15155         (mem_attrs_htab_eq): Likewise.
15156         (set_mem_attrs): Always allocate new mem-attrs when something changed.
15157         (init_emit_once): Do not allocate mem_attrs_htab.
15158
15159 2014-02-25  Richard Biener  <rguenther@suse.de>
15160
15161         PR lto/60319
15162         * lto-opts.c (lto_write_options): Output non-explicit conservative
15163         -fwrapv, -fno-trapv and -fno-strict-overflow.
15164         * lto-wrapper.c (merge_and_complain): Handle merging those options.
15165         (run_gcc): And pass them through.
15166
15167 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
15168
15169         * sel-sched.c (calculate_new_fences): New parameter ptime.
15170         Calculate it as a maximum over all fence cycles.
15171         (sel_sched_region_2): Adjust the call to calculate_new_fences.
15172         Print the final schedule timing when sched_verbose.
15173
15174 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
15175
15176         PR rtl-optimization/60292
15177         * sel-sched.c (fill_vec_av_set): Do not reset target availability
15178         bit fot the fence instruction.
15179
15180 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
15181
15182         * calls.h: Fix typo in comment.
15183
15184 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
15185
15186         * config/pa/pa.c (pa_output_move_double): Don't valididate when
15187         adjusting offsetable addresses.
15188
15189 2014-02-24  Guozhi Wei  <carrot@google.com>
15190
15191         * sparseset.h (sparseset_pop): Fix the wrong index.
15192
15193 2014-02-24  Walter Lee  <walt@tilera.com>
15194
15195         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
15196         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
15197         triplet.
15198         * common/config/tilegx/tilegx-common.c
15199         (TARGET_DEFAULT_TARGET_FLAGS): Define.
15200         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
15201         (LINK_SPEC): Ditto.
15202         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
15203         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
15204         (tilegx_gimplify_va_arg_expr): Handle big endian.
15205         (tilegx_expand_unaligned_load): Ditto.
15206         (tilegx_expand_unaligned_store): Ditto.
15207         (TARGET_RETURN_IN_MSB): New.
15208         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
15209         (TARGET_ENDIAN_DEFAULT): New.
15210         (TARGET_BIG_ENDIAN): Handle big endian.
15211         (BYTES_BIG_ENDIAN): Ditto.
15212         (WORDS_BIG_ENDIAN): Ditto.
15213         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
15214         (ENDIAN_SPEC): New.
15215         (EXTRA_SPECS): New.
15216         * config/tilegx/tilegx.md (extv): Handle big endian.
15217         (extzv): Ditto.
15218         (insn_st<n>): Ditto.
15219         (insn_st<n>_add<bitsuffix>): Ditto.
15220         (insn_stnt<n>): Ditto.
15221         (insn_stnt<n>_add<bitsuffix>):Ditto.
15222         (vec_interleave_highv8qi): Handle big endian.
15223         (vec_interleave_highv8qi_be): New.
15224         (vec_interleave_highv8qi_le): New.
15225         (insn_v1int_h): Handle big endian.
15226         (vec_interleave_lowv8qi): Handle big endian.
15227         (vec_interleave_lowv8qi_be): New.
15228         (vec_interleave_lowv8qi_le): New.
15229         (insn_v1int_l): Handle big endian.
15230         (vec_interleave_highv4hi): Handle big endian.
15231         (vec_interleave_highv4hi_be): New.
15232         (vec_interleave_highv4hi_le): New.
15233         (insn_v2int_h): Handle big endian.
15234         (vec_interleave_lowv4hi): Handle big endian.
15235         (vec_interleave_lowv4hi_be): New.
15236         (vec_interleave_lowv4hi_le): New.
15237         (insn_v2int_l): Handle big endian.
15238         (vec_interleave_highv2si): Handle big endian.
15239         (vec_interleave_highv2si_be): New.
15240         (vec_interleave_highv2si_le): New.
15241         (insn_v4int_h): Handle big endian.
15242         (vec_interleave_lowv2si): Handle big endian.
15243         (vec_interleave_lowv2si_be): New.
15244         (vec_interleave_lowv2si_le): New.
15245         (insn_v4int_l): Handle big endian.
15246         * config/tilegx/tilegx.opt (mbig-endian): New option.
15247         (mlittle-endian): New option.
15248         * doc/install.texi: Document tilegxbe-linux.
15249         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
15250
15251 2014-02-24  Martin Jambor  <mjambor@suse.cz>
15252
15253         PR ipa/60266
15254         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
15255         there are no parameter descriptors.
15256
15257 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
15258
15259         PR rtl-optimization/60268
15260         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
15261         initialization to ...
15262         (sched_rgn_init): ... here.
15263         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
15264
15265 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
15266
15267         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
15268         names.
15269
15270 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
15271
15272         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
15273         definition.
15274
15275 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
15276
15277         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
15278         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
15279
15280 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
15281
15282         * config/microblaze/predicates.md: Add cmp_op predicate.
15283         * config/microblaze/microblaze.md: Add branch_compare instruction
15284         which uses cmp_op predicate and emits cmp insn before branch.
15285         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
15286         to microblaze_expand_conditional_branch and consolidate logic.
15287         (microblaze_expand_conditional_branch): emit branch_compare
15288         insn instead of handling cmp op separate from branch insn.
15289
15290 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15291
15292         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
15293         to permit subregs.
15294
15295 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15296
15297         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
15298         define_insn with define_expand and new define_insn
15299         *altivec_lve<VI_char>x_internal.
15300         (altivec_stve<VI_char>x): Replace define_insn with define_expand
15301         and new define_insn *altivec_stve<VI_char>x_internal.
15302         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
15303         prototype.
15304         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
15305         lve*x built-ins.
15306         (altivec_expand_stvex_be): New function.
15307
15308 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
15309
15310         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
15311         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
15312         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
15313         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
15314
15315 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
15316
15317         PR target/60298
15318         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
15319         instead of emit_move_insn.
15320
15321 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15322
15323         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
15324         vspltw with vsldoi.
15325         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
15326         gen_altivec_vsumsws.
15327
15328 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15329
15330         * config/rs6000/altivec.md (altivec_lvxl): Rename as
15331         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
15332         (altivec_lvxl_<mode>): New define_expand incorporating
15333         -maltivec=be semantics where needed.
15334         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
15335         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
15336         semantics where needed.
15337         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
15338         (altivec_stvx_<mode>): New define_expand incorporating
15339         -maltivec=be semantics where needed.
15340         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
15341         VM2 iterator instead of V4SI.
15342         (altivec_stvxl_<mode>): New define_expand incorporating
15343         -maltivec=be semantics where needed.
15344         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
15345         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
15346         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
15347         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
15348         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
15349         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
15350         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
15351         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
15352         ALTIVEC_BUILTIN_STVXL.
15353         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
15354         (altivec_expand_stvx_be): Likewise.
15355         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
15356         (altivec_expand_lvx_be): Likewise.
15357         (altivec_expand_stvx_be): Likewise.
15358         (altivec_expand_builtin): Add cases for
15359         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
15360         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
15361         (altivec_init_builtins): Add definitions for
15362         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
15363         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
15364
15365 2014-02-21  Catherine Moore  <clm@codesourcery.com>
15366
15367         * doc/invoke.texi (mvirt, mno-virt): Document.
15368         * config/mips/mips.opt (mvirt): New option.
15369         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
15370
15371 2014-02-21  Richard Biener  <rguenther@suse.de>
15372
15373         PR tree-optimization/60276
15374         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
15375         (STMT_VINFO_MIN_NEG_DIST): New macro.
15376         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
15377         STMT_VINFO_MIN_NEG_DIST.
15378         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
15379         made for negative dependence distances still hold.
15380
15381 2014-02-21  Richard Biener  <rguenther@suse.de>
15382
15383         PR middle-end/60291
15384         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
15385         DECL_INITIAL for globals not in the current function context.
15386
15387 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
15388
15389         PR tree-optimization/56490
15390         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
15391         * tree-ssa-uninit.c: Include params.h.
15392         (compute_control_dep_chain): Add num_calls argument, return false
15393         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
15394         num_calls to recursive call.
15395         (find_predicates): Change dep_chain into normal array,
15396         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
15397         variable and adjust compute_control_dep_chain caller.
15398         (find_def_preds): Likewise.
15399
15400 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
15401
15402         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
15403         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
15404
15405 2014-02-21  Nick Clifton  <nickc@redhat.com>
15406
15407         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
15408         (pushhi1): Likewise.
15409         (popqi1): Add mode to pre_dec.
15410         (pophi1): Likewise.
15411
15412 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
15413
15414         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
15415         mode for mask of V8SFmode permutation.
15416
15417 2014-02-20  Richard Henderson  <rth@redhat.com>
15418
15419         PR c++/60272
15420         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
15421         a new pseudo for OLDVAL.
15422
15423 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
15424
15425         PR target/57896
15426         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
15427         gen_reg_rtx if d->testing_p.
15428         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
15429         if d->testing_p and we will certainly return true.
15430         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
15431         if d->testing_p.
15432
15433 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
15434
15435         * emit-rtl.c (gen_reg_rtx): Assert that
15436         crtl->emit.regno_pointer_align_length is non-zero.
15437
15438 2014-02-20  Richard Henderson  <rth@redhat.com>
15439
15440         PR c++/60272
15441         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
15442         on failure the store back into EXPECT.
15443
15444 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
15445             Sandra Loosemore  <sandra@codesourcery.com>
15446
15447         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
15448         * config/nios2/nios2.c (nios2_function_profiler): Add
15449         -fPIC (flag_pic == 2) support.
15450         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
15451         (nios2_large_offset_p): New function.
15452         (nios2_unspec_reloc_p): Move up position, update to use
15453         nios2_large_offset_p.
15454         (nios2_unspec_address): Remove function.
15455         (nios2_unspec_offset): New function.
15456         (nios2_large_got_address): New function.
15457         (nios2_got_address): Add large offset support.
15458         (nios2_legitimize_tls_address): Update usage of removed and new
15459         functions.
15460         (nios2_symbol_binds_local_p): New function.
15461         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
15462         (nios2_legitimize_address): Update to use nios2_large_offset_p.
15463         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
15464         (nios2_print_operand): Merge H/L processing, add hiadj/lo
15465         processing for (const (unspec ...)).
15466         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
15467
15468 2014-02-20  Richard Biener  <rguenther@suse.de>
15469
15470         * tree-cfg.c (replace_uses_by): Mark altered BBs before
15471         doing the substitution.
15472         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
15473
15474 2014-02-20  Martin Jambor  <mjambor@suse.cz>
15475
15476         PR ipa/55260
15477         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
15478         info when checking whether lattices are bottom.
15479
15480 2014-02-20  Richard Biener  <rguenther@suse.de>
15481
15482         PR middle-end/60221
15483         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
15484         regions at -O0.
15485
15486 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
15487
15488         PR ipa/58555
15489         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
15490         parameter specifying the scaling.
15491         (inline_call): Update.
15492         (want_inline_recursively): Guard division by zero.
15493         (recursive_inlining): Update.
15494         * ipa-inline.h (clone_inlined_nodes): Update.
15495
15496 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
15497
15498         PR target/60204
15499         * config/i386/i386.c (classify_argument): Pass structures of size
15500         64 bytes or less in register.
15501
15502 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
15503             Kirill Yukhin  <kirill.yukhin@intel.com>
15504
15505         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
15506         (_mm_rcp28_round_ss): Ditto.
15507         (_mm_rsqrt28_round_sd): Ditto.
15508         (_mm_rsqrt28_round_ss): Ditto.
15509         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
15510         (_mm_rcp14_round_ss): Ditto.
15511         (_mm_rsqrt14_round_sd): Ditto.
15512         (_mm_rsqrt14_round_ss): Ditto.
15513         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
15514         the first input operand, get rid of match_dup.
15515         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
15516         attribute to sse.
15517         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
15518         Ditto.
15519         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
15520         operand as the first input operand, set type attribute.
15521         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
15522         Set type attribute.
15523         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
15524         operand as the first input operand, set type attribute.
15525
15526 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15527
15528         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
15529         bit of zero.
15530
15531 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
15532
15533         PR target/60207
15534         * config/i386/i386.c (construct_container): Remove TFmode check
15535         for X86_64_INTEGER_CLASS.
15536
15537 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
15538
15539         PR target/59794
15540         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
15541         only when -Wpsabi is enabled.
15542
15543 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
15544
15545          PR target/59799
15546         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
15547         passing arrays in registers are the same as for structs, so remove the
15548         special case for them.
15549
15550 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
15551
15552         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
15553         destination type, extract only the valid bits if the source type is not
15554         integral and has a different mode.
15555
15556 2014-02-19  Richard Biener  <rguenther@suse.de>
15557
15558         PR ipa/60243
15559         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
15560         for all calls.
15561
15562 2014-02-19  Richard Biener  <rguenther@suse.de>
15563
15564         PR ipa/60243
15565         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
15566         (ipa_modify_call_arguments): Emit an argument load explicitely and
15567         preserve virtual SSA form there and for the replacement call.
15568         Do not update SSA form nor free dominance info.
15569
15570 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
15571
15572         * ipa.c (function_and_variable_visibility): Also clear WEAK
15573         flag when disolving COMDAT_GROUP.
15574
15575 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
15576
15577         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
15578         * ipa-prop.c (ipa_set_jf_known_type): Return early when
15579         not devirtualizing.
15580         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
15581         do more sanity checks.
15582         (detect_type_change): Return true when giving up early.
15583         (compute_complex_assign_jump_func): Fix type parameter of
15584         ipa_set_ancestor_jf.
15585         (compute_complex_ancestor_jump_func): Likewise.
15586         (update_jump_functions_after_inlining): Fix updating of
15587         ancestor function.
15588         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
15589
15590 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
15591
15592         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
15593         inline clones when edge disappears.
15594
15595 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15596
15597         PR target/60203
15598         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
15599         Split 64-bit moves into 2 patterns.  Do not allow the use of
15600         direct move for TDmode in little endian, since the decimal value
15601         has little endian bytes within a word, but the 64-bit pieces are
15602         ordered in a big endian fashion, and normal subreg's of TDmode are
15603         not allowed.
15604         (mov<mode>_64bit_dm): Likewise.
15605         (movtd_64bit_nodm): Likewise.
15606
15607 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
15608
15609         PR tree-optimization/60174
15610         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
15611         statement of an SSA_NAME that occurs in an abnormal PHI node.
15612
15613 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
15614
15615         PR sanitizer/60142
15616         * final.c (SEEN_BB): Remove.
15617         (SEEN_NOTE, SEEN_EMITTED): Renumber.
15618         (final_scan_insn): Don't force_source_line on second
15619         NOTE_INSN_BASIC_BLOCK.
15620
15621 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
15622
15623         PR target/60205
15624         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
15625         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
15626         (type_natural_mode): Warn ABI change when %zmm register is not
15627         available for AVX512F vector value passing.
15628
15629 2014-02-18  Kai Tietz  <ktietz@redhat.com>
15630
15631         PR target/60193
15632         * config/i386/i386.c (ix86_expand_prologue): Use value in
15633         rax register as displacement when restoring %r10 or %rax.
15634         Fix wrong offset when restoring both registers.
15635
15636 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
15637
15638         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
15639         assertion with conditional return.
15640
15641 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
15642             Uros Bizjak  <ubizjak@gmail.com>
15643
15644         PR driver/60233
15645         * config/i386/driver-i386.c (host_detect_local_cpu): If
15646         YMM state is not saved by the OS, also clear has_f16c.  Move
15647         CPUID 0x80000001 handling before YMM state saving checking.
15648
15649 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
15650
15651         PR rtl-optimization/58960
15652         * haifa-sched.c (alloc_global_sched_pressure_data): New,
15653         factored out from ...
15654         (sched_init): ... here.
15655         (free_global_sched_pressure_data): New, factored out from ...
15656         (sched_finish): ... here.
15657         * sched-int.h (free_global_sched_pressure_data): Declare.
15658         * sched-rgn.c (nr_regions_initial): New static global.
15659         (haifa_find_rgns): Initialize it.
15660         (schedule_region): Disable sched-pressure for the newly
15661         generated regions.
15662
15663 2014-02-17  Richard Biener  <rguenther@suse.de>
15664
15665         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
15666         release SSA defs of pattern stmts.
15667
15668 2014-02-17  Richard Biener  <rguenther@suse.de>
15669
15670         * tree-inline.c (expand_call_inline): Release the virtual
15671         operand defined by the call we are about to inline.
15672
15673 2014-02-17  Richard Biener  <rguenther@suse.de>
15674
15675         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
15676
15677 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
15678             Ilya Tocar  <ilya.tocar@intel.com>
15679
15680         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
15681         arguments order in builtin.
15682         (_mm512_permutexvar_epi64): Ditto.
15683         (_mm512_mask_permutexvar_epi64): Ditto
15684         (_mm512_maskz_permutexvar_epi32): Ditto
15685         (_mm512_permutexvar_epi32): Ditto
15686         (_mm512_mask_permutexvar_epi32): Ditto
15687
15688 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15689
15690         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
15691         (p8_vmrgow): Likewise.
15692
15693 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15694
15695         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
15696         endian targets.
15697
15698 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
15699
15700         PR target/60203
15701         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
15702         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
15703         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
15704         using direct move instructions on ISA 2.07.  Also adjust
15705         instruction length for 64-bit.
15706         (mov<mode>_64bit, TFmode/TDmode): Likewise.
15707         (mov<mode>_32bit, TFmode/TDmode): Likewise.
15708
15709 2014-02-15  Alan Modra  <amodra@gmail.com>
15710
15711         PR target/58675
15712         PR target/57935
15713         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
15714         find_replacement on parts of insn rtl that might be reloaded.
15715
15716 2014-02-15  Richard Biener  <rguenther@suse.de>
15717
15718         PR tree-optimization/60183
15719         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
15720         (tree_ssa_phiprop): Calculate and free post-dominators.
15721
15722 2014-02-14  Jeff Law  <law@redhat.com>
15723
15724         PR rtl-optimization/60131
15725         * ree.c (get_extended_src_reg): New function.
15726         (combine_reaching_defs): Use it rather than assuming location of REG.
15727         (find_and_remove_re): Verify first operand of extension is
15728         a REG before adding the insns to the copy list.
15729
15730 2014-02-14  Roland McGrath  <mcgrathr@google.com>
15731
15732         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
15733         * configure: Regenerated.
15734         * config.in: Regenerated.
15735         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
15736         instead of ASM_SHORT.
15737
15738 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
15739             Richard Earnshaw  <rearnsha@arm.com>
15740
15741         PR rtl-optimization/59535
15742         * lra-constraints.c (process_alt_operands): Encourage alternative
15743         when unassigned pseudo class is superset of the alternative class.
15744         (inherit_reload_reg): Don't inherit when optimizing for code size.
15745         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
15746         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
15747         modes not less than 4 for Thumb1.
15748
15749 2014-02-14  Kyle McMartin  <kyle@redhat.com>
15750
15751         PR pch/60010
15752         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
15753
15754 2014-02-14  Richard Biener  <rguenther@suse.de>
15755
15756         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
15757         (get_frame_arg): Drop the assert with langhook types_compatible_p.
15758         Do not strip INDIRECT_REFs.
15759
15760 2014-02-14  Richard Biener  <rguenther@suse.de>
15761
15762         PR lto/60179
15763         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
15764         DECL_FUNCTION_SPECIFIC_TARGET.
15765         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
15766         * tree-streamer-out.c (pack_ts_target_option): Remove.
15767         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
15768         (write_ts_function_decl_tree_pointers): Do not stream
15769         DECL_FUNCTION_SPECIFIC_TARGET.
15770         * tree-streamer-in.c (unpack_ts_target_option): Remove.
15771         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
15772         (lto_input_ts_function_decl_tree_pointers): Do not stream
15773         DECL_FUNCTION_SPECIFIC_TARGET.
15774
15775 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
15776
15777         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
15778         (get_initial_def_for_induction, vectorizable_induction): Ignore
15779         debug stmts when looking for exit_phi.
15780         (vectorizable_live_operation): Fix up condition.
15781
15782 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
15783
15784         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
15785         nreverse() because it changes the content of original tree list.
15786
15787 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
15788
15789         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
15790         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
15791
15792 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
15793
15794         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
15795         GNU coding standards.
15796
15797 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
15798
15799         PR debug/60152
15800         * dwarf2out.c (gen_subprogram_die): Don't call
15801         add_calling_convention_attribute if subr_die is old_die.
15802
15803 2014-02-13  Sharad Singhai  <singhai@google.com>
15804
15805         * doc/optinfo.texi: Fix order of nodes.
15806
15807 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
15808
15809         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
15810         operands[2], not operands[3].
15811
15812 2014-02-13  Richard Biener  <rguenther@suse.de>
15813
15814         PR bootstrap/59878
15815         * doc/install.texi (ISL): Update recommended version to 0.12.2,
15816         mention the possibility of an in-tree build.
15817         (CLooG): Update recommended version to 0.18.1, mention the
15818         possibility of an in-tree build and clarify that the ISL
15819         bundled with CLooG does not work.
15820
15821 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
15822
15823         PR target/43546
15824         * expr.c (compress_float_constant): If x is a hard register,
15825         extend into a pseudo and then move to x.
15826
15827 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15828
15829         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
15830         caused by bad second argument to warning_at() with -mhotpatch and
15831         nested functions (e.g. with gfortran).
15832
15833 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
15834
15835         * opts.c (option_name): Remove "enabled by default" rider.
15836
15837 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
15838
15839         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
15840
15841 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
15842             Uros Bizjak  <ubizjak@gmail.com>
15843
15844         PR target/60151
15845         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
15846         * configure: Regenerated.
15847
15848 2014-02-12  Richard Biener  <rguenther@suse.de>
15849
15850         * vec.c (vec_prefix::calculate_allocation): Move as
15851         inline variant to vec.h.
15852         (vec_prefix::calculate_allocation_1): New out-of-line version.
15853         * vec.h (vec_prefix::calculate_allocation_1): Declare.
15854         (vec_prefix::m_has_auto_buf): Rename to ...
15855         (vec_prefix::m_using_auto_storage): ... this.
15856         (vec_prefix::calculate_allocation): Inline the easy cases
15857         and dispatch to calculate_allocation_1 which doesn't need the
15858         prefix address.
15859         (va_heap::reserve): Use gcc_checking_assert.
15860         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
15861         m_using_auto_storage.
15862         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
15863         member and adjust.
15864         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
15865         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
15866         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
15867
15868 2014-02-12  Richard Biener  <rguenther@suse.de>
15869
15870         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
15871         when we found a dependence.
15872
15873 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
15874
15875         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
15876         common code...
15877         (maybe_fold_stmt): ... into this new function.
15878         * omp-low.c (lower_omp): Update comment.
15879
15880         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
15881         last use.
15882
15883         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
15884         dereference.
15885
15886 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
15887
15888         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
15889         identifiers in comments.
15890         (cortexa53_extra_costs): Likewise.
15891         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
15892         (cortexa7_extra_costs): Likewise.
15893         (cortexa12_extra_costs): Likewise.
15894         (cortexa15_extra_costs): Likewise.
15895         (v7m_extra_costs): Likewise.
15896
15897 2014-02-12  Richard Biener  <rguenther@suse.de>
15898
15899         PR middle-end/60092
15900         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
15901         of posix_memalign being successful.
15902         (lower_stmt): Restrict lowering of posix_memalign to when
15903         -ftree-bit-ccp is enabled.
15904
15905 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15906
15907         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
15908         arg_loc.
15909         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15910
15911 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15912
15913         PR rtl-optimization/60116
15914         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
15915         other_insn once the combination has been validated.
15916
15917 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
15918
15919         PR lto/59468
15920         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
15921         and wrapper.
15922         * ipa-devirt.c: Include demangle.h
15923         (odr_violation_reported): New static variable.
15924         (add_type_duplicate): Update odr_violations.
15925         (maybe_record_node): Add completep parameter; update it.
15926         (record_target_from_binfo): Add COMPLETEP parameter;
15927         update it as needed.
15928         (possible_polymorphic_call_targets_1): Likewise.
15929         (struct polymorphic_call_target_d): Add nonconstruction_targets;
15930         rename FINAL to COMPLETE.
15931         (record_targets_from_bases): Sanity check we found the binfo;
15932         fix COMPLETEP updating.
15933         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
15934         parameter, fix computing of COMPLETEP.
15935         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
15936         at LTO time do demangling.
15937         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
15938         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
15939         parameter.
15940         (gimple_get_virt_method_for_binfo): Likewise.
15941         * gimple-fold.h (gimple_get_virt_method_for_binfo,
15942         gimple_get_virt_method_for_vtable): Update prototypes.
15943
15944 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
15945
15946         PR target/49008
15947         * genautomata.c (add_presence_absence): Fix typo with
15948         {final_}presence_list.
15949
15950 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15951
15952         PR target/60137
15953         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
15954         for VSX/Altivec vectors that land in GPR registers.
15955
15956 2014-02-11  Richard Henderson  <rth@redhat.com>
15957             Jakub Jelinek  <jakub@redhat.com>
15958
15959         PR debug/59776
15960         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
15961         around drhs if type conversion to lacc->type is not useless.
15962
15963 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15964
15965         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
15966         tuning struct.
15967         (cortex-a57.cortex-a53): Likewise.
15968         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
15969
15970 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15971
15972         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
15973         arm_restrict_it.
15974
15975 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
15976
15977         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
15978         add_options_for_arm_vfp3.
15979
15980 2014-02-11  Jeff Law  <law@redhat.com>
15981
15982         PR middle-end/54041
15983         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
15984         object with an undesirable mode.
15985
15986 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15987
15988         PR libgomp/60107
15989         * config/i386/sol2-9.h: New file.
15990         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
15991         *-*-solaris2.9*): Use it.
15992
15993 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
15994
15995         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
15996         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
15997
15998 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
15999
16000         * config/microblaze/microblaze.c: Extend mcpu version format
16001
16002 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
16003
16004         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
16005
16006 2014-02-10  Richard Henderson  <rth@redhat.com>
16007
16008         PR target/59927
16009         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
16010         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
16011         ms-abi vs -mno-accumulate-outgoing-args.
16012         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
16013         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
16014         respect to ms-abi.
16015
16016 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16017
16018         PR middle-end/60080
16019         * cfgexpand.c (expand_asm_operands): Attach source location to
16020         ASM_INPUT rtx objects.
16021         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
16022
16023 2014-02-10  Nick Clifton  <nickc@redhat.com>
16024
16025         * config/mn10300/mn10300.c (popcount): New function.
16026         (mn10300_expand_prologue): Include saved registers in stack usage
16027         count.
16028
16029 2014-02-10  Jeff Law  <law@redhat.com>
16030
16031         PR middle-end/52306
16032         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
16033         when changing the SET_DEST of a prior insn to avoid an input reload.
16034
16035 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16036
16037         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
16038         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
16039         -mcall-openbsd, or -mcall-linux.
16040         (CC1_ENDIAN_BIG_SPEC): Remove.
16041         (CC1_ENDIAN_LITTLE_SPEC): Remove.
16042         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
16043         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
16044         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
16045         and %cc1_endian_default.
16046         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
16047
16048 2014-02-10  Richard Biener  <rguenther@suse.de>
16049
16050         PR tree-optimization/60115
16051         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
16052         MEM_REF handling.  Properly verify that the accesses are not
16053         out of the objects bound.
16054
16055 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16056
16057         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
16058         coretex to cortex.
16059
16060 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
16061
16062         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
16063         proper constants and fix formatting.
16064         (possible_polymorphic_call_targets): Fix formatting.
16065
16066 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
16067             Ilya Tocar  <ilya.tocar@intel.com>
16068
16069         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
16070         (_mm512_loadu_epi32): Renamed into...
16071         (_mm512_loadu_si512): This.
16072         (_mm512_storeu_epi32): Renamed into...
16073         (_mm512_storeu_si512): This.
16074         (_mm512_maskz_ceil_ps): Removed.
16075         (_mm512_maskz_ceil_pd): Ditto.
16076         (_mm512_maskz_floor_ps): Ditto.
16077         (_mm512_maskz_floor_pd): Ditto.
16078         (_mm512_floor_round_ps): Ditto.
16079         (_mm512_floor_round_pd): Ditto.
16080         (_mm512_ceil_round_ps): Ditto.
16081         (_mm512_ceil_round_pd): Ditto.
16082         (_mm512_mask_floor_round_ps): Ditto.
16083         (_mm512_mask_floor_round_pd): Ditto.
16084         (_mm512_mask_ceil_round_ps): Ditto.
16085         (_mm512_mask_ceil_round_pd): Ditto.
16086         (_mm512_maskz_floor_round_ps): Ditto.
16087         (_mm512_maskz_floor_round_pd): Ditto.
16088         (_mm512_maskz_ceil_round_ps): Ditto.
16089         (_mm512_maskz_ceil_round_pd): Ditto.
16090         (_mm512_expand_pd): Ditto.
16091         (_mm512_expand_ps): Ditto.
16092         * config/i386/i386.c (ix86_builtins): Remove
16093         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
16094         (bdesc_args): Ditto.
16095         * config/i386/predicates.md (const1256_operand): New.
16096         (const_1_to_2_operand): Ditto.
16097         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
16098         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
16099         (*avx512pf_gatherpf<mode>sf): Ditto.
16100         (avx512pf_gatherpf<mode>df): Ditto.
16101         (*avx512pf_gatherpf<mode>df_mask): Ditto.
16102         (*avx512pf_gatherpf<mode>df): Ditto.
16103         (avx512pf_scatterpf<mode>sf): Ditto.
16104         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
16105         (*avx512pf_scatterpf<mode>sf): Ditto.
16106         (avx512pf_scatterpf<mode>df): Ditto.
16107         (*avx512pf_scatterpf<mode>df_mask): Ditto.
16108         (*avx512pf_scatterpf<mode>df): Ditto.
16109         (avx512f_expand<mode>): Removed.
16110         (<shift_insn><mode>3<mask_name>): Change predicate type.
16111
16112 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
16113
16114         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
16115         not at the end of datarefs vector use ordered_remove to avoid
16116         reordering datarefs vector.
16117
16118         PR c/59984
16119         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
16120         mark local addressable non-static vars as GOVD_PRIVATE
16121         instead of GOVD_LOCAL.
16122         * omp-low.c (lower_omp_for): Move gimple_bind_vars
16123         and BLOCK_VARS of gimple_bind_block to new_stmt rather
16124         than copying them.
16125
16126         PR middle-end/60092
16127         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
16128         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
16129         assume_aligned or alloc_align attributes.
16130         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
16131         arguments.  Handle also assume_aligned and alloc_align attributes.
16132         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
16133         calls to functions with assume_aligned or alloc_align attributes.
16134         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
16135
16136 2014-02-08  Terry Guo  <terry.guo@arm.com>
16137
16138         * doc/invoke.texi: Document ARM -march=armv7e-m.
16139
16140 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
16141
16142         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
16143         flag on __cilkrts_rethrow builtin.
16144
16145         PR ipa/60026
16146         * ipa-cp.c (determine_versionability): Fail at -O0
16147         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
16148         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
16149
16150         Revert:
16151         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
16152
16153         PR ipa/60026
16154         * tree-inline.c (copy_forbidden): Fail for
16155         __attribute__((optimize (0))) functions.
16156
16157 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
16158
16159         * varpool.c: Include pointer-set.h.
16160         (varpool_remove_unreferenced_decls): Variables in other partitions
16161         will not be output; be however careful to not lose information
16162         about partitioning.
16163
16164 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
16165
16166         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
16167         lookup in the vtable constructor.
16168
16169 2014-02-07  Jeff Law  <law@redhat.com>
16170
16171         PR target/40977
16172         * config/m68k/m68k.md (ashldi_extsi): Turn into a
16173         define_insn_and_split.
16174
16175         * ipa-inline.c (inline_small_functions): Fix typos.
16176
16177 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16178
16179         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
16180         (s390_can_use_return_insn): Declare.
16181         * config/s390/s390.h (EPILOGUE_USES): Define.
16182         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
16183         instructions.
16184         (s390_chunkify_start): Handle return JUMP_LABELs.
16185         (s390_early_mach): Emit a main_pool instruction on the entry edge.
16186         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
16187         (s390_can_use_return_insn): New functions.
16188         (s390_fix_long_loop_prediction): Handle conditional returns.
16189         (TARGET_SET_UP_BY_PROLOGUE): Define.
16190         * config/s390/s390.md (ANY_RETURN): New code iterator.
16191         (*creturn, *csimple_return, return, simple_return): New patterns.
16192
16193 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16194
16195         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
16196         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
16197         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
16198         REG_CFA_RESTORE list when deciding not to restore a register.
16199
16200 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16201
16202         * config/s390/s390.c: Include tree-pass.h and context.h.
16203         (s390_early_mach): New function, split out from...
16204         (s390_emit_prologue): ...here.
16205         (pass_data_s390_early_mach): New pass structure.
16206         (pass_s390_early_mach): New class.
16207         (s390_option_override): Create and register early_mach pass.
16208         Move to end of file.
16209
16210 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16211
16212         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
16213         to match for the exit block.
16214
16215 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16216
16217         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
16218         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
16219         Reject misaligned operands.
16220
16221 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16222
16223         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
16224
16225 2014-02-07  Richard Biener  <rguenther@suse.de>
16226
16227         PR middle-end/60092
16228         * gimple-low.c (lower_builtin_posix_memalign): New function.
16229         (lower_stmt): Call it to lower posix_memalign in a way
16230         to make alignment info accessible.
16231
16232 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
16233
16234         PR c++/60082
16235         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
16236         __builtin_setjmp_receiver.
16237
16238 2014-02-07  Richard Biener  <rguenther@suse.de>
16239
16240         PR middle-end/60092
16241         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
16242         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
16243         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16244         Handle BUILT_IN_POSIX_MEMALIGN.
16245         (find_func_clobbers): Likewise.
16246         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16247         (call_may_clobber_ref_p_1): Likewise.
16248
16249 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
16250
16251         PR ipa/59918
16252         * ipa-devirt.c (record_target_from_binfo): Remove overactive
16253         sanity check.
16254
16255 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
16256
16257         PR ipa/59469
16258         * lto-cgraph.c (lto_output_node): Use
16259         symtab_get_symbol_partitioning_class.
16260         (lto_output_varpool_node): likewise.
16261         (symtab_get_symbol_partitioning_class): Move here from
16262         lto/lto-partition.c
16263         * cgraph.h (symbol_partitioning_class): Likewise.
16264         (symtab_get_symbol_partitioning_class): Declare.
16265
16266 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
16267
16268         * ggc.h (ggc_internal_cleared_alloc): New macro.
16269         * vec.h (vec_safe_copy): Handle memory stats.
16270         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
16271         * target-globals.c (save_target_globals): Likewise.
16272
16273 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
16274
16275         PR target/60077
16276         * expr.c (emit_move_resolve_push): Export; be bit more selective
16277         on when to clear alias set.
16278         * expr.h (emit_move_resolve_push): Declare.
16279         * function.h (struct function): Add tail_call_marked.
16280         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
16281         * config/i386/i386-protos.h (ix86_expand_push): Remove.
16282         * config/i386/i386.md (TImode move expander): De not call
16283         ix86_expand_push.
16284         (FP push expanders): Preserve memory attributes.
16285         * config/i386/sse.md (push<mode>1): Remove.
16286         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
16287         (ix86_expand_push): Remove.
16288         * config/i386/mmx.md (push<mode>1): Remove.
16289
16290 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
16291
16292         PR rtl-optimization/60030
16293         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
16294         lopart with paradoxical subreg before shifting it up by hprec.
16295
16296 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16297
16298         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
16299         Remove extra newline at end of file.
16300         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
16301         (arm_issue_rate): Handle cortexa57.
16302         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
16303         (cortex-a57.cortex-a53): Likewise.
16304
16305 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
16306
16307         PR target/59575
16308         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
16309         don't record in REG_FRAME_RELATED_EXPR registers not set in that
16310         bitmask.
16311         (arm_expand_prologue): Adjust all callers.
16312         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
16313         info, registers also at the lowest numbered registers side.  Use
16314         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
16315         XEXP.
16316
16317         PR debug/59992
16318         * var-tracking.c (adjust_mems): Before adding a SET to
16319         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
16320
16321 2014-02-06  Alan Modra  <amodra@gmail.com>
16322
16323         PR target/60032
16324         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
16325         change SDmode to DDmode when lra_in_progress.
16326
16327 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
16328
16329         PR middle-end/59150
16330         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
16331         free_data_ref on the dr first, and before goto again also set dr
16332         to the next dr.  For simd_lane_access, free old datarefs[i] before
16333         overwriting it.  For get_vectype_for_scalar_type failure, don't
16334         free_data_ref if simd_lane_access.
16335
16336         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
16337
16338         PR target/60062
16339         * tree.h (opts_for_fn): New inline function.
16340         (opt_for_fn): Define.
16341         * config/i386/i386.c (ix86_function_regparm): Use
16342         opt_for_fn (decl, optimize) instead of optimize.
16343
16344 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16345
16346         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
16347         for SYMBOL_REF in large memory model.
16348
16349 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16350
16351         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
16352         and crypto support.
16353         (cortex-a57): Likewise.
16354         (cortex-a57.cortex-a53): Likewise.
16355
16356 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
16357             Kugan Vivekanandarajah  <kuganv@linaro.org>
16358
16359         * config/arm/arm.c (arm_vector_alignment_reachable): Check
16360         unaligned_access.
16361         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
16362
16363 2014-02-06  Richard Biener  <rguenther@suse.de>
16364
16365         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
16366         set_loop_copy and initialize_original_copy_tables.
16367
16368 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
16369
16370         * config/aarch64/aarch64-simd.md
16371         (aarch64_ashr_simddi): Change QI to SI.
16372
16373 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
16374             Jakub Jelinek  <jakub@redhat.com>
16375
16376         PR middle-end/60013
16377         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
16378         of the dataflow.
16379
16380 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16381
16382         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
16383         CODE_FOR_altivec_vpku[hw]um to
16384         CODE_FOR_altivec_vpku[hw]um_direct.
16385         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
16386         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
16387         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
16388         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
16389
16390 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16391
16392         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
16393         generation for -maltivec=be.
16394         (altivec_vsumsws): Simplify redundant test.
16395
16396 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16397
16398         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
16399         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
16400         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
16401         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
16402         gen_altivec_vpkuwum.
16403         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
16404         BYTES_BIG_ENDIAN.
16405         (altivec_vpks<VI_char>ss): Likewise.
16406         (altivec_vpks<VI_char>us): Likewise.
16407         (altivec_vpku<VI_char>us): Likewise.
16408         (altivec_vpku<VI_char>um): Likewise.
16409         (altivec_vpku<VI_char>um_direct): New (copy of
16410         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
16411         internal use).
16412         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
16413         target is little endian and -maltivec=be is not specified.
16414         (*altivec_vupkhs<VU_char>_direct): New (copy of
16415         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
16416         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
16417         target is little endian and -maltivec=be is not specified.
16418         (*altivec_vupkls<VU_char>_direct): New (copy of
16419         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
16420         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
16421         little endian and -maltivec=be is not specified.
16422         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
16423         little endian and -maltivec=be is not specified.
16424
16425 2014-02-05  Richard Henderson  <rth@redhat.com>
16426
16427         PR debug/52727
16428         * combine-stack-adj.c: Revert r206943.
16429         * sched-int.h (struct deps_desc): Add last_args_size.
16430         * sched-deps.c (init_deps): Initialize it.
16431         (sched_analyze_insn): Add OUTPUT dependencies between insns that
16432         contain REG_ARGS_SIZE notes.
16433
16434 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
16435
16436         * lto-cgraph.c (asm_nodes_output): Make global.
16437         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
16438         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
16439         (driver_handle_option): Handle OPT_fwpa.
16440
16441 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
16442
16443         PR ipa/59947
16444         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
16445         a comment typo and formatting issue.  If odr_hash hasn't been
16446         created, return vNULL and set *completep to false.
16447
16448         PR middle-end/57499
16449         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
16450         bb with no successors.
16451
16452 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
16453
16454         PR target/59718
16455         * doc/invoke.texi (-march): Clarify documentation for ARM.
16456         (-mtune): Likewise.
16457         (-mcpu): Likewise.
16458
16459 2014-02-05  Richard Biener  <rguenther@suse.de>
16460
16461         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
16462         when not vectorizing because of too many alias checks.
16463         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16464         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
16465
16466 2014-02-05  Nick Clifton  <nickc@redhat.com>
16467
16468         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
16469         accept extended registers in any mode when compiling for the MN10300.
16470
16471 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
16472
16473         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
16474         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
16475         sanitization attributes.
16476         (can_inline_edge_p): Likewise.
16477         (sanitize_attrs_match_for_inline_p): New function.
16478
16479 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
16480
16481         * ipa-prop.c (detect_type_change): Shor circuit testing of
16482         type changes on THIS pointer.
16483
16484 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
16485
16486         PR target/59777
16487         * config/pa/pa.c (legitimize_tls_address): Return original address
16488         if not passed a SYMBOL_REF rtx.
16489         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
16490         addresses.
16491         (pa_emit_move_sequence): Simplify TLS source operands.
16492         (pa_legitimate_constant_p): Reject all TLS constants.
16493         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
16494         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
16495
16496 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
16497
16498         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
16499         groups when we know they are controlled by LTO.
16500         * varasm.c (default_binds_local_p_1): If object is in other partition,
16501         it will be resolved locally.
16502
16503 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16504
16505         * config/host-linux.c (linux_gt_pch_use_address): Don't
16506         use SSIZE_MAX because it is not always defined.
16507
16508 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
16509
16510         PR bootstrap/59913
16511         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
16512         threshold for pseudo splitting.
16513         (update_ebb_live_info): Process call argument hard registers and
16514         hard registers from insn definition too.
16515         (max_small_class_regs_num): New constant.
16516         (inherit_in_ebb): Update live hard regs through EBBs.  Update
16517         reloads_num only for small register classes.  Don't split for
16518         outputs of jumps.
16519
16520 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
16521
16522         PR ipa/60058
16523         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
16524         is non-null.
16525
16526 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
16527
16528         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
16529         visibility is safe.
16530
16531 2014-02-04  Marek Polacek  <polacek@redhat.com>
16532
16533         * gdbinit.in (pel): Define.
16534
16535 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16536
16537         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
16538         behavior.
16539
16540 2014-02-04  Richard Biener  <rguenther@suse.de>
16541
16542         PR lto/59723
16543         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
16544         in function context local.
16545         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
16546         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
16547         similar to LTO_imported_decl_ref.
16548
16549 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
16550
16551         PR tree-optimization/60002
16552         * cgraphclones.c (build_function_decl_skip_args): Clear
16553         DECL_LANG_SPECIFIC.
16554
16555         PR tree-optimization/60023
16556         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
16557         false to gsi_replace.
16558         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
16559         has been in some EH region and vec_stmt could throw, add
16560         vec_stmt into the same EH region.
16561         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
16562         has no lhs, ignore it.
16563         * internal-fn.c (expand_MASK_LOAD): Likewise.
16564
16565         PR ipa/60026
16566         * tree-inline.c (copy_forbidden): Fail for
16567         __attribute__((optimize (0))) functions.
16568
16569         PR other/58712
16570         * omp-low.c (simd_clone_struct_copy): If from->inbranch
16571         is set, copy one less argument.
16572         (expand_simd_clones): Don't subtract clone_info->inbranch
16573         from simd_clone_struct_alloc argument.
16574
16575         PR rtl-optimization/57915
16576         * recog.c (simplify_while_replacing): If all unary/binary/relational
16577         operation arguments are constant, attempt to simplify those.
16578
16579         PR middle-end/59261
16580         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
16581         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
16582
16583 2014-02-04  Richard Biener  <rguenther@suse.de>
16584
16585         PR tree-optimization/60012
16586         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
16587         TBAA disambiguation to all DDRs.
16588
16589 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16590
16591         PR target/59788
16592         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
16593         (LINK_SPEC): Use it for -shared, -shared-libgcc.
16594
16595 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
16596
16597         PR ipa/59882
16598         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
16599
16600 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
16601
16602         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
16603         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
16604
16605 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
16606
16607         PR ipa/59831
16608         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
16609         to figure out targets of polymorphic calls with known decl.
16610         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16611         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
16612         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
16613         (get_polymorphic_call_info): ... here.
16614         (get_polymorphic_call_info_from_invariant): New function.
16615
16616 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
16617
16618         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
16619         lookup via vtable pointer; check for type consistency
16620         and turn inconsitent facts into UNREACHABLE.
16621         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16622         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
16623         type inconsistent querries; return UNREACHABLE instead.
16624
16625 2014-02-03  Richard Henderson  <rth@twiddle.net>
16626
16627         PR tree-opt/59924
16628         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
16629         already processed this node.
16630         (normalize_one_pred_1): Pass along mark_set.
16631         (normalize_one_pred): Create and destroy a pointer_set_t.
16632         (normalize_one_pred_chain): Likewise.
16633
16634 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
16635
16636         PR gcov-profile/58602
16637         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
16638
16639 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
16640
16641         PR ipa/59831
16642         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
16643         -fno-devirtualize; try to devirtualize by the knowledge of
16644         virtual table pointer given by aggregate propagation.
16645         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16646         (ipa_print_node_jump_functions): Dump also offset that
16647         is relevant for polymorphic calls.
16648         (determine_known_aggregate_parts): Add arg_type parameter; use it
16649         instead of determining the type from pointer type.
16650         (ipa_compute_jump_functions_for_edge): Update call of
16651         determine_known_aggregate_parts.
16652         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
16653         (gimple_get_virt_method_for_binfo): ... here; simplify using
16654         vtable_pointer_value_to_vtable.
16655         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
16656         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
16657         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
16658         (vtable_pointer_value_to_vtable): Break out from ...; handle also
16659         POINTER_PLUS_EXPR.
16660         (vtable_pointer_value_to_binfo): ... here.
16661         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
16662
16663 2014-02-03  Teresa Johnson  <tejohnson@google.com>
16664
16665         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
16666         redef of outer loop index variable.
16667
16668 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
16669
16670         PR c++/53017
16671         PR c++/59211
16672         * doc/extend.texi (Function Attributes): Typo.
16673
16674 2014-02-03  Cong Hou  <congh@google.com>
16675
16676         PR tree-optimization/60000
16677         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
16678         if the vectorized statement is a store.  A store statement can only
16679         appear at the end of pattern statements.
16680
16681 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
16682
16683         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
16684         (ix86_option_override_internal): Default long double to 64-bit for
16685         32-bit Bionic and to 128-bit for 64-bit Bionic.
16686
16687         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
16688         TARGET_LONG_DOUBLE_128 is true.
16689         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
16690
16691         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
16692         (mlong-double-64): Negate -mlong-double-128.
16693         (mlong-double-128): New option.
16694
16695         * config/i386/i386-c.c (ix86_target_macros): Define
16696         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
16697
16698         * doc/invoke.texi: Document -mlong-double-128.
16699
16700 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
16701
16702         PR rtl-optimization/60024
16703         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
16704
16705 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
16706
16707         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
16708
16709 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
16710
16711         PR rtl-optimization/57662
16712         * sel-sched.c (code_motion_path_driver): Do not mark already not
16713         existing blocks in the visiting bitmap.
16714
16715 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
16716
16717         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
16718         on the insn being emitted.
16719
16720 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
16721             Will Deacon  <will.deacon@arm.com>
16722
16723         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
16724
16725 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16726
16727         * config/arm/arm-tables.opt: Regenerate.
16728
16729 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16730
16731         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
16732         for vector types other than V16QImode.
16733         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
16734         define_expand, and call altivec_expand_vec_perm_le when producing
16735         code with little endian element order.
16736         (*altivec_vperm_<mode>_internal): New insn having previous
16737         behavior of altivec_vperm_<mode>.
16738         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
16739         altivec_expand_vec_perm_le when producing code with little endian
16740         element order.
16741         (*altivec_vperm_<mode>_uns_internal): New insn having previous
16742         behavior of altivec_vperm_<mode>_uns.
16743
16744 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16745
16746         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
16747         (altivec_vsumsws): Add handling for -maltivec=be with a little
16748         endian target.
16749         (altivec_vsumsws_direct): New.
16750         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
16751         gen_altivec_vsumsws.
16752
16753 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
16754
16755         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
16756         vtable_pointer_value_to_binfo): New functions.
16757         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
16758         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
16759
16760 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
16761
16762         * config/nios2/nios2.md (load_got_register): Initialize GOT
16763         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
16764         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
16765
16766 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
16767
16768         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
16769         preserverd by passthrough, do not propagate the type.
16770
16771 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
16772
16773         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
16774         (mips_atomic_assign_expand_fenv): New function.
16775         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
16776
16777 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
16778
16779         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
16780         (__builtin_mips_set_fcsr): Likewise.
16781         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
16782         MIPS_USI_FTYPE_VOID.
16783         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
16784         (mips16_expand_set_fcsr): Likewise.
16785         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
16786         (mips16_set_fcsr_stub): Likewise.
16787         (mips16_get_fcsr_one_only_stub): New class.
16788         (mips16_set_fcsr_one_only_stub): Likewise.
16789         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
16790         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
16791         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
16792         (hard_float): New availability predicate.
16793         (mips_builtins): Add get_fcsr and set_fcsr.
16794         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
16795         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
16796         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
16797         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
16798         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
16799         patterns.
16800
16801 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
16802
16803         * config/mips/mips.c (mips_one_only_stub): New class.
16804         (mips_need_mips16_rdhwr_p): Replace with...
16805         (mips16_rdhwr_stub): ...this new variable.
16806         (mips16_stub_call_address): New function.
16807         (mips16_rdhwr_one_only_stub): New class.
16808         (mips_expand_thread_pointer): Use mips16_stub_call_address.
16809         (mips_output_mips16_rdhwr): Delete.
16810         (mips_finish_stub): New function.
16811         (mips_code_end): Use it to handle rdhwr stubs.
16812
16813 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
16814
16815         PR target/60017
16816         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
16817         when calculating size of integer atomic types.
16818
16819 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16820
16821         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
16822
16823 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
16824
16825         PR tree-optimization/60003
16826         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
16827         * profile.c (branch_prob): Use gimple_call_builtin_p
16828         to check for BUILT_IN_SETJMP_RECEIVER.
16829         * tree-inline.c (copy_bb): Call notice_special_calls.
16830
16831 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
16832
16833         PR bootstrap/59985
16834         * lra-constraints.c (process_alt_operands): Update reload_sum only
16835         on the first pass.
16836
16837 2014-01-31  Richard Henderson  <rth@redhat.com>
16838
16839         PR middle-end/60004
16840         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
16841         until after else_eh is processed.
16842
16843 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
16844
16845         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
16846         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
16847         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
16848         in smmintrin.h, remove them.
16849         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
16850         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
16851         * config/i386/i386.md (ROUND_SAE): Fix value.
16852         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
16853         (const48_operand): New.
16854         * config/i386/subst.md (round), (round_expand): Use
16855         const_4_or_8_to_11_operand.
16856         (round_saeonly), (round_saeonly_expand): Use const48_operand.
16857
16858 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
16859
16860         * config/i386/constraints.md (Yk): Swap meaning with k.
16861         * config/i386/i386.md (movhi_internal): Change Yk to k.
16862         (movqi_internal): Ditto.
16863         (*k<logic><mode>): Ditto.
16864         (*andhi_1): Ditto.
16865         (*andqi_1): Ditto.
16866         (kandn<mode>): Ditto.
16867         (*<code>hi_1): Ditto.
16868         (*<code>qi_1): Ditto.
16869         (kxnor<mode>): Ditto.
16870         (kortestzhi): Ditto.
16871         (kortestchi): Ditto.
16872         (kunpckhi): Ditto.
16873         (*one_cmplhi2_1): Ditto.
16874         (*one_cmplqi2_1): Ditto.
16875         * config/i386/sse.md (): Change k to Yk.
16876         (avx512f_load<mode>_mask): Ditto.
16877         (avx512f_blendm<mode>): Ditto.
16878         (avx512f_store<mode>_mask): Ditto.
16879         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
16880         (avx512f_storedqu<mode>_mask): Ditto.
16881         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
16882         Ditto.
16883         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
16884         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
16885         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
16886         (avx512f_maskcmp<mode>3): Ditto.
16887         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
16888         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
16889         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
16890         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
16891         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
16892         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
16893         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
16894         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
16895         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
16896         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
16897         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
16898         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
16899         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
16900         (vec_extract_lo_<mode>_maskm): Ditto.
16901         (vec_extract_hi_<mode>_maskm): Ditto.
16902         (avx512f_vternlog<mode>_mask): Ditto.
16903         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
16904         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
16905         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
16906         (avx512f_<code>v8div16qi2_mask): Ditto.
16907         (avx512f_<code>v8div16qi2_mask_store): Ditto.
16908         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
16909         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
16910         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
16911         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
16912         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
16913         (*avx512pf_gatherpf<mode>df_mask): Ditto.
16914         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
16915         (*avx512pf_scatterpf<mode>df_mask): Ditto.
16916         (avx512cd_maskb_vec_dupv8di): Ditto.
16917         (avx512cd_maskw_vec_dupv16si): Ditto.
16918         (avx512f_vpermi2var<mode>3_maskz): Ditto.
16919         (avx512f_vpermi2var<mode>3_mask): Ditto.
16920         (avx512f_vpermi2var<mode>3_mask): Ditto.
16921         (avx512f_vpermt2var<mode>3_maskz): Ditto.
16922         (*avx512f_gathersi<mode>): Ditto.
16923         (*avx512f_gathersi<mode>_2): Ditto.
16924         (*avx512f_gatherdi<mode>): Ditto.
16925         (*avx512f_gatherdi<mode>_2): Ditto.
16926         (*avx512f_scattersi<mode>): Ditto.
16927         (*avx512f_scatterdi<mode>): Ditto.
16928         (avx512f_compress<mode>_mask): Ditto.
16929         (avx512f_compressstore<mode>_mask): Ditto.
16930         (avx512f_expand<mode>_mask): Ditto.
16931         * config/i386/subst.md (mask): Change k to Yk.
16932         (mask_scalar_merge): Ditto.
16933         (sd): Ditto.
16934
16935 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
16936
16937         * doc/extend.texi (Vector Extensions): Document ?: in C++.
16938
16939 2014-01-31  Richard Biener  <rguenther@suse.de>
16940
16941         PR middle-end/59990
16942         * builtins.c (fold_builtin_memory_op): Make sure to not
16943         use a floating-point mode or a boolean or enumeral type for
16944         the copy operation.
16945
16946 2014-01-30  DJ Delorie  <dj@redhat.com>
16947
16948         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
16949         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
16950         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
16951         whenever main() has an epilogue.
16952
16953 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16954
16955         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
16956         unused variable "field".
16957         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
16958         (vsx_mergeh_<mode>): Likewise.
16959         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
16960         (altivec_vmrghh): Likewise.
16961         (altivec_vmrghw): Likewise.
16962         (altivec_vmrglb): Likewise.
16963         (altivec_vmrglh): Likewise.
16964         (altivec_vmrglw): Likewise.
16965         (altivec_vspltb): Add missing uses.
16966         (altivec_vsplth): Likewise.
16967         (altivec_vspltw): Likewise.
16968         (altivec_vspltsf): Likewise.
16969
16970 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
16971
16972         PR target/59923
16973         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
16974         frame related instructions.
16975
16976 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
16977
16978         PR rtl-optimization/59959
16979         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
16980         any reload of register whose subreg is invalid.
16981
16982 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
16983
16984         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
16985         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
16986         Add missing return type - void.
16987
16988 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16989
16990         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
16991         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
16992         remove element index adjustment for endian (now handled in vsx.md
16993         and altivec.md).
16994         (altivec_expand_vec_perm_const): Use
16995         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
16996         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
16997         (vsx_xxspltw_<mode>): Adjust element index for little endian.
16998         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
16999         define_expand and a new define_insn *altivec_vspltb_internal;
17000         adjust for -maltivec=be on a little endian target.
17001         (altivec_vspltb_direct): New.
17002         (altivec_vsplth): Divide into a define_expand and a new
17003         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
17004         little endian target.
17005         (altivec_vsplth_direct): New.
17006         (altivec_vspltw): Divide into a define_expand and a new
17007         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
17008         little endian target.
17009         (altivec_vspltw_direct): New.
17010         (altivec_vspltsf): Divide into a define_expand and a new
17011         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
17012         a little endian target.
17013
17014 2014-01-30  Richard Biener  <rguenther@suse.de>
17015
17016         PR tree-optimization/59993
17017         * tree-ssa-forwprop.c (associate_pointerplus): Check we
17018         can propagate form the earlier stmt and avoid the transform
17019         when the intermediate result is needed.
17020
17021 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
17022
17023         * README.Portability: Fix typo.
17024
17025 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
17026
17027         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
17028         comparison_operator with ordered_comparison_operator.
17029
17030 2014-01-30  Nick Clifton  <nickc@redhat.com>
17031
17032         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
17033         Rename to mn10300_store_multiple_regs.
17034         * config/mn10300/mn10300.c: Likewise.
17035         * config/mn10300/mn10300.md (store_movm): Fix typo: call
17036         store_multiple_regs.
17037         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
17038         Call mn10300_store_multiple_regs.
17039
17040 2014-01-30  Nick Clifton  <nickc@redhat.com>
17041             DJ Delorie  <dj@redhat.com>
17042
17043         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
17044         %fp 2 to keep registers after it properly word-aligned.
17045         (rl78_alloc_physical_registers_umul): Handle the case where both
17046         input operands are the same.
17047
17048 2014-01-30  Richard Biener  <rguenther@suse.de>
17049
17050         PR tree-optimization/59903
17051         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
17052         check properly.
17053
17054 2014-01-30  Jason Merrill  <jason@redhat.com>
17055
17056         PR c++/59633
17057         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
17058
17059         PR c++/59645
17060         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
17061
17062 2014-01-30  Richard Biener  <rguenther@suse.de>
17063
17064         PR tree-optimization/59951
17065         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
17066
17067 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
17068
17069         PR target/59784
17070         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
17071         SFmode to DFmode case.
17072
17073 2014-01-29  DJ Delorie  <dj@redhat.com>
17074
17075         * config/msp430/msp430.opt (-minrt): New.
17076         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
17077         if -minrt given.
17078         (ENDFILE_SPEC): Likewise.
17079
17080 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
17081
17082         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
17083         (estimate_function_body_sizes): Use it.
17084
17085 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
17086
17087         PR c++/58561
17088         * dwarf2out.c (is_cxx_auto): New.
17089         (is_base_type): Use it.
17090         (gen_type_die_with_usage): Likewise.
17091
17092 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17093
17094         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
17095         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
17096         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
17097         -maltivec=be with LE targets.
17098         (vsx_mergeh_<mode>): Likewise.
17099         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
17100         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
17101         (altivec_vmrghb): Replace with define_expand and new
17102         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
17103         (altivec_vmrghb_direct): New define_insn.
17104         (altivec_vmrghh): Replace with define_expand and new
17105         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
17106         (altivec_vmrghh_direct): New define_insn.
17107         (altivec_vmrghw): Replace with define_expand and new
17108         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
17109         (altivec_vmrghw_direct): New define_insn.
17110         (*altivec_vmrghsf): Adjust for endianness.
17111         (altivec_vmrglb): Replace with define_expand and new
17112         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
17113         (altivec_vmrglb_direct): New define_insn.
17114         (altivec_vmrglh): Replace with define_expand and new
17115         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
17116         (altivec_vmrglh_direct): New define_insn.
17117         (altivec_vmrglw): Replace with define_expand and new
17118         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
17119         (altivec_vmrglw_direct): New define_insn.
17120         (*altivec_vmrglsf): Adjust for endianness.
17121         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
17122         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
17123         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
17124         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
17125         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
17126         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
17127         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
17128         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
17129
17130 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17131
17132         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
17133         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
17134         whitespace.
17135
17136 2014-01-29  Richard Biener  <rguenther@suse.de>
17137
17138         PR tree-optimization/58742
17139         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
17140         associate_pointerplus_align.
17141         (associate_pointerplus_diff): New function.
17142         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
17143         and associate_pointerplus_diff.
17144
17145 2014-01-29  Richard Biener  <rguenther@suse.de>
17146
17147         * lto-streamer.h (LTO_major_version): Bump to 3.
17148         (LTO_minor_version): Reset to 0.
17149
17150 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
17151
17152         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
17153         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
17154         (arm_file_start): Generate correct asm header for armv7ve.
17155         * config/arm/bpabi.h: Add multilib support for armv7ve.
17156         * config/arm/driver-arm.c: Change the architectures of cortex-a7
17157         and cortex-a15 to armv7ve.
17158         * config/arm/t-aprofile: Add multilib support for armv7ve.
17159         * doc/invoke.texi: Document -march=armv7ve.
17160
17161 2014-01-29  Richard Biener  <rguenther@suse.de>
17162
17163         PR tree-optimization/58742
17164         * tree-ssa-forwprop.c (associate_plusminus): Return true
17165         if we changed sth, defer EH cleanup to ...
17166         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
17167         (simplify_mult): New function.
17168
17169 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
17170
17171         PR middle-end/59917
17172         PR tree-optimization/59920
17173         * tree.c (build_common_builtin_nodes): Remove
17174         __builtin_setjmp_dispatcher initialization.
17175         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
17176         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
17177         instead of gsi_after_labels + manually skipping debug stmts.
17178         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
17179         ignore bbs with IFN_ABNORMAL_DISPATCHER.
17180         * tree-inline.c (copy_edges_for_bb): Remove
17181         can_make_abnormal_goto argument, instead add abnormal_goto_dest
17182         argument.  Ignore computed_goto_p stmts.  Don't call
17183         make_abnormal_goto_edges.  If a call might need abnormal edges
17184         for non-local gotos, see if it already has an edge to
17185         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
17186         with true argument, don't do anything then, otherwise add
17187         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
17188         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
17189         caller.
17190         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
17191         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
17192         (lower_stmt): Don't set data->calls_builtin_setjmp.
17193         (lower_builtin_setjmp): Adjust comment.
17194         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
17195         * tree-cfg.c (found_computed_goto): Remove.
17196         (factor_computed_gotos): Remove.
17197         (make_goto_expr_edges): Return bool, true for computed gotos.
17198         Don't call make_abnormal_goto_edges.
17199         (build_gimple_cfg): Don't set found_computed_goto, don't call
17200         factor_computed_gotos.
17201         (computed_goto_p): No longer static.
17202         (make_blocks): Don't set found_computed_goto.
17203         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
17204         (make_edges): If make_goto_expr_edges returns true, push bb
17205         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
17206         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
17207         vector.  Record mapping between bbs and OpenMP regions if there
17208         are any, adjust make_gimple_omp_edges caller.  Call
17209         handle_abnormal_edges.
17210         (make_abnormal_goto_edges): Remove.
17211         * tree-cfg.h (make_abnormal_goto_edges): Remove.
17212         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
17213         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
17214         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
17215         * internal-fn.def (ABNORMAL_DISPATCHER): New.
17216         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
17217         filling *region also set *region_idx to (*region)->entry->index.
17218
17219         PR other/58712
17220         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
17221         For REGs set ORIGINAL_REGNO.
17222
17223 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
17224
17225         * doc/md.texi: Mention that a target shouldn't implement
17226         vec_widen_(s|u)mul_even/odd pair if it is less efficient
17227         than hi/lo pair.
17228
17229 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
17230
17231         PR tree-optimization/59594
17232         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
17233         a copy of the datarefs vector rather than the vector itself.
17234
17235 2014-01-28  Jason Merrill  <jason@redhat.com>
17236
17237         PR c++/53756
17238         * dwarf2out.c (auto_die): New static.
17239         (gen_type_die_with_usage): Handle C++1y 'auto'.
17240         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
17241         on definition.
17242
17243 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
17244
17245         PR target/59672
17246         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
17247         (SPEC_X32): Likewise.
17248         (SPEC_64): Likewise.
17249         * config/i386/i386.c (ix86_option_override_internal): Turn off
17250         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
17251         for TARGET_16BIT.
17252         (x86_file_start): Output .code16gcc for TARGET_16BIT.
17253         * config/i386/i386.h (TARGET_16BIT): New macro.
17254         (TARGET_16BIT_P): Likewise.
17255         * config/i386/i386.opt: Add m16.
17256         * doc/invoke.texi: Document -m16.
17257
17258 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
17259
17260         PR preprocessor/59935
17261         * input.c (location_get_source_line): Bail out on when line number
17262         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
17263
17264 2014-01-28  Richard Biener  <rguenther@suse.de>
17265
17266         PR tree-optimization/58742
17267         * tree-ssa-forwprop.c (associate_plusminus): Handle
17268         pointer subtraction of the form (T)(P + A) - (T)P.
17269
17270 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17271
17272         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
17273         at const_int_cost.
17274
17275 2014-01-28  Richard Biener  <rguenther@suse.de>
17276
17277         Revert
17278         2014-01-28  Richard Biener  <rguenther@suse.de>
17279
17280         PR rtl-optimization/45364
17281         PR rtl-optimization/59890
17282         * var-tracking.c (local_get_addr_clear_given_value): Handle
17283         already cleared slot.
17284         (val_reset): Handle not allocated local_get_addr_cache.
17285         (vt_find_locations): Use post-order on the inverted CFG.
17286
17287 2014-01-28  Richard Biener  <rguenther@suse.de>
17288
17289         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
17290
17291 2014-01-28  Richard Biener  <rguenther@suse.de>
17292
17293         PR rtl-optimization/45364
17294         PR rtl-optimization/59890
17295         * var-tracking.c (local_get_addr_clear_given_value): Handle
17296         already cleared slot.
17297         (val_reset): Handle not allocated local_get_addr_cache.
17298         (vt_find_locations): Use post-order on the inverted CFG.
17299
17300 2014-01-28  Alan Modra  <amodra@gmail.com>
17301
17302         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
17303         * configure.ac <recursive call for build != host>: Define
17304         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
17305         and LD_FOR_BUILD too.
17306         * configure: Regenerate.
17307
17308 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
17309
17310         * config/i386/i386.c (get_builtin_code_for_version): Separate
17311         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
17312         Broadwell from Haswell.
17313
17314 2014-01-27  Steve Ellcey  <sellcey@mips.com>
17315
17316         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17317         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
17318         * config/mips/mips.c (mips_option_override): Change setting
17319         of TARGET_DSP.
17320         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
17321         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
17322         Change from Mask to Var.
17323
17324 2014-01-27  Jeff Law  <law@redhat.com>
17325
17326         * ipa-inline.c (inline_small_functions): Fix typo.
17327
17328 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
17329
17330         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
17331         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
17332         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
17333         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
17334         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
17335         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
17336         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
17337         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
17338         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
17339         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
17340         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
17341         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
17342         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
17343         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
17344         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
17345         (_mm512_storeu_epi64): Ditto.
17346         (_mm512_cmpge_epi32_mask): Ditto.
17347         (_mm512_cmpge_epu32_mask): Ditto.
17348         (_mm512_cmpge_epi64_mask): Ditto.
17349         (_mm512_cmpge_epu64_mask): Ditto.
17350         (_mm512_cmple_epi32_mask): Ditto.
17351         (_mm512_cmple_epu32_mask): Ditto.
17352         (_mm512_cmple_epi64_mask): Ditto.
17353         (_mm512_cmple_epu64_mask): Ditto.
17354         (_mm512_cmplt_epi32_mask): Ditto.
17355         (_mm512_cmplt_epu32_mask): Ditto.
17356         (_mm512_cmplt_epi64_mask): Ditto.
17357         (_mm512_cmplt_epu64_mask): Ditto.
17358         (_mm512_cmpneq_epi32_mask): Ditto.
17359         (_mm512_cmpneq_epu32_mask): Ditto.
17360         (_mm512_cmpneq_epi64_mask): Ditto.
17361         (_mm512_cmpneq_epu64_mask): Ditto.
17362         (_mm512_expand_pd): Ditto.
17363         (_mm512_expand_ps): Ditto.
17364         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
17365         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
17366         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
17367         * config/i386/i386.c (ix86_builtins): Add
17368         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
17369         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
17370         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
17371         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
17372         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
17373         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
17374         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
17375         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
17376         IX86_BUILTIN_PMOVUSQW512_MEM.
17377         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
17378         __builtin_ia32_pmovsqd512mem_mask,
17379         __builtin_ia32_pmovqd512mem_mask,
17380         __builtin_ia32_pmovusqw512mem_mask,
17381         __builtin_ia32_pmovsqw512mem_mask,
17382         __builtin_ia32_pmovqw512mem_mask,
17383         __builtin_ia32_pmovusdw512mem_mask,
17384         __builtin_ia32_pmovsdw512mem_mask,
17385         __builtin_ia32_pmovdw512mem_mask,
17386         __builtin_ia32_pmovqb512mem_mask,
17387         __builtin_ia32_pmovusqb512mem_mask,
17388         __builtin_ia32_pmovsqb512mem_mask,
17389         __builtin_ia32_pmovusdb512mem_mask,
17390         __builtin_ia32_pmovsdb512mem_mask,
17391         __builtin_ia32_pmovdb512mem_mask.
17392         (bdesc_args): Add __builtin_ia32_expanddf512,
17393         __builtin_ia32_expandsf512.
17394         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
17395         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
17396         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
17397         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
17398         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
17399         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
17400         (avx512f_<code>v8div16qi2_mask_store): This.
17401         (avx512f_expand<mode>): New.
17402
17403 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
17404
17405         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
17406         New.
17407         (_mm512_mask_prefetch_i64gather_pd): Ditto.
17408         (_mm512_prefetch_i32scatter_pd): Ditto.
17409         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
17410         (_mm512_prefetch_i64scatter_pd): Ditto.
17411         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
17412         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
17413         (_mm512_mask_prefetch_i64gather_ps): Ditto.
17414         (_mm512_prefetch_i32scatter_ps): Ditto.
17415         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
17416         (_mm512_prefetch_i64scatter_ps): Ditto.
17417         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
17418         * config/i386/i386-builtin-types.def: Define
17419         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
17420         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
17421         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
17422         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
17423         IX86_BUILTIN_SCATTERPFQPD.
17424         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
17425         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
17426         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
17427         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
17428         __builtin_ia32_scatterpfqps.
17429         (ix86_expand_builtin): Expand new built-ins.
17430         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
17431         fix memory access data type.
17432         (*avx512pf_gatherpf<mode>_mask): Ditto.
17433         (*avx512pf_gatherpf<mode>): Ditto.
17434         (avx512pf_scatterpf<mode>): Ditto.
17435         (*avx512pf_scatterpf<mode>_mask): Ditto.
17436         (*avx512pf_scatterpf<mode>): Ditto.
17437         (GATHER_SCATTER_SF_MEM_MODE): New.
17438         (avx512pf_gatherpf<mode>df): Ditto.
17439         (*avx512pf_gatherpf<mode>df_mask): Ditto.
17440         (*avx512pf_scatterpf<mode>df): Ditto.
17441
17442 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
17443
17444         PR bootstrap/59934
17445         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
17446         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
17447         reached.
17448
17449 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
17450
17451         * common/config/arm/arm-common.c
17452         (arm_rewrite_mcpu): Handle multiple names.
17453         * config/arm/arm.h
17454         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
17455
17456 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
17457
17458         * gimple-builder.h (create_gimple_tmp): Delete.
17459
17460 2014-01-27  Christian Bruel  <christian.bruel@st.com>
17461
17462         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
17463         words comparisons.
17464
17465 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
17466
17467         * config/pa/pa.md (call): Generate indirect long calls to non-local
17468         functions when outputing 32-bit code.
17469         (call_value): Likewise except for special call to buggy powf function.
17470
17471         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
17472         portable runtime and PIC indirect calls.
17473         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
17474         and PIC call sequences.  Use ldo instead of blr to set return register
17475         in PIC call sequence.
17476
17477 2014-01-25  Walter Lee  <walt@tilera.com>
17478
17479         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
17480         avoid clobbering a live register.
17481
17482 2014-01-25  Walter Lee  <walt@tilera.com>
17483
17484         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
17485         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
17486         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
17487         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
17488
17489 2014-01-25  Walter Lee  <walt@tilera.com>
17490
17491         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
17492         arguments on even registers.
17493         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
17494         STACK_BOUNDARY.
17495         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
17496         (BIGGEST_ALIGNMENT): Ditto.
17497         (BIGGEST_FIELD_ALIGNMENT): Ditto.
17498
17499 2014-01-25  Walter Lee  <walt@tilera.com>
17500
17501         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
17502         insns before bundling.
17503         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
17504
17505 2014-01-25  Walter Lee  <walt@tilera.com>
17506
17507         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
17508         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
17509         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
17510
17511 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
17512
17513         * config/mips/constraints.md (kl): Delete.
17514         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
17515         define expands, using...
17516         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
17517         instructions for MIPS16.
17518         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
17519         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
17520
17521 2014-01-25  Walter Lee  <walt@tilera.com>
17522
17523         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
17524         (clzdi2): Ditto.
17525         (ffsdi2): Ditto.
17526
17527 2014-01-25  Walter Lee  <walt@tilera.com>
17528
17529         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
17530         (TARGET_EXPAND_TO_RTL_HOOK): Define.
17531
17532 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
17533
17534         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
17535         Handle XOR.
17536
17537 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
17538
17539         * print-rtl.c (in_call_function_usage): New var.
17540         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
17541         EXPR_LIST mode as mode and not as reg note name.
17542
17543         PR middle-end/59561
17544         * cfgloopmanip.c (copy_loop_info): If
17545         loop->warned_aggressive_loop_optimizations, make sure
17546         the flag is set in target loop too.
17547
17548 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
17549
17550         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
17551         flag_cilkplus.
17552         * builtins.def: Likewise.
17553         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
17554         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
17555         * ira.c (ira_setup_eliminable_regset): Likewise.
17556         * omp-low.c (gate_expand_omp): Likewise.
17557         (execute_lower_omp): Likewise.
17558         (diagnose_sb_0): Likewise.
17559         (gate_diagnose_omp_blocks): Likewise.
17560         (simd_clone_clauses_extract): Likewise.
17561         (gate): Likewise.
17562
17563 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17564
17565         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
17566         correction for little endian...
17567         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
17568         here.
17569
17570 2014-01-24  Jeff Law  <law@redhat.com>
17571
17572         PR tree-optimization/59919
17573         * tree-vrp.c (find_assert_locations_1): Do not register asserts
17574         for non-returning calls.
17575
17576 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
17577
17578         * common/config/aarch64/aarch64-common.c
17579         (aarch64_rewrite_mcpu): Handle multiple names.
17580         * config/aarch64/aarch64.h
17581         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
17582
17583 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
17584
17585         * input.c (add_file_to_cache_tab): Handle the case where fopen
17586         returns NULL.
17587
17588 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
17589
17590         PR target/59929
17591         * config/i386/i386.md (pushsf splitter): Get stack adjustment
17592         from push operand if code of push isn't PRE_DEC.
17593
17594 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17595
17596         PR target/59909
17597         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17598         -mquad-memory-atomic.  Update -mquad-memory documentation to say
17599         it is only used for non-atomic loads/stores.
17600
17601         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
17602         -mquad-memory or -mquad-memory-atomic switches.
17603
17604         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
17605         -mquad-memory-atomic to ISA 2.07 support.
17606
17607         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
17608         to separate support of normal quad word memory operations (ldq, stq)
17609         from the atomic quad word memory operations.
17610
17611         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17612         support to separate non-atomic quad word operations from atomic
17613         quad word operations.  Disable non-atomic quad word operations in
17614         little endian mode so that we don't have to swap words after the
17615         load and before the store.
17616         (quad_load_store_p): Add comment about atomic quad word support.
17617         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
17618         options printed with -mdebug=reg.
17619
17620         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
17621         -mquad-memory-atomic as the test for whether we have quad word
17622         atomic instructions.
17623         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
17624         or -mp8-vector are used, allow byte/half-word atomic operations.
17625
17626         * config/rs6000/sync.md (load_lockedti): Insure that the address
17627         is a proper indexed or indirect address for the lqarx instruction.
17628         On little endian systems, swap the hi/lo registers after the lqarx
17629         instruction.
17630         (load_lockedpti): Use indexed_or_indirect_operand predicate to
17631         insure the address is valid for the lqarx instruction.
17632         (store_conditionalti): Insure that the address is a proper indexed
17633         or indirect address for the stqcrx. instruction.  On little endian
17634         systems, swap the hi/lo registers before doing the stqcrx.
17635         instruction.
17636         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
17637         insure the address is valid for the stqcrx. instruction.
17638
17639         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
17640         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
17641         type of quad memory support is available.
17642
17643 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
17644
17645         PR regression/59915
17646         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
17647         there is a danger of looping.
17648
17649 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
17650
17651         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17652         force flag_ira_loop_pressure if set via command line.
17653
17654 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
17655
17656         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
17657         (ashr_simd): New builtin handling DI mode.
17658         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
17659         (aarch64_sshr_simddi): New match pattern.
17660         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
17661         (vshrd_n_s64): Likewise.
17662         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
17663
17664 2014-01-23  Nick Clifton  <nickc@redhat.com>
17665
17666         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
17667         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
17668         favour of mcu specific scripts.
17669         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
17670         430x multilibs.
17671
17672 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
17673             Alex Velenko  <Alex.Velenko@arm.com>
17674
17675         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
17676         (vaddv_s16): Likewise.
17677         (vaddv_s32): Likewise.
17678         (vaddv_u8): Likewise.
17679         (vaddv_u16): Likewise.
17680         (vaddv_u32): Likewise.
17681         (vaddvq_s8): Likewise.
17682         (vaddvq_s16): Likewise.
17683         (vaddvq_s32): Likewise.
17684         (vaddvq_s64): Likewise.
17685         (vaddvq_u8): Likewise.
17686         (vaddvq_u16): Likewise.
17687         (vaddvq_u32): Likewise.
17688         (vaddvq_u64): Likewise.
17689         (vaddv_f32): Likewise.
17690         (vaddvq_f32): Likewise.
17691         (vaddvq_f64): Likewise.
17692         (vmaxv_f32): Likewise.
17693         (vmaxv_s8): Likewise.
17694         (vmaxv_s16): Likewise.
17695         (vmaxv_s32): Likewise.
17696         (vmaxv_u8): Likewise.
17697         (vmaxv_u16): Likewise.
17698         (vmaxv_u32): Likewise.
17699         (vmaxvq_f32): Likewise.
17700         (vmaxvq_f64): Likewise.
17701         (vmaxvq_s8): Likewise.
17702         (vmaxvq_s16): Likewise.
17703         (vmaxvq_s32): Likewise.
17704         (vmaxvq_u8): Likewise.
17705         (vmaxvq_u16): Likewise.
17706         (vmaxvq_u32): Likewise.
17707         (vmaxnmv_f32): Likewise.
17708         (vmaxnmvq_f32): Likewise.
17709         (vmaxnmvq_f64): Likewise.
17710         (vminv_f32): Likewise.
17711         (vminv_s8): Likewise.
17712         (vminv_s16): Likewise.
17713         (vminv_s32): Likewise.
17714         (vminv_u8): Likewise.
17715         (vminv_u16): Likewise.
17716         (vminv_u32): Likewise.
17717         (vminvq_f32): Likewise.
17718         (vminvq_f64): Likewise.
17719         (vminvq_s8): Likewise.
17720         (vminvq_s16): Likewise.
17721         (vminvq_s32): Likewise.
17722         (vminvq_u8): Likewise.
17723         (vminvq_u16): Likewise.
17724         (vminvq_u32): Likewise.
17725         (vminnmv_f32): Likewise.
17726         (vminnmvq_f32): Likewise.
17727         (vminnmvq_f64): Likewise.
17728
17729 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
17730
17731         * config/aarch64/aarch64-simd.md
17732         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
17733         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
17734         (*aarch64_mul3_elt<mode>): Likewise.
17735         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
17736         (*aarch64_mul3_elt_to_64v2df): Likewise.
17737         (*aarch64_mla_elt<mode>): Likewise.
17738         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17739         (*aarch64_mls_elt<mode>): Likewise.
17740         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17741         (*aarch64_fma4_elt<mode>): Likewise.
17742         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17743         (*aarch64_fma4_elt_to_64v2df): Likewise.
17744         (*aarch64_fnma4_elt<mode>): Likewise.
17745         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17746         (*aarch64_fnma4_elt_to_64v2df): Likewise.
17747         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
17748         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
17749         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
17750         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
17751         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17752         (aarch64_sqdmull_lane<mode>_internal): Likewise.
17753         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17754
17755 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
17756
17757         * config/aarch64/aarch64-simd.md
17758         (aarch64_be_checked_get_lane<mode>): New define_expand.
17759         * config/aarch64/aarch64-simd-builtins.def
17760         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
17761         New builtin definition.
17762         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
17763         Use new safe be builtin.
17764
17765 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
17766
17767         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
17768         New define_insn.
17769         (aarch64_be_st1<mode>): Likewise.
17770         (aarch_ld1<VALL:mode>): Define_expand modified.
17771         (aarch_st1<VALL:mode>): Likewise.
17772         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
17773         (UNSPEC_ST1): Likewise.
17774
17775 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
17776
17777         * config/microblaze/microblaze.md: Add trap insn and attribute
17778
17779 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
17780
17781         PR preprocessor/58580
17782         * input.h (location_get_source_line): Take an additional line_size
17783         parameter.
17784         (void diagnostics_file_cache_fini): Declare new function.
17785         * input.c (struct fcache): New type.
17786         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
17787         New static constants.
17788         (diagnostic_file_cache_init, total_lines_num)
17789         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
17790         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
17791         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
17792         (get_next_line, read_next_line, goto_next_line, read_line_num):
17793         New static function definitions.
17794         (diagnostic_file_cache_fini): New function.
17795         (location_get_source_line): Take an additional output line_len
17796         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
17797         read_line_num.
17798         * diagnostic.c (diagnostic_finish): Call
17799         diagnostic_file_cache_fini.
17800         (adjust_line): Take an additional input parameter for the length
17801         of the line, rather than calculating it with strlen.
17802         (diagnostic_show_locus): Adjust the use of
17803         location_get_source_line and adjust_line with respect to their new
17804         signature.  While displaying a line now, do not stop at the first
17805         null byte.  Rather, display the zero byte as a space and keep
17806         going until we reach the size of the line.
17807         * Makefile.in: Add vec.o to OBJS-libcommon
17808
17809 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17810             Ilya Tocar  <ilya.tocar@intel.com>
17811
17812         * config/i386/avx512fintrin.h (_mm512_kmov): New.
17813         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
17814         (__builtin_ia32_kmov16): Ditto.
17815         * config/i386/i386.md (UNSPEC_KMOV): New.
17816         (kmovw): Ditto.
17817
17818 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17819
17820         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
17821         (_mm512_storeu_si512): Ditto.
17822
17823 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
17824
17825         PR target/52125
17826         * rtl.h (get_referenced_operands): Declare.
17827         * recog.c (get_referenced_operands): New function.
17828         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
17829         operands have been referenced when recording LO_SUM references.
17830
17831 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
17832
17833         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
17834
17835 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
17836
17837         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
17838         Enable for generic and recent AMD targets.
17839
17840 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
17841
17842         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
17843         ARG_SIZE note when adjustment was eliminated.
17844
17845 2014-01-22  Jeff Law  <law@redhat.com>
17846
17847         PR tree-optimization/59597
17848         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
17849         in file.  Accept new argument REGISTERING and use it to modify
17850         dump output appropriately.
17851         (register_jump_thread): Corresponding changes.
17852         (mark_threaded_blocks): Reinstate code to cancel unprofitable
17853         thread paths involving joiner blocks.  Add code to dump cancelled
17854         jump threading paths.
17855
17856 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
17857
17858         PR rtl-optimization/59477
17859         * lra-constraints.c (inherit_in_ebb): Process call for living hard
17860         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
17861
17862 2014-01-22  Tom Tromey  <tromey@redhat.com>
17863
17864         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
17865         PARAMS.
17866         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
17867
17868 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17869
17870         PR rtl-optimization/59896
17871         * lra-constraints.c (process_alt_operands): Check unused note for
17872         matched operands of insn with no output reloads.
17873
17874 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
17875
17876         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
17877         (mips_move_from_gpr_cost): Likewise.
17878
17879 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17880
17881         PR rtl-optimization/59858
17882         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
17883         ira_class_hard_regs_num.
17884         (process_alt_operands): Increase reject for dying matched operand.
17885
17886 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
17887
17888         PR target/59003
17889         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
17890         smaller than size, perform several stores or loads and stores
17891         at dst + count - size to store or copy all of size bytes, rather
17892         than just last modesize bytes.
17893
17894 2014-01-20  DJ Delorie  <dj@redhat.com>
17895
17896         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
17897         that CLOBBERs are REGs before propogating their values.
17898
17899 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
17900
17901         PR middle-end/59789
17902         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
17903         (cgraph_inline_failed_type): New function.
17904         * cgraph.h (DEFCIFCODE): Add type.
17905         (cgraph_inline_failed_type_t): New enum.
17906         (cgraph_inline_failed_type): New prototype.
17907         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
17908         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
17909         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
17910         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
17911         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
17912         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
17913         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
17914         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
17915         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
17916         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
17917         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
17918         OPTIMIZATION_MISMATCH.
17919         * tree-inline.c (expand_call_inline): Emit errors during
17920         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
17921
17922 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
17923
17924         PR target/59685
17925         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
17926         mode attribute in insn output.
17927
17928 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
17929
17930         * output.h (output_constant): Delete.
17931         * varasm.c (output_constant): Make private.
17932
17933 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
17934
17935         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
17936
17937 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
17938
17939         PR middle-end/59860
17940         * tree.h (fold_builtin_strcat): New prototype.
17941         * builtins.c (fold_builtin_strcat): No longer static.  Add len
17942         argument, if non-NULL, don't call c_strlen.  Optimize
17943         directly into __builtin_memcpy instead of __builtin_strcpy.
17944         (fold_builtin_2): Adjust fold_builtin_strcat caller.
17945         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
17946
17947 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
17948
17949         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
17950         for SImode_address_operand operands, having only a REG argument.
17951
17952 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17953
17954         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
17955         loader name using mbig-endian.
17956         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
17957
17958 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
17959
17960         * doc/invoke.texi (-march): Clarify documentation for AArch64.
17961         (-mtune): Likewise.
17962         (-mcpu): Likewise.
17963
17964 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
17965
17966         * config/aarch64/aarch64-protos.h
17967         (aarch64_cannot_change_mode_class_ptr): Declare.
17968         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
17969         aarch64_cannot_change_mode_class_ptr): New.
17970         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
17971         backend hook aarch64_cannot_change_mode_class.
17972
17973 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
17974
17975         * common/config/aarch64/aarch64-common.c
17976         (aarch64_handle_option): Don't handle any option order logic here.
17977         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
17978         selected_cpu, warn on architecture version mismatch.
17979         (aarch64_override_options): Fix parsing order for option strings.
17980
17981 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17982             Iain Sandoe  <iain@codesourcery.com>
17983
17984         PR bootstrap/59496
17985         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
17986         warning.  Amend comment to reflect current functionality.
17987
17988 2014-01-20  Richard Biener  <rguenther@suse.de>
17989
17990         PR middle-end/59860
17991         * builtins.c (fold_builtin_strcat): Remove case better handled
17992         by tree-ssa-strlen.c.
17993
17994 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
17995
17996         * config/aarch64/aarch64.opt
17997         (mcpu, march, mtune): Make case-insensitive.
17998
17999 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
18000
18001         PR target/59880
18002         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
18003         if operands[1] is a REG or ZERO_EXTEND of a REG.
18004
18005 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
18006
18007         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
18008
18009 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
18010
18011         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
18012         long non-pic millicode calls.
18013
18014 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18015
18016         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
18017
18018 2014-01-19  Kito Cheng  <kito@0xlab.org>
18019
18020         * builtins.c (expand_movstr): Check movstr expand done or fail.
18021
18022 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18023             H.J. Lu  <hongjiu.lu@intel.com>
18024
18025         PR target/59379
18026         * config/i386/i386.md (*lea<mode>): Zero-extend return register
18027         to DImode for zero-extended addresses.
18028
18029 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
18030
18031         PR rtl-optimization/57763
18032         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
18033         on the new indirect jump_insn and increment LABEL_NUSES (label).
18034
18035 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
18036
18037         PR bootstrap/59580
18038         PR bootstrap/59583
18039         * config.gcc (x86_archs): New variable.
18040         (x86_64_archs): Likewise.
18041         (x86_cpus): Likewise.
18042         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
18043         --with-arch/--with-cpu= options.
18044         Support --with-arch=/--with-cpu={nehalem,westmere,
18045         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
18046
18047 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18048
18049         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
18050         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
18051
18052 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18053
18054         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
18055
18056 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
18057
18058         PR target/58944
18059         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
18060         clear cpp_get_options (parse_in)->warn_unused_macros for
18061         ix86_target_macros_internal with cpp_define.
18062
18063 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
18064
18065         * jump.c (delete_related_insns): Keep (use (insn))s.
18066         * reorg.c (redundant_insn): Check for barriers too.
18067
18068 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18069
18070         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
18071
18072 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
18073
18074         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
18075         call to $$dyncall when TARGET_LONG_CALLS is true.
18076
18077 2014-01-17  Jeff Law  <law@redhat.com>
18078
18079         * ree.c (combine_set_extension): Temporarily disable test for
18080         changing number of hard registers.
18081
18082 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
18083
18084         PR middle-end/58125
18085         * ipa-inline-analysis.c (inline_free_summary):
18086         Do not free summary of aliases.
18087
18088 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
18089
18090         PR middle-end/59706
18091         * gimplify.c (gimplify_expr): Use create_tmp_var
18092         instead of create_tmp_var_raw.  If cond doesn't have
18093         integral type, don't add the IFN_ANNOTATE builtin at all.
18094
18095 2014-01-17  Martin Jambor  <mjambor@suse.cz>
18096
18097         PR ipa/59736
18098         * ipa-cp.c (prev_edge_clone): New variable.
18099         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
18100         Also resize prev_edge_clone vector.
18101         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
18102         (ipcp_edge_removal_hook): New function.
18103         (ipcp_driver): Register ipcp_edge_removal_hook.
18104
18105 2014-01-17  Andrew Pinski  <apinski@cavium.com>
18106             Steve Ellcey  <sellcey@mips.com>
18107
18108         PR target/59462
18109         * config/mips/mips.c (mips_print_operand): Check operand mode instead
18110         of operator mode.
18111
18112 2014-01-17  Jeff Law  <law@redhat.com>
18113
18114         PR middle-end/57904
18115         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
18116         so that pass_ccp runs first.
18117
18118 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18119
18120         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
18121         (ix86_adjust_cost): Use !TARGET_XXX.
18122         (do_reorder_for_imul): Likewise.
18123         (swap_top_of_ready_list): Likewise.
18124         (ix86_sched_reorder): Likewise.
18125
18126 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18127
18128         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18129         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
18130         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
18131         (intel_memset): New.  Duplicate slm_memset.
18132         (intel_cost): New.  Duplicate slm_cost.
18133         (m_INTEL): New macro.
18134         (processor_target_table): Add "intel".
18135         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
18136         with PROCESSOR_INTEL for "intel".
18137         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
18138         PROCESSOR_SILVERMONT.
18139         (ix86_issue_rate): Likewise.
18140         (ix86_adjust_cost): Likewise.
18141         (ia32_multipass_dfa_lookahead): Likewise.
18142         (swap_top_of_ready_list): Likewise.
18143         (ix86_sched_reorder): Likewise.
18144         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
18145         instead of TARGET_OPT_AGU.
18146         * config/i386/i386.h (TARGET_INTEL): New.
18147         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
18148         (processor_type): Add PROCESSOR_INTEL.
18149         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
18150         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
18151
18152 2014-01-17  Marek Polacek  <polacek@redhat.com>
18153
18154         PR c/58346
18155         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
18156         size is zero.
18157
18158 2014-01-17  Richard Biener  <rguenther@suse.de>
18159
18160         PR tree-optimization/46590
18161         * opts.c (default_options_table): Add entries for
18162         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
18163         all enabled at -O1 but not for -Og.
18164         * common.opt (fbranch-count-reg): Remove Init(1).
18165         (fmove-loop-invariants): Likewise.
18166         (ftree-pta): Likewise.
18167
18168 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
18169
18170         * config/i386/i386.c (ix86_data_alignment): For compatibility with
18171         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
18172         decls to at least the GCC 4.8 used alignments.
18173
18174         PR fortran/59440
18175         * tree-nested.c (convert_nonlocal_reference_stmt,
18176         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
18177         of GIMPLE_BIND stmts, adjust associated decls.
18178
18179 2014-01-17  Richard Biener  <rguenther@suse.de>
18180
18181         PR tree-optimization/46590
18182         * vec.h (vec<>::bseach): New member function implementing
18183         binary search according to C89 bsearch.
18184         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
18185         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
18186         bitmap pointer again.  Make accesses_in_loop a flat array.
18187         (mem_ref_obstack): New global.
18188         (outermost_indep_loop): Adjust for mem_ref->stored changes.
18189         (mark_ref_stored): Likewise.
18190         (ref_indep_loop_p_2): Likewise.
18191         (set_ref_stored_in_loop): New helper function.
18192         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
18193         (memref_free): Adjust.
18194         (record_mem_ref_loc): Simplify.
18195         (gather_mem_refs_stmt): Adjust.
18196         (sort_locs_in_loop_postorder_cmp): New function.
18197         (analyze_memory_references): Sort accesses_in_loop after
18198         loop postorder number.
18199         (find_ref_loc_in_loop_cmp): New function.
18200         (for_all_locs_in_loop): Find relevant cluster of locs in
18201         accesses_in_loop and iterate without recursion.
18202         (execute_sm): Avoid uninit warning.
18203         (struct ref_always_accessed): Simplify.
18204         (ref_always_accessed::operator ()): Likewise.
18205         (ref_always_accessed_p): Likewise.
18206         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
18207         loop postorder numbers here.
18208         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
18209         numbers.
18210
18211 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
18212
18213         PR c++/57945
18214         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
18215         on decls for which assemble_alias has been called.
18216
18217 2014-01-17  Nick Clifton  <nickc@redhat.com>
18218
18219         * config/msp430/msp430.opt: (mcpu): New option.
18220         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
18221         (msp430_option_override): Parse target_cpu.  If the MCU name
18222         matches a generic string, clear target_mcu.
18223         (msp430_attr): Allow numeric interrupt values up to 63.
18224         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
18225         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
18226         option.
18227         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
18228         Add mcpu matches.
18229         * config/msp430/msp430.md (popm): Use %J rather than %I.
18230         (addsi3): Use msp430_nonimmediate_operand for operand 2.
18231         (addhi_cy_i): Use immediate_operand for operand 2.
18232         * doc/invoke.texi: Document -mcpu option.
18233
18234 2014-01-17  Richard Biener  <rguenther@suse.de>
18235
18236         PR rtl-optimization/38518
18237         * df.h (df_analyze_loop): Declare.
18238         * df-core.c: Include cfgloop.h.
18239         (df_analyze_1): Split out main part of df_analyze.
18240         (df_analyze): Adjust.
18241         (loop_inverted_post_order_compute): New function.
18242         (loop_post_order_compute): Likewise.
18243         (df_analyze_loop): New function avoiding whole-function
18244         postorder computes.
18245         * loop-invariant.c (find_defs): Use df_analyze_loop.
18246         (find_invariants): Adjust.
18247         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
18248
18249 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
18250
18251         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
18252         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
18253
18254 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
18255
18256         * ipa-ref.c (ipa_remove_stmt_references): Fix references
18257         traversal when removing references.
18258
18259 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
18260
18261         PR ipa/59775
18262         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
18263
18264 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
18265
18266         PR middle-end/56791
18267         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
18268         pushing a reload for an autoinc when we had previously reloaded an
18269         inner part of the address.
18270
18271 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
18272
18273         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
18274         field.
18275         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
18276         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
18277         when not giving up or versioning for alias only because of
18278         loop->safelen.
18279         (vect_analyze_data_ref_dependences): Set to true.
18280         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
18281         is a GIMPLE_PHI.
18282         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
18283         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
18284         to the condition.
18285
18286         PR middle-end/58344
18287         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
18288
18289         PR target/59839
18290         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
18291         operand 0 predicate for gathers, use a new pseudo as subtarget.
18292
18293 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
18294
18295         PR middle-end/59609
18296         * lra-constraints.c (process_alt_operands): Add printing debug info.
18297         Check absence of input/output reloads for matched operands too.
18298
18299 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
18300
18301         PR rtl-optimization/59835
18302         * ira.c (ira_init_register_move_cost): Increase cost for
18303         impossible modes.
18304
18305 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
18306
18307         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
18308
18309 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
18310
18311         PR target/59780
18312         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
18313         non-register objects.  Use gen_(high/low)part more consistently.
18314         Fix assertions.
18315
18316 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18317
18318         PR target/59844
18319         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
18320         endian support, remove tests for WORDS_BIG_ENDIAN.
18321         (p8_mfvsrd_3_<mode>): Likewise.
18322         (reload_gpr_from_vsx<mode>): Likewise.
18323         (reload_gpr_from_vsxsf): Likewise.
18324         (p8_mfvsrd_4_disf): Likewise.
18325
18326 2014-01-16  Richard Biener  <rguenther@suse.de>
18327
18328         PR rtl-optimization/46590
18329         * lcm.c (compute_antinout_edge): Use postorder iteration.
18330         (compute_laterin): Use inverted postorder iteration.
18331
18332 2014-01-16  Nick Clifton  <nickc@redhat.com>
18333
18334         PR middle-end/28865
18335         * varasm.c (output_constant): Return the number of bytes actually
18336         emitted.
18337         (output_constructor_array_range): Update the field size with the
18338         number of bytes emitted by output_constant.
18339         (output_constructor_regular_field): Likewise.  Also do not
18340         complain if the total number of bytes emitted is now greater
18341         than the expected fieldpos.
18342         * output.h (output_constant): Update prototype and descriptive comment.
18343
18344 2014-01-16  Marek Polacek  <polacek@redhat.com>
18345
18346         PR middle-end/59827
18347         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
18348         it is error_mark_node.
18349
18350 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
18351
18352         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
18353         VALID_AVX256_REG_OR_OI_MODE.
18354
18355 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
18356
18357         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
18358         current procedure should be profiled.
18359
18360 2014-01-15  Andrew Pinski  <apinski@cavium.com>
18361
18362         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
18363         of moving from/to the STACK_REG register class.
18364
18365 2014-01-15  Richard Henderson  <rth@redhat.com>
18366
18367         PR debug/54694
18368         * reginfo.c (global_regs_decl): Globalize.
18369         * rtl.h (global_regs_decl): Declare.
18370         * ira.c (do_reload): Diagnose frame_pointer_needed and it
18371         reserved via global_regs.
18372
18373 2014-01-15  Teresa Johnson  <tejohnson@google.com>
18374
18375         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
18376
18377 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18378
18379         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
18380         and vmulosh rather than call gen_vec_widen_smult_*.
18381         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
18382         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
18383         (vec_widen_smult_even_v16qi): Likewise.
18384         (vec_widen_umult_even_v8hi): Likewise.
18385         (vec_widen_smult_even_v8hi): Likewise.
18386         (vec_widen_umult_odd_v16qi): Likewise.
18387         (vec_widen_smult_odd_v16qi): Likewise.
18388         (vec_widen_umult_odd_v8hi): Likewise.
18389         (vec_widen_smult_odd_v8hi): Likewise.
18390         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
18391         vmuloub rather than call gen_vec_widen_umult_*.
18392         (vec_widen_umult_lo_v16qi): Likewise.
18393         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
18394         vmulosb rather than call gen_vec_widen_smult_*.
18395         (vec_widen_smult_lo_v16qi): Likewise.
18396         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
18397         rather than call gen_vec_widen_umult_*.
18398         (vec_widen_umult_lo_v8hi): Likewise.
18399         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
18400         rather than call gen_vec_widen_smult_*.
18401         (vec_widen_smult_lo_v8hi): Likewise.
18402
18403 2014-01-15  Jeff Law  <law@redhat.com>
18404
18405         PR tree-optimization/59747
18406         * ree.c (find_and_remove_re): Properly handle case where a second
18407         eliminated extension requires widening a copy created for elimination
18408         of a prior extension.
18409         (combine_set_extension): Ensure that the number of hard regs needed
18410         for a destination register does not change when we widen it.
18411
18412 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18413
18414         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
18415         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
18416         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
18417         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
18418         (avr-*-rtems*): Likewise.
18419         (bfin*-rtems*): Likewise.
18420         (moxie-*-rtems*): Likewise.
18421         (h8300-*-rtems*): Likewise.
18422         (i[34567]86-*-rtems*): Likewise.
18423         (lm32-*-rtems*): Likewise.
18424         (m32r-*-rtems*): Likewise.
18425         (m68k-*-rtems*): Likewise.
18426         (microblaze*-*-rtems*): Likewise.
18427         (mips*-*-rtems*): Likewise.
18428         (powerpc-*-rtems*): Likewise.
18429         (sh-*-rtems*): Likewise.
18430         (sparc-*-rtems*): Likewise.
18431         (sparc64-*-rtems*): Likewise.
18432         (v850-*-rtems*): Likewise.
18433         (m32c-*-rtems*): Likewise.
18434
18435 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18436
18437         PR rtl-optimization/59511
18438         * ira.c (ira_init_register_move_cost): Use memory costs for some
18439         cases of register move cost calculations.
18440         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
18441         instead of BB frequency.
18442         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
18443         * lra-assigns.c (find_hard_regno_for): Ditto.
18444
18445 2014-01-15  Richard Biener  <rguenther@suse.de>
18446
18447         PR tree-optimization/59822
18448         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
18449         (vectorizable_load): Use it to hoist defs of uses of invariant
18450         loads out of the loop.
18451
18452 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18453             Kugan Vivekanandarajah  <kuganv@linaro.org>
18454
18455         PR target/59695
18456         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
18457         truncation.
18458
18459 2014-01-15  Richard Biener  <rguenther@suse.de>
18460
18461         PR rtl-optimization/59802
18462         * lcm.c (compute_available): Use inverted postorder to seed
18463         the initial worklist.
18464
18465 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18466
18467         PR target/59803
18468         * config/s390/s390.c (s390_preferred_reload_class): Don't return
18469         ADDR_REGS for invalid symrefs in non-PIC code.
18470
18471 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
18472
18473         PR other/58712
18474         * builtins.c (determine_block_size): Initialize *probable_max_size
18475         even if len_rtx is CONST_INT.
18476
18477 2014-01-14  Andrew Pinski  <apinski@cavium.com>
18478
18479         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
18480         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
18481         (cortexa53_tunings): Likewise.
18482         (aarch64_sched_issue_rate): New function.
18483         (TARGET_SCHED_ISSUE_RATE): Define.
18484
18485 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
18486
18487         * ira-costs.c (find_costs_and_classes): Add missed
18488         ira_init_register_move_cost_if_necessary.
18489
18490 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
18491
18492         PR target/59787
18493         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
18494
18495 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
18496
18497         PR target/59794
18498         * config/i386/i386.c (type_natural_mode): Add a bool parameter
18499         to indicate if type is used for function return value.  Warn ABI
18500         change if the vector mode isn't available for function return value.
18501         (ix86_function_arg_advance): Pass false to type_natural_mode.
18502         (ix86_function_arg): Likewise.
18503         (ix86_gimplify_va_arg): Likewise.
18504         (function_arg_32): Don't warn ABI change.
18505         (ix86_function_value): Pass true to type_natural_mode.
18506         (ix86_return_in_memory): Likewise.
18507         (ix86_struct_value_rtx): Removed.
18508         (TARGET_STRUCT_VALUE_RTX): Likewise.
18509
18510 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18511
18512         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
18513         converting a conditional jump into a conditional return.
18514
18515 2014-01-14  Richard Biener  <rguenther@suse.de>
18516
18517         PR tree-optimization/58921
18518         PR tree-optimization/59006
18519         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
18520         hoisting invariant stmts.
18521         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
18522         invariant loads on the preheader edge if possible.
18523
18524 2014-01-14  Joey Ye  <joey.ye@arm.com>
18525
18526         * doc/plugin.texi (Building GCC plugins): Update to C++.
18527
18528 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
18529
18530         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
18531         (_mm_rcp28_round_ss): Ditto.
18532         (_mm_rsqrt28_round_sd): Ditto.
18533         (_mm_rsqrt28_round_ss): Ditto.
18534         (_mm_rcp28_sd): Ditto.
18535         (_mm_rcp28_ss): Ditto.
18536         (_mm_rsqrt28_sd): Ditto.
18537         (_mm_rsqrt28_ss): Ditto.
18538         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
18539         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
18540         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
18541         (IX86_BUILTIN_RCP28SD): Ditto.
18542         (IX86_BUILTIN_RCP28SS): Ditto.
18543         (IX86_BUILTIN_RSQRT28SD): Ditto.
18544         (IX86_BUILTIN_RSQRT28SS): Ditto.
18545         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
18546         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
18547         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
18548         (ix86_expand_special_args_builtin): Expand new FTYPE.
18549         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
18550         (srcp14<mode>): Make insn unary.
18551         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
18552         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
18553         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
18554         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
18555         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
18556         Fix rounding: make it SAE only.
18557         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18558         Ditto.
18559         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18560         Ditto.
18561         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
18562         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
18563         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
18564         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
18565         (round_saeonly_mask_scalar_operand4): Ditto.
18566         (round_saeonly_mask_scalar_op3): Ditto.
18567         (round_saeonly_mask_scalar_op4): Ditto.
18568
18569 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18570
18571         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18572         Implement -maltivec=be for vec_insert and vec_extract.
18573
18574 2014-01-10  DJ Delorie  <dj@redhat.com>
18575
18576         * config/msp430/msp430.md (call_internal): Don't allow memory
18577         references with SP as the base register.
18578         (call_value_internal): Likewise.
18579         * config/msp430/constraints.md (Yc): New.  For memory references
18580         that don't use SP as a base register.
18581
18582         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
18583         "an integer without a # prefix"
18584         * config/msp430/msp430.md (epilogue_helper): Use it.
18585
18586 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
18587
18588         PR target/59617
18589         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
18590         AVX512F gather builtins.
18591         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
18592         on gather decls with INTEGER_TYPE masktype.
18593         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
18594         directly into the builtin rather than hoisting it before loop.
18595
18596         PR tree-optimization/59387
18597         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
18598         (scev_const_prop): If folded_casts and type has undefined overflow,
18599         use force_gimple_operand instead of force_gimple_operand_gsi and
18600         for each added stmt if it is assign with
18601         arith_code_with_undefined_signed_overflow, call
18602         rewrite_to_defined_overflow.
18603         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
18604         gimple-fold.h instead.
18605         (arith_code_with_undefined_signed_overflow,
18606         rewrite_to_defined_overflow): Moved to ...
18607         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
18608         rewrite_to_defined_overflow): ... here.  No longer static.
18609         Include gimplify-me.h.
18610         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
18611         rewrite_to_defined_overflow): New prototypes.
18612
18613 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18614
18615         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
18616
18617 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
18618
18619         * builtins.c (get_object_alignment_2): Minor tweak.
18620         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
18621
18622 2014-01-13  Christian Bruel  <christian.bruel@st.com>
18623
18624         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
18625         optimized non constant lengths.
18626
18627 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
18628
18629         PR libgomp/59194
18630         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
18631         load as __atomic_load_N if possible.
18632
18633 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
18634
18635         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
18636         target parameter.
18637         (rs6000_expand_builtin): Adjust call.
18638
18639 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
18640
18641         PR target/58115
18642         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
18643         * config/rs6000/rs6000.c: Include target-globals.h.
18644         (rs6000_set_current_function): Instead of doing target_reinit
18645         unconditionally, use save_target_globals_default_opts and
18646         restore_target_globals.
18647
18648         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
18649         FPSCR.
18650         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
18651         (rs6000_expand_builtin): Handle mffs and mtfsf.
18652         (rs6000_init_builtins): Define mffs and mtfsf.
18653         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
18654         (rs6000_mffs): New pattern.
18655         (rs6000_mtfsf): New pattern.
18656
18657 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
18658
18659         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
18660         Start narrowing with START.  Apply candidate-use pair
18661         and check overall cost in narrowing.
18662         (iv_ca_prune): Pass new argument.
18663
18664 2014-01-10  Jeff Law  <law@redhat.com>
18665
18666         PR middle-end/59743
18667         * ree.c (combine_reaching_defs): Ensure the defining statement
18668         occurs before the extension when optimizing extensions with
18669         different source and destination hard registers.
18670
18671 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
18672
18673         PR ipa/58585
18674         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
18675         vtables into the type inheritance graph.
18676
18677 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
18678
18679         PR rtl-optimization/59754
18680         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
18681         modes in the REGNO != REGNO case.
18682
18683 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18684
18685         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
18686
18687 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
18688
18689         PR tree-optimization/59745
18690         * tree-predcom.c (tree_predictive_commoning_loop): Call
18691         free_affine_expand_cache if giving up because components is NULL.
18692
18693         * target-globals.c (save_target_globals): Allocate < 4KB structs using
18694         GC in payload of target_globals struct instead of allocating them on
18695         the heap and the larger structs separately using GC.
18696         * target-globals.h (struct target_globals): Make regs, hard_regs,
18697         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
18698         of GTY((skip)) and change type to void *.
18699         (reset_target_globals): Cast loads from those fields to corresponding
18700         types.
18701
18702 2014-01-10  Steve Ellcey  <sellcey@mips.com>
18703
18704         PR plugins/59335
18705         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
18706         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
18707         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
18708
18709 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
18710
18711         PR target/59744
18712         * aarch64-modes.def (CC_Zmode): New flags mode.
18713         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
18714         represents an equality.
18715         (aarch64_get_condition_code): Handle CC_Zmode.
18716         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
18717
18718 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18719
18720         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
18721         extraction in good case.
18722
18723 2014-01-10  Richard Biener  <rguenther@suse.de>
18724
18725         PR tree-optimization/59374
18726         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
18727         checking after SLP discovery.  Mark stmts not participating
18728         in any SLP instance properly.
18729
18730 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18731
18732         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
18733         when handling a SET rtx.
18734
18735 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18736
18737         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
18738         (cortex-a57): Likewise.
18739         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
18740
18741 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18742
18743         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
18744         non-iwmmxt builtins.
18745
18746 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
18747
18748         PR ipa/58252
18749         PR ipa/59226
18750         * ipa-devirt.c record_target_from_binfo): Take as argument
18751         stack of binfos and lookup matching one for virtual inheritance.
18752         (possible_polymorphic_call_targets_1): Update.
18753
18754 2014-01-10  Huacai Chen  <chenhc@lemote.com>
18755
18756         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
18757         kernel strings for Loongson-2E/2F/3A.
18758
18759 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
18760
18761         PR middle-end/59670
18762         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
18763         is_gimple_call before calling gimple_call_internal_p.
18764
18765 2014-01-09  Steve Ellcey  <sellcey@mips.com>
18766
18767         * Makefile.in (TREE_FLOW_H): Remove.
18768         (TREE_SSA_H): Add file names from tree-flow.h.
18769         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
18770         * tree.h: Remove tree-flow.h reference.
18771         * hash-table.h: Remove tree-flow.h reference.
18772         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
18773         reference with tree-ssa-loop.h.
18774
18775 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18776
18777         * doc/invoke.texi: Add -maltivec={be,le} options, and document
18778         default element-order behavior for -maltivec.
18779         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
18780         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
18781         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
18782         when targeting big endian, at least for now.
18783         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
18784
18785 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
18786
18787         PR middle-end/47735
18788         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
18789         var satisfies use_register_for_decl, just take into account type
18790         alignment, rather than decl alignment.
18791
18792         PR tree-optimization/59622
18793         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
18794         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
18795         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
18796         Don't devirtualize for inplace at all.  For targets.length () == 1,
18797         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
18798
18799 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
18800
18801         * config/i386/i386.md (cpu): Remove the unused btver1.
18802
18803 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
18804
18805         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
18806
18807 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
18808
18809         PR target/58115
18810         * tree-core.h (struct target_globals): New forward declaration.
18811         (struct tree_target_option): Add globals field.
18812         * tree.h (TREE_TARGET_GLOBALS): Define.
18813         (prepare_target_option_nodes_for_pch): New prototype.
18814         * target-globals.h (struct target_globals): Define even if
18815         !SWITCHABLE_TARGET.
18816         * tree.c (prepare_target_option_node_for_pch,
18817         prepare_target_option_nodes_for_pch): New functions.
18818         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
18819         * config/i386/i386.c: Include target-globals.h.
18820         (ix86_set_current_function): Instead of doing target_reinit
18821         unconditionally, use save_target_globals_default_opts and
18822         restore_target_globals.
18823
18824 2014-01-09  Richard Biener  <rguenther@suse.de>
18825
18826         PR tree-optimization/59715
18827         * tree-cfg.h (split_critical_edges): Declare.
18828         * tree-cfg.c (split_critical_edges): Export.
18829         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
18830
18831 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18832
18833         * cfgexpand.c (expand_stack_vars): Optionally disable
18834         asan stack protection.
18835         (expand_used_vars): Likewise.
18836         (partition_stack_vars): Likewise.
18837         * asan.c (asan_emit_stack_protection): Optionally disable
18838         after return stack usage.
18839         (instrument_derefs): Optionally disable memory access instrumentation.
18840         (instrument_builtin_call): Likewise.
18841         (instrument_strlen_call): Likewise.
18842         (asan_protect_global): Optionally disable global variables protection.
18843         * doc/invoke.texi: Added doc for new options.
18844         * params.def: Added new options.
18845         * params.h: Likewise.
18846
18847 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
18848
18849         PR rtl-optimization/59724
18850         * ifcvt.c (cond_exec_process_if_block): Don't call
18851         flow_find_head_matching_sequence with 0 longest_match.
18852         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
18853         non-active insns if !stop_after.
18854         (try_head_merge_bb): Revert 2014-01-07 changes.
18855
18856 2014-01-08  Jeff Law  <law@redhat.com>
18857
18858         * ree.c (get_sub_rtx): New function, extracted from...
18859         (merge_def_and_ext): Here.
18860         (combine_reaching_defs): Use get_sub_rtx.
18861
18862 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
18863
18864         * cgraph.h (varpool_variable_node): Do not choke on null node.
18865
18866 2014-01-08  Catherine Moore  <clm@codesourcery.com>
18867
18868         * config/mips/mips.md (simple_return): Attempt to use JRC
18869         for microMIPS.
18870         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
18871
18872 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
18873
18874         PR rtl-optimization/59137
18875         * reorg.c (steal_delay_list_from_target): Call update_block for
18876         elided insns.
18877         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
18878
18879 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18880
18881         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18882         two duplicate entries.
18883
18884 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
18885
18886         Revert:
18887         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
18888
18889         * config/mips/mips.c (mips_truncated_op_cost): New function.
18890         (mips_rtx_costs): Adjust test for BADDU.
18891         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
18892
18893         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
18894
18895         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
18896         (*baddu_si): ...this new pattern.
18897
18898 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
18899
18900         PR ipa/59722
18901         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
18902
18903 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18904
18905         PR middle-end/57748
18906         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
18907         inner_reference_p.
18908         (expand_expr, expand_normal): Adjust.
18909         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
18910         inner_reference_p. Use inner_reference_p to expand inner references.
18911         (store_expr): Adjust.
18912         * cfgexpand.c (expand_call_stmt): Adjust.
18913
18914 2014-01-08  Rong Xu  <xur@google.com>
18915
18916         * gcov-io.c (gcov_var): Move from gcov-io.h.
18917         (gcov_position): Ditto.
18918         (gcov_is_error): Ditto.
18919         (gcov_rewrite): Ditto.
18920         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
18921         only part to libgcc/libgcov.h.
18922
18923 2014-01-08  Marek Polacek  <polacek@redhat.com>
18924
18925         PR middle-end/59669
18926         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
18927
18928 2014-01-08  Marek Polacek  <polacek@redhat.com>
18929
18930         PR sanitizer/59667
18931         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
18932
18933 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
18934
18935         PR rtl-optimization/59649
18936         * stor-layout.c (get_mode_bounds): For BImode return
18937         0 and STORE_FLAG_VALUE.
18938
18939 2014-01-08  Richard Biener  <rguenther@suse.de>
18940
18941         PR middle-end/59630
18942         * gimple.h (is_gimple_builtin_call): Remove.
18943         (gimple_builtin_call_types_compatible_p): New.
18944         (gimple_call_builtin_p): New overload.
18945         * gimple.c (is_gimple_builtin_call): Remove.
18946         (validate_call): Rename to ...
18947         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
18948         check return types.
18949         (validate_type): New static function.
18950         (gimple_call_builtin_p): New overload and adjust.
18951         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
18952         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
18953         (gimple_fold_stmt_to_constant_1): Likewise.
18954         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
18955
18956 2014-01-08  Richard Biener  <rguenther@suse.de>
18957
18958         PR middle-end/59471
18959         * gimplify.c (gimplify_expr): Gimplify register-register type
18960         VIEW_CONVERT_EXPRs to separate stmts.
18961
18962 2014-01-07  Jeff Law  <law@redhat.com>
18963
18964         PR middle-end/53623
18965         * ree.c (combine_set_extension): Handle case where source
18966         and destination registers in an extension insn are different.
18967         (combine_reaching_defs): Allow source and destination registers
18968         in extension to be different under limited circumstances.
18969         (add_removable_extension): Remove restriction that the
18970         source and destination registers in the extension are the same.
18971         (find_and_remove_re): Emit a copy from the extension's
18972         destination to its source after the defining insn if
18973         the source and destination registers are different.
18974
18975         PR middle-end/59285
18976         * ifcvt.c (merge_if_block): If we are merging a block with more than
18977         one successor with a block with no successors, remove any BARRIER
18978         after the second block.
18979
18980 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
18981
18982         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
18983
18984 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
18985
18986         PR target/59652
18987         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
18988         for 14-bit register offsets when INT14_OK_STRICT is false.
18989
18990 2014-01-07  Roland Stigge  <stigge@antcom.de>
18991             Michael Meissner  <meissner@linux.vnet.ibm.com>
18992
18993         PR 57386/target
18994         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
18995         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
18996
18997 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
18998
18999         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
19000         -mcpu.
19001
19002 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
19003
19004         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
19005         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
19006         rtx is const0_rtx or not.
19007
19008 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
19009
19010         PR target/58115
19011         * target-globals.c (save_target_globals): Remove this_fn_optab
19012         handling.
19013         * toplev.c: Include optabs.h.
19014         (target_reinit): Temporarily restore the global options if another
19015         set of options are in force.
19016
19017 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
19018
19019         PR rtl-optimization/58668
19020         * cfgcleanup.c (flow_find_cross_jump): Don't count
19021         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
19022         to determine what is counted.
19023         (flow_find_head_matching_sequence): Use active_insn_p to determine
19024         what is counted.
19025         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
19026         counting change.
19027         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
19028         determine what is counted.
19029
19030         PR tree-optimization/59643
19031         * tree-predcom.c (split_data_refs_to_components): If one dr is
19032         read and one write, determine_offset fails and the write isn't
19033         in the bad component, just put the read into the bad component.
19034
19035 2014-01-07  Mike Stump  <mikestump@comcast.net>
19036             Jakub Jelinek  <jakub@redhat.com>
19037
19038         PR pch/59436
19039         * tree-core.h (struct tree_optimization_option): Change optabs
19040         type from unsigned char * to void *.
19041         * optabs.c (init_tree_optimization_optabs): Adjust
19042         TREE_OPTIMIZATION_OPTABS initialization.
19043
19044 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
19045
19046         PR target/59644
19047         * config/i386/i386.h (struct machine_function): Add
19048         no_drap_save_restore field.
19049         * config/i386/i386.c (ix86_save_reg): Use
19050         !cfun->machine->no_drap_save_restore instead of
19051         crtl->stack_realign_needed.
19052         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
19053         this function clears frame_pointer_needed.  Set
19054         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
19055         and DRAP reg is needed.
19056
19057 2014-01-06  Marek Polacek  <polacek@redhat.com>
19058
19059         PR c/57773
19060         * doc/implement-c.texi: Mention that other integer types are
19061         permitted as bit-field types in strictly conforming mode.
19062
19063 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
19064
19065         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
19066         is newly allocated.
19067
19068 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
19069
19070         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
19071
19072 2014-01-06  Martin Jambor  <mjambor@suse.cz>
19073
19074         PR ipa/59008
19075         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
19076         to int.
19077         * ipa-prop.c (ipa_print_node_params): Fix indentation.
19078
19079 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19080
19081         PR debug/59350
19082         PR debug/59510
19083         * var-tracking.c (add_stores): Preserve the value of the source even if
19084         we don't record the store.
19085
19086 2014-01-06  Terry Guo  <terry.guo@arm.com>
19087
19088         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
19089
19090 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
19091
19092         PR bootstrap/59541
19093         * config/darwin.c (darwin_function_section): Adjust return values to
19094         correspond to optimisation changes made in r206070.
19095
19096 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
19097
19098         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
19099         from prefetch_block tune setting.
19100         (nocona_cost): Correct size of prefetch block to 64.
19101
19102 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19103
19104         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
19105         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
19106         used to save the static chain register in the computation of the offset
19107         from which the FP registers need to be restored.
19108
19109 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
19110
19111         PR tree-optimization/59519
19112         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19113         ICE if get_current_def (current_new_name) is already non-NULL, as long
19114         as it is a phi result of some other phi in *new_exit_bb that has
19115         the same argument.
19116
19117         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
19118         or vmovdqu* for misaligned_operand.
19119         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
19120         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
19121         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
19122         aligned_mem for AVX512F masked aligned load and store builtins and for
19123         non-temporal moves.
19124
19125 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
19126
19127         PR tree-optimization/59651
19128         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19129         Address range for negative step should be added by TYPE_SIZE_UNIT.
19130
19131 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
19132
19133         * config/m68k/m68k.c (handle_move_double): Handle pushes with
19134         overlapping registers also for registers other than the stack pointer.
19135
19136 2014-01-03  Marek Polacek  <polacek@redhat.com>
19137
19138         PR other/59661
19139         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
19140         __builtin_FILE.
19141
19142 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
19143
19144         PR target/59625
19145         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
19146         asm goto as jump.
19147
19148         * config/i386/i386.md (MODE_SIZE): New mode attribute.
19149         (push splitter): Use <P:MODE_SIZE> instead of
19150         GET_MODE_SIZE (<P:MODE>mode).
19151         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
19152         (mov -1, reg peephole2): Likewise.
19153         * config/i386/sse.md (*mov<mode>_internal,
19154         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
19155         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
19156         *<code><mode>3, *andnot<mode>3<mask_name>,
19157         <mask_codefor><code><mode>3<mask_name>): Likewise.
19158         * config/i386/subst.md (mask_mode512bit_condition,
19159         sd_mask_mode512bit_condition): Likewise.
19160
19161 2014-01-02  Xinliang David Li  <davidxl@google.com>
19162
19163         PR tree-optimization/59303
19164         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
19165         (dump_predicates): Better output format.
19166         (pred_equal_p): New function.
19167         (is_neq_relop_p): Ditto.
19168         (is_neq_zero_form_p): Ditto.
19169         (pred_expr_equal_p): Ditto.
19170         (pred_neg_p): Ditto.
19171         (simplify_pred): Ditto.
19172         (simplify_preds_2): Ditto.
19173         (simplify_preds_3): Ditto.
19174         (simplify_preds_4): Ditto.
19175         (simplify_preds): Ditto.
19176         (push_pred): Ditto.
19177         (push_to_worklist): Ditto.
19178         (get_pred_info_from_cmp): Ditto.
19179         (is_degenerated_phi): Ditto.
19180         (normalize_one_pred_1): Ditto.
19181         (normalize_one_pred): Ditto.
19182         (normalize_one_pred_chain): Ditto.
19183         (normalize_preds): Ditto.
19184         (normalize_cond_1): Remove function.
19185         (normalize_cond): Ditto.
19186         (is_gcond_subset_of): Ditto.
19187         (is_subset_of_any): Ditto.
19188         (is_or_set_subset_of): Ditto.
19189         (is_and_set_subset_of): Ditto.
19190         (is_norm_cond_subset_of): Ditto.
19191         (pred_chain_length_cmp): Ditto.
19192         (convert_control_dep_chain_into_preds): Type change.
19193         (find_predicates): Ditto.
19194         (find_def_preds): Ditto.
19195         (destroy_predicates_vecs): Ditto.
19196         (find_matching_predicates_in_rest_chains): Ditto.
19197         (use_pred_not_overlap_with_undef_path_pred): Ditto.
19198         (is_pred_expr_subset): Ditto.
19199         (is_pred_chain_subset_of): Ditto.
19200         (is_included_in): Ditto.
19201         (is_superset_of): Ditto.
19202
19203 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
19204
19205         Update copyright years.
19206
19207 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
19208
19209         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
19210         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
19211         config/arc/arc.md, config/arc/arc.opt,
19212         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
19213         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
19214         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
19215         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
19216         config/linux-protos.h, config/linux.c, config/winnt-c.c,
19217         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
19218         vtable-verify.c, vtable-verify.h: Use the standard form for the
19219         copyright notice.
19220
19221 2014-01-02  Tobias Burnus  <burnus@net-b.de>
19222
19223         * gcc.c (process_command): Update copyright notice dates.
19224         * gcov-dump.c: Ditto.
19225         * gcov.c: Ditto.
19226         * doc/cpp.texi: Bump @copying's copyright year.
19227         * doc/cppinternals.texi: Ditto.
19228         * doc/gcc.texi: Ditto.
19229         * doc/gccint.texi: Ditto.
19230         * doc/gcov.texi: Ditto.
19231         * doc/install.texi: Ditto.
19232         * doc/invoke.texi: Ditto.
19233
19234 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19235
19236         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
19237
19238 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
19239
19240         * config/i386/sse.md (*mov<mode>_internal): Guard
19241         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
19242
19243         PR rtl-optimization/59647
19244         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
19245         new_rtx into UNSIGNED_FLOAT rtxes.
19246 \f
19247 Copyright (C) 2014 Free Software Foundation, Inc.
19248
19249 Copying and distribution of this file, with or without modification,
19250 are permitted in any medium without royalty provided the copyright
19251 notice and this notice are preserved.